I wanted to add that I was wrong below about the /tools/bin/gcc -v command line saying that the target is i686-pc-linux-gnu. It does say that it is i586-pc-linux-gnu. I'm assuming the others say i686, but they are actually i586 as they are built with a gcc compiler built for i586. Also, I reran my script and I have the same error when building Ncurses. The error I gave below is slightly wrong as the target was /usr/share/terminfo and not /tools/share/terminfo.
I looked into this further and found out that the run_tic.sh was failing on line 114 when it was executin the following.
if ( $SHLIB tic$suffix -x -s -o $TERMINFO $source )
Looking into the variables I found out the above line was running the following command.
sh ./shlib tic -x -s -o /usr/share/terminfo terminfo.tmp
I'm not sure what set the variable SHLIB, but when I removed it from the script the script then ran perfectly. This solves the problem, but I'm curious what caused it. Does anyone know what might have lead to this happening?
---------- Forwarded message ----------
From: Brenden Capps <[EMAIL PROTECTED]>
Date: Aug 3, 2006 2:10 PM
Subject: x86 Ncurses Build Error
To: [email protected]
I am trying to
create a lfs for a Pentium (i586) computer from a P4 (i686) running OpenSuSE 10.1 using CLFS1.0.0rc3. I have made it through the chapter 9 and have chrooted to /mnt/clfs. When I get to
10.14 (Installing Ncurses) I get a compiler error:
This error was reported by another user on the mailing list at http://linuxfromscratch.org/pipermail/lfs-dev/2006-February/055869.html , but the problem was never fully diagnosed. The user simply switched the host system he was using.
There are a couple of things I have noticed. First, entering /usr/bin/gcc -v or /tools/bin/gcc -v at the command line says that the target is i686-pc-linux-gnu and every configure in chapter 10 says that the host, build and target options are i686-pc-linux-gnu. That doesn't seem right to me, but maybe it is. Second, there were some errors when running through the test suite of gcc in section 10.9. The book says that some will exist, but I'm not sure about the severity of the errors. The book in section 10.3 claims that there are build logs at http://trac.cross-lfs.org/clfs/build-logs/1.0.0rc3 , but when I go to the website I get an error. Did the logs move to a different site? Finally, when I run tic -x -s -o /tools/share/terminfo terminfo.tmp from the terminal it works just fine. (Note the terminalis in the chroot jail. If I run make install from the Ncurses directory I get the fault, but if I run the line it faults on it works fine.) It also works fine in section 6.5.
I am running through the build from the start just to see if there was an error that I missed early on. I'm also going to watch the creation of /tools/bin/gcc more closely. Any help would be appreciated. Thanks.
--
./shlib: line 140: 21535 Segmentation fault tic -x -s -o /
tools/share/terminfo terminfo.tmp
? tic could not build /tools/share/terminfo
make[1]: *** [install.data] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/ncurses-5.5/misc'
make: *** [install] Error 2
This error was reported by another user on the mailing list at http://linuxfromscratch.org/pipermail/lfs-dev/2006-February/055869.html , but the problem was never fully diagnosed. The user simply switched the host system he was using.
There are a couple of things I have noticed. First, entering /usr/bin/gcc -v or /tools/bin/gcc -v at the command line says that the target is i686-pc-linux-gnu and every configure in chapter 10 says that the host, build and target options are i686-pc-linux-gnu. That doesn't seem right to me, but maybe it is. Second, there were some errors when running through the test suite of gcc in section 10.9. The book says that some will exist, but I'm not sure about the severity of the errors. The book in section 10.3 claims that there are build logs at http://trac.cross-lfs.org/clfs/build-logs/1.0.0rc3 , but when I go to the website I get an error. Did the logs move to a different site? Finally, when I run tic -x -s -o /tools/share/terminfo terminfo.tmp from the terminal it works just fine. (Note the terminalis in the chroot jail. If I run make install from the Ncurses directory I get the fault, but if I run the line it faults on it works fine.) It also works fine in section 6.5.
I am running through the build from the start just to see if there was an error that I missed early on. I'm also going to watch the creation of /tools/bin/gcc more closely. Any help would be appreciated. Thanks.
--
Brenden Capps
--
Brenden Capps
_______________________________________________ Clfs-support mailing list [email protected] http://lists.cross-lfs.org/cgi-bin/mailman/listinfo/clfs-support
