Bug 14485

Summary: glew do_compile failure in no-x11 builds
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Alexandre Belloni <alexandre.belloni>
Component: graphicsAssignee: Ross Burton <ross.burton>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher, randy.macleod, richard.purdie
Version: 3.4   
Target Milestone: 3.4 M3   
Hardware: x86   
OS: Multiple   
Whiteboard: AB-INT AB-INT-TMPFS
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

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.