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]
Other format: [Raw text]

[Bug bootstrap/79076] New: [sparc/solaris] bootstrap comparison failure, in-tree binutils + --without-gnu-as


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79076

            Bug ID: 79076
           Summary: [sparc/solaris] bootstrap comparison failure, in-tree
                    binutils + --without-gnu-as
           Product: gcc
           Version: 4.9.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: phantall at gmail dot com
  Target Milestone: ---

Details:
* solaris 10
* gcc 4.9.2 for the initial compiler
* Followed the general configure/build pattern used by OpenCSW with a few
differences in configure flags (eg, not as many languages)
* Unlike OpenCSW I did it with binutils/cloog/mpfr/mpc/isl in-tree

The only thing that seemed to resolve the problem was to force it to use the
GNU assembler.  When using /usr/ccs/bin/as it would fail on the bootstrap
comparison.

I'm more reporting this to help out anyone who may run into this in the future
than in any hopes a fix will be forthcoming.

Here's what I did to get it configured:

     export AS=/usr/ccs/bin/as
     export AR=/usr/ccs/bin/ar
     export NM=/usr/ccs/bin/nm
     export RANLIB=/usr/ccs/bin/ranlib
     export STRIP=/usr/ccs/bin/strip
     export OBJCOPY=/opt/csw/gnu/objcopy

     export OBJDUMP=/opt/csw/gnu/objdump
     export READELF=/opt/csw/gnu/readelf

     export SHELL=/opt/csw/bin/bash
     export BUILD_SHELL=${SHELL}
     export CONFIG_SHELL=${SHELL}

     export
PATH=/opt/csw/gnu:/opt/csw/bin:/bin:/usr/bin:/usr/local/bin:/usr/sbin
     export -n LD_LIBRARY_PATH=

     mkdir -p /tmp/gcc-4.9.4/{build,src}/gcc-4.9.4
     cd /tmp/gcc-4.9.4/src
     /opt/csw/gnu/tar xf ~/Downloads/gcc/gcc-4.9.4.tar.bz2
     /opt/csw/gnu/tar xf ~/Downloads/gcc/binutils-2.24.tar.bz2
     /opt/csw/gnu/tar xf ~/Downloads/gcc/cloog-0.18.1.tar.gz
     /opt/csw/gnu/tar xf ~/Downloads/gcc/gmp-5.1.3.tar.gz
     /opt/csw/gnu/tar xf ~/Downloads/gcc/isl-0.12.2.tar.bz2
     /opt/csw/gnu/tar xf ~/Downloads/gcc/mpc-0.8.2.tar.gz
     /opt/csw/gnu/tar xf ~/Downloads/gcc/mpfr-3.1.2.tar.gz

     # note: opencsw doesn't do the in-tree build and there's a
     # few configure options that differ, but nothing that should
     # influence things)
     cd gcc-4.9.4
     ln -s ../cloog-0.18.1 cloog
     ln -s ../gmp-5.1.3 gmp
     ln -s ../isl-0.16.1 isl
     ln -s ../mpfr-3.1.2 mpfr
     ln -s ../binutils-2.24/binutils
     # I was intentionally not building these in solaris
     #ln -s ../binutils-2.24/gas
     #ln -s ../binutils-2.24/gold
     #ln -s ../binutils-2.24/ld
     ln -s ../binutils-2.24/bfd
     ln -s ../binutils-2.24/cpu
     ln -s ../binutils-2.24/elfcpp
     ln -s ../binutils-2.24/etc
     ln -s ../binutils-2.24/gprof
     ln -s ../binutils-2.24/opcodes

     cd /tmp/gcc-4.9.4/build/gcc-4.9.4
     /tmp/gcc-4.9.4/src/gcc-4.9.4/configure \
       --prefix=/a/non-standard/location \
       --enable-languages=c,c++,go \
       --disable-werror \
       --without-gnu-ld \
       --without-gnu-as \
       --with-ld=/usr/ccs/bin/ld \
       --with-as=${AS} \
       --enable-lto \
       --enable-libssp \
       --disable-nls \
       --enable-threads=posix \
       --with-system-zlib=/opt/csw \
       AR=${AR} \
       NM=${NM} \
       RANLIB=${RANLIB} \
       STRIP=${STRIP} \
       OBJCOPY=${OBJCOPY} \
       OBJDUMP=${OBJDUMP} \
       READELF=${READELF}

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