|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Problems building binutils 2.19Hi!
I was updating my tool chain and starting with the binutils 2.19. Following the avr-libc manual, I downloaded binutils 2.19, unziped it, applied the following patches from the winavr SVN repositories: 30-binutils-2.19-avr-size.patch 31-binutils-2.19-avr-coff.patch 32-binutils-2.19-new-sections.patch 33-binutils-2.19-data-origin.patch 40-binutils-2.19-wrong-arch.patch 50-binutils-2.19-xmega.patch 51-binutils-2.19-xmega2.patch 52-binutils-2.19-atmega32u6.patch using the command: mypc:~/binutils-2.19> patch -p0 < 30-binutils-2.19-avr-size.patch and so on. Then: mypc:~/binutils-2.19> md obj-avr mypc:~/binutils-2.19> cd obj-avr mypc:~/binutils-2.19> ../configure --prefix=/usr/local/AVR --target=avr --disable-nls mypc:~/binutils-2.19> make And then I got these errors: /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c -o elf32-avr.lo ../../bfd/elf32-avr.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -I. -I../../bfd -I../../bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c ../../bfd/elf32-avr.c -o elf32-avr.o ../../bfd/elf32-avr.c: In function 'bfd_elf_avr_final_write_processing': ../../bfd/elf32-avr.c:1331: error: 'bfd_mach_avrxmega1' undeclared (first use in this function) ../../bfd/elf32-avr.c:1331: error: (Each undeclared identifier is reported only once ../../bfd/elf32-avr.c:1331: error: for each function it appears in.) ../../bfd/elf32-avr.c:1335: error: 'bfd_mach_avrxmega2' undeclared (first use in this function) ../../bfd/elf32-avr.c:1339: error: 'bfd_mach_avrxmega3' undeclared (first use in this function) ../../bfd/elf32-avr.c:1343: error: 'bfd_mach_avrxmega4' undeclared (first use in this function) ../../bfd/elf32-avr.c:1347: error: 'bfd_mach_avrxmega5' undeclared (first use in this function) ../../bfd/elf32-avr.c:1351: error: 'bfd_mach_avrxmega6' undeclared (first use in this function) ../../bfd/elf32-avr.c:1355: error: 'bfd_mach_avrxmega7' undeclared (first use in this function) ../../bfd/elf32-avr.c: In function 'elf32_avr_object_p': ../../bfd/elf32-avr.c:1422: error: 'bfd_mach_avrxmega1' undeclared (first use in this function) ../../bfd/elf32-avr.c:1426: error: 'bfd_mach_avrxmega2' undeclared (first use in this function) ../../bfd/elf32-avr.c:1430: error: 'bfd_mach_avrxmega3' undeclared (first use in this function) ../../bfd/elf32-avr.c:1434: error: 'bfd_mach_avrxmega4' undeclared (first use in this function) ../../bfd/elf32-avr.c:1438: error: 'bfd_mach_avrxmega5' undeclared (first use in this function) ../../bfd/elf32-avr.c:1442: error: 'bfd_mach_avrxmega6' undeclared (first use in this function) ../../bfd/elf32-avr.c:1446: error: 'bfd_mach_avrxmega7' undeclared (first use in this function) make[4]: *** [elf32-avr.lo] Error 1 I assume I'm doing something wrong, as I found no one else reporting this problem, so I would like to know what am I doing wrong. Thanks! _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@... http://lists.nongnu.org/mailman/listinfo/avr-libc-dev |
|
|
Re: Problems building binutils 2.19As rr wrote:
> ../../bfd/elf32-avr.c: In function 'bfd_elf_avr_final_write_processing': > ../../bfd/elf32-avr.c:1331: error: 'bfd_mach_avrxmega1' undeclared > (first use in this function) One of Eric's patch patches a file that is then to be used as a master to generate some other files from. You have to regenerate those dependant files by running the bootstrap script again (which in turn will run the autoconf/automake tools). If you don't like this, you could alternatively use the patches from the FreeBSD port of avr-binutils (as it's e.g. done in Bingo600's Linux toolchain buildscript on avrfreaks.net). The respective patch there does not only patch the master but also the respective generated files. -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@... http://lists.nongnu.org/mailman/listinfo/avr-libc-dev |
|
|
RE: Problems building binutils 2.19> -----Original Message----- > From: > avr-libc-dev-bounces+eric.weddington=atmel.com@... > [mailto:avr-libc-dev-bounces+eric.weddington=atmel.com@nongnu. > org] On Behalf Of Joerg Wunsch > Sent: Tuesday, August 18, 2009 5:08 AM > To: avr-libc-dev@... > Subject: Re: [avr-libc-dev] Problems building binutils 2.19 > > As rr wrote: > > > ../../bfd/elf32-avr.c: In function > 'bfd_elf_avr_final_write_processing': > > ../../bfd/elf32-avr.c:1331: error: 'bfd_mach_avrxmega1' undeclared > > (first use in this function) > > One of Eric's patch patches a file that is then to be used as a master > to generate some other files from. You have to regenerate those > dependant files by running the bootstrap script again (which in turn > will run the autoconf/automake tools). > > If you don't like this, you could alternatively use the patches from > the FreeBSD port of avr-binutils (as it's e.g. done in Bingo600's > Linux toolchain buildscript on avrfreaks.net). The respective patch > there does not only patch the master but also the respective generated > files. And specifically, this is what I do in my build script after configuration: make maybe-configure-bfd 2>&1 | tee $project-make-configure-bfd.log make -C bfd headers 2>&1 | tee $project-make-headers.log make all html install install-html 2>&1 | tee $project-make.log _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@... http://lists.nongnu.org/mailman/listinfo/avr-libc-dev |
|
|
Re: Problems building binutils 2.19Weddington, Eric wrote:
> > >> -----Original Message----- >> From: >> avr-libc-dev-bounces+eric.weddington=atmel.com@... >> [mailto:avr-libc-dev-bounces+eric.weddington=atmel.com@nongnu. >> org] On Behalf Of Joerg Wunsch >> Sent: Tuesday, August 18, 2009 5:08 AM >> To: avr-libc-dev@... >> Subject: Re: [avr-libc-dev] Problems building binutils 2.19 >> >> As rr wrote: >> >>> ../../bfd/elf32-avr.c: In function >> 'bfd_elf_avr_final_write_processing': >>> ../../bfd/elf32-avr.c:1331: error: 'bfd_mach_avrxmega1' undeclared >>> (first use in this function) >> One of Eric's patch patches a file that is then to be used as a master >> to generate some other files from. You have to regenerate those >> dependant files by running the bootstrap script again (which in turn >> will run the autoconf/automake tools). This is not the first time I build the AVR tool chain in Linux, and I remember reading in some mailing list that both of you (Joerg and Eric) had different patches for the tools, but the Eric's patches were more complete than Joerg ones. Question: Which patches should we use? The patches found in "http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/avr-binutils/files/" have any special order to patch? I am going to install binutils 2.19. Should I use 2.19.1 patches too? If I'd install binutils 2.19.1, should I use 2.19 patches too? >> >> If you don't like this, you could alternatively use the patches from >> the FreeBSD port of avr-binutils (as it's e.g. done in Bingo600's >> Linux toolchain buildscript on avrfreaks.net). The respective patch >> there does not only patch the master but also the respective generated >> files. > > And specifically, this is what I do in my build script after configuration: > > make maybe-configure-bfd 2>&1 | tee $project-make-configure-bfd.log > make -C bfd headers 2>&1 | tee $project-make-headers.log > make all html install install-html 2>&1 | tee $project-make.log Eric: Thanks! It worked ok now. > > > > _______________________________________________ > AVR-libc-dev mailing list > AVR-libc-dev@... > http://lists.nongnu.org/mailman/listinfo/avr-libc-dev > _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@... http://lists.nongnu.org/mailman/listinfo/avr-libc-dev |
|
|
RE: Problems building binutils 2.19> -----Original Message----- > From: > avr-libc-dev-bounces+eric.weddington=atmel.com@... > [mailto:avr-libc-dev-bounces+eric.weddington=atmel.com@nongnu. > org] On Behalf Of rr > Sent: Tuesday, August 18, 2009 9:06 AM > To: avr-libc-dev@... > Subject: Re: [avr-libc-dev] Problems building binutils 2.19 > > Question: Which patches should we use? In general, Joerg and I try to have an equivalent set of patches, though at times one or the other of us is off by a release. If one of us is off, then just let us know and we'll get the situation resolved. > > The patches found in > "http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/avr-binutil > s/files/" > have any special order to patch? > I am going to install binutils 2.19. Should I use 2.19.1 patches too? > If I'd install binutils 2.19.1, should I use 2.19 patches too? IIRC, 2.19.1 has one of the AVR specfici 2.19 patches committed. So if you use 2.19 + patches, then this should be equivalent to 2.19.1. There were not very many changes between 2.19 and 2.19.1 and IIRC, they were mostly port specific. _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@... http://lists.nongnu.org/mailman/listinfo/avr-libc-dev |
| Free embeddable forum powered by Nabble | Forum Help |