Summary: | media-libs/libprojectm-2.1.0 - Fails to build against media-gfx/nvidia-cg-toolkit-3.1.0013-r1 - /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lCg or -lCgGL | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | James <cctsurf> |
Component: | [OLD] Library | Assignee: | Gentoo Sound Team <sound> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jms.gentoo, manschwetus, phobosk, podporin.ivan, realnc, thunder367, tomwij |
Priority: | Normal | Keywords: | EBUILD |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 443706 | ||
Bug Blocks: | |||
Attachments: |
Build Log
The fixed ebuild 2.1.0 revision 1 of libprojectm libprojectm-2.1.0-r1 build log libprojectm-2.1.0-r1 emerge info |
Description
James
2012-11-16 18:42:23 UTC
Same error here. It works fine with the older version. Just to clarify: With "older version" I don't mean 3.1.0013 (without the "-r1"), but 2.1.0017-r1. Please attach the full build log. Created attachment 329756 [details]
Build Log
Created attachment 329760 [details]
The fixed ebuild 2.1.0 revision 1 of libprojectm
Adding an LDFLAG of "-L/opt/nvidia-cg-toolkit/lib" ??! Really??... And what about the lib64 case :P
One should always use the $(get_libdir)...
Uploading the fixed ebuild...
Nevertheless a fix to media-gfx/nvidia-cg-toolkit-3.1.0013-r1 is needed too so libprojectm to be functional... (see bug #443706) does this still happen with media-gfx/nvidia-cg-toolkit-3.1.0013-r2? (In reply to comment #7) > does this still happen with media-gfx/nvidia-cg-toolkit-3.1.0013-r2? Yes. i can confirm that the error this happen * Package: media-libs/libprojectm-2.1.0 * Repository: gentoo * Maintainer: sound@gentoo.org * USE: amd64 elibc_glibc kernel_linux multilib openmp userland_GNU video_cards_nvidia * FEATURES: sandbox * Applying libprojectm-2.1.0-libsuffix.patch ... * Applying libprojectm-2.1.0-path.patch ... * ERROR: media-libs/libprojectm-2.1.0 failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=media-libs/libprojectm-2.1.0'`, * the complete build log and the output of `emerge -pqv '=media-libs/libprojectm-2.1.0'`. * The complete build log is located at '/var/tmp/portage/media-libs:libprojectm-2.1.0:20121231-045552.log'. ################################ Quick and dirty fix : ln -sf /opt/nvidia-cg-toolkit/lib64 /opt/nvidia-cg-toolkit/lib Fixed in main tree. (In reply to comment #11) > Fixed in main tree. Ebuild libprojectm-2.1.0-r1.ebuild,v 1.6 2013/01/26 11:54:08 do not fixed this bug. See more... Created attachment 336918 [details]
libprojectm-2.1.0-r1 build log
You have to emerge media-gfx/nvidia-cg-toolkit again first. That worked for me. Created attachment 336920 [details]
libprojectm-2.1.0-r1 emerge info
miheev / # emerge -b -1 =media-gfx/nvidia-cg-toolkit-2.1.0017-r1 <skiped> miheev / # ls /opt/nvidia-cg-toolkit/ bin include lib miheev / # emerge --info =media-libs/libprojectm-2.1.0-r1 <skiped> ================================================================= Package Settings ================================================================= media-libs/libprojectm-2.1.0-r1 was built with the following: USE="openmp -debug" VIDEO_CARDS="nvidia" LDFLAGS="-Wl,-O1 -Wl,--as-needed -L/opt/nvidia-cg-toolkit/lib64" Path in /opt/nvidia-cg-toolkit/ not included symlink ./lib64 -> ./lib + 26 Jan 2013; Julian Ospald <hasufell@gentoo.org> libprojectm-2.1.0-r1.ebuild: + fix build time issues wrt #443546 + libdir of cg-toolkit is not consistent across versions, so we also need to pass the libdir of stable 2.1.0017-r1 to LDFLAGS (In reply to comment #17) > + 26 Jan 2013; Julian Ospald <hasufell@gentoo.org> > libprojectm-2.1.0-r1.ebuild: > + fix build time issues wrt #443546 > + > > > libdir of cg-toolkit is not consistent across versions, so we also need to > pass the libdir of stable 2.1.0017-r1 to LDFLAGS My architecture is stable amd64. miheev ~ # ls /usr/portage/media-libs/libprojectm/ ChangeLog files libprojectm-2.0.1-r1.ebuild libprojectm-2.1.0-r1.ebuild Manifest metadata.xml Ebuild libprojectm-2.1.0-r1.ebuild is stable amd64 miheev ~ # ls /usr/portage/media-gfx/nvidia-cg-toolkit ChangeLog Manifest nvidia-cg-toolkit-2.1.0012.ebuild nvidia-cg-toolkit-2.1.0017-r1.ebuild nvidia-cg-toolkit-3.1.0013-r1.ebuild files metadata.xml nvidia-cg-toolkit-2.1.0017.ebuild nvidia-cg-toolkit-3.1.0013.ebuild nvidia-cg-toolkit-3.1.0013-r2.ebuild Ebuilds nvidia-cg-toolkit-3.1.0013-r2.ebuild, nvidia-cg-toolkit-3.1.0013-r1.ebuild, nvidia-cg-toolkit-3.1.0013.ebuild is unstable ~amd64 Ebuild nvidia-cg-toolkit-2.1.0017-r1.ebuild is stable amd64 Ebuild nvidia-cg-toolkit-3.1.0013-r2.ebuild not compile. I do not know if it will work with it. ??? I just fixed it, resync your tree and retry with 2.1.0017-r1 (In reply to comment #19) > ??? > > I just fixed it, resync your tree and retry with 2.1.0017-r1 miheev ~ # emerge --sync miheev ~ # emerge -b -1 =nvidia-cg-toolkit-2.1.0017-r1 <skip> >>> Installing (1 of 1) media-gfx/nvidia-cg-toolkit-2.1.0017-r1 <skip> miheev ~ # emerge -b -1 =media-libs/libprojectm-2.1.0-r1 <skiped> /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lCg /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lCgGL /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lCg /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lCgGL <skiped> Thanks! Ebuild file /media-libs/libprojectm/libprojectm-2.1.0-r1.ebuild,v 1.8 2013/01/26 18:07:36 is works. Bug fixed! *** Bug 454112 has been marked as a duplicate of this bug. *** I'm using amd64 as well, and this is still not working for me. The reason is that even with amd64 the nvidia-cg-toolkit build puts things in /opt/nvidia-cg-toolkit/lib, and _not_ /opt/nivida-cg-toolkit/lib64. I'm going to work around it with the LDFLAGS env variable but the ebuild should be changed. |