This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See crosstool-NG for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
> -----Original Message----- > From: crossgcc-owner@sourceware.org [mailto:crossgcc-owner@sourceware.org] On Behalf Of ANDY KENNEDY > Sent: Monday, June 02, 2014 6:20 PM > To: 'crossgcc@sourceware.org' > Subject: Mips Multilib issue > > All, > > While attempting to build a toolchain for a new version of a MIPS system > (which needs multilib), I run across the following issue: > > [ERROR] configure: error: Need linker with .init_array/.fini_array support. > [ERROR] > [ERROR] >> > [ERROR] >> Build failed in step 'Building for multilib subdir='32'' > [ERROR] >> called in step 'Installing C library headers & start files' > [ERROR] >> called in step '(top-level)' <snip> Okay, I'm past that one (I'll have a patch for this whole thing when I get done). Now, I'm at "Installing pass-2 core C compiler" and I get breakage when attempting to build a mabi=32 32/libgcc_s.so.1.tmp file. The problem is that the xgcc compiler attempts to link in the lib/libc.so file: /sysroot/usr/lib/../lib/libc.so: error adding symbols: File in wrong format Basically, to solve the other issue, what I had to do was: CT_TARGET_CFLAGS="${CT_TARGET_CFLAGS//${CT_ARCH_ABI_CFLAG}}" just after the if [ "${multi_dir}" != "." } ; do (near line 106 or so) in the file scripts/build/libc/glibc-eglibc.sh-common. Later, in the SECOND if [ "${multi_dir} (near line 175 or so), I undo this by doing: CT_TARGET_CFLAGS="${CT_TARGET_CFLAGS} ${CT_ARCH_ABI_CFLAG}" which puts it back in there for me. If any of you have multi-lib experience and would be willing to help me, please throw advice my way! Thanks, Andy -- For unsubscribe information see http://sourceware.org/lists.html#faq
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |