Suddenly cannot build GLEW. Child process exited with code 255

I have been building Flatpak for a while. But suddenly, any package with GLEW fail to build on my machine, flathub bot did it just fine.
I even tried re-installing my openSUSE Tumbleweed KDE.

========================================================================
Building module glew in /home/kev/Desktop/Software/Flatpak/org.gazebosim.Gazebo/flathub/.flatpak-builder/build/glew-2

sed
-e “s|@prefix@|/app|g”
-e “s|@libdir@|/app/lib|g”
-e “s|@exec_prefix@|/app/bin|g”
-e “s|@includedir@|/app/include/GL|g”
-e “s|@version@|2.2.0|g”
-e “s|@cflags@||g”
-e “s|@libname@|GLEW|g”
-e “s|@libgl@|-lGL -lX11|g”
-e “s|@requireslib@|glu|g”
< glew.pc.in > glew.pc
cc -DGLEW_NO_GLU -DGLEW_BUILD -O2 -Wall -W -Wshadow -pedantic -Iinclude -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -o tmp/linux/default/shared/glew.o -c src/glew.c
cc -DGLEW_NO_GLU -DGLEW_STATIC -O2 -Wall -W -Wshadow -pedantic -Iinclude -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -o tmp/linux/default/static/glew.o -c src/glew.c
cc -DGLEW_NO_GLU -O2 -Wall -W -Wshadow -pedantic -Iinclude -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -o tmp/linux/default/shared/visualinfo.o -c src/visualinfo.c
cc -DGLEW_NO_GLU -O2 -Wall -W -Wshadow -pedantic -Iinclude -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -o tmp/linux/default/shared/glewinfo.o -c src/glewinfo.c
ar rv lib/libGLEW.a tmp/linux/default/static/glew.o
cc -shared -Wl,-soname=libGLEW.so.2.2 -o lib/libGLEW.so.2.2.0 tmp/linux/default/shared/glew.o -L/app/lib -Wl,-z,relro,-z,now -Wl,–as-needed -lGL -lX11
ar: creating lib/libGLEW.a
a - tmp/linux/default/static/glew.o
strip -x lib/libGLEW.a
ln -sf libGLEW.so.2.2.0 lib/libGLEW.so.2.2
ln -sf libGLEW.so.2.2.0 lib/libGLEW.so
strip -x lib/libGLEW.so.2.2.0
cc -O2 -Wall -W -Wshadow -pedantic -Iinclude -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -o bin/glewinfo tmp/linux/default/shared/glewinfo.o -Llib -Wl,-Bdynamic -lGLEW -L/app/lib -Wl,-z,relro,-z,now -Wl,–as-needed -lGL -lX11
cc -O2 -Wall -W -Wshadow -pedantic -Iinclude -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -o bin/visualinfo tmp/linux/default/shared/visualinfo.o -Llib -Wl,-Bdynamic -lGLEW -L/app/lib -Wl,-z,relro,-z,now -Wl,–as-needed -lGL -lX11
strip -x bin/visualinfo
strip -x bin/glewinfo
install -d -m 0755 “/app/include/GL”
install -m 0644 include/GL/wglew.h “/app/include/GL/”
install -m 0644 include/GL/glew.h “/app/include/GL/”
install -m 0644 include/GL/glxew.h “/app/include/GL/”
sed
-e “s|@prefix@|/app|g”
-e “s|@libdir@|/app/lib|g”
-e “s|@exec_prefix@|/app/bin|g”
-e “s|@includedir@|/app/include/GL|g”
-e “s|@version@|2.2.0|g”
-e “s|@cflags@||g”
-e “s|@libname@|GLEW|g”
-e “s|@libgl@|-lGL -lX11|g”
-e “s|@requireslib@|glu|g”
< glew.pc.in > glew.pc
install -d -m 0755 “/app/lib”
install -m 0644 lib/libGLEW.so.2.2.0 “/app/lib/”
ln -sf libGLEW.so.2.2.0 “/app/lib/libGLEW.so.2.2”
ln -sf libGLEW.so.2.2.0 “/app/lib/libGLEW.so”
install -m 0644 lib/libGLEW.a “/app/lib/”
install -d -m 0755 “/app/lib/pkgconfig”
install -d -m 0755 “/app/lib/pkgconfig”
install -m 0644 glew.pc “/app/lib/pkgconfig/”
compressing debuginfo in: /home/kev/Desktop/Software/Flatpak/org.gazebosim.Gazebo/flathub/.flatpak-builder/rofiles/rofiles-wHh76G/files/lib/libGLEW.so.2.2.0
processing: /home/kev/Desktop/Software/Flatpak/org.gazebosim.Gazebo/flathub/.flatpak-builder/rofiles/rofiles-wHh76G/files/lib/libGLEW.so.2.2.0
Nothing to do.
Error: module glew: Child process exited with code 255

Flatpak 1.11.1
flatpak-builder 1.0.12

Operating System: openSUSE Tumbleweed 20210519
KDE Plasma Version: 5.21.5
KDE Frameworks Version: 5.82.0
Qt Version: 5.15.2
Kernel Version: 5.12.3-1-default
OS Type: 64-bit
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-3770 CPU @ 3.40GHz
Memory: 7.5 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 4000

Any idea?
Thanks.

Usually the error code 255 means that it is missing a file. So is module glew trying to call something that isn’t there?

I believe GLEW is self-contain and don’t need anything else. This GLEW is from shared-modules.

I use cmake for GLEW, now it work. Don’t know what wrong with make.

1 Like