LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 03-24-2011, 03:14 AM   #1
antonio.moschini@nsn.com
LQ Newbie
 
Registered: Feb 2011
Posts: 2

Rep: Reputation: 0
Linux From Scratch - Version 6.7 GCC-4.5.1 - Pass 2 Error on libiberty.an


Hi all,
I am having problem on the generation of LFS using the document version 6.7. The problem is the following:
At chapter 5.10 during the generation of GCC-4.5.1 - Pass 2 there is a problem around libiberty.an file. Here below the error section:
Code:
if test -n ""; then \
  case "" in \
    /*)    thd=;; \
    *)     thd=/tools/include/;; \
  esac; \
  /bin/sh ../../gcc-4.5.1/libiberty/../mkinstalldirs ${thd}; \
  for h in ../../gcc-4.5.1/libiberty/../include/ansidecl.h ../../gcc-4.5.1/libiberty/../include/demangle.h ../../gcc-4.5.1/libiberty/../include/dyn-string.h ../../gcc-4.5.1/libiberty/../include/fibheap.h ../../gcc-4.5.1/libiberty/../include/floatformat.h ../../gcc-4.5.1/libiberty/../include/hashtab.h ../../gcc-4.5.1/libiberty/../include/libiberty.h ../../gcc-4.5.1/libiberty/../include/objalloc.h ../../gcc-4.5.1/libiberty/../include/partition.h ../../gcc-4.5.1/libiberty/../include/safe-ctype.h ../../gcc-4.5.1/libiberty/../include/sort.h ../../gcc-4.5.1/libiberty/../include/splay-tree.h; do \
    /usr/bin/install -c -m 644 $h ${thd}; \
  done; \
fi
libtool: install: (cd /tools/lib && { ln -s -f libssp.so.0.0.0 libssp.so.0 || { rm -f libssp.so.0 && ln -s libssp.so.0.0.0 libssp.so.0; }; })
/usr/bin/install: warning: /tools/lib/././libiberty.an: failed to change context to system_u:object_r:default_t:s0: No such file or directory
( cd /tools/lib/`/opt/LFS/sources/build/./gcc/xgcc -B/opt/LFS/sources/build/./gcc/ -B/tools/i686-pc-linux-gnu/bin/ -B/tools/i686-pc-linux-gnu/lib/ -isystem /tools/i686-pc-linux-gnu/include -isystem /tools/i686-pc-linux-gnu/sys-include    -g -O2 -print-multi-os-directory` ; chmod 644 ./libiberty.an ;/tools/i686-pc-linux-gnu/bin/ranlib ./libiberty.an )
make[2]: Leaving directory `/opt/LFS/sources/build/libiberty'
libtool: install: (cd /tools/lib && { ln -s -f libssp.so.0.0.0 libssp.so || { rm -f libssp.so && ln -s libssp.so.0.0.0 libssp.so; }; })
libtool: install: /usr/bin/install -c .libs/libssp.lai /tools/lib/libssp.la
 /bin/sh ./libtool   --mode=install /usr/bin/install -c   libmudflap.la libmudflapth.la '/tools/lib'
chmod: cannot access `./libiberty.an': No such file or directory
/tools/i686-pc-linux-gnu/bin/ranlib: './libiberty.an': No such file
make[2]: *** [install_to_libdir] Error 1
make[2]: Leaving directory `/opt/LFS/sources/build/i686-pc-linux-gnu/libiberty'
make[1]: *** [install-target-libiberty] Error 2
make[1]: *** Waiting for unfinished jobs....
To generate LFS I am working on a Virtual Machine; here below is a description of my environment:
1) Host Machine is a Fedora 14 x86_64 distro (Linux ipmientry.milrd.nsn-rdnet.net 2.6.35.6-45.fc14.x86_64 #1 SMP Mon Oct 18 23:57:44 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux);
2) Virtual Machine is hosted on VirtualBox (VirtualBox-4.0-4.0.4_70112_fedora14-1.x86_64);
3) The virtual Machine is a Fedora 14 i686 distro (Linux localhost.localdomain 2.6.35.6-45.fc14.i686 #1 SMP Mon Oct 18 23:56:17 UTC 2010 i686 i686 i386 GNU/Linux).
I would like to inform you that I had successfully generated LFS using the Host environment on x86_64.
Thanks in advance for all the info you will give me to overcome this prolem :-)
Best Regards
Antonio Moschini
 
Old 03-25-2011, 12:43 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Have you verified if the file as actually there or not?
 
Old 03-28-2011, 01:48 AM   #3
antonio.moschini@nsn.com
LQ Newbie
 
Registered: Feb 2011
Posts: 2

Original Poster
Rep: Reputation: 0
Sorry but I don't understand your question ;-(
The file libiberty.an was not present neither into the build subfolder (the one from which is asked to generate the build) nor into gcc-4.5.1 subfolder.
Thanks again
Antonio Moschini
 
Old 03-28-2011, 03:48 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

I did notice that you did not use the directories the book tells you to. $LFS points to /opt/LFS (which can be ok, as long as you do this everywhere), you also use build instead of gcc-build (or binutils-build) as separate build directory.

- Are you sure that you did not make a mistake somewhere?
- Did you remove the source and build directories after you finished? This must always be done, but especially if you use build for binutils _and_ for gcc.

libiberty in general is provided by binutils, not gcc (did the build of binutils go ok?).

About libiberty.an: This file is created/used during the make step. It is not present before or after that step.

Another thing I just now noticed:
Quote:
make[1]: *** Waiting for unfinished jobs....
Did you unset the possible extra build flags? This from chapter 5.10:
Quote:
Before starting to build GCC, remember to unset any environment variables that override the default optimization flags.
I'm guessing that this should be your first concern......

Hope this helps.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gcc second pass does not compile. LFS version 6.4 5.12 arielsegal Linux From Scratch 18 06-15-2009 11:12 AM
unable to compile gcc 4.1.2 pass 1 version 6.3 Abdou_ENSI Linux From Scratch 2 01-30-2009 11:28 AM
make: *** [configure-libiberty] Error 1 in 5.4. Binutils-2.15.91.0.2 - Pass 1 Flash_G Linux From Scratch 3 06-30-2005 08:51 PM
odd problem with GCC pass 1... :scratch: ParticleHunter Linux From Scratch 15 12-05-2004 10:21 PM
gcc-3.3.3 compling(configure-target-libiberty error 1) windus Linux - Software 0 04-18-2004 12:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 12:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration