aMule Bug Tracker - aMule
View Issue Details
0000929aMuleMulti Platformpublic2006-07-06 08:172006-09-08 12:42
0000929: configure: BUILD_CC uses CCs CFLAGS
In a cross-compile environment, configure makes BUILD_CC use the CFLAGS of the targets' CC, e.g. an i586 compiler are given some ppc-specific CFLAGS. configure will die later. This happened after substituting HOST_CC with BUILD_CC.
Output of configure:

configure:4355: $? = 0
configure:4357: gcc -v </dev/null >&5
Using built-in specs.
Target: i586-mandriva-linux-gnu
Configured with: ../configure --prefix=/usr --libexecdir=/usr/lib --with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --enable-languages=c,c++,ada,f95,objc,java --host=i586-mandriva-linux-gnu --with-system-zlib --enable-long-long --enable-__cxa_atexit --enable-clocale=gnu --disable-libunwind-exceptions --enable-java-awt=gtk --with-java-home=/usr/lib/jvm/java-1.4.2-gcj- --enable-gtk-cairo --disable-libjava-multilib
Thread model: posix
gcc version 4.0.1 (4.0.1-5mdk for Mandriva Linux release 2006.0)
configure:4360: $? = 0
configure:4362: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:4365: $? = 1
configure:4388: checking for C compiler default output file name
configure:4391: gcc -mcpu=405 -msoft-float -mmultiple -mstring -meabi -pipe -Os -ggdb3 -DHAVE_DREAMBOX_HARDWARE conftest.c >&5
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
cc1: error: invalid option 'multiple'
cc1: error: invalid option 'string'
cc1: error: invalid option 'eabi'
conftest.c:1: error: bad value (405) for -mtune= switch
No tags attached.
Issue History
2006-07-06 08:17CoronasNew Issue
2006-07-06 08:17CoronasOperating System => Any
2006-07-06 08:36KryStatusnew => assigned
2006-07-06 08:36KryAssigned To => GonoszTopi
2006-09-08 12:03GonoszTopiStatusassigned => confirmed
2006-09-08 12:42GonoszTopiStatusconfirmed => resolved
2006-09-08 12:42GonoszTopiResolutionopen => fixed

There are no notes attached to this issue.