avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] cannot compile arrrghh...


From: Jens Bauer
Subject: Re: [avr-gcc-list] cannot compile arrrghh...
Date: Sun, 30 Oct 2011 08:58:12 +0200

Hi Volker,

This looks like a problem I came across too recently.

Try making 3 symbolic links in your gcc source directory; they should point to 
the gmp, mpfr and mpc folders...

ln -s $source/gmp-5.0.2 $source/gcc-4.6.2/gmp
ln -s $source/mpfr-5.0.2 $source/gcc-4.6.2/mpfr
ln -s $source/mpc-5.0.2 $source/gcc-4.6.2/mpc

Furthermore, you no longer need to compile the gmp/mpfr/mpc libraries; that's 
only for gcc 4.3.x and 4.4.x!
You should not need --with-gmp/--with-mpfr/--with-mpc either; just the above 
mentioned symbolic links.

It might be required for you to set ABI... I have the following on my PowerPC 
Mac:

CC="gcc -m32"
$source/gcc-4.6.2/configure ABI=32


Love,
Jens


>I have been unsuccessfully trying to compile a plain avr-gcc 4.6.2
>package. The result always is
>
>checking for suffix of object files... configure: error: in `/home/.../
>build-gcc-4.6.2/avr/libgcc':
>configure: error: cannot compute suffix of object files: cannot compile
>See `config.log' for more details.
>
>config.log is not very informative, other than for
>
>xgcc: error: unrecognized option '-V'
>xgcc: fatal error: no input files
>
>It doesn't help that commands executed in much of the build system
>aren't shown, but hacking in a few set -x gives me no more info.
>
>Compiling the 4.3.3 package (openSUSE) works fine, with the same
>configure options. The only difference is about 11 patches applied to
>4.3.3, which obviously I don't want to apply to 4.6.2, and which don't
>affect the compilation process as far as I can tell.
>
>Relevant installed packages:
>
>avr-libc-1.7.1-1.3.noarch
>cross-avr-binutils-2.19.1-33.1.x86_64
>
>These are rooted at /opt/cross/avr/
>
>Also on the system:
>
> > ldconfig -p | egrep 'mpfr|gmp|mpc|cloog' | sort
> libcloog.so.0 (libc6,x86-64) => /usr/lib64/libcloog.so.0
> libgmp.so (libc6,x86-64) => /usr/lib64/libgmp.so
> libgmp.so.10 (libc6,x86-64) => /usr/lib64/libgmp.so.10
> libgmp.so.3 (libc6,x86-64) => /usr/lib64/libgmp.so.3
> libgmpxx.so (libc6,x86-64) => /usr/lib64/libgmpxx.so
> libgmpxx.so.4 (libc6,x86-64) => /usr/lib64/libgmpxx.so.4
> libmpc.so.2 (libc6,x86-64) => /usr/lib64/libmpc.so.2
> libmpcdec.so.5 (libc6,x86-64) => /usr/lib64/libmpcdec.so.5
> libmpfr.so.1 (libc6,x86-64) => /usr/lib64/libmpfr.so.1
> libmpfr.so.4 (libc6,x86-64) => /usr/lib64/libmpfr.so.4
> libppl.so.9 (libc6,x86-64) => /usr/lib64/libppl.so.9
> libppl_c.so.4 (libc6,x86-64) => /usr/lib64/libppl_c.so.4
>
>and their headers. configure would not complete if they weren't.
>
>Configure options:
>
>%define prefix  /opt/cross/avr
>%define vers    4.6.2
>../gcc-%{vers}/configure \
>       -v \
>       --prefix=%{prefix} \
>       --mandir=%{prefix}/share/man \
>       --infodir=%{prefix}/share/info \
>       --with-gnu-ld \
>       --with-gnu-as \
>       --target=${target} \
>       --enable-languages="c,c++" \
>       --disable-nls \
>       --disable-libssp \
>       --with-dwarf2
>
>I added
>       --program-prefix=avr- \
>       --with-sys-root=%{prefix} \
>which makes no difference.
>I uninstalled avr-gcc previously, also no difference.
>
>Adding
> export LD_LIBRARY_PATH="%{prefix}/lib:/usr/lib64:$LD_LIBRARY_PATH"
> export LD_RUN_PATH="%{prefix}/lib:/usr/lib64:$LD_RUN_PATH"
>also does nothing.
>
>This is a tad ridicolous - the build process seems to not find something
>but doesn't complain. Searching the 'net shows a lot of "solutions"
>(none work), but unfortunately not what the condition is that causes
>this error - then one could deal with it.
>
>Would someone knowlegable be able to say:
>
>Do the gmp/mpfr/mpc/.. libraries need to be in the target system? Surely
>not - they're used to build gcc, not run it on the target.
>
>What exactly are the conditions leading to this error?
>
>And what do I tell configure so it gets the job done..???
>
>Thanks muchly,
>
>Volker
>
>--
>Volker Kuhlmann
>http://volker.dnsalias.net/    Please do not CC list postings to me.
>
>_______________________________________________
>AVR-GCC-list mailing list
>address@hidden
>https://lists.nongnu.org/mailman/listinfo/avr-gcc-list
>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]