Error "'-b' must come at the start of the command line" crosscompiling on eclipse [message #1001316] |
Wed, 16 January 2013 13:25 |
J C Messages: 8 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 |
|
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/
|
|
|
Powered by
FUDForum. Page generated in 0.07399 seconds