Bug 14485 - glew do_compile failure in no-x11 builds
Summary: glew do_compile failure in no-x11 builds
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: graphics (show other bugs)
Version: 3.4
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 3.4 M3
Assignee: Ross Burton
QA Contact:
URL:
Whiteboard: AB-INT AB-INT-TMPFS
Depends on:
Blocks:
 
Reported: 2021-07-22 10:34 UTC by Alexandre Belloni
Modified: 2021-07-29 14:45 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Belloni 2021-07-22 10:34:28 UTC
There is a possible race when compiling visualinfo

x86_64-poky-linux-gcc  -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Wdate-time --sysroot=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/glew/2.2.0-r0/recipe-sysroot -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/glew/2.2.0-r0=/usr/src/debug/glew/2.2.0-r0                      -fdebug-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/glew/2.2.0-r0=/usr/src/debug/glew/2.2.0-r0                      -fdebug-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/glew/2.2.0-r0/recipe-sysroot=                      -fdebug-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/glew/2.2.0-r0/recipe-sysroot-native=  -D_GNU_SOURCE -Wall -W -Wshadow -pedantic -Iinclude -fPIC -Wcast-qual -ansi -pedantic -fno-stack-protector -DGLEW_EGL -o bin/visualinfo tmp/linux-egl/default/shared/visualinfo.o -Llib -Wl,-Bdynamic -lGLEW -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-z,relro,-z,now -lEGL -lGLESv2
/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/glew/2.2.0-r0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/11.1.1/ld: cannot open output file bin/visualinfo: No such file or directory
collect2: error: ld returned 1 exit status
make: *** [Makefile:189: bin/visualinfo] Error 1
WARNING: /home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/glew/2.2.0-r0/temp/run.do_compile.40002:180 exit 1 from 'exit 1'

Seen on:
https://autobuilder.yoctoproject.org/typhoon/#/builders/40/builds/3698/steps/14/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/40/builds/3704/steps/14/logs/stdio
Comment 1 Randy MacLeod 2021-07-22 14:39:47 UTC
Parallel make race. Should be reproducible with some effort.
Comment 2 Ross Burton 2021-07-22 15:39:43 UTC
Patch on the list.