scary messages from autoconf

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



The versions of avr-gcc in linux repositories mostly do not work.
I've been trying to build avr-gcc from sources,
using scripts provided by Bingo600.
So far the effort has not succeeeded.
See here
http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=42631
and here
http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=124056
for some of what has gone before.

I ran ./buildavr-toolchain.sh 2>&1 | tee buildavr-toolchain.out 
from
/home/hennebry/data/projects/avr/gcc/build-avr-gcc-4.5.1-binutils-2.20.1-libc-1.8.0-gdb-7.3.1-dude-5.11.1-avarice-2.12-aw/make-avr-gcc
The following is a section of the result:
> checking for objdir... .libs
> checking if gcc supports -fno-rtti -fno-exceptions... no
> checking for gcc option to produce PIC... -fPIC -DPIC
> checking if gcc PIC flag -fPIC -DPIC works... yes
> checking if gcc static flag -static works... no
> checking if gcc supports -c -o file.o... yes
> checking if gcc supports -c -o file.o... (cached) yes
> checking whether the gcc linker (ld) supports shared libraries... 
> /usr/local/avr/source/gcc-4.5.1/mpc/configure: line 8413: : supported targets:.* 
> elf: command not found
> no
> checking dynamic linker characteristics... GNU/Linux ld.so
> checking how to hardcode library paths into programs... unsupported
> checking whether stripping libraries is possible... yes
> checking if libtool supports shared libraries... no
> checking whether to build shared libraries... no
> checking whether to build static libraries... yes
> checking for ANSI C header files... (cached) no
> checking complex.h usability... yes
> checking complex.h presence... no
> configure: WARNING: complex.h: accepted by the compiler, rejected by the 
> preprocessor!
> configure: WARNING: complex.h: proceeding with the compiler's result
> checking for complex.h... yes
> checking locale.h usability... yes

gcc -static doesn't work?
libtool doesn't support shared libraries?
complex.h? Wow.
I did find this:
http://www.mail-archive.com/autoconf@xxxxxxx/msg09268.html ,
but I don't know what to do about it.

Eventually the script crashes,
complaining about the absence of build/genmodes .h .
>echo timestamp > s-options
>gawk -f ../../../source/gcc-4.5.1/gcc/opt-functions.awk -f ../../../source/gcc-4.5.1/gcc/opth-gen.awk \
>	       < optionlist > tmp-options.h
>/bin/sh ../../../source/gcc-4.5.1/gcc/../move-if-change tmp-options.h options.h
>echo timestamp > s-options-h
>TARGET_CPU_DEFAULT="" \
>	HEADERS="auto-host.h ansidecl.h" DEFINES="" \
>	/bin/sh ../../../source/gcc-4.5.1/gcc/mkconfig.sh bconfig.h
>gcc -c  -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat   -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../../../source/gcc-4.5.1/gcc -I../../../source/gcc-4.5.1/gcc/build -I../../../source/gcc-4.5.1/gcc/../include -I../../../source/gcc-4.5.1/gcc/../libcpp/include -I/usr/local/avr/source/gcc-4.5.1/gmp -I/usr/local/avr/build/gcc-4.5.1/./mpfr -I/usr/local/avr/source/gcc-4.5.1/mpfr -I/usr/local/avr/source/gcc-4.5.1/mpc/src  -I../../../source/gcc-4.5.1/gcc/../libdecnumber -I../../../source/gcc-4.5.1/gcc/../libdecnumber/dpd -I../libdecnumber   -I/usr/include/libelf  \
>		-o build/errors.o ../../../source/gcc-4.5.1/gcc/errors.c
>build/genmodes -h > tmp-modes.h
>/bin/sh: build/genmodes: No such file or directory
>make[2]: *** [s-modes-h] Error 127
>make[2]: Leaving directory `/usr/local/avr/build/gcc-4.5.1/gcc'
>make[1]: *** [install-gcc] Error 2
>make[1]: Leaving directory `/usr/local/avr/build/gcc-4.5.1'
>make: *** [install] Error 2
> (./buildavr-toolchain.sh)GCCC build failed

The last line also contained control characters
that didn't cut and paste very well.

I'm told that this output is a symptom of running
the script from inside the build directory.
Since I didn't do that, there must be another explanation.

Any ideas?

--
Michael   hennebry@xxxxxxxxxxxxxxxxxxxxx
"On Monday, I'm gonna have to tell my kindergarten class,
whom I teach not to run with scissors,
that my fiance ran me through with a broadsword."  --  Lily
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux