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. :) 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 251 bytes Desc: OpenPGP digital signature URL: <lists.llvm.org/pipermail/llvm-dev/attachments/20061029/639f04c3/attachment.sig>
On Sun, 2006-10-29 at 19:39 -0500, Adam Goode wrote:> 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. :) > > I think I've mostly got things set up correctly, but I've found what I > suspect is a tricky problem: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 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. -- Ciao, al ---------------------------------------------------------------------- Al Stone Alter Ego: Open Source and Linux R&D Debian Developer Hewlett-Packard Company debian.org E-mail: ahs3 at fc.hp.com ahs3 at debian.org ----------------------------------------------------------------------
Al Stone wrote:> On Sun, 2006-10-29 at 19:39 -0500, Adam Goode wrote: >> 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. :) >> >> I think I've mostly got things set up correctly, but I've found what I >> suspect is a tricky problem: > > > 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 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. >Yes, I have a printout of that script in front of me. It has helped me get this far! Thanks, Adam -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 251 bytes Desc: OpenPGP digital signature URL: <lists.llvm.org/pipermail/llvm-dev/attachments/20061029/f01dd502/attachment.sig>