This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
target/3234: Solaris2.5 not finding binutils for libjava and check
- To: gcc-gnats at gcc dot gnu dot org
- Subject: target/3234: Solaris2.5 not finding binutils for libjava and check
- From: arno at heho dot snv dot jussieu dot fr
- Date: Mon, 18 Jun 2001 21:08:56 +0200
>Number: 3234
>Category: target
>Synopsis: configured with --with-gas, still calling /usr/ccs/bin/as iso gas
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jun 18 12:16:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Arno Klaassen
>Release: 3.0 20010615 (prerelease)
>Organization:
>Environment:
System: SunOS charlotte 5.5 Generic sun4u sparc SUNW,Ultra-1
Architecture: sun4
host: sparc-sun-solaris2.5
build: sparc-sun-solaris2.5
target: sparc-sun-solaris2.5
configured with: ../../configure --verbose --host=sparc-sun-solaris2.5 --with-gnu-as --with-gas --with-gnu-ld --enable-threads --with-threads=posix --enable-languages=c++,java,f77 --prefix=/usr/vol/opt/sol25/gcc-3-200106 --disable-shared
>Description:
When building libjava, gcj calls /usr/ccs/bin/as rather than <prefix>/bin/as:
(I use a recent cvs binutils; as --version = GNU assembler 2.11.90)
/ccd0/vol/src/cygnus/gcc-3/gcc/obj/sol25/gcc/gcj -B/ccd0/vol/src/cygnus/gcc-3/gc
c/obj/sol25/sparc-sun-solaris2.5/libjava/ -B/ccd0/vol/src/cygnus/gcc-3/gcc/obj/s
ol25/gcc/ --encoding=UTF-8 -fassume-compiled -fclasspath=/ccd0/vol/src/cygnus/gc
c-3/gcc/obj/sol25/sparc-sun-solaris2.5/libjava -L/ccd0/vol/src/cygnus/gcc-3/gcc/
obj/sol25/sparc-sun-solaris2.5/libjava -g -O2 -MD -MT java/lang/Class.lo -MF jav
a/lang/Class.d -c ../../../../libjava/java/lang/Class.java -o java/lang/Class.o
/usr/ccs/bin/as: error: unknown option '-'
/usr/ccs/bin/as: error: unknown option 't'
/usr/ccs/bin/as: error: unknown option 'aditional-format'
usage: /usr/ccs/bin/as [-V] [-Q{y,n}] [-f[O][if]#] [-q] [-s]
[-S] [-K {pic,PIC}] [-o objfile] [-L] [-T]
[-P [[-Ipath] [-Dname] [-Dname=def] [-Uname]]...]
[-m [-Ym,path]] [-n] [-xF] [-xarch=v7] [-xarch=v8] [-xarch=v8a] [-xarc
h=v8plus] [-xarch=v8plusa] file.s...
make[3]: *** [java/lang/Class.lo] Error 1
Probably related, doing a make check *before* installing, yields the same
problem for check-g??:
../../../gcc/g77 -B../../../gcc/ -L.. -g ../../../../../libf2c/libU77/u77-test.f
\
-lg2c -lsocket -lm -o a.out && ./a.out
../../../../../libf2c/libU77/u77-test.f: In program `MAIN__':
../../../../../libf2c/libU77/u77-test.f:214: warning:
call idate (i,j,k)
^
Intrinsic `IDATE', invoked at (^), known to be non-Y2K-compliant [info -f g77 M
Y2KBAD]
../../../../../libf2c/libU77/u77-test.f:223: warning:
call date (ctim)
^
Intrinsic `DATE', invoked at (^), known to be non-Y2K-compliant [info -f g77 M Y
2KBAD]
/usr/ccs/bin/as: error: unknown option '-'
/usr/ccs/bin/as: error: unknown option 't'
/usr/ccs/bin/as: error: unknown option 'aditional-format'
usage: /usr/ccs/bin/as [-V] [-Q{y,n}] [-f[O][if]#] [-q] [-s]
[-S] [-K {pic,PIC}] [-o objfile] [-L] [-T]
[-P [[-Ipath] [-Dname] [-Dname=def] [-Uname]]...]
[-m [-Ym,path]] [-n] [-xF] [-xarch=v7] [-xarch=v8] [-xarch=v8a] [-xarc
h=v8plus] [-xarch=v8plusa] file.s...
make[2]: [check] Error 1 (ignored)
e.g. gcc tests yield:
=== gcc Summary ===
# of expected passes 3875
# of unexpected failures 7689
# of expected failures 62
# of unresolved testcases 3579
# of unsupported tests 48
>How-To-Repeat:
configure --host=sparc-sun-solaris2.5 --with-gnu-as --with-gas --prefix=<where_i_just_installed_binutils> && make bootstrap
>Fix:
fix for libjava: (there are probably better ways to do this, but it works
and should not harm on non-binutils systems; the -v option is just for checking)
Index: libjava/Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/libjava/Makefile.in,v
retrieving revision 1.139.2.13
diff -u -r1.139.2.13 Makefile.in
--- Makefile.in 2001/06/08 17:58:11 1.139.2.13
+++ Makefile.in 2001/06/17 20:11:08
@@ -32,6 +32,7 @@
includedir = @includedir@
oldincludedir = /usr/include
+
DESTDIR =
pkgdatadir = $(datadir)/@PACKAGE@
@@ -63,6 +64,7 @@
host_triplet = @host@
target_alias = @target_alias@
target_triplet = @target@
+build_tooldir = $(exec_prefix)/${target_alias}
AM_RUNTESTFLAGS = @AM_RUNTESTFLAGS@
AR = @AR@
AS = @AS@
@@ -78,6 +80,7 @@
GCDEPS = @GCDEPS@
GCINCS = @GCINCS@
GCJ = @GCJ@
+GCJ += -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/../include -v
GCJFLAGS = @GCJFLAGS@
GCJVERSION = @GCJVERSION@
GCLIBS = @GCLIBS@
===================================================================
fix for check-libjava: (I did not find a more generic way to code this ...)
Index: libjava/testsuite/lib/libjava.exp
===================================================================
RCS file: /cvs/gcc/gcc/libjava/testsuite/lib/libjava.exp,v
retrieving revision 1.22.4.4
diff -u -r1.22.4.4 libjava.exp
--- libjava.exp 2001/05/04 19:32:15 1.22.4.4
+++ libjava.exp 2001/06/17 20:11:12
@@ -302,7 +302,7 @@
if {[file exists $d/$x/libtool]} then {
# We have to run silently to avoid DejaGNU lossage.
lappend args \
- "compiler=$d/$x/libtool --silent --tag=GCJ --mode=$mode $GCJ_UNDER_TEST -B$objdir/../"
+ "compiler=$d/$x/libtool --silent --tag=GCJ --mode=$mode $GCJ_UNDER_TEST -B$objdir/../ -B/usr/vol/opt/sol25/gcc-3-200106/sparc-sun-solaris2.5/bin/ -B/usr/vol/opt/sol25/gcc-3-200106/sparc-sun-solaris2.5/lib/ -isystem /usr/vol/opt/sol25/gcc-3-200106/include"
set found_compiler 1
break
}
===================================================================
fix for check-g??:
make install *before* make check ....
BTW, then testresults are pretty impressive:
=== libstdc++-v3 Summary ===
# of expected passes 236
# of unexpected failures 8
# of unexpected successes 1
# of expected failures 7
FAIL: 21_strings/append.cc execution test
FAIL: 21_strings/c_strings.cc execution test
FAIL: 21_strings/ctor_copy_dtor.cc execution test
FAIL: 21_strings/element_access.cc execution test
FAIL: 21_strings/insert.cc execution test
FAIL: 21_strings/substr.cc execution test
FAIL: 23_containers/vector_element_access.cc execution test
XPASS: 26_numerics/c99_classification_macros_c.cc (test for excess errors)
FAIL: 26_numerics/c_math.cc (test for excess errors)
WARNING: 26_numerics/c_math.cc compilation failed to produce executable
=== libjava Summary ===
# of expected passes 1660
# of unexpected failures 8
# of unexpected successes 10
# of expected failures 14
# of untested testcases 24
FAIL: Invoke_1 execution from source compiled test
FAIL: Invoke_1 execution from bytecode->native test
FAIL: Invoke_1 -O execution from source compiled test
FAIL: Invoke_1 -O execution from bytecode->native test
XPASS: N19990310_4 output from source compiled test
expected was OK
output was NG
XPASS: N19990310_4 -O output from source compiled test
expected was OK
output was NG
FAIL: Thread_Alive execution from source compiled test
FAIL: Thread_Alive execution from bytecode->native test
FAIL: Thread_Alive -O execution from source compiled test
FAIL: Thread_Alive -O execution from bytecode->native test
expected was zardoz
output was q=0
zardoz
XPASS: stringconst output from bytecode->native test
expected was zardoz
output was q=0
zardoz
XPASS: stringconst -O output from bytecode->native test
XPASS: stub compilation from source
XPASS: stub byte compilation
XPASS: stub compilation from bytecode
XPASS: stub -O compilation from source
XPASS: stub byte compilation
=== gcc Summary ===
# of expected passes 15164
# of unexpected failures 5
# of unexpected successes 6
# of expected failures 77
# of unsupported tests 48
FAIL: gcc.c-torture/compile/20001226-1.c, -Os
XPASS: gcc.c-torture/execute/20010114-2.c execution, -O0
XPASS: gcc.c-torture/execute/20010114-2.c execution, -O1
XPASS: gcc.c-torture/execute/20010114-2.c execution, -O2
XPASS: gcc.c-torture/execute/20010114-2.c execution, -O3 -fomit-frame-pointer
XPASS: gcc.c-torture/execute/20010114-2.c execution, -O3 -g
XPASS: gcc.c-torture/execute/20010114-2.c execution, -Os
FAIL: gcc.dg/20001013-1.c (test for excess errors)
WARNING: gcc.dg/20001013-1.c compilation failed to produce executable
FAIL: gcc.misc-tests/gcov-1.c execution test
FAIL: gcov failed:
WARNING: program timed out.
FAIL: gcc.misc-tests/gcov-2.c execution test (PRMS 8294)
=== g++ Summary ===
# of expected passes 6461
# of unexpected failures 7
# of expected failures 102
# of untested testcases 18
FAIL: g++.eh/badalloc1.C Execution test
FAIL: g++.ext/instantiate1.C not instantiated (test for errors, line 20)
FAIL: g++.law/profile1.C Execution test
FAIL: g++.robertl/eb130.C (test for excess errors)
FAIL: g++.robertl/eb132.C (test for excess errors)
FAIL: g++.robertl/eb73.C (test for excess errors)
WARNING: program timed out.
FAIL: g++.robertl/eb83.C Execution test
=== g77 Summary ===
# of expected passes 933
# of unsupported tests 8
>Release-Note:
>Audit-Trail:
>Unformatted: