* [PATCH] xf86-video-imxfb-vivante: add dependency on X11 @ 2012-12-17 23:37 Vladimir Zapolskiy 2012-12-18 10:24 ` Daiane Angolini 2012-12-18 10:30 ` Andrei Gherzan 0 siblings, 2 replies; 11+ messages in thread From: Vladimir Zapolskiy @ 2012-12-17 23:37 UTC (permalink / raw) To: meta-freescale; +Cc: Otavio Salvador Prior to xf86-video-imxfs-vivante there should be built libX11. This change fixes an issue met on configuration stage: | configure:3303: checking whether the C compiler works | configure:3325: arm-mentor-linux-gnueabi-gcc -march=armv7-a -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a9 -mno-unaligned-access [snip] -lm -ldl -lGAL-x11 conftest.c >&5 | /opt/projects/mentor/thales-mel6.0/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XWidthOfScreen' [snip] | collect2: ld returned 1 exit status Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com> --- recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_12.09.01.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_12.09.01.bb b/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_12.09.01.bb index e319199..26cae88 100644 --- a/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_12.09.01.bb +++ b/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_12.09.01.bb @@ -3,7 +3,7 @@ require recipes-graphics/xorg-driver/xorg-driver-video.inc -DEPENDS += "virtual/libgal-x11 gpu-viv-bin-mx6q" +DEPENDS += "virtual/libx11 virtual/libgal-x11 gpu-viv-bin-mx6q" LIC_FILES_CHKSUM = "file://src/vivante_fbdev/vivante.h;endline=19;md5=93a322f91ec495569dcbcfbb2a95454a" @@ -14,7 +14,7 @@ SRC_URI[sha256sum] = "5b3be4b426d2d2803554df9e4d8919d1f9d17659c3153c71c6529f43c3 EXTRA_OECONF_armv7a = " --enable-neon --disable-static" CFLAGS += " -I${STAGING_INCDIR}/xorg -I${STAGING_INCDIR}/drm" -LDFLAGS += "-lm -ldl -lGAL-x11" +LDFLAGS += "-lm -ldl -lX11 -lGAL-x11" S = "${WORKDIR}/xserver-xorg-video-imx-viv-${PV}" -- 1.7.10.4 ^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH] xf86-video-imxfb-vivante: add dependency on X11 2012-12-17 23:37 [PATCH] xf86-video-imxfb-vivante: add dependency on X11 Vladimir Zapolskiy @ 2012-12-18 10:24 ` Daiane Angolini 2012-12-18 10:30 ` Andrei Gherzan 1 sibling, 0 replies; 11+ messages in thread From: Daiane Angolini @ 2012-12-18 10:24 UTC (permalink / raw) To: Vladimir Zapolskiy; +Cc: meta-freescale, Otavio Salvador On 12/17/2012 09:37 PM, Vladimir Zapolskiy wrote: > Prior to xf86-video-imxfs-vivante there should be built libX11. > > This change fixes an issue met on configuration stage: > > | configure:3303: checking whether the C compiler works > | configure:3325: arm-mentor-linux-gnueabi-gcc -march=armv7-a -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a9 -mno-unaligned-access [snip] -lm -ldl -lGAL-x11 conftest.c >&5 > | /opt/projects/mentor/thales-mel6.0/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XWidthOfScreen' > [snip] > | collect2: ld returned 1 exit status > > Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com> You forgot to add [meta-fsl-arm] to subject. Please, BUMP the recipe. Daiane ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] xf86-video-imxfb-vivante: add dependency on X11 2012-12-17 23:37 [PATCH] xf86-video-imxfb-vivante: add dependency on X11 Vladimir Zapolskiy 2012-12-18 10:24 ` Daiane Angolini @ 2012-12-18 10:30 ` Andrei Gherzan 2012-12-18 11:10 ` Otavio Salvador 2012-12-18 11:43 ` Vladimir Zapolskiy 1 sibling, 2 replies; 11+ messages in thread From: Andrei Gherzan @ 2012-12-18 10:30 UTC (permalink / raw) To: Vladimir Zapolskiy; +Cc: meta-freescale@yoctoproject.org, Otavio Salvador [-- Attachment #1: Type: text/plain, Size: 987 bytes --] On Tue, Dec 18, 2012 at 1:37 AM, Vladimir Zapolskiy < vladimir_zapolskiy@mentor.com> wrote: > Prior to xf86-video-imxfs-vivante there should be built libX11. > > This change fixes an issue met on configuration stage: > > | configure:3303: checking whether the C compiler works > | configure:3325: arm-mentor-linux-gnueabi-gcc -march=armv7-a > -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a9 > -mno-unaligned-access [snip] -lm -ldl -lGAL-x11 conftest.c >&5 > | > /opt/projects/mentor/thales-mel6.0/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > undefined reference to `XWidthOfScreen' > [snip] > | collect2: ld returned 1 exit status > It's very strange that i never saw this issue before. I compiled this driver a couple of times and didn't see this error. Maybe it was a race thing where libx11 was compiled first but about that LDFLAGS, are you sure -lX11 is not added by default? +1 for [meta-fsl-arm] prefix. ag [-- Attachment #2: Type: text/html, Size: 1480 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] xf86-video-imxfb-vivante: add dependency on X11 2012-12-18 10:30 ` Andrei Gherzan @ 2012-12-18 11:10 ` Otavio Salvador 2012-12-18 11:46 ` Vladimir Zapolskiy 2012-12-18 11:43 ` Vladimir Zapolskiy 1 sibling, 1 reply; 11+ messages in thread From: Otavio Salvador @ 2012-12-18 11:10 UTC (permalink / raw) To: Andrei Gherzan; +Cc: meta-freescale@yoctoproject.org, Vladimir Zapolskiy On Tue, Dec 18, 2012 at 8:30 AM, Andrei Gherzan <andrei@gherzan.ro> wrote: > On Tue, Dec 18, 2012 at 1:37 AM, Vladimir Zapolskiy > <vladimir_zapolskiy@mentor.com> wrote: >> >> Prior to xf86-video-imxfs-vivante there should be built libX11. >> >> This change fixes an issue met on configuration stage: >> >> | configure:3303: checking whether the C compiler works >> | configure:3325: arm-mentor-linux-gnueabi-gcc -march=armv7-a >> -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a9 >> -mno-unaligned-access [snip] -lm -ldl -lGAL-x11 conftest.c >&5 >> | >> /opt/projects/mentor/thales-mel6.0/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> undefined reference to `XWidthOfScreen' >> [snip] >> | collect2: ld returned 1 exit status > > > It's very strange that i never saw this issue before. I compiled this driver > a couple of times and didn't see this error. Maybe it was a race thing where > libx11 was compiled first but about that LDFLAGS, are you sure -lX11 is not > added by default? > > +1 for [meta-fsl-arm] prefix. Andrei is right Vladimir. Please check if LDFLAGS is really need and as Daiane said please bump PR. -- Otavio Salvador O.S. Systems E-mail: otavio@ossystems.com.br http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] xf86-video-imxfb-vivante: add dependency on X11 2012-12-18 11:10 ` Otavio Salvador @ 2012-12-18 11:46 ` Vladimir Zapolskiy 0 siblings, 0 replies; 11+ messages in thread From: Vladimir Zapolskiy @ 2012-12-18 11:46 UTC (permalink / raw) To: Otavio Salvador; +Cc: meta-freescale@yoctoproject.org On 18.12.2012 13:10, Otavio Salvador wrote: > On Tue, Dec 18, 2012 at 8:30 AM, Andrei Gherzan<andrei@gherzan.ro> wrote: >> On Tue, Dec 18, 2012 at 1:37 AM, Vladimir Zapolskiy >> <vladimir_zapolskiy@mentor.com> wrote: >>> >>> Prior to xf86-video-imxfs-vivante there should be built libX11. >>> >>> This change fixes an issue met on configuration stage: >>> >>> | configure:3303: checking whether the C compiler works >>> | configure:3325: arm-mentor-linux-gnueabi-gcc -march=armv7-a >>> -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a9 >>> -mno-unaligned-access [snip] -lm -ldl -lGAL-x11 conftest.c>&5 >>> | >>> /opt/projects/mentor/thales-mel6.0/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >>> undefined reference to `XWidthOfScreen' >>> [snip] >>> | collect2: ld returned 1 exit status >> >> >> It's very strange that i never saw this issue before. I compiled this driver >> a couple of times and didn't see this error. Maybe it was a race thing where >> libx11 was compiled first but about that LDFLAGS, are you sure -lX11 is not >> added by default? >> >> +1 for [meta-fsl-arm] prefix. > > Andrei is right Vladimir. Please check if LDFLAGS is really need and > as Daiane said please bump PR. Daiane, Andrei, Otavio, thanks for comments, I'll send the second version of the patch for review. -- With best wishes, Vladimir ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] xf86-video-imxfb-vivante: add dependency on X11 2012-12-18 10:30 ` Andrei Gherzan 2012-12-18 11:10 ` Otavio Salvador @ 2012-12-18 11:43 ` Vladimir Zapolskiy 2012-12-18 11:46 ` Otavio Salvador 1 sibling, 1 reply; 11+ messages in thread From: Vladimir Zapolskiy @ 2012-12-18 11:43 UTC (permalink / raw) To: Andrei Gherzan; +Cc: meta-freescale, Otavio Salvador On 18.12.2012 12:30, Andrei Gherzan wrote: > On Tue, Dec 18, 2012 at 1:37 AM, Vladimir Zapolskiy > <vladimir_zapolskiy@mentor.com <mailto:vladimir_zapolskiy@mentor.com>> > wrote: > > Prior to xf86-video-imxfs-vivante there should be built libX11. > > This change fixes an issue met on configuration stage: > > | configure:3303: checking whether the C compiler works > | configure:3325: arm-mentor-linux-gnueabi-gcc -march=armv7-a > -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a9 > -mno-unaligned-access [snip] -lm -ldl -lGAL-x11 conftest.c >&5 > | > /opt/projects/mentor/thales-mel6.0/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > undefined reference to `XWidthOfScreen' > [snip] > | collect2: ld returned 1 exit status > > It's very strange that i never saw this issue before. I compiled this > driver a couple of times and didn't see this error. Maybe it was a race > thing where libx11 was compiled first but about that LDFLAGS, are you > sure -lX11 is not added by default? You would fix it, if you see it, mostly I work within non-Yocto environment, and this might be the rootcause. Below is more detailed output: [log] | configure:3303: checking whether the C compiler works | configure:3325: arm-mentor-linux-gnueabi-gcc -march=armv7-a -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a9 -mno-unaligned-access --sysroot=/opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite -O2 -pipe -g -feliminate-unused-debug-types -I/opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/include/xorg -I/opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/include/drm -Wl,-O1 -Wl,--hash-style=gnu -lm -ldl -lGAL-x11 conftest.c >&5 | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XWidthOfScreen' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XMoveWindow' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XCreateImage' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XCreateWindow' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XHeightOfScreen' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XOpenDisplay' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XSetWMProperties' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XDestroyWindow' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XCloseDisplay' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XGetGeometry' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XUnmapWindow' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XFreeGC' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XNextEvent' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XCreateGC' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XScreenOfDisplay' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XFlush' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XPutImage' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XInitThreads' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XGetImage' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XGetWindowAttributes' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XFreePixmap' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XStringListToTextProperty' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XCreatePixmap' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XMapRaised' | /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: undefined reference to `XPending' | collect2: ld returned 1 exit status | configure:3329: $? = 1 | configure:3367: result: no | configure: failed program was: | | /* confdefs.h */ | | #define PACKAGE_NAME "xf86-video-vivante" | | #define PACKAGE_TARNAME "xf86-video-vivante" | | #define PACKAGE_VERSION "0.1.0" | | #define PACKAGE_STRING "xf86-video-vivante 0.1.0" | | #define PACKAGE_BUGREPORT "https://bugs.freedesktop.org/enter_bug.cgi?product=xorg" | | #define PACKAGE_URL "" | | #define PACKAGE "xf86-video-vivante" | | #define VERSION "0.1.0" | | /* end confdefs.h. */ | | | | int | | main () | | { | | | | ; | | return 0; | | } | configure:3372: error: in `/opt/projects/mentor/thales-mel6.0/build/tmp/work/imx6qsabrelite-mel-linux-gnueabi/xf86-video-imxfb-vivante-2_12.09.01-r0/xserver-xorg-video-imx-viv-12.09.01': | configure:3374: error: C compiler cannot create executables | See `config.log' for more details [/log] I would appreciate, if you could check your log of the configuration task for presence of -lX11 linker option, and if it is present, it would be good to know where it comes from. > +1 for [meta-fsl-arm] prefix. > Thanks for pointing out, I'll correct the prefix. -- With best wishes, Vladimir ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] xf86-video-imxfb-vivante: add dependency on X11 2012-12-18 11:43 ` Vladimir Zapolskiy @ 2012-12-18 11:46 ` Otavio Salvador 2012-12-18 11:48 ` Vladimir Zapolskiy 2012-12-18 11:55 ` Andrei Gherzan 0 siblings, 2 replies; 11+ messages in thread From: Otavio Salvador @ 2012-12-18 11:46 UTC (permalink / raw) To: Vladimir Zapolskiy; +Cc: meta-freescale@yoctoproject.org On Tue, Dec 18, 2012 at 9:43 AM, Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com> wrote: > On 18.12.2012 12:30, Andrei Gherzan wrote: >> >> On Tue, Dec 18, 2012 at 1:37 AM, Vladimir Zapolskiy >> <vladimir_zapolskiy@mentor.com <mailto:vladimir_zapolskiy@mentor.com>> >> >> wrote: >> >> Prior to xf86-video-imxfs-vivante there should be built libX11. >> >> This change fixes an issue met on configuration stage: >> >> | configure:3303: checking whether the C compiler works >> | configure:3325: arm-mentor-linux-gnueabi-gcc -march=armv7-a >> -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a9 >> -mno-unaligned-access [snip] -lm -ldl -lGAL-x11 conftest.c >&5 >> | >> >> /opt/projects/mentor/thales-mel6.0/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> undefined reference to `XWidthOfScreen' >> [snip] >> | collect2: ld returned 1 exit status >> >> It's very strange that i never saw this issue before. I compiled this >> driver a couple of times and didn't see this error. Maybe it was a race >> thing where libx11 was compiled first but about that LDFLAGS, are you >> sure -lX11 is not added by default? > > > You would fix it, if you see it, mostly I work within non-Yocto > environment, and this might be the rootcause. > > Below is more detailed output: > > [log] > > | configure:3303: checking whether the C compiler works > | configure:3325: arm-mentor-linux-gnueabi-gcc -march=armv7-a > -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a9 > -mno-unaligned-access > --sysroot=/opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite -O2 -pipe > -g -feliminate-unused-debug-types > -I/opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/include/xorg > -I/opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/include/drm > -Wl,-O1 -Wl,--hash-style=gnu -lm -ldl -lGAL-x11 conftest.c >&5 > | > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > undefined reference to `XWidthOfScreen' > | > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > undefined reference to `XMoveWindow' > | > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > undefined reference to `XCreateImage' > | > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > undefined reference to `XCreateWindow' > | > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > undefined reference to `XHeightOfScreen' > | > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > undefined reference to `XOpenDisplay' > | > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > undefined reference to `XSetWMProperties' > | > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > undefined reference to `XDestroyWindow' > | > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > undefined reference to `XCloseDisplay' > | > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > undefined reference to `XGetGeometry' > | > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > undefined reference to `XUnmapWindow' > | > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > undefined reference to `XFreeGC' > | > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > undefined reference to `XNextEvent' > | > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > undefined reference to `XCreateGC' > | > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > undefined reference to `XScreenOfDisplay' > | > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > undefined reference to `XFlush' > | > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > undefined reference to `XPutImage' > | > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > undefined reference to `XInitThreads' > | > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > undefined reference to `XGetImage' > | > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > undefined reference to `XGetWindowAttributes' > | > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > undefined reference to `XFreePixmap' > | > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > undefined reference to `XStringListToTextProperty' > | > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > undefined reference to `XCreatePixmap' > | > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > undefined reference to `XMapRaised' > | > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > undefined reference to `XPending' > > | collect2: ld returned 1 exit status > | configure:3329: $? = 1 > | configure:3367: result: no > | configure: failed program was: > | | /* confdefs.h */ > | | #define PACKAGE_NAME "xf86-video-vivante" > | | #define PACKAGE_TARNAME "xf86-video-vivante" > | | #define PACKAGE_VERSION "0.1.0" > | | #define PACKAGE_STRING "xf86-video-vivante 0.1.0" > | | #define PACKAGE_BUGREPORT > "https://bugs.freedesktop.org/enter_bug.cgi?product=xorg" > | | #define PACKAGE_URL "" > | | #define PACKAGE "xf86-video-vivante" > | | #define VERSION "0.1.0" > | | /* end confdefs.h. */ > | | > | | int > | | main () > | | { > | | > | | ; > | | return 0; > | | } > | configure:3372: error: in > `/opt/projects/mentor/thales-mel6.0/build/tmp/work/imx6qsabrelite-mel-linux-gnueabi/xf86-video-imxfb-vivante-2_12.09.01-r0/xserver-xorg-video-imx-viv-12.09.01': > | configure:3374: error: C compiler cannot create executables > | See `config.log' for more details > > [/log] > > I would appreciate, if you could check your log of the configuration > task for presence of -lX11 linker option, and if it is present, it > would be good to know where it comes from. Are you using gold or ld.bfd as linker? That might explain why we didn't catch this issue before. -- Otavio Salvador O.S. Systems E-mail: otavio@ossystems.com.br http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] xf86-video-imxfb-vivante: add dependency on X11 2012-12-18 11:46 ` Otavio Salvador @ 2012-12-18 11:48 ` Vladimir Zapolskiy 2012-12-18 11:55 ` Andrei Gherzan 1 sibling, 0 replies; 11+ messages in thread From: Vladimir Zapolskiy @ 2012-12-18 11:48 UTC (permalink / raw) To: Otavio Salvador; +Cc: meta-freescale@yoctoproject.org On 18.12.2012 13:46, Otavio Salvador wrote: > On Tue, Dec 18, 2012 at 9:43 AM, Vladimir Zapolskiy > <vladimir_zapolskiy@mentor.com> wrote: >> On 18.12.2012 12:30, Andrei Gherzan wrote: >>> >>> On Tue, Dec 18, 2012 at 1:37 AM, Vladimir Zapolskiy >>> <vladimir_zapolskiy@mentor.com<mailto:vladimir_zapolskiy@mentor.com>> >>> >>> wrote: >>> >>> Prior to xf86-video-imxfs-vivante there should be built libX11. >>> >>> This change fixes an issue met on configuration stage: >>> >>> | configure:3303: checking whether the C compiler works >>> | configure:3325: arm-mentor-linux-gnueabi-gcc -march=armv7-a >>> -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a9 >>> -mno-unaligned-access [snip] -lm -ldl -lGAL-x11 conftest.c>&5 >>> | >>> >>> /opt/projects/mentor/thales-mel6.0/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >>> undefined reference to `XWidthOfScreen' >>> [snip] >>> | collect2: ld returned 1 exit status >>> >>> It's very strange that i never saw this issue before. I compiled this >>> driver a couple of times and didn't see this error. Maybe it was a race >>> thing where libx11 was compiled first but about that LDFLAGS, are you >>> sure -lX11 is not added by default? >> >> >> You would fix it, if you see it, mostly I work within non-Yocto >> environment, and this might be the rootcause. >> >> Below is more detailed output: >> >> [log] >> >> | configure:3303: checking whether the C compiler works >> | configure:3325: arm-mentor-linux-gnueabi-gcc -march=armv7-a >> -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a9 >> -mno-unaligned-access >> --sysroot=/opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite -O2 -pipe >> -g -feliminate-unused-debug-types >> -I/opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/include/xorg >> -I/opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/include/drm >> -Wl,-O1 -Wl,--hash-style=gnu -lm -ldl -lGAL-x11 conftest.c>&5 >> | >> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> undefined reference to `XWidthOfScreen' >> | >> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> undefined reference to `XMoveWindow' >> | >> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> undefined reference to `XCreateImage' >> | >> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> undefined reference to `XCreateWindow' >> | >> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> undefined reference to `XHeightOfScreen' >> | >> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> undefined reference to `XOpenDisplay' >> | >> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> undefined reference to `XSetWMProperties' >> | >> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> undefined reference to `XDestroyWindow' >> | >> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> undefined reference to `XCloseDisplay' >> | >> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> undefined reference to `XGetGeometry' >> | >> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> undefined reference to `XUnmapWindow' >> | >> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> undefined reference to `XFreeGC' >> | >> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> undefined reference to `XNextEvent' >> | >> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> undefined reference to `XCreateGC' >> | >> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> undefined reference to `XScreenOfDisplay' >> | >> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> undefined reference to `XFlush' >> | >> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> undefined reference to `XPutImage' >> | >> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> undefined reference to `XInitThreads' >> | >> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> undefined reference to `XGetImage' >> | >> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> undefined reference to `XGetWindowAttributes' >> | >> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> undefined reference to `XFreePixmap' >> | >> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> undefined reference to `XStringListToTextProperty' >> | >> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> undefined reference to `XCreatePixmap' >> | >> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> undefined reference to `XMapRaised' >> | >> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> undefined reference to `XPending' >> >> | collect2: ld returned 1 exit status >> | configure:3329: $? = 1 >> | configure:3367: result: no >> | configure: failed program was: >> | | /* confdefs.h */ >> | | #define PACKAGE_NAME "xf86-video-vivante" >> | | #define PACKAGE_TARNAME "xf86-video-vivante" >> | | #define PACKAGE_VERSION "0.1.0" >> | | #define PACKAGE_STRING "xf86-video-vivante 0.1.0" >> | | #define PACKAGE_BUGREPORT >> "https://bugs.freedesktop.org/enter_bug.cgi?product=xorg" >> | | #define PACKAGE_URL "" >> | | #define PACKAGE "xf86-video-vivante" >> | | #define VERSION "0.1.0" >> | | /* end confdefs.h. */ >> | | >> | | int >> | | main () >> | | { >> | | >> | | ; >> | | return 0; >> | | } >> | configure:3372: error: in >> `/opt/projects/mentor/thales-mel6.0/build/tmp/work/imx6qsabrelite-mel-linux-gnueabi/xf86-video-imxfb-vivante-2_12.09.01-r0/xserver-xorg-video-imx-viv-12.09.01': >> | configure:3374: error: C compiler cannot create executables >> | See `config.log' for more details >> >> [/log] >> >> I would appreciate, if you could check your log of the configuration >> task for presence of -lX11 linker option, and if it is present, it >> would be good to know where it comes from. > > Are you using gold or ld.bfd as linker? That might explain why we > didn't catch this issue before. Right, I use CodeBench 2012.03 toolchain for ARM. -- With best wishes, Vladimir ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] xf86-video-imxfb-vivante: add dependency on X11 2012-12-18 11:46 ` Otavio Salvador 2012-12-18 11:48 ` Vladimir Zapolskiy @ 2012-12-18 11:55 ` Andrei Gherzan 2012-12-18 11:59 ` Otavio Salvador 1 sibling, 1 reply; 11+ messages in thread From: Andrei Gherzan @ 2012-12-18 11:55 UTC (permalink / raw) To: Otavio Salvador; +Cc: meta-freescale@yoctoproject.org, Vladimir Zapolskiy [-- Attachment #1: Type: text/plain, Size: 6932 bytes --] On Tue, Dec 18, 2012 at 1:46 PM, Otavio Salvador <otavio@ossystems.com.br>wrote: > On Tue, Dec 18, 2012 at 9:43 AM, Vladimir Zapolskiy > <vladimir_zapolskiy@mentor.com> wrote: > > On 18.12.2012 12:30, Andrei Gherzan wrote: > >> > >> On Tue, Dec 18, 2012 at 1:37 AM, Vladimir Zapolskiy > >> <vladimir_zapolskiy@mentor.com <mailto:vladimir_zapolskiy@mentor.com>> > >> > >> wrote: > >> > >> Prior to xf86-video-imxfs-vivante there should be built libX11. > >> > >> This change fixes an issue met on configuration stage: > >> > >> | configure:3303: checking whether the C compiler works > >> | configure:3325: arm-mentor-linux-gnueabi-gcc -march=armv7-a > >> -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a9 > >> -mno-unaligned-access [snip] -lm -ldl -lGAL-x11 conftest.c >&5 > >> | > >> > >> > /opt/projects/mentor/thales-mel6.0/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > >> undefined reference to `XWidthOfScreen' > >> [snip] > >> | collect2: ld returned 1 exit status > >> > >> It's very strange that i never saw this issue before. I compiled this > >> driver a couple of times and didn't see this error. Maybe it was a race > >> thing where libx11 was compiled first but about that LDFLAGS, are you > >> sure -lX11 is not added by default? > > > > > > You would fix it, if you see it, mostly I work within non-Yocto > > environment, and this might be the rootcause. > > > > Below is more detailed output: > > > > [log] > > > > | configure:3303: checking whether the C compiler works > > | configure:3325: arm-mentor-linux-gnueabi-gcc -march=armv7-a > > -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a9 > > -mno-unaligned-access > > --sysroot=/opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite -O2 > -pipe > > -g -feliminate-unused-debug-types > > -I/opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/include/xorg > > -I/opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/include/drm > > -Wl,-O1 -Wl,--hash-style=gnu -lm -ldl -lGAL-x11 conftest.c >&5 > > | > > > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > > undefined reference to `XWidthOfScreen' > > | > > > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > > undefined reference to `XMoveWindow' > > | > > > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > > undefined reference to `XCreateImage' > > | > > > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > > undefined reference to `XCreateWindow' > > | > > > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > > undefined reference to `XHeightOfScreen' > > | > > > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > > undefined reference to `XOpenDisplay' > > | > > > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > > undefined reference to `XSetWMProperties' > > | > > > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > > undefined reference to `XDestroyWindow' > > | > > > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > > undefined reference to `XCloseDisplay' > > | > > > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > > undefined reference to `XGetGeometry' > > | > > > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > > undefined reference to `XUnmapWindow' > > | > > > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > > undefined reference to `XFreeGC' > > | > > > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > > undefined reference to `XNextEvent' > > | > > > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > > undefined reference to `XCreateGC' > > | > > > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > > undefined reference to `XScreenOfDisplay' > > | > > > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > > undefined reference to `XFlush' > > | > > > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > > undefined reference to `XPutImage' > > | > > > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > > undefined reference to `XInitThreads' > > | > > > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > > undefined reference to `XGetImage' > > | > > > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > > undefined reference to `XGetWindowAttributes' > > | > > > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > > undefined reference to `XFreePixmap' > > | > > > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > > undefined reference to `XStringListToTextProperty' > > | > > > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > > undefined reference to `XCreatePixmap' > > | > > > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > > undefined reference to `XMapRaised' > > | > > > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: > > undefined reference to `XPending' > > > > | collect2: ld returned 1 exit status > > | configure:3329: $? = 1 > > | configure:3367: result: no > > | configure: failed program was: > > | | /* confdefs.h */ > > | | #define PACKAGE_NAME "xf86-video-vivante" > > | | #define PACKAGE_TARNAME "xf86-video-vivante" > > | | #define PACKAGE_VERSION "0.1.0" > > | | #define PACKAGE_STRING "xf86-video-vivante 0.1.0" > > | | #define PACKAGE_BUGREPORT > > "https://bugs.freedesktop.org/enter_bug.cgi?product=xorg" > > | | #define PACKAGE_URL "" > > | | #define PACKAGE "xf86-video-vivante" > > | | #define VERSION "0.1.0" > > | | /* end confdefs.h. */ > > | | > > | | int > > | | main () > > | | { > > | | > > | | ; > > | | return 0; > > | | } > > | configure:3372: error: in > > > `/opt/projects/mentor/thales-mel6.0/build/tmp/work/imx6qsabrelite-mel-linux-gnueabi/xf86-video-imxfb-vivante-2_12.09.01-r0/xserver-xorg-video-imx-viv-12.09.01': > > | configure:3374: error: C compiler cannot create executables > > | See `config.log' for more details > > > > [/log] > > > > I would appreciate, if you could check your log of the configuration > > task for presence of -lX11 linker option, and if it is present, it > > would be good to know where it comes from. > > Are you using gold or ld.bfd as linker? That might explain why we > didn't catch this issue before. > > I'm using gold so that's not the issue. ag [-- Attachment #2: Type: text/html, Size: 8547 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] xf86-video-imxfb-vivante: add dependency on X11 2012-12-18 11:55 ` Andrei Gherzan @ 2012-12-18 11:59 ` Otavio Salvador 2012-12-18 13:24 ` Vladimir Zapolskiy 0 siblings, 1 reply; 11+ messages in thread From: Otavio Salvador @ 2012-12-18 11:59 UTC (permalink / raw) To: Andrei Gherzan; +Cc: meta-freescale@yoctoproject.org, Vladimir Zapolskiy On Tue, Dec 18, 2012 at 9:55 AM, Andrei Gherzan <andrei@gherzan.ro> wrote: > On Tue, Dec 18, 2012 at 1:46 PM, Otavio Salvador <otavio@ossystems.com.br> > wrote: >> >> On Tue, Dec 18, 2012 at 9:43 AM, Vladimir Zapolskiy >> <vladimir_zapolskiy@mentor.com> wrote: >> > On 18.12.2012 12:30, Andrei Gherzan wrote: >> >> >> >> On Tue, Dec 18, 2012 at 1:37 AM, Vladimir Zapolskiy >> >> <vladimir_zapolskiy@mentor.com <mailto:vladimir_zapolskiy@mentor.com>> >> >> >> >> wrote: >> >> >> >> Prior to xf86-video-imxfs-vivante there should be built libX11. >> >> >> >> This change fixes an issue met on configuration stage: >> >> >> >> | configure:3303: checking whether the C compiler works >> >> | configure:3325: arm-mentor-linux-gnueabi-gcc -march=armv7-a >> >> -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a9 >> >> -mno-unaligned-access [snip] -lm -ldl -lGAL-x11 conftest.c >&5 >> >> | >> >> >> >> >> >> /opt/projects/mentor/thales-mel6.0/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> >> undefined reference to `XWidthOfScreen' >> >> [snip] >> >> | collect2: ld returned 1 exit status >> >> >> >> It's very strange that i never saw this issue before. I compiled this >> >> driver a couple of times and didn't see this error. Maybe it was a race >> >> thing where libx11 was compiled first but about that LDFLAGS, are you >> >> sure -lX11 is not added by default? >> > >> > >> > You would fix it, if you see it, mostly I work within non-Yocto >> > environment, and this might be the rootcause. >> > >> > Below is more detailed output: >> > >> > [log] >> > >> > | configure:3303: checking whether the C compiler works >> > | configure:3325: arm-mentor-linux-gnueabi-gcc -march=armv7-a >> > -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a9 >> > -mno-unaligned-access >> > --sysroot=/opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite -O2 >> > -pipe >> > -g -feliminate-unused-debug-types >> > >> > -I/opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/include/xorg >> > -I/opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/include/drm >> > -Wl,-O1 -Wl,--hash-style=gnu -lm -ldl -lGAL-x11 conftest.c >&5 >> > | >> > >> > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> > undefined reference to `XWidthOfScreen' >> > | >> > >> > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> > undefined reference to `XMoveWindow' >> > | >> > >> > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> > undefined reference to `XCreateImage' >> > | >> > >> > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> > undefined reference to `XCreateWindow' >> > | >> > >> > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> > undefined reference to `XHeightOfScreen' >> > | >> > >> > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> > undefined reference to `XOpenDisplay' >> > | >> > >> > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> > undefined reference to `XSetWMProperties' >> > | >> > >> > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> > undefined reference to `XDestroyWindow' >> > | >> > >> > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> > undefined reference to `XCloseDisplay' >> > | >> > >> > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> > undefined reference to `XGetGeometry' >> > | >> > >> > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> > undefined reference to `XUnmapWindow' >> > | >> > >> > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> > undefined reference to `XFreeGC' >> > | >> > >> > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> > undefined reference to `XNextEvent' >> > | >> > >> > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> > undefined reference to `XCreateGC' >> > | >> > >> > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> > undefined reference to `XScreenOfDisplay' >> > | >> > >> > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> > undefined reference to `XFlush' >> > | >> > >> > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> > undefined reference to `XPutImage' >> > | >> > >> > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> > undefined reference to `XInitThreads' >> > | >> > >> > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> > undefined reference to `XGetImage' >> > | >> > >> > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> > undefined reference to `XGetWindowAttributes' >> > | >> > >> > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> > undefined reference to `XFreePixmap' >> > | >> > >> > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> > undefined reference to `XStringListToTextProperty' >> > | >> > >> > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> > undefined reference to `XCreatePixmap' >> > | >> > >> > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> > undefined reference to `XMapRaised' >> > | >> > >> > /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >> > undefined reference to `XPending' >> > >> > | collect2: ld returned 1 exit status >> > | configure:3329: $? = 1 >> > | configure:3367: result: no >> > | configure: failed program was: >> > | | /* confdefs.h */ >> > | | #define PACKAGE_NAME "xf86-video-vivante" >> > | | #define PACKAGE_TARNAME "xf86-video-vivante" >> > | | #define PACKAGE_VERSION "0.1.0" >> > | | #define PACKAGE_STRING "xf86-video-vivante 0.1.0" >> > | | #define PACKAGE_BUGREPORT >> > "https://bugs.freedesktop.org/enter_bug.cgi?product=xorg" >> > | | #define PACKAGE_URL "" >> > | | #define PACKAGE "xf86-video-vivante" >> > | | #define VERSION "0.1.0" >> > | | /* end confdefs.h. */ >> > | | >> > | | int >> > | | main () >> > | | { >> > | | >> > | | ; >> > | | return 0; >> > | | } >> > | configure:3372: error: in >> > >> > `/opt/projects/mentor/thales-mel6.0/build/tmp/work/imx6qsabrelite-mel-linux-gnueabi/xf86-video-imxfb-vivante-2_12.09.01-r0/xserver-xorg-video-imx-viv-12.09.01': >> > | configure:3374: error: C compiler cannot create executables >> > | See `config.log' for more details >> > >> > [/log] >> > >> > I would appreciate, if you could check your log of the configuration >> > task for presence of -lX11 linker option, and if it is present, it >> > would be good to know where it comes from. >> >> Are you using gold or ld.bfd as linker? That might explain why we >> didn't catch this issue before. >> > > I'm using gold so that's not the issue. Yes, it is curious why their toolchain is more critical about it. Vladimir, can you check with your team what it does different? Just for us to learn from that. I have merged the patch so you should be good with that now. -- Otavio Salvador O.S. Systems E-mail: otavio@ossystems.com.br http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] xf86-video-imxfb-vivante: add dependency on X11 2012-12-18 11:59 ` Otavio Salvador @ 2012-12-18 13:24 ` Vladimir Zapolskiy 0 siblings, 0 replies; 11+ messages in thread From: Vladimir Zapolskiy @ 2012-12-18 13:24 UTC (permalink / raw) To: Otavio Salvador; +Cc: meta-freescale@yoctoproject.org On 18.12.2012 13:59, Otavio Salvador wrote: > On Tue, Dec 18, 2012 at 9:55 AM, Andrei Gherzan<andrei@gherzan.ro> wrote: >> On Tue, Dec 18, 2012 at 1:46 PM, Otavio Salvador<otavio@ossystems.com.br> >> wrote: >>> >>> On Tue, Dec 18, 2012 at 9:43 AM, Vladimir Zapolskiy >>> <vladimir_zapolskiy@mentor.com> wrote: >>>> On 18.12.2012 12:30, Andrei Gherzan wrote: >>>>> >>>>> On Tue, Dec 18, 2012 at 1:37 AM, Vladimir Zapolskiy >>>>> <vladimir_zapolskiy@mentor.com<mailto:vladimir_zapolskiy@mentor.com>> >>>>> >>>>> wrote: >>>>> >>>>> Prior to xf86-video-imxfs-vivante there should be built libX11. >>>>> >>>>> This change fixes an issue met on configuration stage: >>>>> >>>>> | configure:3303: checking whether the C compiler works >>>>> | configure:3325: arm-mentor-linux-gnueabi-gcc -march=armv7-a >>>>> -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a9 >>>>> -mno-unaligned-access [snip] -lm -ldl -lGAL-x11 conftest.c>&5 >>>>> | >>>>> >>>>> >>>>> /opt/projects/mentor/thales-mel6.0/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >>>>> undefined reference to `XWidthOfScreen' >>>>> [snip] >>>>> | collect2: ld returned 1 exit status >>>>> >>>>> It's very strange that i never saw this issue before. I compiled this >>>>> driver a couple of times and didn't see this error. Maybe it was a race >>>>> thing where libx11 was compiled first but about that LDFLAGS, are you >>>>> sure -lX11 is not added by default? >>>> >>>> >>>> You would fix it, if you see it, mostly I work within non-Yocto >>>> environment, and this might be the rootcause. >>>> >>>> Below is more detailed output: >>>> >>>> [log] >>>> >>>> | configure:3303: checking whether the C compiler works >>>> | configure:3325: arm-mentor-linux-gnueabi-gcc -march=armv7-a >>>> -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a9 >>>> -mno-unaligned-access >>>> --sysroot=/opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite -O2 >>>> -pipe >>>> -g -feliminate-unused-debug-types >>>> >>>> -I/opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/include/xorg >>>> -I/opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/include/drm >>>> -Wl,-O1 -Wl,--hash-style=gnu -lm -ldl -lGAL-x11 conftest.c>&5 >>>> | >>>> >>>> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >>>> undefined reference to `XWidthOfScreen' >>>> | >>>> >>>> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >>>> undefined reference to `XMoveWindow' >>>> | >>>> >>>> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >>>> undefined reference to `XCreateImage' >>>> | >>>> >>>> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >>>> undefined reference to `XCreateWindow' >>>> | >>>> >>>> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >>>> undefined reference to `XHeightOfScreen' >>>> | >>>> >>>> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >>>> undefined reference to `XOpenDisplay' >>>> | >>>> >>>> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >>>> undefined reference to `XSetWMProperties' >>>> | >>>> >>>> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >>>> undefined reference to `XDestroyWindow' >>>> | >>>> >>>> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >>>> undefined reference to `XCloseDisplay' >>>> | >>>> >>>> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >>>> undefined reference to `XGetGeometry' >>>> | >>>> >>>> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >>>> undefined reference to `XUnmapWindow' >>>> | >>>> >>>> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >>>> undefined reference to `XFreeGC' >>>> | >>>> >>>> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >>>> undefined reference to `XNextEvent' >>>> | >>>> >>>> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >>>> undefined reference to `XCreateGC' >>>> | >>>> >>>> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >>>> undefined reference to `XScreenOfDisplay' >>>> | >>>> >>>> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >>>> undefined reference to `XFlush' >>>> | >>>> >>>> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >>>> undefined reference to `XPutImage' >>>> | >>>> >>>> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >>>> undefined reference to `XInitThreads' >>>> | >>>> >>>> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >>>> undefined reference to `XGetImage' >>>> | >>>> >>>> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >>>> undefined reference to `XGetWindowAttributes' >>>> | >>>> >>>> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >>>> undefined reference to `XFreePixmap' >>>> | >>>> >>>> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >>>> undefined reference to `XStringListToTextProperty' >>>> | >>>> >>>> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >>>> undefined reference to `XCreatePixmap' >>>> | >>>> >>>> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >>>> undefined reference to `XMapRaised' >>>> | >>>> >>>> /opt/projects/mentor/build/tmp/sysroots/imx6qsabrelite/usr/lib/libGAL-x11.so: >>>> undefined reference to `XPending' >>>> >>>> | collect2: ld returned 1 exit status >>>> | configure:3329: $? = 1 >>>> | configure:3367: result: no >>>> | configure: failed program was: >>>> | | /* confdefs.h */ >>>> | | #define PACKAGE_NAME "xf86-video-vivante" >>>> | | #define PACKAGE_TARNAME "xf86-video-vivante" >>>> | | #define PACKAGE_VERSION "0.1.0" >>>> | | #define PACKAGE_STRING "xf86-video-vivante 0.1.0" >>>> | | #define PACKAGE_BUGREPORT >>>> "https://bugs.freedesktop.org/enter_bug.cgi?product=xorg" >>>> | | #define PACKAGE_URL "" >>>> | | #define PACKAGE "xf86-video-vivante" >>>> | | #define VERSION "0.1.0" >>>> | | /* end confdefs.h. */ >>>> | | >>>> | | int >>>> | | main () >>>> | | { >>>> | | >>>> | | ; >>>> | | return 0; >>>> | | } >>>> | configure:3372: error: in >>>> >>>> `/opt/projects/mentor/thales-mel6.0/build/tmp/work/imx6qsabrelite-mel-linux-gnueabi/xf86-video-imxfb-vivante-2_12.09.01-r0/xserver-xorg-video-imx-viv-12.09.01': >>>> | configure:3374: error: C compiler cannot create executables >>>> | See `config.log' for more details >>>> >>>> [/log] >>>> >>>> I would appreciate, if you could check your log of the configuration >>>> task for presence of -lX11 linker option, and if it is present, it >>>> would be good to know where it comes from. >>> >>> Are you using gold or ld.bfd as linker? That might explain why we >>> didn't catch this issue before. >>> >> >> I'm using gold so that's not the issue. > > Yes, it is curious why their toolchain is more critical about it. > Vladimir, can you check with your team what it does different? Just > for us to learn from that. I informed CodeBench team, hopefully they'll let you know the difference. > I have merged the patch so you should be good with that now. Thank you. -- With best wishes, Vladimir ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2012-12-18 13:24 UTC | newest] Thread overview: 11+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-12-17 23:37 [PATCH] xf86-video-imxfb-vivante: add dependency on X11 Vladimir Zapolskiy 2012-12-18 10:24 ` Daiane Angolini 2012-12-18 10:30 ` Andrei Gherzan 2012-12-18 11:10 ` Otavio Salvador 2012-12-18 11:46 ` Vladimir Zapolskiy 2012-12-18 11:43 ` Vladimir Zapolskiy 2012-12-18 11:46 ` Otavio Salvador 2012-12-18 11:48 ` Vladimir Zapolskiy 2012-12-18 11:55 ` Andrei Gherzan 2012-12-18 11:59 ` Otavio Salvador 2012-12-18 13:24 ` Vladimir Zapolskiy
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.