The last time I tried to build LFS using a profile was using the 6.0 live CD to build a 6.0 system. I am using that same CD to build profile-LFS-SVN.tar.bz2 I downloaded on 9/21/05. The version is SVN-6819. I have noticed some things have changed since 6.0. For instance, the settingenvironment.xml file in chapter 5 now just copies the files from the skeleton directory instead of using a textdump; which is where I run into my first problem.

The first occurs as the script tries to copy dot_bash_profile to the /home/lfs directory:

***********************************************************************
-: cp /tools/skeleton-SVN-6819/home/lfs/dot_bash_profile /home/lfs/.bash_profile Cannot stat /tools/skeleton-SVN-6819/home/lfs/dot_bash_profile: Permission denied
***********************************************************************

I have checked and the file exists. I can manually stat the file at the prompt and see that the permissions are 0644 and owned by root:root. I decided to change to the lfs user the script uses at a terminal and try to do a manual copy and I get the same error the script does. It seems like the lfs user doesn't have permission to read the file. A workaround I have tried is to modify the profile to just forget using the lfs user at all and do everything as root which has worked fine so far. What is happening here?

Secondly, I noticed that the kernel-headers.xml still exists in the chapter 5 directory even though it is not <xi> included in the main LFS.xml file. I also notice that this step was removed the LFS book. In past profiles (as per 6.0) it was included. Should this file be removed?

My next problem may or may not be a result of the kernel-headers.xml file. After starting to run the profile everything is fine (binutils-p1, gcc4-p1, glibc, libc-headers, toolchain) up until it gets to the tcl package and gives me the following errors:

***********************************************************************
I: Executing in /tools/build/tcl8.4.11/unix:
I:     make
-: gcc -pipe -c -O2 -O2 -march=pentium3 -DTCL_DBGX= -Wall -Wno-implicit-int -fno-strict-aliasing -fPIC -I./../generic -I. -DPEEK_XCLOSEIM=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_OPEN64=1 -DHAVE_LSEEK64=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DNO_DIRENT_H=1 -DNO_FLOAT_H=1 -DNO_VALUES_H=1 -DNO_LIMITS_H=1 -DNO_STDLIB_H=1 -DNO_STRING_H=1 -DNO_SYS_WAIT_H=1 -DNO_DLFCN_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_SELECT_H=1 -DTM_IN_SYS_TIME=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -Dsize_t=unsigned -DNO_UNION_WAIT=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_PUTENV_THAT_COPIES=1 -DHAVE_LANGINFO=1 -DHAVE_SYS_IOCTL_H=1 -DTCL_SHLIB_EXT=\".so\" ./../generic/regcomp.c
-: In file included from ./../generic/tcl.h:158,
-:                  from ./../generic/tclInt.h:32,
-:                  from ./../generic/regcustom.h:30,
-:                  from ./../generic/regguts.h:38,
-:                  from ./../generic/regcomp.c:33:
-: /tools/include/stdio.h:34:21: error: stddef.h: No such file or directory
-: In file included from /tools/include/stdio.h:72,
-:                  from ./../generic/tcl.h:158,
-:                  from ./../generic/tclInt.h:32,
-:                  from ./../generic/regcustom.h:30,
-:                  from ./../generic/regguts.h:38,
-:                  from ./../generic/regcomp.c:33:
-: /tools/include/libio.h:53:21: error: stdarg.h: No such file or directory
-: In file included from /tools/include/stdio.h:72,
-:                  from ./../generic/tcl.h:158,
-:                  from ./../generic/tclInt.h:32,
-:                  from ./../generic/regcustom.h:30,
-:                  from ./../generic/regguts.h:38,
-:                  from ./../generic/regcomp.c:33:
-: /tools/include/libio.h:475: error: syntax error before '__gnuc_va_list'
-: /tools/include/libio.h:477: error: syntax error before '__gnuc_va_list'
-: In file included from ./../generic/tcl.h:158,
-:                  from ./../generic/tclInt.h:32,
-:                  from ./../generic/regcustom.h:30,
-:                  from ./../generic/regguts.h:38,
-:                  from ./../generic/regcomp.c:33:
-: /tools/include/stdio.h:337: error: syntax error before '__gnuc_va_list'
-: /tools/include/stdio.h:342: error: syntax error before '__gnuc_va_list'
-: /tools/include/stdio.h:345: error: syntax error before '__gnuc_va_list'
-: /tools/include/stdio.h:356: error: syntax error before '__gnuc_va_list'
-: In file included from /tools/include/stdio.h:828,
-:                  from ./../generic/tcl.h:158,
-:                  from ./../generic/tclInt.h:32,
-:                  from ./../generic/regcustom.h:30,
-:                  from ./../generic/regguts.h:38,
-:                  from ./../generic/regcomp.c:33:
-: /tools/include/bits/stdio.h:34: error: syntax error before '__gnuc_va_list'
-: /tools/include/bits/stdio.h: In function 'vprintf':
-: /tools/include/bits/stdio.h:36: error: '__fmt' undeclared (first use in this function) -: /tools/include/bits/stdio.h:36: error: (Each undeclared identifier is reported only once
-: /tools/include/bits/stdio.h:36: error: for each function it appears in.)
-: /tools/include/bits/stdio.h:36: error: '__arg' undeclared (first use in this function)
-: In file included from ./../generic/tcl.h:2290,
-:                  from ./../generic/tclInt.h:32,
-:                  from ./../generic/regcustom.h:30,
-:                  from ./../generic/regguts.h:38,
-:                  from ./../generic/regcomp.c:33:
-: ./../generic/tclDecls.h: At top level:
-: ./../generic/tclDecls.h:882: error: syntax error before 'va_list'
-: ./../generic/tclDecls.h:885: error: syntax error before 'va_list'
-: ./../generic/tclDecls.h:910: error: syntax error before 'va_list'
-: ./../generic/tclDecls.h:913: error: syntax error before 'va_list'
-: ./../generic/tclDecls.h:919: error: syntax error before 'va_list'
-: ./../generic/tclDecls.h:1956: error: syntax error before 'va_list'
-: ./../generic/tclDecls.h:1957: error: syntax error before 'va_list'
-: ./../generic/tclDecls.h:1964: error: syntax error before 'va_list'
-: ./../generic/tclDecls.h:1965: error: syntax error before 'va_list'
-: ./../generic/tclDecls.h:1967: error: syntax error before 'va_list'
-: In file included from /tools/include/limits.h:124,
-:                  from ./../generic/regguts.h:107,
-:                  from ./../generic/regcomp.c:33:
-: /usr/include/limits.h:124:26: error: no include path in which to search for limits.h
-: ./../generic/regcomp.c: In function 'dovec':
-: ./../generic/regcomp.c:1589: warning: passing argument 1 of 'free' from incompatible pointer type
-: In file included from ./../generic/regcomp.c:2177:
-: ./../generic/regc_nfa.c: In function 'combine':
-: ./../generic/regc_nfa.c:982: error: 'CHAR_BIT' undeclared (first use in this function)
-: make: *** [regcomp.o] Error 1
***********************************************************************

I have manually checked /tools/include and the files (stddef.h, stdarg.h) the compiler complained about are not there. They are however in /tools/include/linux. Again, what the hell am I doing wrong? :-)

Any help or guidance is appreciated.

Regards,
  jshivers


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

Reply via email to