problems building ecgs-1.1b on i386-nextstep
Tilo Schwarz
tilo.schwarz@dbag.ulm.daimlerbenz.com
Mon Sep 7 05:54:00 GMT 1998
Hello,
this is the same problem, I reported already for ecgs-19980803:
~/Library/nobackup/egcs-1.1b/objdir> ../configure
--prefix=/Net/carnap/Users/tschwarz/Unix
Configuring for a i386-next-nextstep3 host.
Created "Makefile" in /Users/tschwarz/Library/nobackup/egcs-1.1b/objdir
ld: warning table of contents of library:
/Net/carnap/Users/tschwarz/Unix/lib/gcc-lib/i386-next-nextstep3/2.8.1/libgcc.a
not sorted slower link editing will result (use the ranlib(1) -s option)
Links are now set up to build a native compiler for i386-next-nextstep3
-----------------------------------------------------------
~/Library/nobackup/egcs-1.1b> ./config.guess
i386-next-nextstep3
-----------------------------------------------------------
~/Library/nobackup/egcs-1.1b> gcc -v
Reading specs from
/Net/carnap/Users/tschwarz/Unix/lib/gcc-lib/i386-next-nextstep3/2.8.1/specs
gcc version 2.8.1
-----------------------------------------------------------
~/Library/nobackup/egcs-1.1b/objdir> nice -20 gnumake bootstrap
gnumake[1]: Entering directory
`/Users/tschwarz/Library/nobackup/egcs-1.1b/objdir/libiberty'
test x"no" != xyes || \
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../libiberty/../include
../../libiberty/argv.c -o pic/argv.o
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../libiberty/../include
../../libiberty/argv.c
test x"no" != xyes || \
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../libiberty/../include
../../libiberty/choose-temp.c -o pic/choose-temp.o
[stuff deleted]
stage1/xgcc -Bstage1/ -DIN_GCC -O2 -g -O2 -DHAVE_CONFIG_H -I.
-I../../gcc -I../../gcc/config \
-DGCC_INCLUDE_DIR=\"/Net/carnap/Users/tschwarz/Unix/lib/gcc-lib/i386-next-nextstep3/egcs-2.91.57/include\"
\
-DGPLUSPLUS_INCLUDE_DIR=\"/Net/carnap/Users/tschwarz/Unix/include/g++\" \
-DOLD_GPLUSPLUS_INCLUDE_DIR=\"/Net/carnap/Users/tschwarz/Unix/lib/g++-include\"
\
-DLOCAL_INCLUDE_DIR=\"/usr/local/include\" \
-DCROSS_INCLUDE_DIR=\"/Net/carnap/Users/tschwarz/Unix/i386-next-nextstep3/sys-include\"
\
-DTOOL_INCLUDE_DIR=\"/Net/carnap/Users/tschwarz/Unix/i386-next-nextstep3/include\"
\
-c `echo ../../gcc/cccp.c | sed 's,^\./,,'`
stage1/xgcc -Bstage1/ -DIN_GCC -O2 -g -O2 -DHAVE_CONFIG_H -I.
-I../../gcc -I../../gcc/config -c ../../gcc/cexp.c
stage1/xgcc -Bstage1/ -c -DIN_GCC -O2 -g -O2 -DHAVE_CONFIG_H
-I. -I../../gcc -I../../gcc/config ../../gcc/version.c
stage1/xgcc -Bstage1/ -DIN_GCC -O2 -g -O2 -DHAVE_CONFIG_H -I.
-I../../gcc -I../../gcc/config \
-DPREFIX=\"/Net/carnap/Users/tschwarz/Unix\" \
-c `echo ../../gcc/prefix.c | sed 's,^\./,,'`
stage1/xgcc -Bstage1/ -c -DIN_GCC -O2 -g -O2 -DHAVE_CONFIG_H
-I. -I../../gcc -I../../gcc/config ../../gcc/obstack.c
stage1/xgcc -Bstage1/ -DIN_GCC -O2 -g -O2 -DHAVE_CONFIG_H -o cccp
cccp.o cexp.o prefix.o \
version.o obstack.o
rm -f cpp
ln cccp cpp
stage1/xgcc -Bstage1/ -c -DIN_GCC -O2 -g -O2 -DHAVE_CONFIG_H
-I. -I../../gcc -I../../gcc/config ../../gcc/gencheck.c
stage1/xgcc -Bstage1/ -DIN_GCC -O2 -g -O2 -DHAVE_CONFIG_H -o gencheck \
gencheck.o ` case "obstack.o" in ?*) echo obstack.o ;; esac ` ` case ""
in ?*) echo ;; esac ` ` case "" in ?*) echo ;; esac ` ` case "" in ?*)
echo ;; esac ` ` case "" in ?*) echo ;; esac `
./gencheck > tmp-check.h
/bin/sh: 22455 Memory fault
gnumake[2]: *** [s-check] Error 139
gnumake[2]: Leaving directory
`/Users/tschwarz/Library/nobackup/egcs-1.1b/objdir/gcc'
gnumake[1]: *** [bootstrap] Error 2
gnumake[1]: Leaving directory
`/Users/tschwarz/Library/nobackup/egcs-1.1b/objdir/gcc'
gnumake: *** [bootstrap] Error 2
-----------------------------------------------------------
~/Library/nobackup/egcs-1.1b/objdir> cd gcc
-----------------------------------------------------------
~/Library/nobackup/egcs-1.1b/objdir/gcc> gdb gencheck
GDB is free software and you are welcome to distribute copies of it
under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.7 (NeXT 3.1), Copyright 1992 Free Software Foundation, Inc...
Reading symbols from
/Users/tschwarz/Library/nobackup/egcs-1.1b/objdir/gcc/gencheck...done.
Reading symbols from /usr/shlib/libsys_s.B.shlib...done.
Breakpoint 1 at 0x505a693
Breakpoint 2 at 0x505a344
Function "fancy_abort" not defined.
(gdb) br 53
Reading in symbols for ../../gcc/gencheck.c...done.
Breakpoint 3 at 0x2972: ../../gcc/gencheck.c:53.
(gdb) run
Starting program:
/Users/tschwarz/Library/nobackup/egcs-1.1b/objdir/gcc/gencheck
/* This file is generated using gencheck. Do not edit. */
Breakpoint 3, main (argc=?, argv=0xbffffc20) at ../../gcc/gencheck.c:53
53 for (i = 0; tree_codes[i]; i++)
(gdb) l
48 usage ();
49 exit (1);
50 }
51
52 printf ("/* This file is generated using gencheck. Do not
edit. */\n");
53 for (i = 0; tree_codes[i]; i++)
54 {
55 printf ("#define %s_CHECK(t)\tTREE_CHECK (t, %s)\n",
56 tree_codes[i], tree_codes[i]);
57 printf ("#define %s_CHECK1(t)\tTREE_CHECK1 (t, %s)\n",
(gdb) print i
No symbol "i" in current context.
(gdb) print tree_codes[0]
$1 = 0x3ec0 "ERROR_MARK"
(gdb) print tree_codes[130]
$2 = 0x2e80 "EXPR_WITH_FILE_LOCATION"
(gdb) print tree_codes[131]
$3 = 0x0
(gdb) step
Program generated(1): Memory access exception on address 0x6850900f
(invalid address).
0x2983 in main (argc=?, argv=0xbffffc20) at ../../gcc/gencheck.c:53
53 for (i = 0; tree_codes[i]; i++)
(gdb) The program is running. Quit anyway? (y or n) y
-----------------------------------------------------------
~/Library/nobackup/egcs-1.1b>
Why does gdb say "No symbol "i" in current context.". I don't know ...
Bye
Tilo
--------------------
Tilo Schwarz, Daimler-Benz AG, Research Center Ulm, FT3/AB
Address: Wilhelm-Runge-Str.11, P.O. Box 23 60, 89013 Ulm, Germany
Phone: +49 731 505 2376
Email: tilo.schwarz@dbag.ulm.daimlerbenz.com
(NeXT- and MIME-Mail welcome)
More information about the Gcc-bugs
mailing list