LinuxQuestions.org
Review your favorite Linux distribution.
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-05-2013, 02:43 AM   #1
McZ
Member
 
Registered: Aug 2012
Posts: 42

Rep: Reputation: Disabled
LFS-7.3: 6.17 Gcc-4.7.2, ld cannot find crti.o?


I am updating my scripts for LFS-7.3 and I am building using LFS-7.2 as host.

Anyway, Gcc 4.7.2 in chapter 6.17 is failing, ld can't find crti.o even though the toolchain test works and crt*.o is in /usr/lib/ (and /tools/lib) and all packages before GCC (and after adjusting toolchain) works, so why can't gcc find crti.o?

Running the toolchain tests after GCC failed will still work as intended.

Last edited by McZ; 03-05-2013 at 07:05 AM. Reason: Solved
 
Old 03-05-2013, 03:02 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Can you post which step and the errors it produces (incl. 5 to 10 lines before the error)?
 
Old 03-05-2013, 03:20 AM   #3
McZ
Member
 
Registered: Aug 2012
Posts: 42

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by druuna View Post
Can you post which step and the errors it produces (incl. 5 to 10 lines before the error)?
http://i.imgur.com/37r0T0T.png

I hope a screenshot will do, and ignore that the VM is named LFS-7.1 it has been upgraded to 7.2 but not the name of the machine.

AFAIK the script is failing on make after configure

EDIT: imgur is overloaded.. new link http://img404.imageshack.us/img404/3...dcrtierror.png and toolchain test script output http://img835.imageshack.us/img835/3...lchaintest.png

Last edited by McZ; 03-05-2013 at 03:34 AM.
 
Old 03-05-2013, 03:39 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
If you use scripts to install, this might be a bit harder to troubleshoot.

Did you have any problems with 6.10. Adjusting the Toolchain, especially this step:
Code:
grep -o '/usr/lib.*/crt[1in].*succeeded' dummy.log

 If everything is working correctly, there should be no errors, and the output of the last command will be: 
/usr/lib/crt1.o succeeded
/usr/lib/crti.o succeeded
/usr/lib/crtn.o succeeded
To find out if this is a scripting problem or not you could try doing these steps (and leading up to gcc) manually.

EDIT: McZ edited his post while I was replying.

Last edited by druuna; 03-05-2013 at 03:40 AM.
 
Old 03-05-2013, 05:05 AM   #5
McZ
Member
 
Registered: Aug 2012
Posts: 42

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by druuna View Post
If you use scripts to install, this might be a bit harder to troubleshoot.

Did you have any problems with 6.10. Adjusting the Toolchain, especially this step:
Code:
grep -o '/usr/lib.*/crt[1in].*succeeded' dummy.log

 If everything is working correctly, there should be no errors, and the output of the last command will be: 
/usr/lib/crt1.o succeeded
/usr/lib/crti.o succeeded
/usr/lib/crtn.o succeeded
To find out if this is a scripting problem or not you could try doing these steps (and leading up to gcc) manually.

EDIT: McZ edited his post while I was replying.
I tried building gcc manually in my chroot environment but it still fails, and it fail on make. I don't understand why it fails when other packages before can be compiled.
 
Old 03-05-2013, 05:38 AM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
LFS 7.3 is rather new and although people have build it successfully (me included), it is not at a point that I would say it is 100% stable (also based on post on the mailing list) and first errata is already present).

On the other hand is the use of scripts to automate the build, which could also be the culprit.

If it where up to me I would restart chapter 6 and do it by hand to make sure the steps work (or not). If they do work then the error must be in the script(s).
 
Old 03-05-2013, 07:04 AM   #7
McZ
Member
 
Registered: Aug 2012
Posts: 42

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by druuna View Post
LFS 7.3 is rather new and although people have build it successfully (me included), it is not at a point that I would say it is 100% stable (also based on post on the mailing list) and first errata is already present).

On the other hand is the use of scripts to automate the build, which could also be the culprit.

If it where up to me I would restart chapter 6 and do it by hand to make sure the steps work (or not). If they do work then the error must be in the script(s).
I have solved the problem. I am building using x86_64 host and due to earlier problems I am forcing libraries into /usr/lib64 with --libdir=/usr/lib64 the problem was that my script to create all directories for some unknown reason bugged on me and didn't create /usr/lib thus /usr/lib/../lib64/crti.o cannot be found.

Not exactly easy to find since I'm not following the book due too my extra --libdir switch.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] cannot find crti.o: No such file or directory mahmoodn Ubuntu 2 02-07-2013 09:57 AM
Gcc 4.6.1 can't Find in /mnt/lfs/tools on LFS verison 7.0 using LFS_TGT xerofoify Linux From Scratch 20 08-03-2012 01:55 PM
gcc 4.6.2 on Redhat missing crti.o tbodine88 Red Hat 3 02-06-2012 07:02 AM
Compiling GCC - crti.o not recognised compused Linux - Software 0 01-29-2012 08:19 AM


All times are GMT -5. The time now is 08:11 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration