Re: Version 6.5 - 6.15.1 GCC compile failure

2009-12-02 Thread Mike McCarty
Mike McCarty wrote:
 Sean Porterfield wrote:
 As background, I'm using VirtualBox with the LFS LiveCD.  I haven't
 learned how to copy/paste from my real PC to the VirtualBox, so I'm
 typing everything by hand.
 
 It shouldn't be difficult to install the book on the virtual box.
 
 After compiling and installing gcc, I tried to compile dummy.c but it
 failed.  Any suggestions on how to figure out where I screwed up?

 dummy.log ends with:
 /usr/bin/ld: : No such file: No such file or directory
 collect2: ld returned 1 exit status
 
 This says that ld was not given a file named ' ' to link. That's

Sorry for the confusing sentence. That started out saying that
ld had not been passed a file name. It should read

The linker ld was given a file named ' '.

Mike
-- 
p=p=%c%s%c;main(){printf(p,34,p,34);};main(){printf(p,34,p,34);}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I speak only for myself, and I am unanimous in that!
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Version 6.5 - 6.15.1 GCC compile failure

2009-12-02 Thread Sean Porterfield
 Sean Porterfield wrote:
 dummy.log ends with:
 /usr/bin/ld: : No such file: No such file or directory
 collect2: ld returned 1 exit status
 
 This says that ld was not given a file named ' ' to link. That's
 quite odd. Or maybe not. Were there two spaces in that message?
 IOW, one space, like this /usr/bin/ld: : No... or
 two spaces, like this /usr/bin/ld:  : No...?

Definitely one space.

 If the former, then it was passed a parameter which was the empty
 string, if the latter, then a one space file name. Either one is
 pretty weird.


 What does
 
 $ gcc -dumpspecs
 
 produce?

A lot of text ;) which is one of the reasons I started off my post
saying I don't know how to copy/paste with my VirtualBox system.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Version 6.5 - 6.15.1 GCC compile failure

2009-12-02 Thread Sean Porterfield
 Sean Porterfield wrote:

 After compiling and installing gcc, I tried to compile dummy.c but it
 failed.  Any suggestions on how to figure out where I screwed up?

 From: Doug Downham

 In section 6.10, using version 6.5 of the LFS book, I've encountered a
 strange error.
 
 When I create dummy.c and run 'cc dummy.c -v -Wl, --verbose 
 dummy.log', a.out is not produced.  dummy.log says
 /tools/lib/gcc/i686-pc-linux-gnu/4.4.1/../../../../i686-pc-linux-gnu/bin/ld: 
 
 : No such file: No such file or directory.


Well...  Seeing as that's the same error message, I checked my `cc`
command.  Lo and behold, I keyed that same mystery space in.  I removed
the space, and all is well.  Onward and upward!  Thanks for everyone's
help on this.
--
Sean Porterfield
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Version 6.5 - 6.15.1 GCC compile failure

2009-12-02 Thread Justin Mattock
On Wed, Dec 2, 2009 at 3:35 PM, Sean Porterfield
linuxfromscra...@sf.porterfield.net wrote:
 Sean Porterfield wrote:

 After compiling and installing gcc, I tried to compile dummy.c but it
 failed.  Any suggestions on how to figure out where I screwed up?

 From: Doug Downham

 In section 6.10, using version 6.5 of the LFS book, I've encountered a
 strange error.

 When I create dummy.c and run 'cc dummy.c -v -Wl, --verbose 
 dummy.log', a.out is not produced.  dummy.log says
 /tools/lib/gcc/i686-pc-linux-gnu/4.4.1/../../../../i686-pc-linux-gnu/bin/ld:

 : No such file: No such file or directory.


 Well...  Seeing as that's the same error message, I checked my `cc`
 command.  Lo and behold, I keyed that same mystery space in.  I removed
 the space, and all is well.  Onward and upward!  Thanks for everyone's
 help on this.
 --
 Sean Porterfield
 --
 http://linuxfromscratch.org/mailman/listinfo/lfs-support
 FAQ: http://www.linuxfromscratch.org/lfs/faq.html
 Unsubscribe: See the above information page


amazingly space like this does make a difference
i.e. in SELinux refpolicy(build.conf) I did something
like that, and it caused a build error.
(ran around for weeks going crazy);

-- 
Justin P. Mattock
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Version 6.5 - 6.15.1 GCC compile failure

2009-12-01 Thread Sean Porterfield
As background, I'm using VirtualBox with the LFS LiveCD.  I haven't
learned how to copy/paste from my real PC to the VirtualBox, so I'm
typing everything by hand.

After compiling and installing gcc, I tried to compile dummy.c but it
failed.  Any suggestions on how to figure out where I screwed up?

dummy.log ends with:
/usr/bin/ld: : No such file: No such file or directory
collect2: ld returned 1 exit status

Earlier in dummy.log I see an odd message that might be related:
ignoring nonexistent directory
/usr/lib/gcc/i686-pc-linux-gnu/4.4.1/../../../../i686-pc-linux-gnu/include
--
Sean Porterfield
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Version 6.5 - 6.15.1 GCC compile failure

2009-12-01 Thread Justin P. Mattock
On 12/01/09 19:22, Sean Porterfield wrote:
 As background, I'm using VirtualBox with the LFS LiveCD.  I haven't
 learned how to copy/paste from my real PC to the VirtualBox, so I'm
 typing everything by hand.

 After compiling and installing gcc, I tried to compile dummy.c but it
 failed.  Any suggestions on how to figure out where I screwed up?

 dummy.log ends with:
 /usr/bin/ld: : No such file: No such file or directory
 collect2: ld returned 1 exit status

 Earlier in dummy.log I see an odd message that might be related:
 ignoring nonexistent directory
 /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/../../../../i686-pc-linux-gnu/include
 --
 Sean Porterfield

you don't have
ld installed(or have it in another location)
I think it's binutils that provides that.
(just look at the bottom of the tutorial
for the list of apps they provide) then
see if it goes through.

Justin P. Mattock
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Version 6.5 - 6.15.1 GCC compile failure

2009-12-01 Thread Mike McCarty
Sean Porterfield wrote:
 As background, I'm using VirtualBox with the LFS LiveCD.  I haven't
 learned how to copy/paste from my real PC to the VirtualBox, so I'm
 typing everything by hand.

It shouldn't be difficult to install the book on the virtual box.

 After compiling and installing gcc, I tried to compile dummy.c but it
 failed.  Any suggestions on how to figure out where I screwed up?
 
 dummy.log ends with:
 /usr/bin/ld: : No such file: No such file or directory
 collect2: ld returned 1 exit status

This says that ld was not given a file named ' ' to link. That's
quite odd. Or maybe not. Were there two spaces in that message?
IOW, one space, like this /usr/bin/ld: : No... or
two spaces, like this /usr/bin/ld:  : No...?
If the former, then it was passed a parameter which was the empty
string, if the latter, then a one space file name. Either one is
pretty weird.

 Earlier in dummy.log I see an odd message that might be related:
 ignoring nonexistent directory
 /usr/lib/gcc/i686-pc-linux-gnu/4.4.1/../../../../i686-pc-linux-gnu/include

I'd think this would cause the compile to fail, not the link.

What does

$ gcc -dumpspecs

produce?

Mike
-- 
p=p=%c%s%c;main(){printf(p,34,p,34);};main(){printf(p,34,p,34);}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I speak only for myself, and I am unanimous in that!
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page