Article View: gnu.g++.lib.bug
Article #23Building libg++ on an m68k SYSV machine
From: Kevin Burton
Date: Sun, 05 Apr 1992 22:40
Date: Sun, 05 Apr 1992 22:40
67 lines
3279 bytes
3279 bytes
Compiler: gcc/g++ 2.1
OS: System Vr3
CPU: m68k
I have built gcc/g++ 2.1 on our machine. There were no errors. I am
using the trick outlined by Thorsten Ohl in his "unofficial Apollo patch"
( using collect to do ld ). I installed everything then I wanted to
move on to libg++-2.0. Since our machine is not in the configuration I
changed it as outlined below and in the libg++ directory I typed `make'.
It did not work. Our system is *NOT* ANSI compliant so hence I would
expect the mismatch below. Does anyone know how I might work around it ?
I have run fixincludes. Would `-nostdinc' be an option ? When I try
that it can't find std.h as shown below. Any ideas ?
----------- Using standard makefile
burton@silver(5)$ cat config.status
#!/bin/sh
# This file was generated automatically by configure. Do not edit.
# /n/silver/usr/local/src/libg++-2.0/libg++ was configured as follows:
/n/silver/usr/local/src/libg++-2.0/./configure hkv -target=hkv -norecursion
#
burton@silver(6)$ make
(rootme=`pwd` ; export rootme ; cd src ; \
make "CC=`if [ -d ${rootme}/../gcc ] ; \
then echo ${rootme}/../gcc/gcc -B${rootme}/../gcc/ ; \
else echo gcc -O ; fi`" "XTRAFLAGS=`if [ -d ${rootme}/../gcc ] ; \
then echo -I${rootme}/../gcc/include ; \
else echo ; fi`" \
"AR=`if [ -d ${rootme}/../binutils ] ; \
then echo ${rootme}/../binutils/ar ; \
else echo ar ; fi`" "RANLIB=`if [ -d ${rootme}/../binutils ] ; \
then echo ${rootme}/../binutils/ranlib ; \
else echo ranlib ; fi`")
gcc -O -I. -I./../iostream -I./../g++-include -c AllocRing.cc
In file included from ./../g++-include/std.h:28, from AllocRing.cc:22:
./../g++-include/stdio.h:174: conflicting types for `long unsigned int fread (void *, long unsigned int, long unsigned int, struct FILE*)'
/usr/local/lib/gcc-lib/hkv/2.1/include/stdio.h:86: previous declaration of `int fread (...)'
*** Error code 1
Stop.
*** Error code 1
Stop.
----------- Using -nostdinc
gcc -O -I. -I./../iostream -I./../g++-include -nostdinc -c AllocRing.cc
In file included from ./../g++-include/std.h:23, from AllocRing.cc:22:
./../g++-include/stddef.h:7: stddef.h: No such file or directory
In file included from ./../g++-include/std.h:28, from AllocRing.cc:22:
./../g++-include/stdio.h:114: stdio.h: No such file or directory
In file included from ./../g++-include/std.h:29, from AllocRing.cc:22:
./../g++-include/errno.h:9: errno.h: No such file or directory
*** Error code 1
Stop.
*** Error code 1
Stop.
--
Kevin Burton mail: burton@inno.heurikon.com
Innovision Corporation uucp: heurikon!inno!burton
8000 Excelsior Drive Suite #304, Madison WI 53717 at&t: 608/831-4441
Technical Details
Message-ID:
<9204052240.AA04146@inno>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!heurikon.UUCP!burtonShow Full Headers
Complete Article Headers
Newsgroups: gnu.g++.lib.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!heurikon.UUCP!burton From: burton@heurikon.UUCP (Kevin Burton) Subject: Building libg++ on an m68k SYSV machine Message-ID: <9204052240.AA04146@inno> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Sun, 5 Apr 1992 22:40:34 GMT Approved: bug-lib-g++@prep.ai.mit.edu Lines: 70