This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ 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]

RE: Target gdb


On 03 February 2006 15:54, Dave Korn wrote:

> On 03 February 2006 15:38, Earl Olsen wrote:
 
>> checking whether the C compiler works... configure: error: cannot run C
>> compiled programs. If you meant to cross compile, use `--host'.
>> See `config.log' for more details.
>> make: *** [configure-libiberty] Error 1
>> 
>> Any ideas?
> 
> 
>   Yes: this is wrong.
> 
>> checking build system type... powerpc-unknown-linux-gnu
> 
>   You'll have to figure out why it thinks you're building on a powerpc
> system. 


  It's probably because of this bit, Btw:

>>     CC=$TARGET-gcc $BUILD_TMP_DIR/$GDB_DIR/configure \


  CC is the system's native compiler.  Don't try and fool the configure/cross-build system.  It's not daft and it knows that if
build is one thing and host is another then it needs to find a $(TARGET)-gcc.  You have told it to use the crosscompiler as the
native compiler, and it's got all confused about whether it's meant to be crosscompiling at all or not.  Poor little thing!


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.org


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