On Wed, Jan 17, 2018 at 1:58 PM, Andrea Galbusera <giz...@gmail.com> wrote: > Hi! > > On Wed, Jan 17, 2018 at 1:46 PM, Mathias Rudnik > <rudnik.math...@googlemail.com> wrote: >> Hello, >> >> I am trying to build libepoxy but the do_compile tasks breaks. >> I found following error messages in the logs: >> >> arm-poky-linux-gnueabi-gcc -march=armv6 -mfpu=vfp -mfloat-abi=hard >> -mtune=arm1176jzf-s -mfpu=vfp >> --sysroot=/hdd_gold1/mathias/git/poky/rpi-build/tmp/work/arm1176jzfshf-vfp-poky-linux-gnueabi/libepoxy/1.4.3-r0/recipe-sysroot >> '-Itest/egl_common at sta' '-Itest' '-Iinclude/epoxy' >> '-I../libepoxy-1.4.3/test' '-Iinclude' '-I../libepoxy-1.4.3/include' '-Isrc' >> '-I../libepoxy-1.4.3/src' '-fdiagnostics-color=always' '-pipe' >> '-D_FILE_OFFSET_BITS=64' '-Wall' '-Winvalid-pch' '-std=gnu99' '-O2' '-g' >> '-O2' '-g' '-feliminate-unused-debug-types' >> '-fdebug-prefix-map=/hdd_gold1/mathias/git/poky/rpi-build/tmp/work/arm1176jzfshf-vfp-poky-linux-gnueabi/libepoxy/1.4.3-r0=/usr/src/debug/libepoxy/1.4.3-r0' >> '-fdebug-prefix-map=/hdd_gold1/mathias/git/poky/rpi-build/tmp/work/arm1176jzfshf-vfp-poky-linux-gnueabi/libepoxy/1.4.3-r0/recipe-sysroot-native=' >> '-fdebug-prefix-map=/hdd_gold1/mathias/git/poky/rpi-build/tmp/work/arm1176jzfshf-vfp-poky-linux-gnueabi/libepoxy/1.4.3-r0/recipe-sysroot=' >> '-lEGL' '-fPIC' '-Wpointer-arith' '-Wmissing-declarations' '-Wformat=2' >> '-Wstrict-prototypes' '-Wmissing-prototypes' '-Wnested-externs' >> '-Wbad-function-cast' '-Wold-style-definition' >> '-Wdeclaration-after-statement' '-Wunused' '-Wuninitialized' '-Wshadow' >> '-Wmissing-noreturn' '-Wmissing-format-attribute' '-Wredundant-decls' >> '-Wlogical-op' '-Werror=implicit' '-Werror=nonnull' '-Werror=init-self' >> '-Werror=main' '-Werror=missing-braces' '-Werror=sequence-point' >> '-Werror=return-type' '-Werror=trigraphs' '-Werror=array-bounds' >> '-Werror=write-strings' '-Werror=address' '-Werror=int-to-pointer-cast' >> '-Werror=pointer-to-int-cast' '-fno-strict-aliasing' '-Wno-int-conversion' >> '-MMD' '-MQ' 'test/egl_common at sta/egl_common.c.o' '-MF' 'test/egl_common >> at sta/egl_common.c.o.d' -o 'test/egl_common at sta/egl_common.c.o' -c >> ../libepoxy-1.4.3/test/egl_common.c >> ../libepoxy-1.4.3/test/egl_common.c: In function 'get_egl_display_or_skip': >> ../libepoxy-1.4.3/test/egl_common.c:36:5: error: unknown type name >> 'Display'; did you mean 'EGLDisplay'? >> Display *dpy = XOpenDisplay(NULL); >> ^~~~~~~ >> EGLDisplay >> ../libepoxy-1.4.3/test/egl_common.c:36:20: error: implicit declaration of >> function 'XOpenDisplay'; did you mean 'eglGetDisplay'? >> [-Werror=implicit-function-declaration] >> Display *dpy = XOpenDisplay(NULL); >> ^~~~~~~~~~~~ >> eglGetDisplay >> ../libepoxy-1.4.3/test/egl_common.c:36:20: warning: nested extern >> declaration of 'XOpenDisplay' [-Wnested-externs] >> cc1: some warnings being treated as errors >> >> Does anybody know what i am doing wrong? > > Just noticed this also here in CI builds. Unfortunately I'm building > with lot of new stuff from master branches wrt latest successful > build. In my case meta-raspberrypi is in the pile, but I haven't had > the time to investigate yet. At first glance at least commit > 043f0218491452de223a5f0b47945fc6ec1633eb (libepoxy related) should be > in my bisecting range. Will report back if something comes up.
Looks like my first guess was not that bad. Reverting below commit, which switched to meson build system brought my build back to green. Also CC-ing the patch author who might suggest further investigations. commit 043f0218491452de223a5f0b47945fc6ec1633eb Author: Alexander Kanavin <alexander.kana...@linux.intel.com> AuthorDate: Thu Jan 4 15:12:33 2018 +0200 Commit: Richard Purdie <richard.pur...@linuxfoundation.org> CommitDate: Fri Jan 5 12:02:37 2018 +0000 libepoxy: convert to meson build Add a patch to work around absence of dlvsym() on musl (wasn't previously a problem as autotools weren't building tests by default) (From OE-Core rev: aaa523e87c73abc2cf8cf3ea55d9e2c6789d3b9a) Signed-off-by: Alexander Kanavin <alexander.kana...@linux.intel.com> Signed-off-by: Richard Purdie <richard.pur...@linuxfoundation.org> My configuration is as follows: Build Configuration: BB_VERSION = "1.37.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "universal" TARGET_SYS = "arm-poky-linux-gnueabi" MACHINE = "raspberrypi3" DISTRO = "poky" DISTRO_VERSION = "2.4+snapshot-20180117" TUNE_FEATURES = "arm armv7ve vfp thumb neon vfpv4 callconvention-hard cortexa7" TARGET_FPU = "hard" meta meta-poky meta-yocto-bsp = "HEAD:d7cf7d6d032158690d6503ddc2c20bc5cd614264" meta-oe meta-python meta-networking = "HEAD:8cef6b38e62e6c79ec857510df454cefc868b0df" meta-rauc = "HEAD:40277f38840fa851e15390169120a4822b867e1d" meta-swupdate = "HEAD:033c840bc17844894330dd5a913114f82ed28484" meta-sunxi = "HEAD:2c85181c9274654e2337284a59658132f1fc45b7" meta-raspberrypi = "HEAD:c47caaca325b8cd81ee5bcd7cb30295faf0d440d" meta-bsl = "HEAD:071abd63f0d35c194288bf590f252ee3cf039cc7" -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto