From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.66.78.133 with SMTP id b5mr11769199pax.42.1468519197038; Thu, 14 Jul 2016 10:59:57 -0700 (PDT) X-Received: by 10.157.13.99 with SMTP id 90mr604319oti.7.1468519196978; Thu, 14 Jul 2016 10:59:56 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!hy1no1560456igb.0!news-out.google.com!d130ni2935ith.0!nntp.google.com!hy1no1560447igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 14 Jul 2016 10:59:56 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2.220.35.63; posting-account=L2-UcQkAAAAfd_BqbeNHs3XeM0jTXloS NNTP-Posting-Host: 2.220.35.63 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <23f622ce-78c1-46c1-9003-158834054748@googlegroups.com> Subject: avr-ada fails to build From: Lucretia Injection-Date: Thu, 14 Jul 2016 17:59:57 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:31085 Date: 2016-07-14T10:59:56-07:00 List-Id: 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=3D$HOME/opt/avr-ada --target=3Davr -= -disable-nls --enable-doc --disable-werror --enable-languages=3Dada,c,c++ -= -with-dwarf2 --disable-libssp --disable-libada --with-bugurl=3Dhttp://avr-a= da.sourceforge.net --with-gmp=3D$HOME/opt/free-ada-new --with-mpfr=3D$HOME/= opt/free-ada-new --with-mpc=3D$HOME/opt/free-ada-new --with-isl=3D$HOME/opt= /free-ada-new --with-ppl=3D$HOME/opt/free-ada-new --disable-isl-version-che= ck --disable-ppl-version-check make -j6 && make install ../../gcc-4.9.3/configure --prefix=3D$HOME/opt/avr-ada --target=3Davr --dis= able-nls --enable-doc --disable-werror --enable-languages=3Dada,c,c++ --wit= h-dwarf2 --disable-libssp --disable-libada --with-bugurl=3Dhttp://avr-ada.s= ourceforge.net --with-gmp=3D$HOME/opt/free-ada-new --with-mpfr=3D$HOME/opt/= free-ada-new --with-mpc=3D$HOME/opt/free-ada-new --with-isl=3D$HOME/opt/fre= e-ada-new --with-ppl=3D$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=3D`../../avr-libc-2.0.0/config.guess= ` --host=3Davr --prefix=3D$HOME/opt/avr-ada during configure, it does say that some are not supported by avr-gcc for so= me reason: The config.log says: configure:5463: checking if avr-gcc has support for attiny2313 configure:5469: avr-gcc -c -mmcu=3Dattiny2313 conftest.c >&5 configure:5469: $? =3D 0 configure:5480: result: yes but on building avr-ada: avr-gnatmake -XRTS=3D/mnt/data/src/others/ada/avr/avr-ada-code/avr/avr_lib/= ../../gcc-4.9-rts/ -P../avr_lib.gpr -XBOARD=3Dteensyplusplus2 -XMCU=3Dat90u= sb1286 avr-gnatmake: objects up to date. avr-gnatmake -XRTS=3D/mnt/data/src/others/ada/avr/avr-ada-code/avr/avr_lib/= ../../gcc-4.9-rts/ -P../avr_lib.gpr -XBOARD=3Dsparkfun8u2 -XMCU=3Datmega8u2 avr-gnatmake: objects up to date. avr-gnatmake -XRTS=3D/mnt/data/src/others/ada/avr/avr-ada-code/avr/avr_lib/= ../../gcc-4.9-rts/ -P../avr_lib.gpr -XBOARD=3Dtrinket3v -XMCU=3Dattiny85 avr-gnatmake: objects up to date. gprbuild -p --config=3Dlocal-avr.cgpr -P../threads_lib.gpr -XMCU=3Dattiny23= 13 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 "devi= ce type not defined" [-Werror=3Dcpp] # 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' fai= led make[2]: *** [attiny2313/thread-lib/libavr-thread.a] Error 4 make[2]: Leaving directory '/mnt/data/src/others/ada/avr/avr-ada-code/avr/a= vr_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.