Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 946536

Summary: media-libs/glew-2.2.0-r1 fails to build
Product: Gentoo Linux Reporter: nopenope <humberto.nanni>
Component: Current packagesAssignee: Gentoo Games <games>
Status: RESOLVED INVALID    
Severity: normal CC: humberto.nanni
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge.log
emerge --info
emerge -pqv

Description nopenope 2024-12-15 23:07:21 UTC
Created attachment 914148 [details]
emerge.log

Got glew as a dependency. It fails to build:

make -j4 GLEW_PREFIX=/usr GLEW_DEST=/usr LIBDIR=/usr/lib64 AR=x86_64-pc-linux-gnu-ar STRIP=true CC=x86_64-pc-linux-gnu-gcc 'LD=x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs' SYSTEM=linux M_ARCH= LDFLAGS.EXTRA= 'POPT= -pipe -O2 -march=broadwell -mtune=broadwell -mfpmath=sse,387 ' 
sed \
	-e "s|@prefix@|/usr|g" \
	-e "s|@libdir@|/usr/lib64|g" \
	-e "s|@exec_prefix@|/usr/bin|g" \
	-e "s|@includedir@|/usr/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
x86_64-pc-linux-gnu-gcc -DGLEW_NO_GLU -DGLEW_STATIC -pipe -O2 -march=broadwell -mtune=broadwell -mfpmath=sse,387   -Wall -W -Wshadow -pedantic -Iinclude -fPIC -Wcast-qual -ansi -pedantic -fno-stack-protector  -o tmp/linux/default/static/glew.o -c src/glew.c
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find o such file or directory
collect2: error: ld returned 1 exit status
/bin/sh: line 1: 33m: command not found

---
glew.o is not found

cervinia /var/tmp/portage/media-libs/glew-2.2.0-r1/work/glew-2.2.0 # ls -l tmp/linux/default/shared/
total 0

make -d says:

      No implicit rule found for 'include/GL/glxew.h'.
     Finished prerequisites of target file 'include/GL/glxew.h'.
     No need to remake target 'include/GL/glxew.h'.
    Finished prerequisites of target file 'tmp/linux/default/shared/glew.o'.
    Must remake target 'tmp/linux/default/shared/glew.o'.
Makefile:137: update target 'tmp/linux/default/shared/glew.o' due to: target does not exist
mkdir -p tmp/linux/default/shared/
Putting child 0x556dae4e8810 (tmp/linux/default/shared/glew.o) PID 28006 on the chain.
Live child 0x556dae4e8810 (tmp/linux/default/shared/glew.o) PID 28006 
Reaping winning child 0x556dae4e8810 PID 28006 
x86_64-pc-linux-gnu-gcc -DGLEW_NO_GLU -DGLEW_BUILD -pipe -O2 -march=broadwell -mtune=broadwell -mfpmath=sse,387    -Wall -W -Wshadow -pedantic -Iinclude -fPIC -Wcast-qual -ansi -pedantic -fno-stack-protector  -o tmp/linux/default/shared/glew.o -c src/glew.c
Live child 0x556dae4e8810 (tmp/linux/default/shared/glew.o) PID 28007 
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find o such file or directory
collect2: error: ld returned 1 exit status
/bin/sh: line 1: 33m: command not found
Reaping losing child 0x556dae4e8810 PID 28007 
make: *** [Makefile:138: tmp/linux/default/shared/glew.o]
Comment 1 nopenope 2024-12-15 23:08:05 UTC
Created attachment 914149 [details]
emerge --info
Comment 2 nopenope 2024-12-15 23:08:25 UTC
Created attachment 914150 [details]
emerge -pqv
Comment 3 Greg Kubaryk 2024-12-15 23:37:27 UTC
Unable to reproduce locally; you do seem to have some pretty strange stuff in your emerge --info, do you perhaps have a bashrc or are you overriding some portage basics?
Comment 4 nopenope 2024-12-16 00:45:39 UTC
(In reply to Greg Kubaryk from comment #3)
> Unable to reproduce locally; you do seem to have some pretty strange stuff
> in your emerge --info, do you perhaps have a bashrc or are you overriding
> some portage basics?

Removed my bash customizations and glew is building now without issues.
Sorry for the noise