Created attachment 382112 [details] emerge --info Related to bugs https://bugs.gentoo.org/show_bug.cgi?id=443546 and https://bugs.gentoo.org/show_bug.cgi?id=443706 , building the examples provided with nvidia-cg-toolkit-3.1.0013-r3 (on a clean stable amd64 machine) I get: gcc -Wall -I"../../OpenGL/glew/include" -DGLEW_STATIC -I"/opt/nvidia-cg-toolkit/include" cgfxcat.o register_states.o -o cgfxcat -L"/opt/nvidia-cg-toolkit/lib64:/opt/nvidia-cg-toolkit/lib32" -lCgGL -lCg -L/usr/X11R6/lib64 -L/usr/X11R6/lib -lglut -lXi -lXmu -lX11 -lm -lGLU -lGL -lpthread /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lCgGL /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lCg But when I replace the -L"/opt/nvidia-cg-toolkit/lib64:/opt/nvidia-cg-toolkit/lib32" with -L/opt/nvidia-cg-toolkit/lib64 -L/opt/nvidia-cg-toolkit/lib32 it suceeds. ie: gcc -Wall -I"../../OpenGL/glew/include" -DGLEW_STATIC -I"/opt/nvidia-cg-toolkit/include" cgfxcat.o register_states.o -o cgfxcat -L/opt/nvidia-cg-toolkit/lib64 -L/opt/nvidia-cg-toolkit/lib32 -lCgGL -lCg -L/usr/X11R6/lib64 -L/usr/X11R6/lib -lglut -lXi -lXmu -lX11 -lm -lGLU -lGL -lpthread Interestingly enough, /opt/nvidia-cg-toolkit/{lib32,lib64} exist in /etc/ld.so.conf AND I ran "env-update && source /etc/profile" I have tried with with both the gnu-4.7.3 and gnu-4.8.3 compilers. Any suggestions welcome.
I was able to effect a work around by replacing all occurances of: LINKFLAGS += -L"$(CG_LIB_PATH)" with LINKFLAGS += -L/opt/nvidia-cg-toolkit/lib64 -L/opt/nvidia-cg-toolkit/lib32 in all Makefile.* files. There are 70 of them.
Please attach the entire build log to this bug report.
I do not remember *how* I fixed it, but I did the next day. Since I do not remember what I did to fix it I cannot replicate it. So, I am marking this as resolved and invalid. Sorry for the trouble.