public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: [RFC] Update to current automake/autoconf/libtool versions.
@ 2003-01-01 10:39 Nathanael Nerode
  0 siblings, 0 replies; 29+ messages in thread
From: Nathanael Nerode @ 2003-01-01 10:39 UTC (permalink / raw)
  To: gcc; +Cc: klee

Klee Dienes said:
>This patch is now broken as of the autoconfiscation of the top-level, 
>which unfortunately reverts to the previous behavior of passing 
>--build, --host, and --target down to the sub-configures at all times. I'm 
>working to make a patch for this, but am still caught up on updating the 
>GCC directories to work properly with automake-1.7.2, so it will 
>probably be another day or two.

Sadly, we need to 'reconstruct' the --build, --host, --target flags for
the build and target subdirs.

The 'correct' way to do this is probably:

* For the 'build' subdirs, pass --build only, and only if it was 
specified
* For the 'target' subdirs, pass --build iff it was specified, --host 
iff --target was specified, and never pass --target

Unfortunately this behavior *will not* work correctly until we update 
everything to autoconf 2.5x.  Hence my decision to pass down all three 
unconditionally.

Additionally, current versions of autoconf 2.5x are clever enough to 
realize that we're not cross-building if we specified --build and --host 
but they're the same, and we're not making a cross-compiler if we 
specified --host and --target but they're the same.  In other words, it 
behaves correctly even when we overspecify.

So I strongly suggest you get everything updated to autoconf 2.5x, and 
worry about what to pass down to subconfigures only after that is over.

--Nathanael

^ permalink raw reply	[flat|nested] 29+ messages in thread
[parent not found: <20021206005522.GA11907@doctormoo>]
* Re: [RFC] Update to current automake/autoconf/libtool versions.
@ 2002-12-10 19:33 Henry Nelson
  0 siblings, 0 replies; 29+ messages in thread
From: Henry Nelson @ 2002-12-10 19:33 UTC (permalink / raw)
  To: gcc

> I don't get it.  Why does being able to link have anything to do with
> being native?  Being able to *run* tests has to do with being native,
> but that's not the point, and autoconf already avoids running tests
> when cross-building.  But being able to link has to do with whether

While I don't understand it, this kind of discussion seems to come the
closest in relevance to problems (inability to link, or executables built
that can't find the necessary runtime libraries) I have experienced on
Solaris2.6 after updating to: autoconf-2.56, gcc3.2.1/binutils2.13.1
(ld version 2.13.1).  Details on gcc:
    Configured with: ../gcc-3.2.1/configure --prefix=/opt/gnu
    --disable-nls --enable-languages=c,c++ --enable-static
    --enable-shared --enable-version-specific-runtime-libs --with-gnu-as
    --with-as=/opt/gnu/bin/as --with-gnu-ld --with-ld=/opt/gnu /bin/ld
    --infodir=/usr/local/info --mandir=/usr/local/man --with-libiconv-prefix
    =/usr/local     Thread model: posix

I'm hoping that someone more knowledgeable will be able to write a bug
report and submit it to the developers of the relevant program.  Unless
something is corrected, gcc in its present state is of little use to people
on Solaris2.x as a native compiler.  Personally, I've gone back to 2.7.2.3
until the 3.2 branch is truly ported to Solaris2.x as a native compiler.

As I've already mentioned in previous posts ("how do you get gcc with gnu
ld to work on solaris2.x?", http://gcc.gnu.org/ml/gcc/2002-12/msg00252.html),
too much manual doctoring of variables like LDFLAGS and LIBS has to be done.

For example, in order to compile libiconv (also libtool), the following
environment variables have to be set before running the configure script:
     setenv LDFLAGS "-L/opt/gnu/lib -lgcc_s -R/opt/gnu/lib"
     setenv LIBS "/opt/gnu/lib/libgcc_s.so.1 -Wl,-rpath -Wl,/opt/gnu/lib"
If gcc/ld doesn't have enough sense to do this on its own, then it has no
business using shared objects at all, IMNSHO.

By far the worst experience I've had is with the mail client mutt.  Even
now I have found no solution after weeks of struggling and asking around:
    With configure options "--with-libiconv-prefix=/usr/local
    --with-slang=/usr/local":
       checking whether this iconv is good enough... no
       configure: error: Try using libiconv instead
    So I try to tell the configure script that I do have libiconv
    by adding environment variables 'LDFLAGS "-L/usr/local/lib -liconv
    -R/usr/local/lib" LIBS "/usr/local/lib/libiconv.so -Wl,-rpath
    -Wl,/usr/local/lib"':
       checking whether byte ordering is bigendian... configure: error:
       can not run test program while cross compiling
    Then unsetenv the above, and try a hint I got off of the Internet
    "LD_PRELOAD /usr/local/lib/libiconv_plug.so":
       ld.so.1: sed: fatal: relocation error: file
       /usr/local/lib/libiconv_plug.so: symbol main: referenced symbol
       not found configure: error: can not find sources in  or ..

I can only keep my fingers crossed so long before I just have to move on.

henry nelson

^ permalink raw reply	[flat|nested] 29+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
@ 2002-12-05 14:40 Joern Rennecke
  0 siblings, 0 replies; 29+ messages in thread
From: Joern Rennecke @ 2002-12-05 14:40 UTC (permalink / raw)
  To: Alan Modra
  Cc: Zack Weinberg, Nathanael Nerode, klee, gdb-patches, binutils,
	newlib, gcc

> It seems that the major impact of configuring parts of a tree using
> different autoconf versions will be on people using
> --enable-maintainer-mode, so another solution might be to extend
> --enable-maintainer-mode to accept a list of directories.  I suspect
> most developers will only want --enable-maintainer-mode in the
> particular area they work on.

Unfortunately, for CPU port maintainers the area they work on is a
cross-section of gcc, newlib, binutils and gdb.

-- 
--------------------------
SuperH (UK) Ltd.
2410 Aztec West / Almondsbury / BRISTOL / BS32 4QX
T:+44 1454 465658

^ permalink raw reply	[flat|nested] 29+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
@ 2002-12-05 14:36 Nathanael Nerode
  2002-12-05 15:19 ` Zack Weinberg
  0 siblings, 1 reply; 29+ messages in thread
From: Nathanael Nerode @ 2002-12-05 14:36 UTC (permalink / raw)
  To: zack, gdb-patches, binutils, newlib, gcc


>I'd like to remind everyone involved that last I checked it was flat
>impossible to do what libstdc++-v3/configure.in needs to do, using
>autoconf 2.5x.  I am not particularly sanguine about the situation

Flat impossible?

Wow.

And for the top level, all I had to do was define my own entire set of
macros to replace the AC_CHECK_TOOL and AC_PROG_* collection. :-)

I'd be interested to hear more about the problem.  Why can't it be dealt 
with by using private macros?

--Nathanael

^ permalink raw reply	[flat|nested] 29+ messages in thread
* Re: [RFC] Update to current automake/autoconf/libtool versions.
@ 2002-12-05 11:08 Nathanael Nerode
  2002-12-05 11:31 ` Andrew Cagney
                   ` (4 more replies)
  0 siblings, 5 replies; 29+ messages in thread
From: Nathanael Nerode @ 2002-12-05 11:08 UTC (permalink / raw)
  To: klee, gdb-patches; +Cc: binutils, newlib, gcc

>1.  Please make sure to coordinate with Nathanael Nerode, who is in the
>middle of extensive autoconf-related work in the GCC repository.

I really would like to see the tree using autoconf 2.5x as soon as 
possible; if this can be done before I autoconfiscate the top level 
(which is not autoconfiscated yet) it will save me an awful lot of 
trouble, since I can then use autoconf 2.5x for that autoconfiscation. 
:-/

Your patch as is updates
bfd binutils gas gdb gprof ld mmalloc opcodes rda sim utils

Can you please work up a patch for gcc 3.4 to update
boehm-gc fastjar gcc libf2c libffi libiberty libjava libobjc 
libstdc++-v3 zlib

And a patch for Insight
itcl libgui

And one for Dejagnu
dejagnu expect

And for Newlib & Cygwin
libgloss newlib winsup

And one for
sid

and one for
intl

--
However, I think that it's OK to update one directory at a time, 
provided we specify clearly what's going on, and get it all done before 
the next release of anything.

Accordingly, I suggest getting clean patches for small sets of 
directories, making sure they work, getting them reviewed, and then 
putting them in; and then starting on the next set.  Keep sending update
notices to the various lists regarding which directories use the 'new' 
tools and which use the 'old'.  If you can make scripts which work 
correctly under *both* autoconf 2.5x *and* autoconf 2.13, by all means 
do so *first*, and mark those scripts as "compatibile with both", of 
course; but I expect that will only happen for the simplest directories.

If this is acceptable to other people in the various groups of course.

I expect this will generate a certain amount of breakage, but then so 
did my changes.  In both cases, it needs to be done, we just have to 
make sure all the breakage gets fixed.

--Nathanael

P.S.
It was mentioned that autoconf2.5 scripts will have trouble with 
building because of the top level passing down --target unconditionally.

Unfortunately I think some other aspects of the configure scripts 
require --target to be passed down unconditionally. :-/  Otherwise I'd 
just change it.


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

end of thread, other threads:[~2003-01-12 13:22 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <9A4230D6-1D26-11D7-BFCA-00039396EEB8@apple.com>
2003-01-12 20:20 ` [RFC] Update to current automake/autoconf/libtool versions Alexandre Oliva
2003-01-01 10:39 Nathanael Nerode
     [not found] <20021206005522.GA11907@doctormoo>
     [not found] ` <87of7sa16x.fsf@egil.codesourcery.com>
2002-12-12 13:29   ` Nathanael Nerode
2002-12-13  5:31     ` Alexandre Oliva
  -- strict thread matches above, loose matches on Subject: below --
2002-12-10 19:33 Henry Nelson
2002-12-05 14:40 Joern Rennecke
2002-12-05 14:36 Nathanael Nerode
2002-12-05 15:19 ` Zack Weinberg
2002-12-06  9:33   ` Tom Tromey
2002-12-07 12:55   ` Alexandre Oliva
2002-12-07 13:19     ` Zack Weinberg
2002-12-09 18:57       ` Alexandre Oliva
2002-12-09 21:52         ` Geoff Keating
2002-12-08 13:48     ` Tom Tromey
2002-12-05 11:08 Nathanael Nerode
2002-12-05 11:31 ` Andrew Cagney
2002-12-05 13:31 ` Zack Weinberg
2002-12-05 14:29   ` Alan Modra
2002-12-05 15:14     ` Ian Lance Taylor
2002-12-05 15:32       ` Alan Modra
2002-12-05 15:45         ` Ian Lance Taylor
2002-12-05 16:26           ` Andrew Cagney
2002-12-05 15:47         ` Mike Stump
2002-12-05 16:30           ` Alan Modra
2002-12-05 16:36             ` Zack Weinberg
2002-12-08  2:48         ` Klee Dienes
2002-12-05 14:07 ` Christopher Faylor
2002-12-06  7:25 ` Maciej W. Rozycki
2002-12-08  3:23 ` Klee Dienes

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).