Hi,

I can built avr-libc 1.8.0 just fine with the following commands:

[johnpatcher@vpcs avr-libc-1.8.0]$ ./configure
--build=x86_64-unknown-linux-gnu --host=avr --prefix=/usr
[johnpatcher@vpcs avr-libc-1.8.0]$ make

However, the same won't work for avr-libc 1.8.1 as it complains about a
device type not being defined:

The output is quite long, but essentially it looks something like this:

avr-gcc -DHAVE_CONFIG_H -I. -I../../../..  -I../../../../common
-I../../../../include -I../../../../include  -I../../../../common
-I../../../../include -I../../../../include -x assembler-with-cpp
-mmcu=atxmega256a3bu  -DIOSYMFILE=\"iosym/atxmega256a3bu.S\"   -MT
gcrt1.o -MD -MP -MF .deps/gcrt1.Tpo -c -o gcrt1.o ../../../../crt1/gcrt1.S
In file included from ../../../../common/macros.inc:39:0,
                 from ../../../../crt1/gcrt1.S:40:
../../../../include/avr/io.h:530:6: warning: #warning "device type not
defined" [-Wcpp]
 #    warning "device type not defined"
      ^
../../../../crt1/gcrt1.S: Assembler messages:
../../../../crt1/gcrt1.S:55: Error: non-constant expression in ".if"
statement

[...]

Makefile:411: recipe for target 'gcrt1.o' failed
make[5]: *** [gcrt1.o] Error 1

I've found this thread [1] with an answer from Joerg Wunsch, but I'm not
sure what to make of it. Is this a mistake on my side (why does it work
for avr-libc 1.8.0 then?) or is there something wrong with the build
tools? My avr-gcc version is 4.9.0 in case it makes any difference.

Thanks in advance!

Best regards,
Karol Babioch

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to