Thread View: gnu.gcc.help
3 messages
3 total messages
Started by Jim Lynch
Wed, 23 Dec 1992 21:19
libg++-2.3
Author: Jim Lynch
Date: Wed, 23 Dec 1992 21:19
Date: Wed, 23 Dec 1992 21:19
108 lines
4737 bytes
4737 bytes
Hello, more problems... I did the 'make fixincludes' and now I'm getting more
problems... Question: If I set the _prefix_, does the lib make assume that my
entire installation is in the prefix directory? If so, is there a way to tell
the make (presumably thru 'configure') only the fixed includes are in my dir
and the rest can be found in the default place (/usr/local/...)?
Here's what I'm getting when I try to make the c++ libs:
Problem I:
dummy.c: 4: Can't find include file stdarg.h
Problem II:
gcc -g -O -nostdinc++ -I.. -I. -I./../iostream -I./../g++-include -c String.cc
In file included from String.cc:28:
/u31/jimlynch/lib/gcc-lib/sparc-sun-sunos4.1.3/2.3.2/include/limits.h:11: syslim
its.h: No such file or directory
*** Error code 1
make: Fatal error: Command failed for target `String.o'
Current working directory /u31/jimlynch/libg++-2.3/libg++/src
*** Error code 1
make: Fatal error: Command failed for target `in-src'
Current working directory /u31/jimlynch/libg++-2.3/libg++
*** Error code 1
make: Fatal error: Command failed for target `all-libg++'
HELP! BLAH!
A full transcript follows, including configuration.
----
{Netcom:24} configure sparc-sun-sunos411 -prefix=$HOME
Created "Makefile" in /u31/jimlynch/libg++-2.3 using "config/mh-sun"
{Netcom:26} make
echo "# !Automatically generated from ./functions.def"\
"- DO NOT EDIT!" >needed2.awk
grep '^DEFVAR(' < ./functions.def \
| sed -e '/DEFVAR/s|DEFVAR.\([^,]*\).*|/\1/ { printf "#ifndef NEED_\1\\n#define
NEED_\1\\n#endif\\n" }|' \
>>needed2.awk
grep '^DEFFUNC(' < ./functions.def \
| sed -e '/DEFFUNC/s|DEFFUNC.\([^,]*\).*|/\1/ { printf "#ifndef NEED_\1\\n#defi
ne NEED_\1\\n#endif\\n" }|' \
>>needed2.awk
cc -c -g -I. -I./../include ./dummy.c
(cc -o dummy dummy.o ) >errors 2>&1 || true
echo "/* !Automatically generated from ./functions.def"\
"- DO NOT EDIT! */" >lconfig.h
awk -f needed2.awk <errors >>lconfig.h
cp lconfig.h config.h
cc -c -g -I. -I./../include argv.c
cc -c -g -I. -I./../include basename.c
cc -c -g -I. -I./../include concat.c
cc -c -g -I. -I./../include cplus-dem.c
cc -c -g -I. -I./../include fdmatch.c
cc -c -g -I. -I./../include getopt.c
cc -c -g -I. -I./../include getopt1.c
cc -c -g -I. -I./../include obstack.c
cc -c -g -I. -I./../include spaces.c
cc -c -g -I. -I./../include strerror.c
cc -c -g -I. -I./../include strsignal.c
echo "# !Automatically generated from ./functions.def"\
"- DO NOT EDIT!" >needed.awk
grep '^DEF(' < ./functions.def \
| sed -e '/DEF/s|DEF.\([^,]*\).*|/\1/ { printf "\1.o " }|' \
>>needed.awk
awk -f needed.awk <errors >lneeded-list
echo >>lneeded-list
cp lneeded-list needed-list
cc -c -g -I. -I./../include memmove.c
cc -c -g -I. -I./../include strtoul.c
cc -c -g -I. -I./../include alloca.c
rm -rf libiberty.a
ar qc libiberty.a \
argv.o basename.o concat.o cplus-dem.o fdmatch.o getopt.o getopt1.o obstack.o
spaces.o strerror.o strsignal.o memmove.o strtoul.o alloca.o
ranlib libiberty.a
rootme=`pwd`/ ; export rootme; \
CC="cc "; export CC; \
CXX="gcc -nostdinc++"; export CXX; \
CONFIG_NM="nm"; export CONFIG_NM; \
./utils/gen-params LIB_VERSION=2.3 >tmp-params.h
dummy.c: 4: Can't find include file stdarg.h
mv tmp-params.h _G_config.h
gcc -g -O -nostdinc++ -I.. -I. -I./../iostream -I./../g++-include -c AllocRing.
cc
gcc -g -O -nostdinc++ -I.. -I. -I./../iostream -I./../g++-include -c Obstack.cc
gcc -g -O -nostdinc++ -I.. -I. -I./../iostream -I./../g++-include -c builtin.cc
gcc -g -O -nostdinc++ -I.. -I. -I./../iostream -I./../g++-include -c regex.cc
gcc -g -O -nostdinc++ -I.. -I. -I./../iostream -I./../g++-include -c Regex.cc
gcc -g -O -nostdinc++ -I.. -I. -I./../iostream -I./../g++-include -c String.cc
In file included from String.cc:28:
/u31/jimlynch/lib/gcc-lib/sparc-sun-sunos4.1.3/2.3.2/include/limits.h:11: syslim
its.h: No such file or directory
*** Error code 1
make: Fatal error: Command failed for target `String.o'
Current working directory /u31/jimlynch/libg++-2.3/libg++/src
*** Error code 1
make: Fatal error: Command failed for target `in-src'
Current working directory /u31/jimlynch/libg++-2.3/libg++
*** Error code 1
make: Fatal error: Command failed for target `all-libg++'
.
---
Any and all help appreciated.
Re: libg++-2.3
Author: Richard H. E. Eiger
Date: Sun, 27 Dec 1992 08:41
Date: Sun, 27 Dec 1992 08:41
47 lines
2306 bytes
2306 bytes
In article <1992Dec23.211947.19450@netcom.com> jimlynch@netcom.com (Jim Lynch)
writes:
> Hello, more problems... I did the 'make fixincludes' and now I'm getting more
> problems... Question: If I set the _prefix_, does the lib make assume that my
> entire installation is in the prefix directory? If so, is there a way to tell
> the make (presumably thru 'configure') only the fixed includes are in my dir
> and the rest can be found in the default place (/usr/local/...)?
>
> Here's what I'm getting when I try to make the c++ libs:
>
> Problem I:
> dummy.c: 4: Can't find include file stdarg.h
>
> Problem II:
> gcc -g -O -nostdinc++ -I.. -I. -I./../iostream -I./../g++-include -c
String.cc
> In file included from String.cc:28:
> /u31/jimlynch/lib/gcc-lib/sparc-sun-sunos4.1.3/2.3.2/include/limits.h:11:
syslim
> its.h: No such file or directory
> *** Error code 1
> make: Fatal error: Command failed for target `String.o'
I had the very same thing on my sun 3/60 sun-os 4.1.1. I managed to get around
this by simply changeing ...2.3.2/include/limits.h to include <sys/limits.h>
instead. I don't know whether that's ok - but it works so far.
[deleted]
> ---
>
> Any and all help appreciated.
On top of that problem I would also get a problem when I wanted to compile a
c++ program as anything else than root user. I found out that there were many
include files in ...g++-include which had no read permissions other than for
root. After the chmod it worked just fine.
Richard
--
___ _____2
/ ) / / / Richard H. E. Eiger
/_ _/ /__/ /__ Ing. Informatik HTL
/\ / / / Unregistered NeXT fan
/ \ / / /_____ rheiger@renext.eiger.olivetti.ch (NeXT mail welcome)
Re: libg++-2.3
Author: Jim Lynch
Date: Mon, 28 Dec 1992 12:01
Date: Mon, 28 Dec 1992 12:01
14 lines
1144 bytes
1144 bytes
Thank you RHE^2! Your suggested fix to ...2.3.2/include/limits.h, line 11 (which originally said: #include <syslimits.h> and has been changed to read: #include <sys/limits.h>) made everything fly! I now have a working gcc-2.3.2! For the info of others, this is a sparc-sun-sunos4.1.3 configuration in my home directory (as configure's prefix.) The fix is attributed to rheiger@renext.eiger.olivetti.ch (Richard H. E. Eiger). Mr. Eiger is still unsure whether this fix will hold up. I can state that the things I have tried so far have worked just fine, and that includes a 'make check' after the 'make all' (but does not include much of anything else since I'm only a C++ egg...) So what's up with that? -Jim
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads