Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 289933 - sys-devel/llvm-gcc-2.6_pre2 needs virtual/libffi
Summary: sys-devel/llvm-gcc-2.6_pre2 needs virtual/libffi
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-20 23:53 UTC by Matthias Vill
Modified: 2009-11-17 15:11 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 Matthias Vill 2009-10-20 23:53:46 UTC
USE="-bootstrap fortran nls objc objc++ -test"
x86_64 with 2.6.30-gentoo-r4 kernel

Build fails without libffi beeing installed like this:

/var/tmp/portage/sys-devel/llvm-gcc-2.6_pre2/work/llvm-gcc4.2-2.6.source/obj/./prev-gcc/xgcc -B/var/tmp/portage/sys-devel/llvm-gcc-2.6_pre2/work/llvm-gcc4.2-2.6.source/obj/./prev-gcc/ -B/usr/lib64/llvm-gcc-4.2-2.6/x86_64-pc-linux-gnu/bin/   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wmissing-format-attribute    -DHAVE_CONFIG_H  -o gfortran \
          gcc.o opts-common.o gcc-options.o gfortranspec.o version.o prefix.o intl.o driver-i386.o  ../libcpp/libcpp.a   ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -L/usr/lib  -lpthread -lffi -ldl -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lffi
collect2: ld returned 1 exit status
make[3]: *** [gfortran] Error 1
make[3]: *** Waiting for unfinished jobs....
rm gcov.pod gfdl.pod cpp.pod gpl.pod gfortran.pod fsf-funding.pod gcc.pod
make[3]: Leaving directory `/var/tmp/portage/sys-devel/llvm-gcc-2.6_pre2/work/llvm-gcc4.2-2.6.source/obj/gcc'
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-devel/llvm-gcc-2.6_pre2/work/llvm-gcc4.2-2.6.source/obj'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/llvm-gcc-2.6_pre2/work/llvm-gcc4.2-2.6.source/obj'
make: *** [all] Error 2

Sorry I didn't save the full log or tried without fortran but it definitely compiled with libffi installed.
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2009-10-22 16:57:38 UTC
Most likely also sys-devel/llvm, based on this,

# ./configure --help | grep ffi
--enable-libffi  Check for the presence of libffi (default is YES)
Comment 2 Matthias Vill 2009-10-22 16:59:38 UTC
Nope, llvm went without problems. I installed it without llvm-gcc at first.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2009-10-23 11:07:09 UTC
(In reply to comment #2)
> Nope, llvm went without problems. I installed it without llvm-gcc at first.
> 

It's a optional depend (automagic) so it would use it if present.
Comment 4 Bernard Cafarelli gentoo-dev 2009-10-26 09:58:34 UTC
ssuominen, I suppose this bug was why you were looking for me on IRC ;)

For llvm, I added the libffi USE flag (enabled by default, after checking the release notes for 2.6), thanks for spotting it!

However building llvm-gcc with the same USE flags and libffi unmerged ran fine (including fortran), I'll check if llvm-gcc should have a libffi USE-flag linked to llvm's one, or if it's enough to enable/disable it in llvm
Comment 5 Matthias Vill 2009-10-26 10:15:37 UTC
Strange... I just installed libffi. It did not compile before, but it did compile afterwards.
Maybe because llvm was already installed without llvm-gcc useflag? Or Because I am running on x86_64?
Comment 6 Bernard Cafarelli gentoo-dev 2009-10-26 12:48:46 UTC
Both should not affect this behaviour. Just tested on 2 machines, llvm-gcc compiles fine without libffi and with USE=-libffi in llvm. So probably llvm had picked up libffi (probably the gcc bundled version) in your system, but llvm-gcc only works with dev-libs/libffi.

I'll leave the bug open if someone else encounters the problem, now that llvm has its libffi USE-flag
Comment 7 Bernard Cafarelli gentoo-dev 2009-11-17 15:11:35 UTC
So far so good :) Closing fixed