[Clfs-dev] problems cross compiling gcc
Luís Vitório Cargnini
lvcargnini at gmail.com
Wed Dec 26 11:19:40 PST 2007
well according to the book
http://cross-lfs.org/view/clfs-sysroot/arm/cross-tools/binutils.html:
this is the result after make:
&& mv BLD-POTFILES-t BLD-POTFILES )
cd .. \
&& CONFIG_FILES=po/Makefile.in:po/Make-in \
CONFIG_HEADERS= /bin/sh ./config.status
config.status: creating po/Makefile.in
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default-1 commands
config.status: executing bfd_stdint.h commands
config.status: executing default commands
make[3]: Leaving directory
`/home/lvcargnini/puc/instramed/toolchain/build/binutils218/bfd/po'
make[3]: Entering directory
`/home/lvcargnini/puc/instramed/toolchain/build/binutils218/bfd/po'
make[3]: Nothing to be done for `info'.
make[3]: Leaving directory
`/home/lvcargnini/puc/instramed/toolchain/build/binutils218/bfd/po'
make[3]: Entering directory
`/home/lvcargnini/puc/instramed/toolchain/build/binutils218/bfd'
make[3]: Nothing to be done for `info-am'.
make[3]: Leaving directory
`/home/lvcargnini/puc/instramed/toolchain/build/binutils218/bfd'
make[2]: *** [info-recursive] Error 1
make[2]: Leaving directory
`/home/lvcargnini/puc/instramed/toolchain/build/binutils218/bfd'
make[1]: *** [all-bfd] Error 2
make[1]: Leaving directory
`/home/lvcargnini/puc/instramed/toolchain/build/binutils218'
make: *** [all] Error 2
how to fix this ?
this was I tried the binutils 2.17 instead of 2.18
On Dec 26, 2007 2:35 PM, Ken Moffat <zarniwhoop at ntlworld.com> wrote:
> On Wed, Dec 26, 2007 at 10:35:06AM -0200, Luís Vitório Cargnini wrote:
> > Dear fellows I having the following problem:
> [...]
> > checking for ld version... 21700
> > checking for ld that supports -Wl,--gc-sections... configure: error:
> > Link tests are not allowed after GCC_NO_EXECUTABLES.
> > make[1]: *** [configure-target-libstdc++-v3] Error 1
>
> Apparently, your version of binutils (2.17) does not support the
> version of gcc you are trying to compile.
> >
> > my configure line is :
> > ../../sources/gcc-4.2.1/configure --enable-cross
> > --prefix=/opt/arm-linux --host=${CLFS_HOST} --target=${CLFS_TARGET}
> > --disable-multilib --with-sysroot=${CLFS} --disable-nls
> > --enable-shared --enable-languages=c,c++ --enable-__cxa_atexit
> > --enable-c99 --enable-long-long --enable-threads=posix
> > --with-headers=${CLFS_TARGET}/usr/include
> >
> > Thanks for any help
> >
> You seem to be a _long_ way from any of the clfs books! You seem
> to be nearest to clfs-sysroot, so I'll list the changes I think
> might be important:
>
> 1. Your binutils is the wrong version. Alternatively, you did
> indeed build 2.18 - if that is the case, something is wrong because
> configure has found the 2.17 version.
>
> 2. I'm not familiar with the sysroot build, and you haven't made it
> easy for me by saying _which_ build of gcc this is. The final
> options make it look like the compile in "installing system
> software", but what is the '--enable-cross' and why do you need to
> pass '--with-headers' ?
>
> 3. You are installing this compiler into /opt/arm-linux : the
> sysroot book puts the initial compilers into ${CLFS}/cross-tools and
> the final compiler into ${CLFS}/user. If /opt/arm-linux is the same
> as ${CLFS} you are putting the compiler into the root of the system
> tree.
>
> If all you are trying to do is build a cross-compiler for a kernel,
> your prefix makes sense but you are overdoing things - no need for
> c++ or posix threads: just follow the _principles_ in the _trunk_
> books (any of the 32-bit books, since we don't do arm there) :
> headers, cross-binutils, cross-gcc-static - that's all.
>
> If you are trying to build a full system, messing around with the
> prefix is very likely to break your build. The sysroot book lets you
> put ${CLFS} anywhere, so /opt/arm-linux is suitable if you have write
> permission there (~/arm-linux is probably better for most people) but
> you cannot go deviating from the book's structure (/opt-arm-linux
> instead of /opt/arm-linux/cross-tools or /opt/arm-linux/usr) and
> expect it to just work.
>
> 4. Alternatively, this is the embedded book and your compiler
> (4.2.1) is a lot newer than what is in the book (although your
> binutils is the correct version) and again you are installing it to
> a different place.
>
> For clfs development books, I don't think it would be appropriate
> for me to tell you to FBBG - often, there will be some breakage
> (that's what happens with multiple architectures), but you _do_ need
> to know *why* you are deviating from what is in the book, and to
> understand what might happen.
>
> ĸen
> --
> das eine Mal als Tragödie, das andere Mal als Farce
> _______________________________________________
> Clfs-dev mailing list
> Clfs-dev at lists.cross-lfs.org
> http://lists.cross-lfs.org/listinfo.cgi/clfs-dev-cross-lfs.org
>
--
------------------------------------------------------------------------------
Thanks && Regards
M.Sc. B.Sc. Luís Vitório Cargnini
IEEE Member
Electrical Engineer Faculty @ PUCRS
Ipiranga Avenue, 6681 – Building 30
P.O. Box: 90619-900 – Porto Alegre/RS
Phone: +55 51 3320 3500 extension: 7696
---------------------------------------------------------------------------------
More information about the Clfs-dev
mailing list