Bug#802517: Freecad bug

Michael Zoran mzoran at crowfest.net
Sat Oct 31 07:13:14 UTC 2015


Hi, I solved the problem.  This appears to be an issue with gcc-5.  
When I recompile oce with gcc-4.9, all the regression tests of oce pass
and freecad seems to be working correctly.   If I compile oce with gcc-
5, some of the regression tests fail and freecad crashes.  
I noticed that the failing regression tests where removed from the -7
release of oce.

All I did was add these lines to the top of the rules file.

export CC := /usr/bin/gcc-4.9
export CXX := /usr/bin/g++-4.9
CFLAGS   := -g -O3
CXXFLAGS := -g -O3
LDFLAGS  := $(shell dpkg-buildflags --get LDFLAGS)

The CFLAGS and CXXFLAGS change is not important, and was just part of
trial and error.  I didn't have time to recompile and test without out.

The "export CC" and "export CXX" is the important part since it forces
the compile to use gcc-4.9.

I also changed the control file to add gcc-4.9 and g++-4.9 as "Build-
Depends".

Source: oce
Section: science
Priority: extra
Maintainer: Debian Science Maintainers <debian-science-maintainers at list
s.alioth.debian.org>
Uploaders: "Adam C. Powell, IV" <hazelsct at debian.org>, Denis Barbier <b
arbier at debian.org>
Standards-Version: 3.9.5
Build-Depends: debhelper (>= 9), quilt, cmake, gcc-4.9, g++-4.9,
 libx11-dev, libxmu-dev, libxext-dev, libfreetype6-dev, tcl8.5-dev,
tk8.5-dev,
 libgl1-mesa-dev | libgl-dev, libglu1-mesa-dev | libglu-dev,
 libgl2ps-dev, libfreeimage-dev
Homepage: https://github.com/tpaviot/oce/wiki
Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/package
s/oce.git
Vcs-Git: git://anonscm.debian.org/debian-science/packages/oce.git -b
debian


I was able to recompile oce with the changes with pbuilder on amd64.  
I'm compiling armhf with pbuilder now, but I think it's going to take a
long time for the compile to finish.



More information about the debian-science-maintainers mailing list