Help with porting FreeCAD

Andrea Venturoli ml at
Wed Jan 7 08:48:13 UTC 2015

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/ ../../lib/ ../../lib/ /usr/local/lib/ /usr/local/lib/ -lz -lutil /usr/local/lib/ /usr/local/lib/qt4/ /usr/local/lib/qt4/ /usr/local/lib/qt4/libQtUiTools.a /usr/local/lib/qt4/ /usr/local/lib/qt4/ /usr/local/lib/qt4/ /usr/local/lib/qt4/ /usr/local/lib/qt4/ /usr/local/lib/ /usr/local/lib/ /usr/local/li!
 b/libboost /usr/local/lib/ /usr/local/lib/ /usr/local/lib/ /usr/local/lib/ /usr/local/lib/ /usr/local/lib/ -Wl,-rpath,/tmp/usr/ports/cad/freecad/work/.build/lib:/usr/local/lib:/usr/local/lib/qt4:
> ../../lib/ 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

More information about the freebsd-ports mailing list