From owner-freebsd-ports Wed Jan 6 20:40:05 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA01170 for freebsd-ports-outgoing; Wed, 6 Jan 1999 20:40:05 -0800 (PST) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from mail.sat.t.u-tokyo.ac.jp (dryad.sat.t.u-tokyo.ac.jp [133.11.156.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA01067; Wed, 6 Jan 1999 20:39:58 -0800 (PST) (envelope-from simokawa@sat.t.u-tokyo.ac.jp) Received: from ett.sat.t.u-tokyo.ac.jp (ett.sat.t.u-tokyo.ac.jp [133.11.156.43]) by mail.sat.t.u-tokyo.ac.jp (8.8.6/3.4Wbeta6-SAT1.0) with ESMTP id NAA15374; Thu, 7 Jan 1999 13:39:29 +0900 (JST) (envelope-from simokawa@sat.t.u-tokyo.ac.jp) Received: from localhost by ett.sat.t.u-tokyo.ac.jp (8.8.8/sat-V0.6) id NAA01836; Thu, 7 Jan 1999 13:39:28 +0900 (JST) To: freebsd-alpha@FreeBSD.ORG Cc: freebsd-ports@FreeBSD.ORG Subject: Mesa3 on alpha X-Face: OE([KxWyJI0r[R~S/>7ia}SJ)i%a,$-9%7{*yihQk|]gl}2p#"oXmX/fT}Bn7:#j7i14gu$ jgR\S*&C3R/pJX Date: Thu, 07 Jan 1999 13:39:28 +0900 From: Hidetoshi Shimokawa X-Dispatcher: imput version 980905(IM100) Lines: 69 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I have a difficulty with compiling Mesa3 port on alpha. (Now, 47 ports depend on Mesa3!) gcc -c -I. -I../include -O2 -fPIC -pedantic -I/usr/X11R6/include -DSHM -DHZ=100 readpix.c -o readpix.o gcc: Internal compiler error: program cc1 got fatal signal 6 *** Error code 1 Because stock cc (with and without Doug's patch) sometimes die when we specifies "-O" or "-O2". One solution is override CFLAGS not to use -O?, another solution is to use egcs or gcc2.8. I have successed compiling Mesa3 with egcs on my machine. There are many ports which have same cc problem. You can find them at: http://www.sat.t.u-tokyo.ac.jp/~simokawa/alpha/logs/index.html http://www.sat.t.u-tokyo.ac.jp/~simokawa/alpha/logs/index2.html (sorted by Reason) The "gcc" in "Reason" fields means this problem. Any comments? The following is the former solution. Index: Makefile =================================================================== RCS file: /home/ncvs/ports/graphics/Mesa3/Makefile,v retrieving revision 1.30 diff -u -r1.30 Makefile --- Makefile 1998/11/11 05:37:18 1.30 +++ Makefile 1999/01/07 04:37:29 @@ -32,6 +32,11 @@ GLUT_VERSION= 3.7 .endif +.if ${MACHINE_ARCH} == "alpha" +# stock gcc dies with -O? +CFLAGS= -pipe +.endif + do-install: .for file in ${LIBS} ${INSTALL_DATA} ${WRKSRC}/lib/${file}.a ${PREFIX}/lib Index: patches/patch-aa =================================================================== RCS file: /home/ncvs/ports/graphics/Mesa3/patches/patch-aa,v retrieving revision 1.16 diff -u -r1.16 patch-aa --- patch-aa 1998/10/03 21:38:11 1.16 +++ patch-aa 1999/01/07 04:37:30 @@ -24,7 +24,7 @@ + "GLU_LIB = libMesaGLU.a" \ + "GLUT_LIB = libglut.a" \ + "CC = gcc" \ -+ "CFLAGS = -O2 -fPIC -pedantic -I/usr/X11R6/include -DSHM -DHZ=100" \ ++ "CFLAGS = ${CFLAGS} -fPIC -pedantic -I/usr/X11R6/include -DSHM -DHZ=100" \ + "MAKELIB = ../mklib.freebsd" \ + "XLIBS = -Wl,-rpath,${X11BASE}/lib -L${X11BASE}/lib -lXext -lXmu -lXi -lX11" + /\ Hidetoshi Shimokawa \/ simokawa@sat.t.u-tokyo.ac.jp PGP public key: finger -l simokawa@sat.t.u-tokyo.ac.jp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message