This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [CROSS GCC]: xgcc not using multi-os-directory for ligcc_s.so.1


This configure was done in a separate build directory.

During the creation of 64-bit libgcc_so.so.1 I can see the command line using

xgcc -B /opt/sparctools/sparc64-unknown-linux-gcc/lib etc

as a result it picks up the 32-bit versions of crt*.o. It does complain about these
object files but nevertheless continues to create a libgcc_s.so.1. Faulty behaviour
is observed only after a 'make install' when the building of simple sparc64 binaries
fails with an undefined __gmon_start__.


Paul Brook wrote:

Problem description

Building an x86->Sparc32,64 cross using
configure
--prefix=/opt/sparctools --target=sparc64-unknown-linux-gnu
--enable-threads=posix --enable-__cxa_atexit --disable-libunwind-exceptions
--disable-optimization --with-system-zlib



Obvious thing first: was this ./configure, or /somewhereelse/configure ?
If you did ./configure, you should use a separate build directory, as recommended in the installation guide: http://gcc.gnu.org/install/configure.html
Building in the source tree might work, but often triggers obscure failure modes.


Paul





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]