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 java/12896] New: gmp-4.2.1 and gcc-3.3.2 won't compile with gcc-3.3.1 on sparc


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: gmp-4.2.1 and gcc-3.3.2 won't compile with gcc-3.3.1 on
                    sparc
           Product: gcc
           Version: 3.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: villegas at math dot gatech dot edu
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: sparc-sun-solaris2.9
  GCC host triplet: sparc-sun-solaris2.9
GCC target triplet: sparc-sun-solaris2.9

The compiler seems to work fine for most software, however while trying to 
compile gmp-4.2.1 I got some errors mentioning "sparclite". After some googling
around I found this:

http://lists.debian.org/debian-gcc/2002/debian-gcc-200212/msg00075.html

Although it's not the same problem (I couldn't reproduce it with that simple
program), but the proposed workaround worked well (adding -Wa,-Av9b to the 
CFLAGS and LDFLAGS). After doing that gmp compiled without a problem.

Before reporting the bug, I decided to download and compile gcc-3.3.2 and see
if that worked better. But I actually couldn't compile it, I didn't try the 
workaround above for gcc, since I don't want to have a potentially broken gcc, 
I can try it if you think it would be helpful (to see if it compiles or not).

The error for gcc is:

Making all in include
: make ; exec true "AR_FLAGS=rc"  "CC_FOR_BUILD=gcc"  "CFLAGS=-O2 -g -O2  -m64" 
 "CXXFLAGS=-g -O2  -m64"  "CFLAGS_FOR_BUILD="  "CFLAGS_FOR_TARGET=-O2 -g -O2"  "
INSTALL=/bin/sh /home/sysadm/src/gcc/gcc-3.3.2/install-sh -c"  "INSTALL_DATA=/bi
n/sh /home/sysadm/src/gcc/gcc-3.3.2/install-sh -c -m 644"  "INSTALL_PROGRAM=/bin
/sh /home/sysadm/src/gcc/gcc-3.3.2/install-sh -c"  "INSTALL_SCRIPT=/bin/sh /home
/sysadm/src/gcc/gcc-3.3.2/install-sh -c"  "LDFLAGS=-m64"  "LIBCFLAGS=-O2 -g -O2 
 -m64"  "LIBCFLAGS_FOR_TARGET=-O2 -g -O2"  "MAKE=make"  "MAKEINFO=makeinfo "  "P
ICFLAG="  "PICFLAG_FOR_TARGET="  "SHELL=/bin/sh"  "EXPECT=expect"  "RUNTEST=runt
est"  "RUNTESTFLAGS="  "exec_prefix=/usr/local/encap/gcc-3.3.2"  "infodir=/usr/l
ocal/encap/gcc-3.3.2/info"  "libdir=/usr/local/encap/gcc-3.3.2/lib"  "prefix=/us
r/local/encap/gcc-3.3.2"  "tooldir=/usr/local/encap/gcc-3.3.2/sparc-sun-solaris2
.9"  "AR=ar"  "AS=/usr/ccs/bin/as"  "CC=/home/sysadm/src/gcc/gcc-obj/gcc/xgcc -B
/home/sysadm/src/gcc/gcc-obj/gcc/ -B/usr/local/encap/gcc-3.3.2/sparc-sun-solaris
2.9/bin/ -B/usr/local/encap/gcc-3.3.2/sparc-sun-solaris2.9/lib/ -isystem /usr/lo
cal/encap/gcc-3.3.2/sparc-sun-solaris2.9/include  -m64"  "CXX=/home/sysadm/src/g
cc/gcc-obj/gcc/g++ -B/home/sysadm/src/gcc/gcc-obj/gcc/ -nostdinc++ -nostdinc++ -
I/home/sysadm/src/gcc/gcc-obj/sparc-sun-solaris2.9/sparcv9/libstdc++-v3/include/
sparc-sun-solaris2.9 -I/home/sysadm/src/gcc/gcc-obj/sparc-sun-solaris2.9/sparcv9
/libstdc++-v3/include -I/home/sysadm/src/gcc/gcc-3.3.2/libstdc++-v3/libsupc++ -I
/home/sysadm/src/gcc/gcc-3.3.2/libstdc++-v3/libio -I/home/sysadm/src/gcc/gcc-3.3
.2/libstdc++-v3/include/backward -I/home/sysadm/src/gcc/gcc-3.3.2/libstdc++-v3/t
estsuite -L/home/sysadm/src/gcc/gcc-obj/sparc-sun-solaris2.9/sparcv9/libstdc++-v
3/src -L/home/sysadm/src/gcc/gcc-obj/sparc-sun-solaris2.9/sparcv9/libstdc++-v3/s
rc/.libs -B/usr/local/encap/gcc-3.3.2/sparc-sun-solaris2.9/bin/ -B/usr/local/enc
ap/gcc-3.3.2/sparc-sun-solaris2.9/lib/ -isystem /usr/local/encap/gcc-3.3.2/sparc
-sun-solaris2.9/include  -m64"  "LD=/usr/ccs/bin/ld"  "LIBCFLAGS=-O2 -g -O2  -m6
4"  "NM=/usr/ccs/bin/nm"  "PICFLAG="  "RANLIB=true"  "DESTDIR=" DO=all multi-do
mksh: Fatal error in reader: = missing from replacement macro reference
Current working directory /home/sysadm/src/gcc/gcc-obj/sparc-sun-solaris2.9/libj
ava
*** Error code 1
make: Fatal error: Command failed for target `all-target-libjava'

The configure options for gmp were "--prefix=/usr/local/encap/gmp-4.2.1 
--enable-cxx" and for gcc they were "--prefix=/usr/local/encap/gcc-3.3.2"
both running from an "object directory" instead of the source dir.

Please let me know if there is anything else you need.

Carlos


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