build system needs to check library versions #83

Closed
donbright opened this Issue Feb 4, 2012 · 6 comments

Projects

None yet

4 participants

@donbright
openscad member

the build system should check library versions before compilation.

it should stop the build by default if versions of libraries are lower than versions that have caused bug reports. it should throw a message advising the user to update their libraries.

it should have the option to force-compilation anyway if the user desires.

for CGAL this means 3.9 or newer (as of Feb 2012)
for OpenCSG this means 1.3.2 or newer (as of Feb 2012)

@stopthejunk1

I've found an issue that may be related. It causes openscad to crash when compiling/rendering even the simplest command. I'm running Mac OSX 10.5.8. Here's the steps I took:

  1. I downloaded the latest dmg ("OpenSCAD-2011.12.dmg"), mounted the disk image and ran the OpenScad.app.
  2. Typed in the command cube([2,3,4]);
  3. hit F6 to compile/render

Result: openscad crashed, and the crash report gives these details:

Process: OpenSCAD [6456]
Path: /Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD
Identifier: org.openscad.OpenSCAD
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: launchd [113]

Interval Since Last Report: 2980 sec
Crashes Since Last Report: 1
Per-App Interval Since Last Report: 75 sec
Per-App Crashes Since Last Report: 1

Date/Time: 2012-02-04 18:15:04.299 -0500
OS Version: Mac OS X 10.5.8 (9L30)
Report Version: 6
Anonymous UUID: 2EA49516-031C-492E-AB22-97A9813B8368

Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread: 0

Dyld Error Message:
Symbol not found: __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
Referenced from: /Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD
Expected in: /usr/lib/libstdc++.6.dylib

I then downloaded an older openscad dmg ("OpenSCAD-2011.04.dmg") from github and did the same steps as above, and the cube rendered just fine.

@kintel
openscad member

stopthejunk1: This is probably not related, but it really should be fixed. Could you test a few things for me?

1) Run OpenSCAD in 32-bit more and check if the same error occurs (Cmd-I on OpenSCAD.app, check "Open in 32-bit mode", rerun)
2) Download and run the latest development snapshot: http://www.kintel.net/public/OpenSCAD-2012.01.25.dmg

@lekeux

Hi,

I have the same problem as stopthejunk1. openscad 2011-06 works fine (made myself a nice dock for my phone with it), but newer versions crash on f5 or f6 of a simple cube([2,3,4]);. I tried to open in 32-bit mode, same result. I made the test with versions
2012-02-19, 2012-01-25 (the one linked above), 2011-12-??.

Crash result for version 2012-01-25 :

Process: OpenSCAD [2223]
Path: /Applications/3D/OpenSCAD_2012-01-25.app/Contents/MacOS/OpenSCAD
Identifier: org.openscad.OpenSCAD
Version: ??? (???)
Code Type: X86 (Native)
Parent Process: launchd [67]

Interval Since Last Report: 1097 sec
Crashes Since Last Report: 1
Per-App Interval Since Last Report: 16 sec
Per-App Crashes Since Last Report: 1

Date/Time: 2012-02-27 19:13:57.172 +0100
OS Version: Mac OS X 10.5.8 (9L31a)
Report Version: 6
Anonymous UUID: 8F853DF7-F1BE-4ED4-9287-6B4DCE00BF6F

Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread: 0

Dyld Error Message:
Symbol not found: __ZNSi10_M_extractIdEERSiRT_
Referenced from: /Applications/3D/OpenSCAD_2012-01-25.app/Contents/MacOS/OpenSCAD
Expected in: /usr/lib/libstdc++.6.dylib

@kintel
openscad member

Just FYI:
This problem is apparently due to a backwards compativility bug/limitation of Apple's c++ library.
Compiling on 10.5 would make it work, as might be compiling against the 10.5 SDK on later versions of OS X.

@donbright
openscad member

patch for original issue accepted July 2012. thank you

@donbright donbright closed this Jul 15, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment