Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Jan 1999 13:39:28 +0900
From:      Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
To:        freebsd-alpha@FreeBSD.ORG
Cc:        freebsd-ports@FreeBSD.ORG
Subject:   Mesa3 on alpha
Message-ID:  <19990107133928S.simokawa@sat.t.u-tokyo.ac.jp>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990107133928S.simokawa>