This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Help compiling native gcc-4.7.0 on Solaris/x86


Vincent,

No, I'm building the compiler in a directory parallel to where the source is.  Here's a quick layout diagram:

/usr/local/src
|
+- gmp-5.0.5
+- mpfr-3.0.1
+- mpc-0.9
+- build-4.7.0
+- binutils-2.22
+- gcc-4.7.0
   +- gmp -> ../gmp-5.0.5
   +- mpfr -> ../mpfr-3.0.1
   +- mpc -> ../mpc-0.9
   +- bfd -> ../binutils-2.22/bfd
   +- binutils -> ../binutils-2.22/binutils
   +- cpu -> ../binutils-2.22/cpu
   +- elfcpp -> ../binutils-2.22/elfcpp
   +- etc -> ../binutils-2.22/etc
   +- gas -> ../binutils-2.22/gas
   +- gold -> ../binutils-2.22/gold
   +- gprof -> ../binutils-2.22/gprof
   +- ld -> ../binutils-2.22/ld
   +- opcodes -> ../binutils-2.22/opcodes
   +- setup.com -> ../binutils-2.22/setup.com
   +- src-release -> ../binutils-2.22/src-release
   +- texinfo -> ../binutils-2.22/texinfo

I run the following configure command from within /usr/local/src/build-4.7.0:

../gcc-4.7.0/configure --prefix=/usr/local/gcc --enable-bootstrap --with-gnu-as --with-gnu-ld

I hope that helps clear things up.

S

On May 21, 2012, at 6:29 PM, Vincent Diepeveen wrote:

> hi Shahbaz,
> 
> Am i seeing it correctly you configure by accident in the SAME directory as where the installs are?
> 
> It's better to make a new directory and compile it there, so a different directory than where the sourcecode is.
> 
> mkdir gcc470
> cd gcc470
> ../gcc-4.7.0/configure
> 
> Bootstrap is turned on automatically already, only if you want to turn it off add a parameter.
> 
> Hope that helps you, fixes 1 problem another 100 to go :)
> 
> On May 21, 2012, at 11:45 PM, Shahbaz Javeed wrote:
> 
>> Folks,
>> 
>> I've dug through the archives to see if my question is answered here
>> but haven't found anything.  I've been scouring Google for the past
>> few days and am coming to you for help after having exhausted the
>> resources at my disposal.  Without further ado, here's what I have:
>> 
>> My system:
>> SunOS archive 5.11 oi_151a i86pc i386 i86pc
>> isainfo -kv reports a 64bit OS: 64-bit amd64 kernel modules
>> 
>> System compiler:
>> gcc (GCC) 3.4.3 (csl-sol210-3_4-20050802)
>> 
>> Libraries I'm using to compile gcc-4.7.0:
>> gmp-5.0.5
>> mpfr-3.0.1 (mpfr-3.1.0 crashed earlier than where I am)
>> mpc-0.9
>> binutils-2.22
>> 
>> I'm attempting to do a full bootstrap compilation so I can get rid of
>> the system compiler.  I've followed the instructions here:
>> http://stackoverflow.com/a/6228588 to setup and build gcc using the
>> libraries mentioned above.
>> 
>> I'm building as per gcc recommendations in a build directory parallel
>> to the gcc-4.7.0 sources.  My environment has the following variables:
>> 
>> ABI=long
>> 
>> and the configure command I used to kickstart this build is:
>> 
>> ../gcc-4.7.0/configure --prefix=/usr/local/gcc --enable-bootstrap
>> --with-gnu-as --with-gnu-ld
>> 
>> I've also tried it out without the "gnu-as" and "gnu-ld" lines but get
>> the same result which might be telling.
>> 
>> Compiling fails with the error message shown in this paste bin:
>> http://pastebin.com/t2DAjFQn
>> 
>> As I said I'm at my wit's end at this time.  I thought for sure the
>> "with-gnu-ld" and "with-gnu-as" would solve this but it hasn't and
>> removing those bits doesn't change where the build breaks or the error
>> message.
>> 
>> I can provide any additional information (files, output, etc) as
>> needed.  Any help would be appreciated.
>> 
>> Thanks!
>> Shahbaz Javeed
>> Blog: http://learnonthejob.blogspot.com/
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]