Yup that was the bugger....

Note my version of the book was edited from 20060717 snapshot, so it does not use the new tool chain build method. The version of jhalfs I used came right off the lfslivecd-x86-6.2-1.iso. I need to edit the jhalfs script for hlfs a tad more before I up that.(Still need to change the kernel-header section in ch06) I also removed uClibc from my version as I have very little experience with it so far. (I intend on looking at it more in the coming weeks) So far I have not added the Makedev script, or changed the bootscripts so this is not a working version of the book, but it compiles to completion with the commands given. My version of the book can be found in HTML, or XML at:

http://www.netslyder.net/hlfs

These are company servers, so I will have to pull this off after a few weeks.

As for the bin-utils issue I have this book reverted to 2.16.1 while I look into what this problem is. I wanted to get the system building to get further into editing the book to use a 2.4 kernel.

Robert Connolly wrote:
I think I'm having the same problem you reported with binutils-2.17 and gcc-3.4.6. I get: gcc -DHAVE_CONFIG_H -I. -I../../embryo-toolchain/opcodes -I. -D_GNU_SOURCE -I. -I../../embryo-toolchain/opcodes -I../bfd -I../../embryo-toolchain/opcodes/../include -I../../embryo-toolchain/opcodes/../bfd -I../../embryo-toolchain/opcodes/../intl -I../intl -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c ../../embryo-toolchain/opcodes/dis-buf.c -fPIC -DPIC -o dis-buf.o
In file included from ../../embryo-toolchain/opcodes/dis-buf.c:21:
../../embryo-toolchain/opcodes/../include/dis-asm.h:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ATTRIBUTE_FPTR_PRINTF_2'

I noticed DIY uses both binutils-2.17 and gcc-3.4.6, and they don't seem to have any problem with it. This error is from my host's gcc-4.1.1. I also noticed uclinux has patches for binutils-2.17+gcc-3.4.6. Historically speaking, Binutils should be able to build with slightly older GCC versions.

robert

---
[This E-mail scanned for viruses courtesy of Netslyder, 
Inc.(http://www.netslyder.net)]

--
http://linuxfromscratch.org/mailman/listinfo/hlfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to