QST: Is it possible to use GCC gcc-4.7.1 for Crosscompiling?

All design tool related questions: compiler, assembler, linker. Embedded programming questions: assembler, C code.

Moderator: nferre

manuelk
Posts: 9
Joined: Thu Feb 09, 2012 9:29 am

QST: Is it possible to use GCC gcc-4.7.1 for Crosscompiling?

Tue Jul 24, 2012 8:30 am

Hi @ll,

i Use Debian as base ( 2.6.32-5-amd64 ).


Now i start with a new project and try to build the newest gcc for cross compiling(4.7.1). The try to build it like my 4.3.3 (this works fine) won't work :/.
src\
- binutils-2.22.tar.bz2
- gcc-4.7.1.tar.bz2

the binutils work fine ... but i have a littl prob with the gcc
echo $TARGET=arm-unknown-linux-gnu
echo $PREFIX=/usr/cross/arm

../cross-arm-gcc/gcc/configure --target=$TARGET --prefix=$PREFIX --enable-languages=c --without-headers

screens me :
*** Configuration arm-unknown-linux-gnu is obsolete.
*** Specify --enable-obsolete to build it anyway.
*** Support will be REMOVED in the next major release of GCC,
*** unless a maintainer comes forward.

okey next try with

../cross-arm-gcc/gcc/configure --target=$TARGET --prefix=$PREFIX --enable-languages=c --without-headers --enable-obsolete

but now

configure: WARNING: unrecognized options: --without-headers, --enable-obsolete

a make all-gcc results with:

Makefile:26: *** missing separator. Stop.

Do You Have Any Idea / Tip for me?


Thanks,

Manuel
blue_z
Location: USA
Posts: 2094
Joined: Thu Apr 19, 2007 10:15 pm

Re: QST: Is it possible to use GCC gcc-4.7.1 for Crosscompil

Wed Jul 25, 2012 12:31 am

I have not used the latest GCC compilers, but there's nothing in the 4.7.1 Release Notes that indicate that it cannot cross-compile. You are essentially questioning the reason for gcc. However, there are a number of caveats, and quite a few apply to ARM.
manuelk wrote: echo $TARGET=arm-unknown-linux-gnu
Obviously you need to read those Release Notes http://gcc.gnu.org/gcc-4.7/changes.html.

Code: Select all

The obsolete ports with alternatives are:

    arm*-*-rtems (use arm*-*-rtemseabi)
    arm*-*-linux-gnu (use arm*-*-linux-gnueabi)
    arm*-*-elf (use arm*-*-eabi)
    arm*-*-uclinux* (use arm*-*-uclinux*eabi)
You are specifying an obsolete target, and need to used the proper replacement name.

You also need to pay attention to the new default setting for ARM data alignment.

BTW "QST" is not an acceptable/standard abbreviation for the word "question". Besides, it's a superfluous preface.

Regards
manuelk
Posts: 9
Joined: Thu Feb 09, 2012 9:29 am

Re: QST: Is it possible to use GCC gcc-4.7.1 for Crosscompil

Wed Jul 25, 2012 12:57 pm

Ahhh censored,

Okey, the release notes of course ... censored sry ^^.

Many thanks for the hint...

now it works fine.

thanks,
Manuel

p.s.I notice it to me ;)

Return to “Development Tools”

Who is online

Users browsing this forum: No registered users and 4 guests