ilg-archived / qemu

The GNU MCU Eclipse QEMU
http://gnuarmeclipse.github.io/qemu/
Other
204 stars 78 forks source link

gnuarmeclipse-qemu-osx-2.6.0-201607280535.pkg missing liblzo shared library #27

Closed bjandre closed 7 years ago

bjandre commented 8 years ago

The macOS installer package for gnuarmeclipse-qemu-osx-2.6.0-201607280535 is missing the liblzo shared library:

$ /Applications/GNU\ ARM\ Eclipse/QEMU/2.6.0-201607280535/bin/qemu-system-gnuarmeclipse --version
dyld: Library not loaded: /opt/macports/lib/liblzo2.2.dylib
  Referenced from: /Applications/GNU ARM Eclipse/QEMU/2.6.0-201607280535/bin/qemu-system-gnuarmeclipse
  Reason: image not found
Trace/BPT trap: 5

liblzo2.2.dylib should probably be included in the libraries included in: /Applications/GNU\ ARM\ Eclipse/QEMU/2.6.0-201607280535/bin/.

A work around is to install liblzo from another source. For example:

$ brew install lzo
...
...
$ /Applications/GNU\ ARM\ Eclipse/QEMU/2.6.0-201607280535/bin/qemu-system-gnuarmeclipse --version
GNU ARM Eclipse 64-bits QEMU emulator version 2.6.0
Copyright (c) 2003-2008 Fabrice Bellard
ilg-ul commented 8 years ago

thank you for the bug report, I'll fix it with the next release.

what os version are you using?

bjandre commented 8 years ago

I'm running:

adamvn commented 7 years ago

Had, same issue: OSX, 10.12 and used homebrew to fix.

Thanks.

ilg-ul commented 7 years ago

I just fixed the build scripts (https://github.com/gnuarmeclipse/build-scripts), could you try to build your own qemu and let me know if the scripts and the resulting package are ok?

alternatively I have to send you a .pkg file, but I wouldn't make a new release only for this, I plan to upgrade to 2.7 soon.

ilg-ul commented 7 years ago

actually I added the binary files to the 2.6.0 release, check the ones ending in -dev.

adamvn commented 7 years ago

Hi thanks,

Busy trying to get my mac setup for build.. that seems much simpler.

-Adam

adamvn commented 7 years ago

great, -dev works just fine.

ilg-ul commented 7 years ago

please do not reply by mail to these messages, since this requires manual editing of the posts to remove the quoted parts.

xprite commented 7 years ago

This is my experience trying to run qemu on El Capitan 10.11.6 (15G31)

$ ./qemu-system-gnuarmeclipse --version dyld: lazy symbol binding failed: Symbol not found: _clock_gettime Referenced from: /Applications/GNU ARM Eclipse/QEMU/2.6.0-201610170917-dev/bin/./qemu-system-gnuarmeclipse (which was built for Mac OS X 10.12) Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _clock_gettime Referenced from: /Applications/GNU ARM Eclipse/QEMU/2.6.0-201610170917-dev/bin/./qemu-system-gnuarmeclipse (which was built for Mac OS X 10.12) Expected in: /usr/lib/libSystem.B.dylib

Trace/BPT trap: 5

ilg-ul commented 7 years ago

hmmm... it looks like applications built for 10.12 are no longer running on 10.11.

unfortunately all my Macs are now at 10.12; do you know any trick to generate applications for 10.11?

xprite commented 7 years ago

I have no idea. I just updated to macOS Sierra and QEMU is now fully functional.

ilg-ul commented 7 years ago

it looks like applications built for 10.12 are no longer running on 10.11.

unfortunately this is a know problem of Xcode 8 :-(

https://bugs.erlang.org/browse/ERL-256

ilg-ul commented 7 years ago

the current workaround seems to be to completely avoid clock_gettime() on macOS builds.

if you still have a 10.11 running somewhere, I can provide a binary.

xprite commented 7 years ago

I am good with 10.12 now. Maybe somebody else will be interested. Thank you

ilg-ul commented 7 years ago

fixed in v2.7.0-20161029