From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26985 invoked by alias); 18 May 2003 21:06:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 26961 invoked by uid 71); 18 May 2003 21:06:01 -0000 Resent-Date: 18 May 2003 21:06:01 -0000 Resent-Message-ID: <20030518210601.26960.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, zglozik@iolfree.ie Received: (qmail 8927 invoked by uid 48); 18 May 2003 20:57:17 -0000 Message-Id: <20030518205717.8925.qmail@sources.redhat.com> Date: Sun, 18 May 2003 21:06:00 -0000 From: zglozik@iolfree.ie Reply-To: zglozik@iolfree.ie To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: target/10847: gcc 3.3 will not build on openbsd3.2-sparc64 X-SW-Source: 2003-05/txt/msg02044.txt.bz2 List-Id: >Number: 10847 >Category: target >Synopsis: gcc 3.3 will not build on openbsd3.2-sparc64 >Confidential: no >Severity: critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Sun May 18 21:06:01 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Zoltan Glozik >Release: gcc 3.3 >Organization: >Environment: OpenBSD bsd1.opentsa.org 3.2 CUSTOM#0 sparc64 >Description: I tried to build gcc 3.3 and got an error message. The system I used: $ gcc-3.3/config.guess sparc64-unknown-openbsd3.2 The config line I used: Configured with: ../gcc-3.3/configure --prefix /usr/local/gcc-3.3 --disable-threads --enable-languages=c --disable-nls The error message: (SHLIB_LINK='' \ SHLIB_MULTILIB=''; \ gcc -g -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prot otypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I. -I../ ../gcc-3.3/gcc -I../../gcc-3.3/gcc/. -I../../gcc-3.3/gcc/config -I../../gcc-3.3/ gcc/../include \ -DSTANDARD_STARTFILE_PREFIX=\"../../../\" -DSTANDARD_EXEC_PREFIX=\"/usr/local/ gcc-3.3/lib/gcc-lib/\" -DDEFAULT_TARGET_VERSION=\"3.3\" -DDEFAULT_TARGET_MACHINE =\"sparc64-unknown-openbsd3.2\" -DSTANDARD_BINDIR_PREFIX=\"/usr/local/gcc-3.3/bi n/\" -DTOOLDIR_BASE_PREFIX=\"../../../../\" `test "X${SHLIB_LINK}" = "X" || tes t "yes" != "yes" || echo "-DENABLE_SHARED_LIBGCC"` `test "X${SHLIB_MULTILIB}" = "X" || echo "-DNO_SHARED_LIBGCC_MULTILIB"` \ -c ../../gcc-3.3/gcc/gcc.c -o gcc.o) ../../gcc-3.3/gcc/gcc.c:1423: `STARTFILE_ARCH_SPEC' undeclared here (not in a fu nction) ../../gcc-3.3/gcc/gcc.c:1423: initializer element is not constant ../../gcc-3.3/gcc/gcc.c:1423: (near initialization for `extra_specs_1[15].ptr') ../../gcc-3.3/gcc/gcc.c:1423: `LINK_ARCH_SPEC' undeclared here (not in a functio n) ../../gcc-3.3/gcc/gcc.c:1423: initializer element is not constant ../../gcc-3.3/gcc/gcc.c:1423: (near initialization for `extra_specs_1[16].ptr') gmake[2]: *** [gcc.o] Error 1 gmake[2]: Leaving directory `/usr/home/zglozik/src/gcc-obj/gcc' The compile went fine after applying the following patch: diff -u -r ../tmp/gcc-3.3/gcc/config/sparc/openbsd64.h gcc-3.3/gcc/config/sparc/openbsd64.h --- ../tmp/gcc-3.3/gcc/config/sparc/openbsd64.h Thu May 30 20:35:58 2002 +++ gcc-3.3/gcc/config/sparc/openbsd64.h Sun May 18 18:33:58 2003 @@ -73,3 +73,7 @@ crtbegin%O%s} %{shared:crtbeginS%O%s}" #undef ENDFILE_SPEC #define ENDFILE_SPEC "%{!shared:crtend%O%s} %{shared:crtendS%O%s}" + +/* is this correct? (added by Zoltan Glozik) */ +#undef SUBTARGET_EXTRA_SPECS +#define SUBTARGET_EXTRA_SPECS After applying the patch and compiling gcc I tried to run the test suite, but a got bus error after a few tests. I have attached the test run output. >How-To-Repeat: Try to build gcc 3.3 on openbsd3.2-sparc64 (Sun Ultra 1) >Fix: See description, I am not sure it is correct. >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: text/plain; name="check_out" Content-Disposition: inline; filename="check_out" make do-check NOTPARALLEL=parallel-ok ./test-demangle < ../../../gcc-3.3/libiberty/testsuite/demangle-expected ./test-demangle: 649 tests, 0 failures (rootme=`${PWDCMD-pwd}`; export rootme; srcdir=`cd ../../gcc-3.3/gcc; ${PWDCMD-pwd}` ; export srcdir ; cd testsuite; EXPECT=expect ; export EXPECT ; if [ -f ${rootme}/../expect/expect ] ; then TCL_LIBRARY=`cd .. ; cd ../../gcc-3.3/gcc/../tcl/library ; ${PWDCMD-pwd}` ; export TCL_LIBRARY ; fi ; runtest --tool gcc ) WARNING: Couldn't find the global config file. Test Run By zglozik on Sun May 18 18:31:24 2003 Native configuration is sparc64-unknown-openbsd3.2 === gcc tests === Schedule of variations: unix Running target unix Using /usr/local/share/dejagnu/baseboards/unix.exp as board description file for target. Using /usr/local/share/dejagnu/config/unix.exp as generic interface file for target. Using /usr/home/zglozik/src/gcc-3.3/gcc/testsuite/config/default.exp as tool-and-target-specific interface file. Running /usr/home/zglozik/src/gcc-3.3/gcc/testsuite/gcc.c-torture/compile/compile.exp ... FAIL: gcc.c-torture/compile/20001226-1.c, -O0 WARNING: program timed out. FAIL: gcc.c-torture/compile/20001226-1.c, -O1 FAIL: gcc.c-torture/compile/20001226-1.c, -O2 FAIL: gcc.c-torture/compile/20001226-1.c, -O3 -fomit-frame-pointer FAIL: gcc.c-torture/compile/20001226-1.c, -O3 -g FAIL: gcc.c-torture/compile/20001226-1.c, -Os FAIL: gcc.c-torture/compile/simd-5.c, -O0 FAIL: gcc.c-torture/compile/simd-5.c, -O1 FAIL: gcc.c-torture/compile/simd-5.c, -O2 FAIL: gcc.c-torture/compile/simd-5.c, -O3 -fomit-frame-pointer FAIL: gcc.c-torture/compile/simd-5.c, -O3 -g FAIL: gcc.c-torture/compile/simd-5.c, -Os Running /usr/home/zglozik/src/gcc-3.3/gcc/testsuite/gcc.c-torture/execute/execute.exp ... Bus error (core dumped) *** Error code 138 (ignored)