Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Error "'-b' must come at the start of the command line" crosscompiling on eclipse
Error "'-b' must come at the start of the command line" crosscompiling on eclipse [message #1001316] Wed, 16 January 2013 13:25 Go to next message
J C is currently offline J CFriend
Messages: 7
Registered: January 2013
Junior Member
I'm trying to cross-compile a C++ project for arm architecture using Eclipse, the issue is that I was retrieved an error while cross-compiling which is the following:

make pre-build main-build
export ac_cv_func_malloc_0_nonnull=yes

Building file: ../tests/utils/TestUtils.cpp
Invoking: Cross G++ Compiler
arm-mv5sft-linux-gnueabi-g++ -I/usr/include/c++/4.6/i686-linux-gnu/64/bits -I/usr/include/libxml2 -I/usr/include/c++/4.6/bits -I/usr/include/c++/4.6.3/i686-linux-gnu/64/bits -I/usr/include/c++/4.6.3/i686-linux-gnu -I/usr/include/c++/4.6/i686-linux-gnu -I/usr/include/c++/4.6 -I/usr/include -O0 -g3 -Wall -m32 -c -fmessage-length=0 -build=i486-build_pc-linux-gnu -host=i686-linux -target=arm-mv5sft-linux-gnueabi -lpthread -v -MMD -MP -MF"tests/utils/TestUtils.d" -MT"tests/utils/TestUtils.d" -o "tests/utils/TestUtils.o" "../tests/utils/TestUtils.cpp"
arm-mv5sft-linux-gnueabi-g++: '-b' must come at the start of the command line
make: *** [tests/utils/TestUtils.o] Error 1


I'm sure that the problem yields in the fact that eclipse doesn't set the -b command when compiling but I don't know how to pass this command to the compiler, any suggestion?

Thanks in advance,

[Updated on: Wed, 16 January 2013 13:26]

Report message to a moderator

Re: Error "'-b' must come at the start of the command line" crosscompiling on ecli [message #1001354 is a reply to message #1001316] Wed, 16 January 2013 14:46 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3244
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 1/16/2013 6:25 AM, J C wrote:
> I'm trying to cross-compile ibrdtn for arm architecture using Eclipse,
> the issue is that I was retrieved an error while cross-compiling which
> is the following:
>
> make pre-build main-build
> export ac_cv_func_malloc_0_nonnull=yes
>
> Building file: ../tests/utils/TestUtils.cpp
> Invoking: Cross G++ Compiler
> arm-mv5sft-linux-gnueabi-g++
> -I/usr/include/c++/4.6/i686-linux-gnu/64/bits -I/usr/include/libxml2
> -I/usr/include/c++/4.6/bits
> -I/usr/include/c++/4.6.3/i686-linux-gnu/64/bits
> -I/usr/include/c++/4.6.3/i686-linux-gnu
> -I/usr/include/c++/4.6/i686-linux-gnu -I/usr/include/c++/4.6
> -I/usr/include -O0 -g3 -Wall -m32 -c -fmessage-length=0
> -build=i486-build_pc-linux-gnu -host=i686-linux
> -target=arm-mv5sft-linux-gnueabi -lpthread -v -MMD -MP
> -MF"tests/utils/TestUtils.d" -MT"tests/utils/TestUtils.d" -o
> "tests/utils/TestUtils.o" "../tests/utils/TestUtils.cpp"
> arm-mv5sft-linux-gnueabi-g++: '-b' must come at the start of the command
> line
> make: *** [tests/utils/TestUtils.o] Error 1
>
> I'm sure that the problem yields in the fact that eclipse doesn't set
> the -b command when compiling but I don't know how to pass this command
> to the compiler, any suggestion?
>
> Thanks in advance,

Sticky post at top of forum:

http://www.eclipse.org/forums/index.php/t/161206/
Previous Topic:Desktop application in juno
Next Topic:no connetct CVS repository /cvsroot/eclipse
Goto Forum:
  


Current Time: Sun Nov 23 02:33:28 GMT 2014

Powered by FUDForum. Page generated in 0.02848 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software