Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!batcomputer!lijewski From: lijewski@batcomputer.tn.cornell.edu (Mike Lijewski) Newsgroups: gnu.g++.lib.bug Subject: problem with -fchar-charconst and Random.cc Message-ID: <8649@batcomputer.tn.cornell.edu> Date: 19 Aug 89 15:54:31 GMT Organization: Cornell National Supercomputer Facility Lines: 51 Keywords: libg++ 1.35.1 Random.cc -fchar-charconst Below is a script which illustrates two problems I had getting libg++ version 1.35.1 up. I am running on a Sun 386i under SunOS 4.0.1. All other relevant info should be in the script. Seemingly the -fchar-charconst flag is no longer supported, so I had to compile the streams stuff without it. What effect will this have on heavily stream dependent code? Script started on Sat Aug 19 11:29:23 1989 robbie(1)->cat dumb.cc main(void){return;} robbie(2)->g++ -v -fchar-charconst dumb.cc g++ version 1.36.0- /usr/local/lib/gcc-cpp -+ -v -I/usr/local/include/g++-include -undef -D__GNU__ -D__GNUG__ -D__GNUC__ -D__cplusplus -Dunix -Di386 -Dsun386 -Dsun -D__unix__ -D__i386__ -D__sun386__ -D__sun__ dumb.cc /tmp/cca04770.cpp GNU CPP version 1.35.96 /usr/local/lib/gcc-cc1plus /tmp/cca04770.cpp -quiet -dumpbase dumb.cc -fchar-charconst -noreg -version -o /tmp/cca04770.s >>>gcc-cc1plus: Invalid option `-fchar-charconst' GNU C++ version 1.36.0- (80386, Sun syntax) compiled by GNU C version 1.35.96. default target switches: -m80387 robbie(3)->make Random.o g++ -g -O -v -I../g++-include -I.. -fstrength-reduce -fsave-memoized -fno-defer-pop -c Random.cc g++ version 1.36.0- /usr/local/lib/gcc-cpp -+ -v -I../g++-include -I.. -undef -D__GNU__ -D__GNUG__ -D__GNUC__ -D__cplusplus -Dunix -Di386 -Dsun386 -Dsun -D__unix__ -D__i386__ -D__sun386__ -D__sun__ -D__OPTIMIZE__ Random.cc /tmp/cca04686.cpp GNU CPP version 1.35.96 /usr/local/lib/gcc-cc1plus /tmp/cca04686.cpp -quiet -dumpbase Random.cc -fstrength-reduce -fsave-memoized -fno-defer-pop -opt -version -G -o /tmp/cca04686.s GNU C++ version 1.36.0- (80386, Sun syntax) compiled by GNU C version 1.35.96. default target switches: -m80387 In file included from ../g++-include/RNG.h:28, from ../g++-include/Random.h:29, from Random.cc:23: ../g++-include/assert.h:34: conflicting types for `void abort (...)' *** Error code 1 make: Fatal error: Command failed for target `Random.o' robbie(4)->exit script done on Sat Aug 19 11:31:46 1989 -- Mike Lijewski (H)607/277-7623 (W)607/255-0539 (desk)607/255-2960 Cornell National Supercomputer Facility ARPA: mjlx@cornellf.tn.cornell.edu BITNET: mjlx@cornellf.bitnet SMAIL: 1122 Ellis Hollow Rd. Ithaca, NY 14850