Re: Help with porting FreeCAD
On Wed, 07 Jan 2015 09:47:53 +0100 Andrea Venturoli wrote > On 01/07/15 00:10, Chris H wrote: > > > Sure. OK. > > Maybe something along the lines of: > > > > BUILD_DEPENDS+=${PREFIX}/bin/gcc49:${PORTSDIR}/lang/gcc49 > > This did not help. > Some extract from the configuration/build: > > > ===> freecad-20150106 depends on executable: gfortran48 - found > > ... > > /usr/local/bin/g++49 -pipe -g -Wl,-rpath=/usr/local/lib/gcc49 > > -fno-strict-aliasing -Wl,-rpath=/usr/local/lib/gcc49 -Wno-deprecated > > -Wno-write-strings -pipe -g -Wl,-rpath=/usr/local/lib/gcc49 > > -fno-strict-aliasing -Wl,-rpath=/usr/local/lib/gcc49 -DFC_DEBUG > > -Wl,-rpath=/usr/local/lib/gcc48 -L/usr/local/lib/gcc48 -B/usr/local/bin > > -Wl,-rpath=/usr/local/lib/gcc49 -L/usr/local/lib/gcc49 > > CMakeFiles/FreeCADMain.dir/MainGui.cpp.o -o ../../bin/FreeCAD > > ../../lib/libFreeCADGui.so ../../lib/libFreeCADApp.so > > ../../lib/libFreeCADBase.so /usr/local/lib/libpython2.7.so > > /usr/local/lib/libxerces-c.so -lz -lutil /usr/local/lib/libCoin.so > > /usr/local/lib/qt4/libQtOpenGL.so /usr/local/lib/qt4/libQtSvg.so > > /usr/local/lib/qt4/libQtUiTools.a /usr/local/lib/qt4/libQtWebKit.so > > /usr/local/lib/qt4/libQtGui.so /usr/local/lib/qt4/libQtXml.so > > /usr/local/lib/qt4/libQtNetwork.so /usr/local/lib/qt4/libQtCore.so > > /usr/local/lib/libboost_filesystem.so > > /usr/local/lib/libboost_program_options.so /usr/local/li! b/libboost > _regex.so /usr/local/lib/libboost_signals.so > /usr/local/lib/libboost_system.so /usr/local/lib/libboost_thread.so > /usr/local/lib/libGL.so /usr/local/lib/libshiboken-python2.7.so > /usr/local/lib/libpyside-python2.7.so > -Wl,-rpath,/tmp/usr/ports/cad/freecad/work/.build/lib:/usr/local/lib:/usr/loc > al/lib/qt4: > ../../lib/libFreeCADGui.so: undefined reference to > 'std::__throw_out_of_range_fmt(char const*, ...)' > > My guess is the problem still comes from "-L/usr/local/lib/gcc48" coming > before "-L/usr/local/lib/gcc49". My guess is a problem with qt(4|5) There was also a suggestion regarding making use of hints in Mk/Uses/fortran which may also be of help to you here. I can't believe I overlooked that myself. :P Best wishes. --Chris > > > > > Also, regarding your USE_GCC > > you would do well to choose: > > USE_GCC=4.9+ > > which says: Must use gcc49, or greater. > > Ok, now I'm just trying to get it working, but your suggestion is welcome. > > bye & Thanks > av. > > ___ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org" ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Help with porting FreeCAD
On 01/07/15 08:44, Scot Hetzel wrote: 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 Thanks, now gfortan49 is picked up. Strangely, after this I'm getting the same errors I got when using gcc48, but that's another problem and I'll investigate. bye & Thanks av. ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Help with porting FreeCAD
On 01/07/15 00:10, Chris H wrote: Sure. OK. Maybe something along the lines of: BUILD_DEPENDS+= ${PREFIX}/bin/gcc49:${PORTSDIR}/lang/gcc49 This did not help. Some extract from the configuration/build: ===> freecad-20150106 depends on executable: gfortran48 - found ... /usr/local/bin/g++49 -pipe -g -Wl,-rpath=/usr/local/lib/gcc49 -fno-strict-aliasing -Wl,-rpath=/usr/local/lib/gcc49 -Wno-deprecated -Wno-write-strings -pipe -g -Wl,-rpath=/usr/local/lib/gcc49 -fno-strict-aliasing -Wl,-rpath=/usr/local/lib/gcc49 -DFC_DEBUG -Wl,-rpath=/usr/local/lib/gcc48 -L/usr/local/lib/gcc48 -B/usr/local/bin -Wl,-rpath=/usr/local/lib/gcc49 -L/usr/local/lib/gcc49 CMakeFiles/FreeCADMain.dir/MainGui.cpp.o -o ../../bin/FreeCAD ../../lib/libFreeCADGui.so ../../lib/libFreeCADApp.so ../../lib/libFreeCADBase.so /usr/local/lib/libpython2.7.so /usr/local/lib/libxerces-c.so -lz -lutil /usr/local/lib/libCoin.so /usr/local/lib/qt4/libQtOpenGL.so /usr/local/lib/qt4/libQtSvg.so /usr/local/lib/qt4/libQtUiTools.a /usr/local/lib/qt4/libQtWebKit.so /usr/local/lib/qt4/libQtGui.so /usr/local/lib/qt4/libQtXml.so /usr/local/lib/qt4/libQtNetwork.so /usr/local/lib/qt4/libQtCore.so /usr/local/lib/libboost_filesystem.so /usr/local/lib/libboost_program_options.so /usr/local/li! b/libboost _regex.so /usr/local/lib/libboost_signals.so /usr/local/lib/libboost_system.so /usr/local/lib/libboost_thread.so /usr/local/lib/libGL.so /usr/local/lib/libshiboken-python2.7.so /usr/local/lib/libpyside-python2.7.so -Wl,-rpath,/tmp/usr/ports/cad/freecad/work/.build/lib:/usr/local/lib:/usr/local/lib/qt4: ../../lib/libFreeCADGui.so: undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)' My guess is the problem still comes from "-L/usr/local/lib/gcc48" coming before "-L/usr/local/lib/gcc49". Also, regarding your USE_GCC you would do well to choose: USE_GCC=4.9+ which says: Must use gcc49, or greater. Ok, now I'm just trying to get it working, but your suggestion is welcome. bye & Thanks av. ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Help with porting FreeCAD
On Tue, Jan 6, 2015 at 4:12 PM, Andrea Venturoli 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. ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Help with porting FreeCAD
On Tue, 06 Jan 2015 23:49:41 +0100 Andrea Venturoli wrote > On 01/06/15 23:41, Chris H wrote: > > On Tue, 06 Jan 2015 23:12:48 +0100 Andrea Venturoli 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 think what you're looking for here is > > BUILD_DEPENDS= > > and > > RUN_DEPENDS= > > Thanks, but, sorry, I don't quite get your suggestion. > What should I put into those variables? > How would that solve the above problem? Sure. OK. Maybe something along the lines of: BUILD_DEPENDS+= ${PREFIX}/bin/gcc49:${PORTSDIR}/lang/gcc49 Also, regarding your USE_GCC you would do well to choose: USE_GCC=4.9+ which says: Must use gcc49, or greater. All the best. --Chris > > bye & Thanks > av. > ___ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org" ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Help with porting FreeCAD
On 01/06/15 23:41, Chris H wrote: On Tue, 06 Jan 2015 23:12:48 +0100 Andrea Venturoli 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 think what you're looking for here is BUILD_DEPENDS= and RUN_DEPENDS= Thanks, but, sorry, I don't quite get your suggestion. What should I put into those variables? How would that solve the above problem? bye & Thanks av. ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Help with porting FreeCAD
On Tue, 06 Jan 2015 23:12:48 +0100 Andrea Venturoli 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 think what you're looking for here is BUILD_DEPENDS= and RUN_DEPENDS= --Chris > > > bye & Thanks > av. > ___ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org" ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Help with porting FreeCAD
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. bye & Thanks av. ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"