From owner-freebsd-questions Thu Sep 11 01:05:47 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id BAA06052 for questions-outgoing; Thu, 11 Sep 1997 01:05:47 -0700 (PDT) Received: from www.giovannelli.it (www.giovannelli.it [194.184.65.4]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id BAA06031; Thu, 11 Sep 1997 01:05:36 -0700 (PDT) Received: from gmarco (ts2port3d.masternet.it [194.184.65.217]) by www.giovannelli.it (8.8.7/8.8.5) with SMTP id KAA00348; Thu, 11 Sep 1997 10:08:54 +0200 (MET DST) Message-Id: <3.0.3.32.19970911100641.006992ec@giovannelli.it> X-Sender: gmarco@giovannelli.it (Unverified) X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.3 (32) Date: Thu, 11 Sep 1997 10:06:41 +0200 To: questions@freebsd.org, hackers@freebsd.org From: Gianmarco Giovannelli Subject: Important: -O flag crashes cc in libncurses Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hello to eveyone, first of all this is my configuration : Mb Asus Tx97-e, Pentium 233, 64mb (edo ram), 2 hd 4 giga wide scsi quantum, 2940uw, a dec 21141 ethernet card (I have read of possible conflict with ahc0 end ep0 , is it true ?) . I have a problem since I installed 3.0. And after all cvsuped I did (the last this morning...) I always receive this error during a make world: cc -O -I. -I/usr/src/lib/libncurses -Wall -DMYTINFO -I/usr/obj/usr/src/tmp/usr/include -c /usr/src/lib/libncurses/lib_insch.c -o lib_insch.o cc: Internal compiler error: program cc1 got fatal signal 10 *** Error code 1 And sometimes fatal signal 6. Now I renamed lib_insch.o ad his include file and cvsuped again but the files are identical. So I try to study a remedy for the situation by myself and I discovered a strange thing : here are my steps : gmarco:/usr/src/lib/libncurses#cc -c lib_insch.c -o lib_insch.o gmarco:/usr/src/lib/libncurses#cc -O -c lib_insch.c -o lib_insch.o cc: Internal compiler error: program cc1 got fatal signal 10 gmarco:/usr/src/lib/libncurses#cc -O2 -c lib_insch.c -o lib_insch.o gmarco:/usr/src/lib/libncurses#cc -O3 -c lib_insch.c -o lib_insch.o gmarco:/usr/src/lib/libncurses#cc -O1 -c lib_insch.c -o lib_insch.o cc: Internal compiler error: program cc1 got fatal signal 6 gmarco:/usr/src/lib/libncurses#cc -O2 -I. -I/usr/src/lib/libncurses -Wall -DMYTINFO -c usr/src/lib/libncurses/lib_insch.c -o lib_insch.o gmarco:/usr/src/lib/libncurses#cc -O -I. -I/usr/src/lib/libncurses -Wall -DMYTINFO -c /usr/src/lib/libncurses/lib_insch.c -o lib_insch.o cc: Internal compiler error: program cc1 got fatal signal 10 gmarco:/usr/src/lib/libncurses# What do you think about ? It seems that -O and -O1 crash the compiler, while -O2...3 doesn't .... Now a few considerations... I know just a little about -O, and I think it is the optimization level, but I don't know really what the number are ... Is possible to modify the Makefile to use -O2 for the libncurses instead of -O ? It would important for me if I want to complete a make world.... :-) Why it is happening ? :-) Please for the hacker list : reply directly I am not subscribed to this list... Thanks again for everything... Regards... Gianmarco "Unix expert since yesterday" Home page: http://www2.masternet.it/~gmarco Server page: http://www2.masternet.it/