View Issue Details

IDProjectCategoryView StatusLast Update
0000664FreeCADBugpublic2012-04-10 15:32
Reporterbudulayc Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
Product Version0.12 
Fixed in Version0.13 
Summary0000664: Freecad fails to build with gcc-4.7.0
DescriptionBoth 0.12 and the latest git version would not compile on Arch Linux with gcc-4.7.0.
It fails during configure with the following message:

checking for soqt-config... /usr/bin/soqt-config
checking whether libSoQt is available... false
configure: error:
**** Cannot find SoQt devel files. ****

Although SoQt is installed. Rebuilding SoQt, pivy and coin does not help.

Downgrading to gcc-4.6.3 solves the problem, as reported here:
https://aur.archlinux.org/packages.php?ID=57247
TagsNo tags attached.
FreeCAD Information

Activities

2012-04-06 03:41

 

Config_log.txt (Attachment missing)

wmayer

2012-04-06 06:37

administrator   ~0001891

Can you upload the actual config.log file created by ./configure, please? This file here only shows the output on the shell window and thus doesn't provide further information of what has happened internally.

2012-04-06 20:11

 

config.log (Attachment missing)

budulayc

2012-04-06 20:13

reporter   ~0001894

Just uploaded it. Sorry, I'm new here. Anything else I can do that might help?

wmayer

2012-04-07 09:48

administrator   ~0001895

According to the log file this happened:

conftest.cpp has this content:
#include <Inventor/Qt/SoQt.h>
int main ()
{
 (void)SoQt::init((const char *)0L);
   ;
   return 0;
}

And it was compiled with:
g++ -o conftest -march=native -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I/usr/include/Inventor/annex -D_REENTRANT -DQT_SHARED -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtOpenGL -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu -L/usr/lib -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu conftest.cpp -lSoQt -lXmu -lQtOpenGL -lQtGui -lQtCore -lXi -lCoin -lGL -lXext -lSM -lICE -lX11 -ldl -lpthread

But it failed with these compiler errors:
In file included from /usr/include/Inventor/Qt/SoQt.h:60:0,
                 from conftest.cpp:54:
/usr/include/Inventor/SbBasic.h: In instantiation of 'void SbDividerChk(const char*, Type) [with Type = float]':
/usr/include/Inventor/SbVec2f.h:70:81: required from here
/usr/include/Inventor/SbBasic.h:99:5: error: 'cc_debugerror_post' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
In file included from /usr/include/Inventor/errors/SoDebugError.h:28:0,
                 from /usr/include/Inventor/SbVec2f.h:31,
                 from /usr/include/Inventor/SbLinear.h:44,
                 from /usr/include/Inventor/Qt/SoQt.h:61,
                 from conftest.cpp:54:
/usr/include/Inventor/C/errors/debugerror.h:59:19: note: 'void cc_debugerror_post(const char*, const char*, ...)' declared here, later in the translation unit

wmayer

2012-04-07 09:58

administrator   ~0001896

After all it's a bug in Coin/SoQt with gcc 4.7 There must be a problem with the template function SbDividerChk which is defined in SbBasic.h. This uses a function cc_debugerror_post that is defined in /usr/include/Inventor/C/errors/debugerror.h but the compiler doesn't find it.

In the error report -fpermissive is mentioned. If you add this to the argument list of the g++ call does this solve it?

budulayc

2012-04-07 19:31

reporter   ~0001903

The -fpermissive does solve this. Is coin still being developed? The last release is 2 years old.

wmayer

2012-04-10 15:28

administrator   ~0001918

AFAIK the project will move to the BSD license in the near future and then I guess it's up to the community to develop it further.

wmayer

2012-04-10 15:32

administrator   ~0001919

./configure CPPFLAGS="-fpermissive"

Issue History

Date Modified Username Field Change
2012-04-06 03:41 budulayc New Issue
2012-04-06 03:41 budulayc File Added: Config_log.txt
2012-04-06 06:37 wmayer Note Added: 0001891
2012-04-06 20:11 budulayc File Added: config.log
2012-04-06 20:13 budulayc Note Added: 0001894
2012-04-07 09:48 wmayer Note Added: 0001895
2012-04-07 09:58 wmayer Note Added: 0001896
2012-04-07 19:31 budulayc Note Added: 0001903
2012-04-10 15:28 wmayer Note Added: 0001918
2012-04-10 15:32 wmayer Note Added: 0001919
2012-04-10 15:32 wmayer Status new => closed
2012-04-10 15:32 wmayer Resolution open => no change required
2012-04-10 15:32 wmayer Fixed in Version => 0.13