Re: [lfs-support] compiling GCC C compiler cannot create executable

2019-10-26 Thread Trent


On 10/26/19 1:19 PM, capnhawkbill wrote:

the question was : chapter 5 GCC pass 1, chapter 5 GCC pass 2, or chapter 6 GCC?

Oh I'm trying to do pass 1 chapter 5



Good! Are you pasting from the pdf book or from the html version (if so with
which browser?).

I'm copying from the website in firefox.

Thanks for helping!



In my beginner, and humble opinion, if you are having trouble this early 
on in the build process,  I think something is wrong with your environment.


After a few times, I started keeping the commands I entered into a text 
file. I could look back and see I had did something wrong for whatever 
reason.


It may be quicker for you just to start all over again, than to hunt for 
the cause of the build error.


I have successfully built versions 8.4, and 9.0. In those builds I 
started over numerous times.


Just something to consider.


Trent

--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] ***SPAM*** Re: compiling GCC C compiler cannot create executable

2019-10-26 Thread capnhawkbill
On 19/10/26 09:28pm, Pierre Labastie wrote:
> On 26/10/2019 20:19, capnhawkbill wrote:
> So, AFAICT, no problem here...
>
> So at some point in your build, a "configure" script tries to run:
> /mnt/lfs/sources/gcc-9.2.0/build/./prev-gcc/xgcc
> -B/mnt/lfs/sources/gcc-9.2.0/build/./prev-gcc/
> -B/tools/x86_64-pc-linux-gnu/bin/ -B/tools/x86_64-pc-linux-gnu/bin/
> -B/tools/x86_64-pc-linux-gnu/lib/ -isystem /tools/x86_64-pc-linux-gnu/include
> -isystem /tools/x86_64-pc-linux-gnu/sys-include   -fno-checking
>
> I do not have this in my build. prev-gcc is used when doing "bootstrapping".
> When building a cross compiler, there is no possibility to bootstrap, so for
> some reason, your build believes this is not a cross compiler. One likely
> reason is that LFS_TGT is not set, one less likely reason is that the line
> "--target=..." got skipped (less likely if you copy-paste from the book). Try
> "echo $LFS_TGT" before running configure.
LFS_TGT is set to x86_64-pc-linux-gnu.
> It's not a bad idea to check that LFS is set too...
>
> If everything seems normal, please post the output of configure. Not the one
> which fails, but the one which is run before "make".
I have a session where I confirm the variables first and then run the
configure script:
http://ix.io/1ZVo

Do I need a special no-bootstrap flag?

Capnhawkbill
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] ***SPAM*** Re: compiling GCC C compiler cannot create executable

2019-10-26 Thread Pierre Labastie
On 26/10/2019 20:19, capnhawkbill wrote:
>> the question was : chapter 5 GCC pass 1, chapter 5 GCC pass 2, or chapter 6 
>> GCC?
> Oh I'm trying to do pass 1 chapter 5
> 
> 
>> Good! Are you pasting from the pdf book or from the html version (if so with
>> which browser?).
> I'm copying from the website in firefox.
> 
So, AFAICT, no problem here...

So at some point in your build, a "configure" script tries to run:
/mnt/lfs/sources/gcc-9.2.0/build/./prev-gcc/xgcc
-B/mnt/lfs/sources/gcc-9.2.0/build/./prev-gcc/
-B/tools/x86_64-pc-linux-gnu/bin/ -B/tools/x86_64-pc-linux-gnu/bin/
-B/tools/x86_64-pc-linux-gnu/lib/ -isystem /tools/x86_64-pc-linux-gnu/include
-isystem /tools/x86_64-pc-linux-gnu/sys-include   -fno-checking

I do not have this in my build. prev-gcc is used when doing "bootstrapping".
When building a cross compiler, there is no possibility to bootstrap, so for
some reason, your build believes this is not a cross compiler. One likely
reason is that LFS_TGT is not set, one less likely reason is that the line
"--target=..." got skipped (less likely if you copy-paste from the book). Try
"echo $LFS_TGT" before running configure.

It's not a bad idea to check that LFS is set too...

If everything seems normal, please post the output of configure. Not the one
which fails, but the one which is run before "make".

Pierre
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] compiling GCC C compiler cannot create executable

2019-10-26 Thread capnhawkbill
> the question was : chapter 5 GCC pass 1, chapter 5 GCC pass 2, or chapter 6 
> GCC?
Oh I'm trying to do pass 1 chapter 5


> Good! Are you pasting from the pdf book or from the html version (if so with
> which browser?).
I'm copying from the website in firefox.

Thanks for helping!
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] compiling GCC C compiler cannot create executable

2019-10-26 Thread Pierre Labastie
On 26/10/2019 08:15, capnhawkbill wrote:
> On 19/10/25 12:59pm, Bruce Dubbs wrote:
>>
>> What package are you building?  Some things to consider:
> I'm trying to build GCC.

the question was : chapter 5 GCC pass 1, chapter 5 GCC pass 2, or chapter 6 GCC?
> 
>> 1.  Is the output of the Host System Requirements OK?
>> 2.  Are you strictly following the build process:
> 
> The output of version-check.sh is here and I think it is correct.

Looks OK indeed

> 
>> For each package:
>>
>> a.Using the tar program, extract the package to be built. In Chapter
>>   5, ensure you are the lfs user when extracting the package.
>> b.Change to the directory created when the package was extracted.
>> c.Follow the book's instructions for building the package.
>> d.Change back to the sources directory.
>> e.Delete the extracted source directory unless instructed otherwise.
>>
>> Specifically, are you deleting the extracted source directory after each
>> package is completed.
> I followed the instructions twice and I did all this. Every time I
> compiled somthing I went back to these instructions.

Good! Are you pasting from the pdf book or from the html version (if so with
which browser?).

> 
> Thanks for your help!
> 

If in GCC pass 2, one of the most likely reason for the error you see is that
some lines in the configure run are not pasted correctly, specifically
regarding the \ characters.
Since we use --disable-bootstrap, we should not have a "prev-gcc" directory,
and we should not be using xgccc. Can you check from config.log that
--disable-bootstrap was passed to configure?

Pierre
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style