Esko Virtanen kirjoitti:
Let's try this:
mv /usr/bin/gcc /usr/bin/gcc40
ln -s /usr/bin/gcc32 /usr/bin/gcc

   I found out that the right way to do cross-compiling is to export CC
   I still get the same error though..


# export CC=gcc32
# export CXX=gcc32
# ./build_all


   halts to error:


checking for long double... yes
checking size of long double... configure: error: cannot compute sizeof (long double), 77
See `config.log' for more details.


   config.log reveals:


configure:6004: checking size of long double
configure:6279: /opt/build/lbe/i386-linux-crosscomp/bin/gcc -o conftest -g -O2 conftest.c >&5 /opt/build/lbe/i386-linux-crosscomp/lib/gcc-lib/i386-linux/3.2.3/../../../../i386-linux/bin/ld:/usr/lib/libc.so: file format not recognized; treating as linker script /opt/build/lbe/i386-linux-crosscomp/lib/gcc-lib/i386-linux/3.2.3/../../../../i386-linux/bin/ld:/usr/lib/libc.so:5: parse error
collect2: ld returned 1 exit status
configure:6282: $? = 1
configure: program exited with status 1 configure: failed program was: | #line 6239 "configure"


   Line 6239 is "cat >conftest.$ac_ext <<_ACEOF"
   Surroundin code is here:


else
  if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
   { (exit 1); exit 1; }; }
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
     https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to