RE: GCC 4.7.1 - Solaris 10 SPARC Build - File not found resolved, takes too much time to run.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear Marc Glisse and all,

I got SUCCESS!

I want to thank you and inform how I run the compilation of gcc-4.7.1.
I wish to share experience with all.

1) I didn´t inserted "/usr/xpg6/bin:/usr/xpg4/bin" at the beginning of
my PATH. I run the build several times with errors, then I decided
to read again http://gcc.gnu.org/install/prerequisites.html and
check everything. I could only get rid of errors after carefully
editing my PATH putting all GNU software at the beginning.

2) I had to create several symbolic links:
        cd /opt/csw/bin
        ln -s gar ar
        ln -s gawk awk
        ln -s gtar tar
        ln -s gnm nm
        ... and so on

3) Also edited my LD_LIBRARY_PATH environment variable including
the GNU software at the beginning. Editing $PATH and
$LD_LIBRARY_PATH was the solution, and made all the difference.

4) Run "rehash" and source .cshrc and .login before starting the
build.

5) gmp, mpc and mpfr: The best choice is to put them in the same
place as the GCC source code to be compiled togheter. I installed
Them precompiled, but got error with the lack of include files
*.h, I could not find these files, caution! Do not use .h files
that are different versions of the installed libraries. Use exactly
the versions numbers listed in the pre-requisites page.

6) -j option:  I started the build with -j20 that caused too much
Performance decrease in a machine that was in production. Use
This with caution with say, -j4 instead.

Have patience and GOOD LUCK!

Best Regards,

Argemiro Bevilacqua
Unix Systems Support Analyst Sr. - HP Brasil Ltda.
Outsourcing Services Ericsson Account - Montreal R&D HUB
+55 11 9940-6188 mobile - Ericsson Same Time: xhparbe





-----Original Message-----
From: Bevilacqua, Argemiro (Ericsson Montreal R&D HUB)
Sent: terça-feira, 26 de junho de 2012 17:19
To: gcc-help@xxxxxxxxxxx
Subject: RE: GCC 4.7.1 - Solaris 10 SPARC Build - File not found resolved, takes too much time to run.

Hi Marc,

Thank you very much for the valuable reply. I will run again
using your recommendation and let you know when finished.

My answers are below.

1) I run configure without any options:
ecamoux0800:/home/xhparbe/gcc-obj{xhparbe}133 ../gcc/gcc-4.7.1/configure
(I will use "--prefix in my next run").

2) Also, I used no options to run make:
ecamoux0800:/home/xhparbe/gcc-obj{xhparbe}133 make
(I will use "-j20" in my nest run)

ecamoux0800:/home/xhparbe/gcc-obj{xhparbe}133 gcc --version
2.95.2
ecamoux0800:/home/xhparbe/gcc-obj{xhparbe}134 make --version
GNU Make 3.82
Built for sparc-sun-solaris2.10
Copyright (C) 2010  Free Software Foundation, Inc.

3) You are right, I don't have /usr/xpg6/bin:/usr/xpg4/bin
before /usr/bin and I didn't passed a -j20 option to gmake.
Good idea! I will change my $PATH as well.

Regards,
Argemiro

-----Original Message-----
From: Marc Glisse [mailto:marc.glisse@xxxxxxxx]
Sent: terça-feira, 26 de junho de 2012 16:37
To: Bevilacqua, Argemiro (Ericsson Montreal R&D HUB)
Cc: gcc-help@xxxxxxxxxxx
Subject: Re: GCC 4.7.1 - Solaris 10 SPARC Build - File not found resolved, takes too much time to run.

On Tue, 26 Jun 2012, Bevilacqua, Argemiro (Ericsson Montreal R&D HUB) wrote:

> I got two errors of "file not found", during my build of GCC
> 4.7.1 on Solaris 10. I could resolve them just renaming the
> files that had wrong names. The correct names are *.hpp, but
> I found two files with *.hp extensions.
>
> I am running on a SUN T2000 machine. The compilation is still
> running, taking several hours to complete. Is there an option
> to run it more quickly? I have re-run it with "--prefix"
> option.

You know, it would help if you told us what you did: how you run
configure, how you run make, etc.

Crystal ball (somewhat foggy) tells me your PATH doesn't have
/usr/xpg6/bin:/usr/xpg4/bin before /usr/bin, and you didn't pass a -j20
option to gmake.

--
Marc Glisse



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux