Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 290653 - sys-devel/llvm-gcc-2.6 fails when building with no-multilib profile.
Summary: sys-devel/llvm-gcc-2.6 fails when building with no-multilib profile.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-26 22:15 UTC by Eric Smith
Modified: 2009-10-27 22:58 UTC (History)
0 users

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


Attachments
llvm-gcc-2.6.ebuild patch to handle multilib (llvm-gcc-2.6.ebuild.multilib.patch,685 bytes, patch)
2009-10-27 21:17 UTC, Bernard Cafarelli
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Smith 2009-10-26 22:15:19 UTC
When I try to build llvm-gcc, it fails because I don't have a stubs-32.h file only stubs-64.h:

/var/tmp/paludis/sys-devel-llvm-gcc-2.6/work/llvm-gcc4.2-2.6.source/obj/./gcc/xgcc -B/var/tmp/paludis/sys-devel-llvm-gcc-2.6/work/llvm-gcc4.2-2.6.source/obj/./gcc/ -B/usr/lib64/llvm-gcc-4.2-2.6/x86_64-pc-linux-gnu/bin/ -B/usr/lib64/llvm-gcc-4.2-2.6/x86_64-pc-linux-gnu/lib/ -isystem /usr/lib64/llvm-gcc-4.2-2.6/x86_64-pc-linux-gnu/include -isystem /usr/lib64/llvm-gcc-4.2-2.6/x86_64-pc-linux-gnu/sys-include  -O2  -O2 -march=native -O2 -pipe -fomit-frame-pointer  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I/var/tmp/paludis/sys-devel-llvm-gcc-2.6/work/llvm-gcc4.2-2.6.source/gcc -I/var/tmp/paludis/sys-devel-llvm-gcc-2.6/work/llvm-gcc4.2-2.6.source/gcc/. -I/var/tmp/paludis/sys-devel-llvm-gcc-2.6/work/llvm-gcc4.2-2.6.source/gcc/../include -I/var/tmp/paludis/sys-devel-llvm-gcc-2.6/work/llvm-gcc4.2-2.6.source/gcc/../libcpp/include  -I/var/tmp/paludis/sys-devel-llvm-gcc-2.6/work/llvm-gcc4.2-2.6.source/gcc/../libdecnumber -I../libdecnumber -I/usr/include -m32 -DL_negdi2 -fvisibility=hidden -DHIDE_EXPORTS -c /var/tmp/paludis/sys-devel-llvm-gcc-2.6/work/llvm-gcc4.2-2.6.source/gcc/libgcc2.c -o libgcc/32/_negdi2.o
In file included from /usr/include/features.h:371,
                 from /usr/include/stdio.h:28,
                 from /var/tmp/paludis/sys-devel-llvm-gcc-2.6/work/llvm-gcc4.2-2.6.source/gcc/tsystem.h:90,
                 from /var/tmp/paludis/sys-devel-llvm-gcc-2.6/work/llvm-gcc4.2-2.6.source/gcc/libgcc2.c:33:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
Comment 1 Bernard Cafarelli gentoo-dev 2009-10-27 10:00:22 UTC
Thanks for the report!

So there's some no-multilib handling missing, I'll check in toolchain eclass (as this is basically a gcc build) what is needed in this case
Comment 2 Bernard Cafarelli gentoo-dev 2009-10-27 21:17:17 UTC
Created attachment 208460 [details, diff]
llvm-gcc-2.6.ebuild patch to handle multilib

Can you try this patch to llvm-gcc-2.6.ebuild? It adds a multilib USE flag, which should disable all 32bit parts generation on no-multilib
Comment 3 Eric Smith 2009-10-27 22:32:47 UTC
(In reply to comment #2)
> Created an attachment (id=208460) [details]
> llvm-gcc-2.6.ebuild patch to handle multilib
> 
> Can you try this patch to llvm-gcc-2.6.ebuild? It adds a multilib USE flag,
> which should disable all 32bit parts generation on no-multilib
> 

Thanks, that fixed it!  Everything compiles fine now.
Comment 4 Bernard Cafarelli gentoo-dev 2009-10-27 22:58:27 UTC
Great! Thanks for testing, I've committed it in portage CVS