* compile gcc on unixware 2.1.3 failed!
@ 2001-09-08 0:02 tao
2001-09-08 0:22 ` Craig Rodrigues
2001-09-08 15:40 ` Robert Lipe
0 siblings, 2 replies; 3+ messages in thread
From: tao @ 2001-09-08 0:02 UTC (permalink / raw)
To: gcc
hi,When i compile gcc on unixware 2.1.3(i need use multithread.
),it show me some errors as follows:
/home/genfep/bin/make bootstrap
make[1]: Entering directory `/home/genfep/objdir/libiberty'
make[2]: Entering directory `/home/genfep/objdir/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/genfep/objdir/libiberty/testsuite'
make[1]: Leaving directory `/home/genfep/objdir/libiberty'
make[1]: Entering directory `/home/genfep/objdir/texinfo'
/home/genfep/bin/make all-recursive
make[2]: Entering directory `/home/genfep/objdir/texinfo'
Making all in intl
make[3]: Entering directory `/home/genfep/objdir/texinfo/intl'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/genfep/objdir/texinfo/intl'
Making all in lib
make[3]: Entering directory `/home/genfep/objdir/texinfo/lib'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/genfep/objdir/texinfo/lib'
Making all in makeinfo
make[3]: Entering directory `/home/genfep/objdir/texinfo/makeinfo'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/genfep/objdir/texinfo/makeinfo'
make[2]: Leaving directory `/home/genfep/objdir/texinfo'
make[1]: Leaving directory `/home/genfep/objdir/texinfo'
Bootstrapping the compiler
make[1]: Entering directory `/home/genfep/objdir/gcc'
/home/genfep/bin/make CC="cc" libdir=/usr/local/lib LANGUAGES="c "
make[2]: Entering directory `/home/genfep/objdir/gcc'
(cd intl && /home/genfep/bin/make all)
make[3]: Entering directory `/home/genfep/objdir/gcc/intl'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/genfep/objdir/gcc/intl'
case "c " in \
*[fF]77*) touch lang-f77;; \
*) rm -f lang-f77;; \
esac
if [ -f lang-f77 ]; then \
cc -c -DIN_GCC -g -DHAVE_CONFIG_H -I. -I/home/genfep/gcc-2.95.2/gcc -I/home/genfep/gcc-2.95.2/gcc/config -I/home
/genfep/gcc-2.95.2/gcc/../include /home/genfep/gcc-2.95.2/gcc/f/g77spec.c; \
else true; fi
case "c " in \
*[fF]77*) touch lang-f77;; \
*) rm -f lang-f77;; \
esac
if [ -f lang-f77 ]; then \
cc -c -DIN_GCC -g -DHAVE_CONFIG_H -I. -I/home/genfep/gcc-2.95.2/gcc -I/home/genfep/gcc-2.95.2/gcc/config -I/home
/genfep/gcc-2.95.2/gcc/../include -o g77version.o \
/home/genfep/gcc-2.95.2/gcc/f/version.c; \
else true; fi
if [ -f lang-f77 ]; then \
cc -DIN_GCC -g -DHAVE_CONFIG_H -o g77 gcc.o g77spec.o g77version.o \
version.o prefix.o intl.o obstack.o alloca.o ../libiberty/libiberty.a; \
else true; fi
cc -DIN_GCC -g -DHAVE_CONFIG_H -o gen-protos \
gen-protos.o scan.o libcpp.a ` case "obstack.o" in ?*) echo obstack.o ;; esac ` ` case "alloca.o" in ?*) echo alloca.o ;;
esac ` ` case "" in ?*) echo ;; esac ` ` case "" in ?*) echo ;; esac ` ` case "" in ?*) echo ;; esac `
Undefined first referenced
symbol in file
alloca libcpp.a(cpphash.o)
UX:ld: ERROR: gen-protos: fatal error: Symbol referencing errors. No output written to gen-protos
make[2]: *** [gen-protos] Error 1
make[2]: Leaving directory `/home/genfep/objdir/gcc'
make[1]: *** [bootstrap] Error 2
make[1]: Leaving directory `/home/genfep/objdir/gcc'
make: *** [bootstrap] Error 2
<131 FEP [genfep] :/home/genfep/objdir>uname -a
UNIX_SV FEP 4.2MP 2.1.3 i386 x86at
I don't know why that.Can you help me? thanks a lots.
waiting for your response.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: compile gcc on unixware 2.1.3 failed!
2001-09-08 0:02 compile gcc on unixware 2.1.3 failed! tao
@ 2001-09-08 0:22 ` Craig Rodrigues
2001-09-08 15:40 ` Robert Lipe
1 sibling, 0 replies; 3+ messages in thread
From: Craig Rodrigues @ 2001-09-08 0:22 UTC (permalink / raw)
To: tao; +Cc: gcc
On Sat, Sep 08, 2001 at 02:58:27PM +0800, tao wrote:
> hi,When i compile gcc on unixware 2.1.3(i need use multithread.
> ),it show me some errors as follows:
Did you try using the version of gcc for SCO at:
http://www.sco.com/skunkware/devtools/
--
Craig Rodrigues
http://www.gis.net/~craigr
rodrigc@mediaone.net
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: compile gcc on unixware 2.1.3 failed!
2001-09-08 0:02 compile gcc on unixware 2.1.3 failed! tao
2001-09-08 0:22 ` Craig Rodrigues
@ 2001-09-08 15:40 ` Robert Lipe
1 sibling, 0 replies; 3+ messages in thread
From: Robert Lipe @ 2001-09-08 15:40 UTC (permalink / raw)
To: tao; +Cc: gcc
tao wrote:
> hi,When i compile gcc on unixware 2.1.3(i need use multithread.
> ),it show me some errors as follows:
I was just about to ding you with an RTFM answer, but it looks like you
DID do the right thing and the tools did the wrong thing bechind your back.
> /home/genfep/bin/make bootstrap
[ ... ]
> if [ -f lang-f77 ]; then \
> cc -DIN_GCC -g -DHAVE_CONFIG_H -o g77 gcc.o g77spec.o g77version.o \
> version.o prefix.o intl.o obstack.o alloca.o ../libiberty/libiberty.a; \
> else true; fi
> cc -DIN_GCC -g -DHAVE_CONFIG_H -o gen-protos \
> gen-protos.o scan.o libcpp.a ` case "obstack.o" in ?*) echo obstack.o ;; esac ` ` case "alloca.o" in ?*) echo alloca.o ;;
> esac ` ` case "" in ?*) echo ;; esac ` ` case "" in ?*) echo ;; esac ` ` case "" in ?*) echo ;; esac `
> Undefined first referenced
> symbol in file
> alloca libcpp.a(cpphash.o)
> UX:ld: ERROR: gen-protos: fatal error: Symbol referencing errors. No output written to gen-protos
Somehow, either
A) cpphash is using alloca when it shouldn't or
B) this code is being built with the "wrong" compiler - /bin/cc doesn't
have alloca bug GCC does have this as an extension that's turned on
by default.
C) you configured with one compiler (gcc-ish) and built with
another (/bin/cc) which is, I suppose, a variation of "B".
What does the following command return on your system?
$ grep -i alloca config.cache ; grep ALLOC gcc/auto-host.h
ac_cv_func_alloca_works=${ac_cv_func_alloca_works='no'}
ac_cv_header_alloca_h=${ac_cv_header_alloca_h='no'}
#define C_ALLOCA 1
/* #undef HAVE_ALLOCA */
/* #undef HAVE_ALLOCA_H */
#define HAVE_MALLOC_H 1
#define HAVE_DECL_MALLOC 1
#define HAVE_DECL_REALLOC 1
#define HAVE_DECL_CALLOC 1
RJL
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-09-08 15:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-08 0:02 compile gcc on unixware 2.1.3 failed! tao
2001-09-08 0:22 ` Craig Rodrigues
2001-09-08 15:40 ` Robert Lipe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).