Re: How to compile and install only one compile in GCC?

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

 



On Sat, Sep 5, 2009 at 4:35 AM, Dr. David Kirkby<david.kirkby@xxxxxxxxxx> wrote:
> Peng Yu wrote:
>
>> I still get some errors. And I checked that ld does not have the
>> options -Wl,-rpath. Can somebody let me know what the problem is?
>
> -Wl,-foobar is a *compiler* option which passes -foobar directly to the
> *linker*. (There is also an option -Wa,-foobar which would pass -foobar to
> the *assembler*).
>
> So if you compile with -Wl,-rpath, the linker will see only -rpath, without
> the -Wl,
>
>
> I'm not sure what your problem is - I think building gcc on some systems is
> a bit of a black art. But you need to know that -Wl,-rpath is not something
> the linker will see - it will only see the -rpath.

My OS is of the following. I don't think that it is an exotic system.

$ cat  /etc/redhat-release
CentOS release 5 (Final)
$ uname -a
Linux selenium.cluster 2.6.18-53.1.13.el5 #1 SMP Tue Feb 12 13:02:30
EST 2008 x86_64 GNU/Linux
$ dmesg | grep gcc
Linux version 2.6.18-53.1.13.el5 (mockbuild@xxxxxxxxxxxxxxxxxxx) (gcc
version 4.1.2 20070626 (Red Hat 4.1.2-14)) #1 SMP Tue Feb 12 13:02:30
EST 2008


My ld is of the following version.

$ ld --version
GNU ld (GNU Binutils) 2.19.1
Copyright 2007 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.

Can somebody let me know how to compile gcc on my machine? To
rephrase, I have used the following commands.

$ mkdir build
$ cd build
$ /path/to/gcc-source-code/configure --enable-languages="c java"
--prefix=/path/to/install

Regards,
Peng

[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