Hello FreeCAD team !
So I've encountered a failure while compiling. The problem lies in the following
header :
'/usr/include/boost/pending/relaxed_heap.hpp'
Look at the log message at the end of this message for details.
'./configure' has proceeded without any problem. Any suggestion ?
Regards.
################################################################################
----> My environment :
Debian Lenny 5.0 running with AMD 64 (smp)
----> 'uname -a' returns :
Linux station1 2.6.26-2-686 #1 SMP Sun Jun 21 04:57:38 UTC 2009 i686 GNU/Linux
----> Compiler : 'gcc -v' returns :
Utilisation des specs internes.
Target: i486-linux-gnu
Configuré avec: ../src/configure -v --with-pkgversion='Debian 4.3.2-1.1'
--with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,
c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr
--enable-targets=all --enable-cld --enable-checking=release --build=i486-linux-gnu
--host=i486-linux-gnu --target=i486-linux-gnu
Modèle de thread: posix
gcc version 4.3.2 (Debian 4.3.2-1.1)
----> Typing 'make' failed and I've got this :
make all-recursive
make[1]: entrant dans le répertoire « /opt/freecad »
Making all in src
make[2]: entrant dans le répertoire « /opt/freecad/src »
Making all in 3rdParty
make[3]: entrant dans le répertoire « /opt/freecad/src/3rdParty »
make[3]: Rien à faire pour « all ».
make[3]: quittant le répertoire « /opt/freecad/src/3rdParty »
Making all in Base
make[3]: entrant dans le répertoire « /opt/freecad/src/Base »
make all-am
make[4]: entrant dans le répertoire « /opt/freecad/src/Base »
make[4]: Rien à faire pour « all-am ».
make[4]: quittant le répertoire « /opt/freecad/src/Base »
make[3]: quittant le répertoire « /opt/freecad/src/Base »
Making all in App
make[3]: entrant dans le répertoire « /opt/freecad/src/App »
make all-am
make[4]: entrant dans le répertoire « /opt/freecad/src/App »
/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I../.. -I../../src -I../../src -I/usr/include/python2.5 -I/usr/include
-I/usr/include -DFCApp -g -D_DEBUG -D_REENTRANT -Wall -g -O2 -Wno-deprecated
-frtti -MT Document.lo -MD -MP -MF .deps/Document.Tpo -c -o Document.lo Document.cpp
g++ -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../src -I/usr/include/python2.5
-I/usr/include -I/usr/include -DFCApp -g -D_DEBUG -D_REENTRANT -Wall -g -O2
-Wno-deprecated -frtti -MT Document.lo -MD -MP -MF .deps/Document.Tpo -c
Document.cpp -fPIC -DPIC -o .libs/Document.o
In file included from /usr/include/boost/graph/dijkstra_shortest_paths.hpp:19, from Document.cpp:61:
/usr/include/boost/pending/relaxed_heap.hpp: In member function ‘size_t boost::relaxed_heap<IndexedType, Compare, ID>::log_base_2(size_t)’:
/usr/include/boost/pending/relaxed_heap.hpp:101: erreur: ‘CHAR_BIT’ was not declared in this scope
make[4]: *** [Document.lo] Erreur 1
make[4]: quittant le répertoire « /opt/freecad/src/App »
make[3]: *** [all] Erreur 2
make[3]: quittant le répertoire « /opt/freecad/src/App »
make[2]: *** [all-recursive] Erreur 1
make[2]: quittant le répertoire « /opt/freecad/src »
make[1]: *** [all-recursive] Erreur 1
make: *** [all] Erreur 2
make[1]: quittant le répertoire « /opt/freecad »
Compilation failure with Debian Lenny
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Compilation failure with Debian Lenny
Hi,
what version of boost are you using? And did you get the sources as tarball from SF or did you get the latest SVN sources?
Cheers,
Werner
what version of boost are you using? And did you get the sources as tarball from SF or did you get the latest SVN sources?
Cheers,
Werner
Re: Compilation failure with Debian Lenny
Hi again,
I just tested this on Debian Lenny with boost 1.35 and the latest SVN. There everything works fine. If you use boost 1.34 then you should try version 1.35 because it sounds like a boost-internal problem, anyway.
Cheers,
Werner
I just tested this on Debian Lenny with boost 1.35 and the latest SVN. There everything works fine. If you use boost 1.34 then you should try version 1.35 because it sounds like a boost-internal problem, anyway.
Cheers,
Werner
Re: Compilation failure with Debian Lenny
Hello.
I always try to stick to the "stable" Debian version.
So in "stable", package version of : "libboost-dev (Boost C++ Libraries development files)" is 1.34.1-14
I'm going to install 1.35 and manually point to this version.
Thanks for your support.
I always try to stick to the "stable" Debian version.
So in "stable", package version of : "libboost-dev (Boost C++ Libraries development files)" is 1.34.1-14
I'm going to install 1.35 and manually point to this version.
Thanks for your support.
Re: Compilation failure with Debian Lenny
Hello,
the packages libboost1.35-dev and optionnaly libboost1.35-doc are available for Lenny.
Installing them solved the problem for me. I also try to stick to Debian stable.
Cheers
the packages libboost1.35-dev and optionnaly libboost1.35-doc are available for Lenny.
Installing them solved the problem for me. I also try to stick to Debian stable.
Cheers