Date: Wed, 7 Jan 2015 01:44:14 -0600 From: Scot Hetzel <swhetzel@gmail.com> To: Andrea Venturoli <ml@netfence.it> Cc: FreeBSD Ports <ports@freebsd.org> Subject: Re: Help with porting FreeCAD Message-ID: <CACdU%2Bf_1CtYVMAc0VwGpNB13xFbDmgEQ6cSSw6Ay9dU_NC2ZBQ@mail.gmail.com> In-Reply-To: <54AC5DE0.2030703@netfence.it> References: <54AC5DE0.2030703@netfence.it>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jan 6, 2015 at 4:12 PM, Andrea Venturoli <ml@netfence.it> wrote: > Hello. > > A while ago I dirty-ported FreeCAD 0.14 and more or less got it working. > Now it won't work anymore due to incompatible changes in OpenCASCADE (which > is a dependency); so I'm trying 0.15 (which is still a beta). > > The box I'm using runs 9.3 and I'm facing a problem I'm too inexperienced > about the port system to solve: > > _ g++ 4.9 seems to be needed (previous versions having an unsolved bug), so > I put "USE_GCC=4.9"; > _ however, fortran is required and "USES=fortran:gcc" picks up gfortran48; > _ so in the link stage "-L/usr/local/lib/gcc48" comes before > "-L/usr/local/lib/gcc49" and I get unresolved symbols. > > Is there a way I can tell the port system to pick gfortran49 instead of > gfortran48 and forget about "-L/usr/local/lib/gcc48"? > Of course I could try uninstalling gcc-4.8.4, but this is unfortunately a > run dependency of several other ports. > I had a look at Mk/Uses/fortran.mk, it picks the version of fortran to install based on the value found in either Mk/bsd.default-versions.mk or the value defined in DEFAULT_VERSIONS. Unfortunately, it doesn't have a clean way to specify a specific version. It looks like you can override the value by setting GCC_DEFAULT. USE_GCC= 4.9 GCC_DEFAULT= 4.9 USES= fortran:gcc or USE_GCC= 4.9+ GCC_DEFAULT= ${_USE_GCC} USES= fortran:gcc Note: _USE_GCC is defined by Mk/bsd.gcc.mk when it finds a version that satisfies USE_GCC. -- DISCLAIMER: No electrons were maimed while sending this message. Only slightly bruised.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACdU%2Bf_1CtYVMAc0VwGpNB13xFbDmgEQ6cSSw6Ay9dU_NC2ZBQ>