public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [0/8] AIX cross toolchains
@ 2009-06-02 12:03 Richard Sandiford
  2009-06-02 12:05 ` [1/8] Don't build newlib for AIX Richard Sandiford
                   ` (8 more replies)
  0 siblings, 9 replies; 22+ messages in thread
From: Richard Sandiford @ 2009-06-02 12:03 UTC (permalink / raw)
  To: gcc-patches

This series of patches adds support for AIX-targetted cross toolchains.
As with other cross toolchains for "hosted" systems, the assumption is
that you have an AIX sysroot available and are using --with-sysroot to
point to it.  (This assumption also implicitly requires GNU ld, with its
support for --sysroot.)

Until recently, binutils could not build working AIX shared libraries,
so the patches only work with a CVS copy of binutils.  And because of
the binutils problems, current libtool doesn't let you try to use
binutils to build AIX shared libraries; it will always switch to
static libraries instead.  The following patches remove this
restriction:

    http://lists.gnu.org/archive/html/libtool-patches/2009-03/msg00007.html
    http://lists.gnu.org/archive/html/libtool-patches/2009-04/msg00013.html

The patches haven't been accepted, so you'll need to apply them locally
and then regenerate each configure script.

All patches were tested by:

  - A native bootstrap on powerpc-ibm-aix6.1 using binutils, with a hack
    to disable the stuff in config/mh-ppc-aix.  Test flags: {,-pthread}.
    (I couldn't test for -maix64 for reasons explained in patch 8.)

  - A native boostrap on x86_64-linux-gnu.  Test flags: {,-m32}.

  - A cross build and cross test from x86_64-linux-gnu to
    powerpc-ibm-aix6.1.  Test flags: {,-pthread}{,-maix64}.

The patches are covered by the IBM copyright assignment.

Richard

^ permalink raw reply	[flat|nested] 22+ messages in thread
* Re: [8/8] Tidy up testsuite handling of LD_LIBRARY_PATH (needs   testsuite maintainer)
@ 2009-07-02 14:41 David Edelsohn
  2009-07-02 15:56 ` David Edelsohn
  0 siblings, 1 reply; 22+ messages in thread
From: David Edelsohn @ 2009-07-02 14:41 UTC (permalink / raw)
  To: Richard Sandiford; +Cc: gcc-patches

Richard,

This patch actually breaks some of the testsuite on AIX.

> The patch adds a new function, find_libgcc_s, that finds the
> libgcc_s directory for the current multilib.  The patch also adds a
> utility function called add_path for adding new components to a path.
> This function is a no-op if the new component is empty, avoiding the
> empty path problem mentioned in (2) above.

This design is fine for 32/64, but makes an incorrect assumption about
pthread support.  Some components in GCC, such as libgomp, always are
built with pthreads enabled -- the pthread and non-pthread multilibs
are identical.  By default, the testsuite runs in 32 bit, non-pthread
mode, so the explicit overriding of LD_LIBRARY_PATH does not insert
the pthread directory and all tests fail.  The original logic added
pthread because libgomp requires pthreads.

David

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

end of thread, other threads:[~2009-07-02 20:19 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-02 12:03 [0/8] AIX cross toolchains Richard Sandiford
2009-06-02 12:05 ` [1/8] Don't build newlib for AIX Richard Sandiford
2009-06-02 12:58   ` Paolo Bonzini
2009-06-02 12:10 ` [2/8] Handle sysroots on AIX (needs build-system maintainer) Richard Sandiford
2009-06-02 12:58   ` Paolo Bonzini
2009-06-02 12:11 ` [3/8] Fix premature post-increment in collect2.c Richard Sandiford
2009-06-02 14:14   ` Ian Lance Taylor
2009-06-02 19:06     ` Richard Sandiford
2009-06-02 12:20 ` [4/8] Implement the ldopen() family of routines for cross collect2s Richard Sandiford
2009-06-02 14:28   ` Ian Lance Taylor
2009-06-02 12:21 ` [5/8] Make collect2 honour --sysroot Richard Sandiford
2009-06-02 14:30   ` Ian Lance Taylor
2009-06-02 12:23 ` [6/8] Add AIX support to GLIBCXX_CROSSCONFIG Richard Sandiford
2009-06-05  4:59   ` Benjamin Kosnik
2009-06-02 12:29 ` [7/8] Don't compile collect2 init and fini routines with -fwhole-program Richard Sandiford
2009-06-02 14:33   ` Ian Lance Taylor
2009-06-02 12:33 ` [8/8] Tidy up testsuite handling of LD_LIBRARY_PATH (needs testsuite maintainer) Richard Sandiford
2009-06-02 18:01 ` [0/8] AIX cross toolchains Ralf Wildenhues
2009-07-02 14:41 [8/8] Tidy up testsuite handling of LD_LIBRARY_PATH (needs testsuite maintainer) David Edelsohn
2009-07-02 15:56 ` David Edelsohn
2009-07-02 19:44   ` Richard Sandiford
2009-07-02 21:21     ` Janis Johnson

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