public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* 3.1 Build fails on SunOS 4.1.3_U1
@ 2002-08-01 16:52 Paul Frommeyer
  0 siblings, 0 replies; only message in thread
From: Paul Frommeyer @ 2002-08-01 16:52 UTC (permalink / raw)
  To: gcc-help


TWIMC:

I'm attempting to install GCC on a SunOS 4.1.3_U1 system (actually, I'm
attempting to build the latest Apache server, and am sorting out the 
dependencies for that, one of which is an ANSI compiler; ie; GCC). [And no, 
unfortunately at the moment I'm not in a position to switch to BSD or Linux].

Extant GNU tools are GNU Make 3.77, Flex 2.5.4, and Bison 1.28. AFAIK,
native C compiler and linker patches are current. Object builds are in
/usr/local/src/gcc-obj for 3.1 and /usr/local/src/gcc-2953-obj for 2.95.3, 
and I'm using an installation prefix of /usr/local/gcc.

Initially, I attempted an install of 2.95.3, on the theory that this install
should have been thoroughly shaken down on SunOS4 since it's a bit dated.
No luck; that installation blew up in the following fashion, with what
appears to be a C preprocessor error tho I can spot no obvious
trouble in the problem file:

---[snip]---
/local/src/gcc-2953-obj%make bootstrap
make[1]: Entering directory `/local/src/gcc-2953-obj/libiberty/testsuite'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/local/src/gcc-2953-obj/libiberty/testsuite'
make all-recursive
make[1]: Entering directory `/local/src/gcc-2953-obj/texinfo'
Making all in intl
make[2]: Entering directory `/local/src/gcc-2953-obj/texinfo/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/local/src/gcc-2953-obj/texinfo/intl'
Making all in lib
make[2]: Entering directory `/local/src/gcc-2953-obj/texinfo/lib'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/local/src/gcc-2953-obj/texinfo/lib'
Making all in makeinfo
make[2]: Entering directory `/local/src/gcc-2953-obj/texinfo/makeinfo'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/local/src/gcc-2953-obj/texinfo/makeinfo'
make[1]: Leaving directory `/local/src/gcc-2953-obj/texinfo'
Bootstrapping the compiler
make CC="cc" libdir=/usr/local/gcc/lib LANGUAGES="c "
make[1]: Entering directory `/local/src/gcc-2953-obj/gcc'
(cd intl && make all)
make[2]: Entering directory `/local/src/gcc-2953-obj/gcc/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/local/src/gcc-2953-obj/gcc/intl'
cc -c  -DIN_GCC -DHAIFA    -g  -DHAVE_CONFIG_H    -I. -I/usr/local/src/gcc-2.95.
3/gcc -I/usr/local/src/gcc-2.95.3/gcc/config -I/usr/local/src/gcc-2.95.3/gcc/../
include /usr/local/src/gcc-2.95.3/gcc/function.c
/usr/local/src/gcc-2.95.3/gcc/function.c: 7030: missing #endif
make[1]: *** [function.o] Error 2
make[1]: Leaving directory `/local/src/gcc-2953-obj/gcc'
make: *** [bootstrap] Error 2
*** Error code 2
make: Fatal error: Command failed for target `bootstrap'
/local/src/gcc-2953-obj%cat config.status
#!/bin/sh
# This file was generated automatically by configure.  Do not edit.
# This directory was configured as follows:
/usr/local/src/gcc-2.95.3/configure --with-gcc-version-trigger=/usr/local/src/gc
c-2.95.3/gcc/version.c --host=sparc-sun-sunos4.1.3_U1 --prefix=/usr/local/gcc --
norecursion
#
---[snip]---

Deciding that before troubling the lists I'd have a go with the latest package,
I attempted a 3.1 install. That barely got out of the gate before a
compilation failure:

---[snip]---
/local/src/gcc-obj%make bootstrap
if [ x"" != x ]; then \
  cc -c -DHAVE_CONFIG_H -g -I. -I/usr/local/src/gcc-3.1/libiberty/../include
/usr/local/src/gcc-3.1/libiberty/regex.c -o pic/regex.o; \
else true; fi
cc -c -DHAVE_CONFIG_H -g -I. -I/usr/local/src/gcc-3.1/libiberty/../include   /us
r/local/src/gcc-3.1/libiberty/regex.c
"/usr/local/src/gcc-3.1/libiberty/regex.c", line 1380: syntax error at or near s
tring "\0"
make: *** [regex.o] Error 1
*** Error code 2
make: Fatal error: Command failed for target `all-libiberty'
/local/src/gcc-obj%cat config.status
#!/bin/sh
# This file was generated automatically by configure.  Do not edit.
# This directory was configured as follows:
/usr/local/src/gcc-3.1/configure --with-gcc-version-trigger=/usr/local/src/gcc-3
.1/gcc/version.c --host=sparc-sun-sunos4.1.3_U1 --prefix=/usr/local/gcc --enable
-languages=c --norecursion
#
---[snip]---

Any help with either the 2.95.3 install (preferred) or the 3.1 install would
be *most* appreciated. I'm not subscribed to the list; direct E-mail works best.

Of course, if some kind soul has some 4.1.3 *binaries* available, that
would be grand... :-D

Apologies in advance if I've bothered everyone with a "Doh!" and
missed something obvious. I fear I lack the mental horsepower to tackle
debugging an installation as complex as GCC, so TIA for any pointers on
how to get one of these packages to build under 4.1.3_U1.

R,
        Paul

Paul "Corwin" Frommeyer                                         corwin@palas.com
Webmaster, Paul's Fone Company                              http://www.palas.com
Internet Engineers: Connectivity, Firewalls, Cisco routers a specialty

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-08-01 23:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-01 16:52 3.1 Build fails on SunOS 4.1.3_U1 Paul Frommeyer

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).