Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 157694 - gcc-config-1.3.14 doesn't set gcjh and gfortran correctly
Summary: gcc-config-1.3.14 doesn't set gcjh and gfortran correctly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 147087 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-12-09 23:56 UTC by Philipp Kirchner
Modified: 2007-03-12 16:55 UTC (History)
4 users (show)

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


Attachments
Patch for gcc-config (gcc-config.patch,437 bytes, patch)
2006-12-10 00:04 UTC, Philipp Kirchner
Details | Diff
Updated gcc-config patch (gcc-config-2.patch,852 bytes, patch)
2006-12-11 23:09 UTC, Jouni Rinne
Details | Diff
Updated gcc-config patch, v2 (gcc-config-2.patch,655 bytes, patch)
2006-12-11 23:17 UTC, Jouni Rinne
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Kirchner 2006-12-09 23:56:35 UTC
I'm using gcc-config 1.3.14 with gcc-4.1.1 and wondered why gcjh doesn't function. Simple Solution:

Add gcjh and gfortran, which also doesn't work to the list of binaries, patch follows
Comment 1 Philipp Kirchner 2006-12-10 00:04:04 UTC
Created attachment 103725 [details, diff]
Patch for gcc-config

This fixes it for me (TM), haven't looked if there should be taken special care in the case of cross-compilation or so...
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-12-10 01:29:07 UTC
*** Bug 147087 has been marked as a duplicate of this bug. ***
Comment 3 Jouni Rinne 2006-12-11 23:07:52 UTC
Very good patch, but not enough... I was just switching from gcc-3.4.6 to 4.1.1 and started the emerge -e system/world process, but got a lot of fortran-related warnings / errors (libtool almost broke). But with your patch, plus the additional modifications I made to gcc-config, I was able to compile libtool without errors, and at this point emerge -e system is done - without errors - and emerge -e world is about 25% done - again without any serious, fortran-related errors. Thanks, without this lead I would probably still just sit and scratch my head...

The updated patch follows.
Comment 4 Jouni Rinne 2006-12-11 23:09:06 UTC
Created attachment 103845 [details, diff]
Updated gcc-config patch
Comment 5 Jouni Rinne 2006-12-11 23:17:44 UTC
Created attachment 103846 [details, diff]
Updated gcc-config patch, v2

Oh, sorry, there was unnecessary cruft on the original patch. Here's a clean one.
Comment 6 telesphore4 2007-02-20 18:21:50 UTC
(In reply to comment #5)
> Created an attachment (id=103846) [edit]
> Updated gcc-config patch, v2
> 
> Oh, sorry, there was unnecessary cruft on the original patch. Here's a clean
> one.

This patch may need to make it into v4.1.2 too. It fixed problems I had emerging various scientific packages like scipy with this gcc version.

Comment 7 SpanKY gentoo-dev 2007-03-05 22:18:25 UTC
this is basically waiting on the sci team to say "yeah this is OK"
Comment 8 Donnie Berkholz (RETIRED) gentoo-dev 2007-03-06 06:32:41 UTC
Should be fine for gfortran ... can't speak for gcjh.
Comment 9 Anthony Staines 2007-03-11 23:20:20 UTC
(In reply to comment #8)
> Should be fine for gfortran ... can't speak for gcjh.
> 

Works fine for gfortran on 
Linux  2.6.19-gentoo-r5 #7 SMP PREEMPT Sun Mar 11 22:50:09 GMT 2007 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ AuthenticAMD GNU/Linux

Installing packages in R now works again,
Thank you very much!
Comment 10 SpanKY gentoo-dev 2007-03-12 06:59:44 UTC
added to 1.3.15-r1 then, thanks for the input
Comment 11 Jean-Francois Ostiguy 2007-03-12 16:34:40 UTC
(In reply to comment #10)
> added to 1.3.15-r1 then, thanks for the input
> 

The patch applied 1.3.15-r1 is a bit different from the previously submitted patch (which works for me). Unfortunately, for some reason 1.3.15-r1 does not work. Simple test: try "gfortran" with no argument  It should return 

gfortran: no input files


Comment 12 SpanKY gentoo-dev 2007-03-12 16:55:22 UTC
fixed in cvs, it should be {,${CTARGET}-}{... not {,${CTARGET}}-{...