View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000664 | FreeCAD | Bug | public | 2012-04-06 03:41 | 2012-04-10 15:32 |
| Reporter | budulayc | Assigned To | |||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | no change required | ||
| Product Version | 0.12 | ||||
| Fixed in Version | 0.13 | ||||
| Summary | 0000664: Freecad fails to build with gcc-4.7.0 | ||||
| Description | Both 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 | ||||
| Tags | No tags attached. | ||||
| FreeCAD Information | |||||
|
2012-04-06 03:41
|
|
|
|
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
|
|
|
|
Just uploaded it. Sorry, I'm new here. Anything else I can do that might help? |
|
|
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 |
|
|
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? |
|
|
The -fpermissive does solve this. Is coin still being developed? The last release is 2 years old. |
|
|
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. |
|
|
./configure CPPFLAGS="-fpermissive" |
| 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 |
FreeCAD