Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 375091 - sys-devel/gcc-config-1.4.1-r1 -E don't print GCC_SPECS
Summary: sys-devel/gcc-config-1.4.1-r1 -E don't print GCC_SPECS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2011-07-13 13:26 UTC by Bertrand Jacquin
Modified: 2012-03-01 17:57 UTC (History)
0 users

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


Attachments
gcc-config-BJA-print_environ-SPECS.diff (gcc-config-BJA-print_environ-SPECS.diff,330 bytes, patch)
2011-07-13 13:27 UTC, Bertrand Jacquin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bertrand Jacquin 2011-07-13 13:26:13 UTC
To be able to compile dietlibc on x86_64 without changing the compiler manually (emerge -e system), I need to do things like :

[ "$EBUILD_PHASE" = "compile" ] && source <( gcc-config -E $(gcc-config -c)-vanilla )

Unfortunately this doesn't work as gcc-config -E doesn't print GCC_SPECS correctly :

# gcc-config.ori -E $(gcc-config -c)-vanilla
export PATH="/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.2:/lib64/rc/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin:/opt/meleeweb/sbin:/usr/x86_64-pc-linux-gnu/arm-bravo-linux-gnueabi/gcc-bin/4.5.2:/usr/x86_64-pc-linux-gnu/arm-guruplug-linux-gnueabi/gcc-bin/4.5.2:/usr/x86_64-pc-linux-gnu/i386-wince-mingw32ce/gcc-bin/4.5.2:/usr/x86_64-pc-linux-gnu/i586-alix-linux-gnu/gcc-bin/4.5.2:/usr/x86_64-pc-linux-gnu/i686-pc-linux-gnu/gcc-bin/4.5.2:/usr/x86_64-pc-linux-gnu/i686-pc-mingw32/gcc-bin/4.5.2:/usr/x86_64-pc-linux-gnu/i686-w64-mingw32/gcc-bin/4.5.2:/usr/x86_64-pc-linux-gnu/mips-fonera-linux-gnu/gcc-bin/4.5.2:/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.2:/usr/x86_64-pc-linux-gnu/x86_64-w64-mingw32/gcc-bin/4.5.2:/opt/ekopath-bin-4.0.10_pre20110612/bin:/opt/meleeweb/bin:/opt/meleeweb/sbin:/opt/exosec/bin:/opt/exosec/sbin"
export GCC_SPECS=""

So, attached a fix to make it works :

# gcc-config -E $(gcc-config -c)-vanilla
export PATH="/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.2:/lib64/rc/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin:/opt/meleeweb/sbin:/usr/x86_64-pc-linux-gnu/arm-bravo-linux-gnueabi/gcc-bin/4.5.2:/usr/x86_64-pc-linux-gnu/arm-guruplug-linux-gnueabi/gcc-bin/4.5.2:/usr/x86_64-pc-linux-gnu/i386-wince-mingw32ce/gcc-bin/4.5.2:/usr/x86_64-pc-linux-gnu/i586-alix-linux-gnu/gcc-bin/4.5.2:/usr/x86_64-pc-linux-gnu/i686-pc-linux-gnu/gcc-bin/4.5.2:/usr/x86_64-pc-linux-gnu/i686-pc-mingw32/gcc-bin/4.5.2:/usr/x86_64-pc-linux-gnu/i686-w64-mingw32/gcc-bin/4.5.2:/usr/x86_64-pc-linux-gnu/mips-fonera-linux-gnu/gcc-bin/4.5.2:/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.2:/usr/x86_64-pc-linux-gnu/x86_64-w64-mingw32/gcc-bin/4.5.2:/opt/ekopath-bin-4.0.10_pre20110612/bin:/opt/meleeweb/bin:/opt/meleeweb/sbin:/opt/exosec/bin:/opt/exosec/sbin"
export GCC_SPECS="/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/vanilla.specs"

Reproducible: Always
Comment 1 Bertrand Jacquin 2011-07-13 13:27:09 UTC
Created attachment 279991 [details, diff]
gcc-config-BJA-print_environ-SPECS.diff
Comment 2 SpanKY gentoo-dev 2011-07-13 18:47:16 UTC
i dont think this is the route we want to go to fix this.  i'll have to poke about a bit though.
Comment 3 SpanKY gentoo-dev 2012-02-29 20:22:47 UTC
should be fixed in gcc-config-1.5.1
Comment 4 Bertrand Jacquin 2012-03-01 17:57:58 UTC
(In reply to comment #3)
> should be fixed in gcc-config-1.5.1

Yep, that's fine. Thanks vapier.