comp.lang.ada
 help / color / mirror / Atom feed
* avr-ada fails to build
@ 2016-07-14 17:59 Lucretia
  2016-07-14 18:42 ` Lucretia
  0 siblings, 1 reply; 3+ messages in thread
From: Lucretia @ 2016-07-14 17:59 UTC (permalink / 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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: avr-ada fails to build
  2016-07-14 17:59 avr-ada fails to build Lucretia
@ 2016-07-14 18:42 ` Lucretia
  2016-07-14 20:09   ` Lucretia
  0 siblings, 1 reply; 3+ messages in thread
From: Lucretia @ 2016-07-14 18:42 UTC (permalink / raw)


I've also done each step separately, and it still fails:

make build_rts
make install_rts
make build_libs


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: avr-ada fails to build
  2016-07-14 18:42 ` Lucretia
@ 2016-07-14 20:09   ` Lucretia
  0 siblings, 0 replies; 3+ messages in thread
From: Lucretia @ 2016-07-14 20:09 UTC (permalink / raw)


On Thursday, 14 July 2016 19:43:00 UTC+1, Lucretia  wrote:
> I've also done each step separately, and it still fails:
> 
> make build_rts
> make install_rts
> make build_libs

Seems to be a problem with my gprbuild-2014, kept knocking ""-mmcu=" & MCU" out of Flags and if I put a space before the '-' it would get put in but avr-gcc would then think it was a file and couldn't find it.

Used the gprbuild from gnat-gpl-2016 and it built and installed.

What a pain.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-07-14 20:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-14 17:59 avr-ada fails to build Lucretia
2016-07-14 18:42 ` Lucretia
2016-07-14 20:09   ` Lucretia

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