public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Installing multiple versions of GCC
@ 2009-08-17 11:38 Angelo Graziosi
  2009-08-17 18:54 ` Ian Lance Taylor
  0 siblings, 1 reply; 5+ messages in thread
From: Angelo Graziosi @ 2009-08-17 11:38 UTC (permalink / raw)
  To: GCC; +Cc: DaveK

To have multiple versions of GCC installed, I usually build, on Cygwin, 
configuring as:

prefix_dir_name="usr/local/gfortran"
prefix_dir="/${prefix_dir_name}"
dataroot_dir="${prefix_dir}/share"

eprefix_dir="${prefix_dir}"
sysconf_dir="${prefix_dir}/etc"
lib_dir="${eprefix_dir}/lib"
libexec_dir="${eprefix_dir}/lib"
man_dir="${dataroot_dir}/man"
info_dir="${dataroot_dir}/info"

${source_dir}/configure --prefix="${prefix_dir}" \
	--exec-prefix="${eprefix_dir}" \
	--sysconfdir="${sysconf_dir}" \
	--libdir="${lib_dir}" \
	--libexecdir="${libexec_dir}" \
	--mandir="${man_dir}" \
	--infodir="${info_dir}" \
	--program-suffix="${suffix}" \
	--enable-bootstrap \
	--enable-checking=release \
	--enable-decimal-float=bid \
	--enable-languages=c,c++,fortran \
	--enable-libgomp \
	--enable-libssp \
	--enable-nls \
	--enable-threads=posix \
	--enable-version-specific-runtime-libs \
	--disable-fixed-point \
	--disable-libmudflap \
	--disable-shared \
	--disable-sjlj-exceptions \
	--disable-win32-registry \
	--with-arch=i686 \
	--with-dwarf2 \
	--with-system-zlib \
	--with-tune=generic \
	--without-included-gettext \
	--without-x

in which 'prefix' is /usr/local/gfortran and 'suffix' could be -4.3, 
-4.4 or -4.5.

In any case, doing in this way, I have noticed that 'libiberty.a' is 
installed in '/usr/local/gfortran/lib/',

$ ls -lrt /usr/local/gfortran/lib/
totale 204
-rwxr-x---+ 1 root Users 207326 Jul 23 11:54 libiberty.a
drwxrwx---+ 3 root Users      0 Jul 23 12:05 gcc

with

$ ls -lrt /usr/local/gfortran/lib/gcc/
totale 0
drwxrwx---+ 3 root Users 0 Jul 24 12:30 i686-pc-cygwin

$ ls -lrt /usr/local/gfortran/lib/gcc/i686-pc-cygwin/
totale 0
drwxrwx---+ 6 root Users 0 Jul 23 12:05 4.4.1


This mean it belongs to the last GCC installed (which overwrite the 
previous)

Is there a way to send libiberty.a where go the other libs (i.e 
/usr/local/gfortran/lib/gcc/i686-pc-cygwin/4.4.1/, for example)?

(I suspect there is some configuring option or someone of mine is wrong)


Thanks,
    Angelo.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Installing multiple versions of GCC
  2009-08-17 11:38 Installing multiple versions of GCC Angelo Graziosi
@ 2009-08-17 18:54 ` Ian Lance Taylor
  2009-08-17 22:33   ` Angelo Graziosi
  0 siblings, 1 reply; 5+ messages in thread
From: Ian Lance Taylor @ 2009-08-17 18:54 UTC (permalink / raw)
  To: Angelo Graziosi; +Cc: GCC, DaveK

Angelo Graziosi <angelo.graziosi@alice.it> writes:

> Is there a way to send libiberty.a where go the other libs (i.e
> /usr/local/gfortran/lib/gcc/i686-pc-cygwin/4.4.1/, for example)?

Really libiberty should not be installed at all by default.

I don't know of any way to change where it is installed.

Ian

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Installing multiple versions of GCC
  2009-08-17 18:54 ` Ian Lance Taylor
@ 2009-08-17 22:33   ` Angelo Graziosi
  2009-08-18  2:41     ` Ian Lance Taylor
  0 siblings, 1 reply; 5+ messages in thread
From: Angelo Graziosi @ 2009-08-17 22:33 UTC (permalink / raw)
  To: Ian Lance Taylor; +Cc: GCC, DaveK

Ian Lance Taylor ha scritto:
> Angelo Graziosi <angelo.graziosi@alice.it> writes:
> 
>> Is there a way to send libiberty.a where go the other libs (i.e 
>> /usr/local/gfortran/lib/gcc/i686-pc-cygwin/4.4.1/, for example)?
> 
> Really libiberty should not be installed at all by default.

I suspected that. :-)

Why, then, 'make install' installs 'libiberty.a'?


Cheers,
    Angelo.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Installing multiple versions of GCC
  2009-08-17 22:33   ` Angelo Graziosi
@ 2009-08-18  2:41     ` Ian Lance Taylor
  2009-08-18  8:55       ` NightStrike
  0 siblings, 1 reply; 5+ messages in thread
From: Ian Lance Taylor @ 2009-08-18  2:41 UTC (permalink / raw)
  To: Angelo Graziosi; +Cc: GCC, DaveK

Angelo Graziosi <angelo.graziosi@alice.it> writes:

> Ian Lance Taylor ha scritto:
>> Angelo Graziosi <angelo.graziosi@alice.it> writes:
>>
>>> Is there a way to send libiberty.a where go the other libs (i.e
>>> /usr/local/gfortran/lib/gcc/i686-pc-cygwin/4.4.1/, for example)?
>>
>> Really libiberty should not be installed at all by default.
>
> I suspected that. :-)
>
> Why, then, 'make install' installs 'libiberty.a'?

I think it's a bug.

Ian

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Installing multiple versions of GCC
  2009-08-18  2:41     ` Ian Lance Taylor
@ 2009-08-18  8:55       ` NightStrike
  0 siblings, 0 replies; 5+ messages in thread
From: NightStrike @ 2009-08-18  8:55 UTC (permalink / raw)
  To: Ian Lance Taylor; +Cc: Angelo Graziosi, GCC, DaveK

On Mon, Aug 17, 2009 at 7:24 PM, Ian Lance Taylor<iant@google.com> wrote:
> Angelo Graziosi <angelo.graziosi@alice.it> writes:
>
>> Ian Lance Taylor ha scritto:
>>> Angelo Graziosi <angelo.graziosi@alice.it> writes:
>>>
>>>> Is there a way to send libiberty.a where go the other libs (i.e
>>>> /usr/local/gfortran/lib/gcc/i686-pc-cygwin/4.4.1/, for example)?
>>>
>>> Really libiberty should not be installed at all by default.
>>
>> I suspected that. :-)
>>
>> Why, then, 'make install' installs 'libiberty.a'?
>
> I think it's a bug.

Has it ever not been that way?

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-08-18  0:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-17 11:38 Installing multiple versions of GCC Angelo Graziosi
2009-08-17 18:54 ` Ian Lance Taylor
2009-08-17 22:33   ` Angelo Graziosi
2009-08-18  2:41     ` Ian Lance Taylor
2009-08-18  8:55       ` NightStrike

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).