From owner-freebsd-ports@FreeBSD.ORG Sat Mar 28 16:26:33 2015 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 869128EE; Sat, 28 Mar 2015 16:26:33 +0000 (UTC) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 42C427F0; Sat, 28 Mar 2015 16:26:32 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::81a8:baf0:98fb:d610] (unknown [IPv6:2001:7b8:3a7:0:81a8:baf0:98fb:d610]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id AB3225C2E; Sat, 28 Mar 2015 17:26:23 +0100 (CET) Subject: Re: cad/openscad fails to build on 9.3/i386 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: multipart/signed; boundary="Apple-Mail=_514849E9-265D-42A2-9D06-F5DAFCF86FB7"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.5b6 From: Dimitry Andric In-Reply-To: <551560D8.5070604@netfence.it> Date: Sat, 28 Mar 2015 17:26:20 +0100 Message-Id: <40A0B648-E27D-4802-AA58-26FB47EF03E7@FreeBSD.org> References: <551560D8.5070604@netfence.it> To: Andrea Venturoli X-Mailer: Apple Mail (2.2070.6) Cc: ports@freebsd.org, mr@FreeBSD.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Mar 2015 16:26:33 -0000 --Apple-Mail=_514849E9-265D-42A2-9D06-F5DAFCF86FB7 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 27 Mar 2015, at 14:53, Andrea Venturoli wrote: > I'm trying to upgrade OpensCAD to 2015.03, which was committed = yesterday. > However it fails to build. ... >> c++ -c -O2 -pipe -fno-strict-aliasing -frounding-math = -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include = -I/usr/local/include -I/usr/local/include/harfbuzz = -I/usr/local/include/freetype2 -I/usr/local/include = -I/usr/local/include/freetype2 -pthread -D_THREAD_SAFE -Wall -W = -Wno-unused-local-typedefs -DOPENSCAD_VERSION=3D2015.03 = -DOPENSCAD_YEAR=3D2015.0 -DOPENSCAD_MONTH=3D03.0 -DOPENSCAD_DAY=3D.0 = -DENABLE_CGAL -DENABLE_OPENCSG -DUSE_SCINTILLA_EDITOR -DQT_NO_DEBUG = -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED = -I/usr/local/share/qt4/mkspecs/freebsd-g++ -I. = -I/usr/local/include/eigen3 -I/usr/local/include/qt4/QtCore = -I/usr/local/include/qt4/QtGui -I/usr/local/include/qt4/QtOpenGL = -I/usr/local/include/qt4 -Isrc -I/usr/local/include/qt4 = -Isrc/libtess2/Include -I/usr/local/include -Iobjects = -I/usr/local/include/qt4 -I/usr/local/include -o objects/scadlexer.o = src/scadlexer.cpp >> cc1plus: error: unrecognized command line option = "-Wno-unused-local-typedefs" >> *** [objects/scadlexer.o] Error code 1 This is because upstream has unconditionally added the -Wno-unused-local-typedefs flag, which is only supported by gcc 4.7 and higher: https://github.com/openscad/openscad/issues/757 Our base gcc is very old, so it does not have this flag. It is probably easiest to compile this port with lang/gcc, or with clang. -Dimitry --Apple-Mail=_514849E9-265D-42A2-9D06-F5DAFCF86FB7 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.27 iEYEARECAAYFAlUW1jMACgkQsF6jCi4glqOjlQCg3rq3zSA+yF7iyczcG167dFi7 TsgAn2RWVeZxIcbwCQmZNNdF38+Cz3bp =ikRP -----END PGP SIGNATURE----- --Apple-Mail=_514849E9-265D-42A2-9D06-F5DAFCF86FB7--