public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/55105] New: use of LD_LIBRARY_PATH incorrect for AIX -- cause trunk build to fail
@ 2012-10-28 13:32 pedzsan at gmail dot com
  2012-10-30  7:58 ` [Bug c/55105] " michael.haubenwallner at salomon dot at
  2013-01-30 16:53 ` dje at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: pedzsan at gmail dot com @ 2012-10-28 13:32 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55105

             Bug #: 55105
           Summary: use of LD_LIBRARY_PATH incorrect for AIX -- cause
                    trunk build to fail
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: pedzsan@gmail.com


configure.ac has this:

# Decide which environment variable is used to find dynamic libraries.
case "${host}" in
  *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
  *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
  *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
  *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
esac

Starting with AIX 6.1, LD_LIBRARY_PATH is used.  I don't 100% understand the
intent of the code above.  The environment variable mentioned (e.g.
LD_LIBRARY_PATH) is passed via the environment when (e.g.) libatomic is built. 
With LD_LIBRARY_PATH in the environment, xgcc and cc1 no longer execute
properly because at the time they execute, LD_LIBRARY_PATH points to the bit
version being built -- not the bit version that xgcc was built for.  There is a
longer description here: http://gcc.gnu.org/ml/gcc/2012-10/msg00386.html

I changed it to this:

# Decide which environment variable is used to find dynamic libraries.
case "${host}" in
  *-*-aix*) RPATH_ENVVAR=BOGUS ;;
  *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
  *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
  *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
  *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
esac

In theory, it should be "LIBPATH" but I'm sure that will cause the build to
fail as well.  In essence, the logic needs to be reviewed.  Perhaps other
platforms are different in their use of LD_LIBRARY_PATH / LIBPATH than AIX.


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

* [Bug c/55105] use of LD_LIBRARY_PATH incorrect for AIX -- cause trunk build to fail
  2012-10-28 13:32 [Bug c/55105] New: use of LD_LIBRARY_PATH incorrect for AIX -- cause trunk build to fail pedzsan at gmail dot com
@ 2012-10-30  7:58 ` michael.haubenwallner at salomon dot at
  2013-01-30 16:53 ` dje at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: michael.haubenwallner at salomon dot at @ 2012-10-30  7:58 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55105

--- Comment #1 from Michael Haubenwallner <michael.haubenwallner at salomon dot at> 2012-10-30 07:58:20 UTC ---
Feels like a dup of bug#52623, or vice-versa.

Haven't tried --disable-build-poststage1-with-cxx recently, not sure if this
still should work with current trunk.


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

* [Bug c/55105] use of LD_LIBRARY_PATH incorrect for AIX -- cause trunk build to fail
  2012-10-28 13:32 [Bug c/55105] New: use of LD_LIBRARY_PATH incorrect for AIX -- cause trunk build to fail pedzsan at gmail dot com
  2012-10-30  7:58 ` [Bug c/55105] " michael.haubenwallner at salomon dot at
@ 2013-01-30 16:53 ` dje at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: dje at gcc dot gnu.org @ 2013-01-30 16:53 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55105

David Edelsohn <dje at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |dje at gcc dot gnu.org
         Resolution|                            |DUPLICATE

--- Comment #2 from David Edelsohn <dje at gcc dot gnu.org> 2013-01-30 16:52:41 UTC ---
Duplicate.

*** This bug has been marked as a duplicate of bug 52623 ***


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

end of thread, other threads:[~2013-01-30 16:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-28 13:32 [Bug c/55105] New: use of LD_LIBRARY_PATH incorrect for AIX -- cause trunk build to fail pedzsan at gmail dot com
2012-10-30  7:58 ` [Bug c/55105] " michael.haubenwallner at salomon dot at
2013-01-30 16:53 ` dje at gcc dot gnu.org

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