Subject: pkg/23563: ...pkgsrc/graphics/povray does not compile on amd64
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <rkr@olib.org>
List: netbsd-bugs
Date: 11/25/2003 00:43:06
>Number: 23563
>Category: pkg
>Synopsis: ...pkgsrc/graphics/povray does not compile on amd64
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Nov 25 00:44:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Richard Rauch
>Release: NetBSD/amd64, -current (snapshot)
>Organization:
n/a
>Environment:
NetBSD socrates 1.6ZE NetBSD 1.6ZE (GENERIC) #0: Mon Nov 10 11:15:44 CET 2003 fvdl@k2:/usr/obj/current/sys/arch/amd64/compile.amd64/GENERIC amd64
>Description:
Attempting to build povray on amd64 produces an error re. the
-malisng-double option. Removing that from the .../src/Makefile's
definitions of CXXFLAGS and CFLAGS (the latter may not be strictly
required; I didn't check but just removed both) enables the compilation
to proceed.
I don't know if this is a 64-bit thing, an amd64 thing, or if the
fact that -current is running a later version of GCC has any impact.
>How-To-Repeat:
(a) Get an amd64 system.
(b) Install NetBSD/amd64 -current on it.
(c) Attempt to build povray from pkgsrc.
>Fix:
Delete -malign-double from at least the CXXFLAGS, and maybe also the
CFLAGS definitions in the Makefile. (This hasn't been tested heavily,
but at least it compiles, and seems to run...)
Or, in ...pkgsrc/graphics/povray/work*/povray*/src/ apply this
patch:
diff -u Makefile Makefile.old
--- Makefile 2003-11-24 09:51:02.000000000 -0600
+++ Makefile.old 2003-11-24 09:50:15.000000000 -0600
@@ -94,8 +94,8 @@
NOMULTICHAR = `if [ "X$(CC)" = "Xgcc" ]; then echo "-Wno-multichar"; fi `
LDADD = -L/usr/X11R6/lib
.ifdef GCC
-CFLAGS = -O3 -finline-functions -ffast-math -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -Wno-multichar
-CXXFLAGS = $(NOMULTICHAR) -O3 -finline-functions -ffast-math -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -Wno-multichar
+CFLAGS = -O3 -finline-functions -ffast-math -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -malign-double -Wno-multichar
+CXXFLAGS = $(NOMULTICHAR) -O3 -finline-functions -ffast-math -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -malign-double -Wno-multichar
.else
CFLAGS = -O2 -I/usr/pkg/include -I/usr/X11R6/include
CXXFLAGS = -O2 -I/usr/pkg/include -I/usr/X11R6/include
(I hope that that isn't messed up by word-wrap. I'm filling this
out in the web-form, and the "-" options are wrapping down to look
like more "lines deleted" marks; (^&.)
>Release-Note:
>Audit-Trail:
>Unformatted: