Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 406083 - sci-chemistry/vmd-1.9.1 fails with gcc != 4.4
Summary: sci-chemistry/vmd-1.9.1 fails with gcc != 4.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alexey Shvetsov
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-27 20:34 UTC by JTRiley
Modified: 2012-11-14 15:19 UTC (History)
1 user (show)

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


Attachments
vmd-1.9.1 ebuild patch that gets proper gcc bin patch from gcc-config -B (vmd-1.9.1-cuda-gcc.patch,701 bytes, patch)
2012-02-27 22:46 UTC, JTRiley
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description JTRiley 2012-02-27 20:34:23 UTC
The following line in vmd 1.9.1 ebuild breaks the build for any gcc version other than 4.4:

local gcc44_bindir="$(ls -d ${EPREFIX}/usr/*pc-linux-gnu/gcc-bin/4.4*)"

I've fixed this in my overlay:

http://git.overlays.gentoo.org/gitweb/?p=user/jtriley.git;a=blob;f=sci-chemistry/vmd/vmd-1.9.1.ebuild

The fix is to use "gcc-config -B" to get the gcc bin directory rather than hard-coding gcc 4.4 in the ebuild.



Reproducible: Always

Steps to Reproduce:
1. Use gcc > 4.4
2. emerge -va vmd
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2012-02-27 20:42:24 UTC
gcc-4.4 is needed because the nvidia cuda compilers and friends only work with that version.
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2012-02-27 20:43:02 UTC
But newer cuda stuff should work with 4.5 as well
Comment 3 JTRiley 2012-02-27 20:47:25 UTC
(In reply to comment #2)
> But newer cuda stuff should work with 4.5 as well

Hmm perhaps we should require certain versions of gcc/CUDA in deps then?
Comment 4 JTRiley 2012-02-27 20:54:38 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > But newer cuda stuff should work with 4.5 as well
> 
> Hmm perhaps we should require certain versions of gcc/CUDA in deps then?

BTW, I'm using gcc 4.5.3 and cuda 4.1
Comment 5 Justin Lecher (RETIRED) gentoo-dev 2012-02-27 20:57:57 UTC
you are right, > 4 support gcc-4.5

http://developer.download.nvidia.com/compute/cuda/4_1/rel/toolkit/docs/CUDA_Toolkit_Release_Notes_And_Errata.txt

we should depend on > cuda-toolkit-4 to have recent compilers supported and take your patch. BTW, please attach a patch of your changes.
Comment 6 JTRiley 2012-02-27 22:46:57 UTC
Created attachment 303553 [details, diff]
vmd-1.9.1 ebuild patch that gets proper gcc bin patch from gcc-config -B

Still need to fix the deps for CUDA 4+ as mentioned by Justin Lecher.
Comment 7 JTRiley 2012-02-27 22:47:55 UTC
(In reply to comment #6)
> Created attachment 303553 [details, diff] [details, diff]
> vmd-1.9.1 ebuild patch that gets proper gcc bin patch from gcc-config -B
> 
> Still need to fix the deps for CUDA 4+ as mentioned by Justin Lecher.

*proper gcc bin path
Comment 8 Justin Lecher (RETIRED) gentoo-dev 2012-11-14 15:19:09 UTC
+*vmd-1.9.1-r1 (14 Nov 2012)
+
+  14 Nov 2012; Justin Lecher <jlec@gentoo.org> +vmd-1.9.1-r1.ebuild:
+  Fix detection of netcdf; #406737, thanks Reinis Danne preparing the patch;
+  Loosen dep for cuda support, #406083
+