Page 1 of 1

OS specific toolchain error

Posted: Thu Nov 01, 2012 10:07 am
by mariuszp
I was following the OS specific toolchain tutorial on the wiki, and I added the 'i586-pc-maddos' target for binutils and gcc. However, when I try to build binutils, configuration works properly (I use the command "../binutils-2.18.50/configure --target=$TARGET --prefix=$PREFIX"), but when I run make, I get the following error:

Code: Select all


cc1: warnings being treated as errors
../../binutils-2.18.50/binutils/dwarf.c: In function ‘print_dwarf_vma’:
../../binutils-2.18.50/binutils/dwarf.c:189: error: format not a string literal and no format arguments
make[4]: *** [dwarf.o] BÅ‚Ä…d 1
make[4]: Opuszczenie katalogu `/usr/src/build-binutils/binutils'
make[3]: *** [all-recursive] BÅ‚Ä…d 1
make[3]: Opuszczenie katalogu `/usr/src/build-binutils/binutils'
make[2]: *** [all] BÅ‚Ä…d 2
make[2]: Opuszczenie katalogu `/usr/src/build-binutils/binutils'
make[1]: *** [all-binutils] BÅ‚Ä…d 2
make[1]: Opuszczenie katalogu `/usr/src/build-binutils'
make: *** [all] BÅ‚Ä…d 2
I will attach the entire out of 'make'.

Does anyone know what could be wrong?

Re: OS specific toolchain error

Posted: Thu Nov 01, 2012 12:10 pm
by jnc100
I believe this is a binutils 2.18.50 error. Why not use a more modern version?

Check http://lists.gnu.org/archive/html/bug-b ... 00034.html

Regards,
John.