[odb-users] Issue on OSX 10.10 (Yosemite)

David Sarrut David.Sarrut at creatis.insa-lyon.fr
Thu Nov 27 07:21:59 EST 2014


Hello Adnan and Boris,

thanks for all your help. On my side, I tried to restart all from a fresh
system (reinstall xcode, clean brew etc).

I install odb with brew, and libodb + libodb-sqlite by compiling (clang).
No problem.

However, my app (compiled with clang also) seg fault with :
ydDump(41632,0x7fff7710f300) malloc: ***
mach_vm_map(size=3557673734211198976) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
libc++abi.dylib: terminating with uncaught exception of type
std::bad_alloc: std::bad_alloc
Abort trap: 6

which is probably related to the confusion between libc++ / libstdc++ (of
odb brew ?).

So I give up and wait the 2.4.0 ;)

thanks anyway !
David


On Thu, Nov 27, 2014 at 11:23 AM, Boris Kolpackov <boris at codesynthesis.com>
wrote:

> Hi David,
>
> David Sarrut <David.Sarrut at creatis.insa-lyon.fr> writes:
>
> > Boris : it is not clear for me what you suggested. Do you suggest I
> > install odb executable with brew, but the lib odb and libodb-sqlite by
> > recompiling source from the package from the web site :
> > http://www.codesynthesis.com/download/odb/2.3/libodb-2.3.0.tar.gz ?
>
> Yes, here is a step-by-step guide on the second part (building runtimes):
>
> http://codesynthesis.com/pipermail/odb-users/2014-October/002156.html
>
> [Also remember to use clang++, not g++, to build your application].
>
> Also, just for reference (if someone else is reading this), this is
> how to do the same but using libstdc++ runtime instead of the
> default (for clang) libc++ (this seem to be currently necessary
> if you are building your application from QtCreator):
>
> http://codesynthesis.com/pipermail/odb-users/2014-October/002166.html
>
>
> > Boris : does a new binary package is planned for OSX/Yosemite ?
>
> Yes, I was hoping not to have to build it for 2.3.0 and just do it
> for the upcoming 2.4.0 release. But if the Brew approach doesn't
> work, I might have to bite the bullet. Let me know if the above
> doesn't work.
>
> Boris
>



-- 
David Sarrut, Phd
Directeur de recherche CNRS
CREATIS, UMR CNRS 5220, Inserm U 1044
Centre de lutte contre le cancer Léon Bérard
28 rue Laënnec, 69373 Lyon cedex 08
Tel : 04 78 78 51 51 / 06 74 72 05 42
http://www.creatis.insa-lyon.fr/~dsarrut
_________________________________
 "2 + 2 = 5,  for extremely large values of 2"
_________________________________


More information about the odb-users mailing list