comp.lang.ada
 help / color / mirror / Atom feed
From: Lucretia <laguest9000@googlemail.com>
Subject: avr-ada fails to build
Date: Thu, 14 Jul 2016 10:59:56 -0700 (PDT)
Date: 2016-07-14T10:59:56-07:00	[thread overview]
Message-ID: <23f622ce-78c1-46c1-9003-158834054748@googlegroups.com> (raw)

Hi,

I'm having trouble building avr-ada, I've patched binutils-2.24 and gcc-4.9.3 using the patches supplied. I built with:

../../binutils-2.24/configure --prefix=$HOME/opt/avr-ada --target=avr --disable-nls --enable-doc --disable-werror --enable-languages=ada,c,c++ --with-dwarf2 --disable-libssp --disable-libada --with-bugurl=http://avr-ada.sourceforge.net --with-gmp=$HOME/opt/free-ada-new --with-mpfr=$HOME/opt/free-ada-new --with-mpc=$HOME/opt/free-ada-new --with-isl=$HOME/opt/free-ada-new --with-ppl=$HOME/opt/free-ada-new --disable-isl-version-check --disable-ppl-version-check

make -j6 && make install

../../gcc-4.9.3/configure --prefix=$HOME/opt/avr-ada --target=avr --disable-nls --enable-doc --disable-werror --enable-languages=ada,c,c++ --with-dwarf2 --disable-libssp --disable-libada --with-bugurl=http://avr-ada.sourceforge.net --with-gmp=$HOME/opt/free-ada-new --with-mpfr=$HOME/opt/free-ada-new --with-mpc=$HOME/opt/free-ada-new --with-isl=$HOME/opt/free-ada-new --with-ppl=$HOME/opt/free-ada-new --disable-isl-version-check --disable-ppl-version-check

make (parallel make fails, normal works) && make install

Installed libc:

../../avr-libc-2.0.0/configure --build=`../../avr-libc-2.0.0/config.guess` --host=avr --prefix=$HOME/opt/avr-ada

during configure, it does say that some are not supported by avr-gcc for some reason: The config.log says:

configure:5463: checking if avr-gcc has support for attiny2313
configure:5469: avr-gcc -c -mmcu=attiny2313  conftest.c >&5
configure:5469: $? = 0
configure:5480: result: yes

but on building avr-ada:

avr-gnatmake -XRTS=/mnt/data/src/others/ada/avr/avr-ada-code/avr/avr_lib/../../gcc-4.9-rts/ -P../avr_lib.gpr -XBOARD=teensyplusplus2 -XMCU=at90usb1286
avr-gnatmake: objects up to date.
avr-gnatmake -XRTS=/mnt/data/src/others/ada/avr/avr-ada-code/avr/avr_lib/../../gcc-4.9-rts/ -P../avr_lib.gpr -XBOARD=sparkfun8u2 -XMCU=atmega8u2
avr-gnatmake: objects up to date.
avr-gnatmake -XRTS=/mnt/data/src/others/ada/avr/avr-ada-code/avr/avr_lib/../../gcc-4.9-rts/ -P../avr_lib.gpr -XBOARD=trinket3v -XMCU=attiny85
avr-gnatmake: objects up to date.
gprbuild -p --config=local-avr.cgpr -P../threads_lib.gpr -XMCU=attiny2313
avr-gcc -c -Os -Wall -Werror avr-thread-switch.S
In file included from /mnt/data/src/others/ada/avr/avr-ada-code/avr/threads-1.3/src/avr-thread-switch.S:40:0:
/home/laguest/opt/avr-ada/avr/include/avr/io.h:581:6: error: #warning "device type not defined" [-Werror=cpp]
 #    warning "device type not defined"
      ^
cc1: all warnings being treated as errors
gprbuild: *** compilation phase failed
Makefile:121: recipe for target 'attiny2313/thread-lib/libavr-thread.a' failed
make[2]: *** [attiny2313/thread-lib/libavr-thread.a] Error 4
make[2]: Leaving directory '/mnt/data/src/others/ada/avr/avr-ada-code/avr/avr_lib'
Makefile:90: recipe for target 'build_libs' failed
make[1]: *** [build_libs] Error 2
make[1]: Leaving directory '/mnt/data/src/others/ada/avr/avr-ada-code/avr'
Makefile:118: recipe for target 'build_libs' failed
make: *** [build_libs] Error 2

any ideas?

Thanks,
Luke.


             reply	other threads:[~2016-07-14 17:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-14 17:59 Lucretia [this message]
2016-07-14 18:42 ` avr-ada fails to build Lucretia
2016-07-14 20:09   ` Lucretia
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox