Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 518882 - media-gfx/nvidia-cg-toolkit-3.1.0013-r3 - ?
Summary: media-gfx/nvidia-cg-toolkit-3.1.0013-r3 - ?
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-02 21:57 UTC by John (EBo) David
Modified: 2014-08-07 02:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,5.71 KB, text/plain)
2014-08-02 21:57 UTC, John (EBo) David
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John (EBo) David 2014-08-02 21:57:11 UTC
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.
Comment 1 John (EBo) David 2014-08-02 22:58:36 UTC
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.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-08-05 09:36:56 UTC
Please attach the entire build log to this bug report.
Comment 3 John (EBo) David 2014-08-07 02:07:14 UTC
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.