This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

cross compiler install problem (more info)


I had previously reported the following problem in egcs-971105 when
building a cross compiler for rs6000-ibm-aix3.2.5 on a couple hpux
platforms (output from "make install"):

    ( cd /usr/local/rs6000-ibm-aix3.2.5/lib/soft-float ; rs6000-ibm-aix3.2.5-ranlib libiberty.a.n )
    rs6000-ibm-aix3.2.5-ranlib: libiberty.a.n: File format not recognized
    gmake[4]: *** [install_to_tooldir] Error 1
    gmake[4]: Target `install' not remade because of errors.
    gmake[4]: Leaving directory `/a/earth/fs2/tmp/gemini/egcs-971105/rs6000-ibm-aix3.2.5/soft-float/libiberty'

Here are some more details.

A bunch of symlinks to ./libiberty/libiberty.a are made early in the
build process:

    -rw-rw-r-- ./libiberty/libiberty.a
    lrwxrwxrwx ./rs6000-ibm-aix3.2.5/soft-float/common/libiberty/libiberty.a -> ../../../../libiberty/libiberty.a
    lrwxrwxrwx ./rs6000-ibm-aix3.2.5/soft-float/power/libiberty/libiberty.a -> ../../../../libiberty/libiberty.a
    lrwxrwxrwx ./rs6000-ibm-aix3.2.5/soft-float/powerpc/libiberty/libiberty.a -> ../../../../libiberty/libiberty.a
    lrwxrwxrwx ./rs6000-ibm-aix3.2.5/soft-float/libiberty/libiberty.a -> ../../../libiberty/libiberty.a
    lrwxrwxrwx ./rs6000-ibm-aix3.2.5/common/libiberty/libiberty.a -> ../../../libiberty/libiberty.a
    lrwxrwxrwx ./rs6000-ibm-aix3.2.5/power/libiberty/libiberty.a -> ../../../libiberty/libiberty.a
    lrwxrwxrwx ./rs6000-ibm-aix3.2.5/powerpc/libiberty/libiberty.a -> ../../../libiberty/libiberty.a
    -rw-rw-r-- ./rs6000-ibm-aix3.2.5/libiberty/libiberty.a

It looks like the symlinks should point at
./rs6000-ibm-aix3.2.5/libiberty/libiberty.a, not
./libiberty/libiberty.a.  In fact, it looks like
./rs6000-ibm-aix3.2.5/libiberty/libiberty.a is originally a symlink,
but it gets clobbered when the cross-library is made:

    rm -rf libiberty.a
    rs6000-ibm-aix3.2.5-ar rc libiberty.a \
      argv.o basename.o choose-temp.o concat.o cplus-dem.o fdmatch.o fnmatch.o getopt.o getopt1.o getruntime.o hex.o floatformat.o objalloc.o obstack.o pexecute.o spaces.o strerror.o strsignal.o xatexit.o xexit.o xmalloc.o xstrdup.o xstrerror.o asprintf.o vfork.o vasprintf.o
    rs6000-ibm-aix3.2.5-ranlib libiberty.a

A fix from an egcs guru would be appreciated.

Joe Buehler


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]