[lfs-support] gcc 4.7.1 second pass

Paige Thompson erratic at devel.ws
Wed Nov 14 07:44:10 PST 2012


so what about compiling the rest of the stuff am I supposed to be using the host compiler or the 2nd pass built gcc for that? 

On Nov 14, 2012, at 7:43 AM, Paige Thompson <erratic at devel.ws> wrote:

> thats what I thought you were supposed to do but for some reason I thought that was a bad idea 
> 
> On Nov 14, 2012, at 7:28 AM, Ken Moffat <zarniwhoop at ntlworld.com> wrote:
> 
>> On Wed, Nov 14, 2012 at 07:11:23AM -0800, Paige Thompson wrote:
>>> aha, 
>>> 
>>> once again, 
>>> 
>>> dev at dev-VirtualBox /mnt/erraticOS/usr/src/gcc-build $ gcc --version
>>> gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
>>> 
>>> dev at dev-VirtualBox /mnt/erraticOS/usr/src/gcc-build $ apt-get 
>>> 
>>> I knew I figured this out once before, and the reason I knew is because I removed the -fbuilding-libgcc (just now and before) from the makefile and came to this problem) 
>>> 
>>> cc1plus: error: unrecognized command line option ‘-std=gnu++11’
>>> 
>>> which has to do with the fact that cc1plus 4.6 doesn't have support for that ;) odd that they didn't include the build process for compiling 4.7 from 4.6 huh? 
>>> 
>> Ah ha!  You are using the host's compiler in pass 2.  Wrong path,
>> failed to correctly specify a variable, omitting +h, or something
>> else.
>> 
>> The first pass of gcc builds a pseudo cross-compiler, hence the LFS
>> setting : just enough of a name change to fool the build system into
>> using the cross-compile routines (for separation from the host).
>> This compiler only supports 'C'.
>> 
>> The second pass uses the 'cross' compiler to build a native C and
>> C++ compiler.
>> 
>> ĸen
>> -- 
>> das eine Mal als Tragödie, das andere Mal als Farce
>> -- 
>> http://linuxfromscratch.org/mailman/listinfo/lfs-support
>> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
>> Unsubscribe: See the above information page
> 
> -- 
> http://linuxfromscratch.org/mailman/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
> Unsubscribe: See the above information page




More information about the lfs-support mailing list