Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 181675 - toolchain.eclass is missing code to setup GCCBITS for gcc profiles
Summary: toolchain.eclass is missing code to setup GCCBITS for gcc profiles
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High major
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 181676 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-06-11 17:26 UTC by piavlo
Modified: 2007-06-11 22:50 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description piavlo 2007-06-11 17:26:59 UTC
Hi, I've noticed that the gcc profiles under /etc/env.d/gcc are created without
GCCBITS=...

 As a result , in my case the /usr/bin/gcc32 and /usr/bin/gcc64 links to 
/usr/lib64/misc/gcc-config are not created

after some investigation on the system i found toolchain.eclass is missing the following code:
local mbits
       CC=$(XGCC) has_m32 && mbits="${mbits:+${mbits} }32"
       CC=$(XGCC) has_m64 && mbits="${mbits:+${mbits} }64"
       echo "GCCBITS=\"${mbits}\"" >> ${gcc_envd_file}

was it removal intentional and if so what are the reasons to remove something
that users depend on?

 Thanks
 Alex
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-06-11 17:30:20 UTC
*** Bug 181676 has been marked as a duplicate of this bug. ***
Comment 2 SpanKY gentoo-dev 2007-06-11 19:05:26 UTC
GCCBITS is dead
Comment 3 piavlo 2007-06-11 21:30:25 UTC
(In reply to comment #2)
> GCCBITS is dead
> 
What a comprehensive explanation.
Maybe you can give some real explanation/reference to why GCCBITS was removed?
And what its alternative?

Since i can not manage to compile some 32 bit packages, with GCCBITS disabled,
for example the following work only with GCCBITS enabled, even then i use
x86_64-pc-linux-gnu-gcc32 instead of just gcc32:

env CHOST="i686-pc-linux-gnu" CC="x86_64-pc-linux-gnu-gcc32" swi-prolog

without GCCBITS it fails with:
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --disable-mt --disable-gmp --enable-readline --enable-shared --disable-custom-flags --build=i686-pc-linux-gnu
checking builddir... src
checking for i686-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc32
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.

while both:
 env CHOST="i686-pc-linux-gnu" CC="x86_64-pc-linux-gnu-gcc32" swi-prolog
and:
 env CHOST="i686-pc-linux-gnu" CC="gcc32" swi-prolog
works with GCCBITS enbaled.

 Thanks
Comment 4 SpanKY gentoo-dev 2007-06-11 22:50:28 UTC
there is nothing to it ... GCCBITS is dead code we're no longer supporting

the solution is to use proper ABI CFLAGS like any other multilib setup