Fedora packaging problem

Hi,

I'm still working on the Fedora Extras package for LLVM.

Because of the Fedora requirement that all packages in Extras be built
from source, I must build the dreaded C Front End. :slight_smile:

I think I've mostly got things set up correctly, but I've found what I
suspect is a tricky problem:

make[1]: Leaving directory
`/home/adam/rpmbuild/BUILD/llvm-1.8/llvm-gcc4-obj/gcc'
Checking multilib configuration...
multilib.out is unchanged
/home/adam/rpmbuild/BUILD/llvm-1.8/llvm-gcc4-obj/gcc/xgcc:
/home/adam/rpmbuild/BUILD/llvm-1.8/llvm-gcc4-obj/gcc/libgcc_s.so.1:
version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
/home/adam/rpmbuild/BUILD/llvm-1.8/llvm-gcc4-obj/gcc/xgcc:
/home/adam/rpmbuild/BUILD/llvm-1.8/llvm-gcc4-obj/gcc/libgcc_s.so.1:
version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
/home/adam/rpmbuild/BUILD/llvm-1.8/llvm-gcc4-obj/gcc/xgcc:
/home/adam/rpmbuild/BUILD/llvm-1.8/llvm-gcc4-obj/gcc/libgcc_s.so.1:
version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
Configuring in i686-pc-linux-gnu/libstdc++-v3
configure: loading cache ./config.cache
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i686-pc-linux-gnu-gcc...
/home/adam/rpmbuild/BUILD/llvm-1.8/llvm-gcc4-obj/gcc/xgcc
-B/home/adam/rpmbuild/BUILD/llvm-1.8/llvm-gcc4-obj/gcc/
-B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem
/usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include
checking for suffix of object files... configure: error: cannot compute
suffix of object files: cannot compile
See `config.log' for more details.
make: *** [configure-target-libstdc++-v3] Error 1

Basically what happens is that LLVM's libgcc_s.so.1 does not include
symbols needed by Fedora's libstdc++.so.6. I suspect this is an issue
that GCC avoids by bootstrapping, but I am correct that LLVM gcc does
not do bootstrapping?

Is there an obvious (or not-so-obvious) fix for this problem?

Thanks,

Adam

I don't know if it'll help, but you're welcome to use the script I
created for the Debian package; you can get copies from the Debian
archive or from http://toolchain.org/~ahs3/llvm/

I ended up putting together a short shell script to do all of the
building, starting with the CFE... it may help you past the problem.

Al Stone wrote: