firemodels / fds

Fire Dynamics Simulator
https://pages.nist.gov/fds-smv/
Other
664 stars 624 forks source link

[Mac OS X] dyld: unknown required load command 0x80000022 #1034

Closed gforney closed 9 years ago

gforney commented 9 years ago
Application Version: 5.5.3 osx 64
SVN Revision Number: SVN r6004, 5998
Compile Date:
Operating System: Mac OS X 10.5.8

Describe details of the issue below:

hello,

i just downloaded the new version of FDS and it doesn't run. The error I
get is:

dyld: unknown required load command 0x80000022
Trace/BPT trap

Which is maybe related to a dynamic library load issue... To have a better
idea of what is happening i tried to debug it using gdb but it didn't help
me much (the output is attached as debug.txt).

The previous version is working, so something changed drastically...

Thank you

Original issue reported on code.google.com by eleni.asimakopoulou on 2010-04-13 21:12:58


gforney commented 9 years ago
We'll try it here. 

Original issue reported on code.google.com by mcgratta on 2010-04-13 21:22:36

gforney commented 9 years ago
what version number of the Mac OSX are you running? 

Original issue reported on code.google.com by gforney on 2010-04-13 21:47:21

gforney commented 9 years ago
Mac OS X 10.5.8 as stated above :-)

Original issue reported on code.google.com by eleni.asimakopoulou on 2010-04-14 06:43:18

gforney commented 9 years ago
sorry, my eyes were not working very well last night.  This version of FDS was built
on a 10.6.x MAC rather than a 10.5.x MAC.  I think this is the issue.

Original issue reported on code.google.com by gforney on 2010-04-14 12:24:45

gforney commented 9 years ago
After much googl'ing I found the linker option -mmacosx-version-min=10.4 to make FDS
compatible with older versions of OSX.   Try the FDS I just posted and let me know
if
this works for you.

Original issue reported on code.google.com by gforney on 2010-04-14 13:12:20

gforney commented 9 years ago
did you have the same problem when you ran smokeview?  (I haven't re-built it yet
with the linker option me mentioned in comment 5)

Original issue reported on code.google.com by gforney on 2010-04-14 16:08:16

gforney commented 9 years ago
Yes, I had the same problem - same error message with smokeview as well and
unfortunately the binary you posted doesn't work either... It goes a bit longer but
stops producing the attached output.

Could it be because it's a 32-bit binary when the system expects a 64-bit one?

Original issue reported on code.google.com by eleni.asimakopoulou on 2010-04-15 09:11:17


gforney commented 9 years ago
I wouldn't have thought that the last error you saw was a 32/64 bit issue.  But I
rebuilt the 64 bit using the same linker option and ran it on the 10.5.x mac (same
mac that failed with same error you saw) and it now runs.  So try the 64 bit OSX FDS
I just posted and let me know whether it works now.

Original issue reported on code.google.com by gforney on 2010-04-16 15:05:38

gforney commented 9 years ago
It now works fine! Thank you very much for your time!

Original issue reported on code.google.com by eleni.asimakopoulou on 2010-04-16 15:32:05

gforney commented 9 years ago
thanks for reporting back.  I'll mark this as verified.

Original issue reported on code.google.com by gforney on 2010-04-16 16:30:36

gforney commented 9 years ago
I had the same problem trying to run FDS. I posted the problem and I had an answer from
Glenn Forney 
(Thanks a lot...) pointing this issue here..so now I move here my comments, hoping
this is the right way to 
move (i'm a very fresh user..)  Here Glenn's answer..

You didn't say, but I assume you are running this on a MAC.

There was a bug recently reported on the issue tracker
(issue 1060 - http://code.google.com/p/fds-smv/issues/detail?id=1060&can=1&q=owner%3Agforney
)
which has been fixed. You need to download the individual 32 or 64
OSX versions of FDS exe's (ie not the bundle) on the download site.
Make sure you copy the apps into the bin directory.

note, I have not yet rebuilt smokeview which requires the same fix.

I am running the software on a MAc 10.5.7 OSX .. MAy I ask: is it possible to use the
 launcher present in the 
bundle??  should I install the bundle and then change the FDS exe ??

Thanks again... sorry, I'm trying to start now using FDS on a MAC and I'm not familiar
with terminal..

Original issue reported on code.google.com by l_nassi@virgilio.it on 2010-04-19 21:17:56

gforney commented 9 years ago
hold off, I will try to create a new bundle tomorrow with correct fds and smokeview
.
 I'll add another comment after this one, once I do this.

Original issue reported on code.google.com by gforney on 2010-04-20 01:13:56

gforney commented 9 years ago
ok, I put a new bundle where I re-built both fds and smokeview using the new linker
options.  The web link is here
http://code.google.com/p/fds-smv/downloads/detail?name=FDS_5.5.0a-SMV_5.5.3a_osx_64.tar.gz&can=2&q=#makechanges

I just remembered that I will also have to re-build smokezip, smokediff and
fds2ascii.  Try out fds and smokeview and report back whether they are working .

Original issue reported on code.google.com by gforney on 2010-04-20 20:30:04

gforney commented 9 years ago
I attach a file..

Original issue reported on code.google.com by l_nassi@virgilio.it on 2010-04-23 20:26:14


gforney commented 9 years ago
It looks like the launcher only works with the 32 bit version of smokeview which was
not in the bundle.

What exactly went wrong when you tried to run the 64 bit version of Smokeview?

Original issue reported on code.google.com by gforney on 2010-04-25 12:39:57

gforney commented 9 years ago
I was able to run FDS with an exaple (couch.fds), and I got a folder with all the solution
files but when I drag 
the file couch.smv on the launcher to start SMV and see the results, I get this message

 FDS-SMV Launcher for OSX
 **** Version: 1.2.1 ****

***Running Smokeview File: /Applications/FDS/FDS5/Examples/Fires/couch/couch.smv ***
sh: /Applications/FDS/FDS5/bin/smv5_osx_32: No such file or directory

I also tryed to launch the file smv5_osx_64 using terminal, I launched terminal and
then I moved inside the 
directories finding the bin folder in he FDS5 folder in Application, where a file smv5_osx_64
unix eseguible 
file exists, and I tryed to start it , but with no success... Maybe I did something
wrong on terminal commands, 
I before just typed the file name with no success, then i remembered the sodu command
but also that didn't 
work..

Luke

Original issue reported on code.google.com by l_nassi@virgilio.it on 2010-04-25 14:41:42

gforney commented 9 years ago
so what went wrong when you tried to run the 64 bit version?  what was the error message?

Original issue reported on code.google.com by gforney on 2010-04-26 13:47:35

gforney commented 9 years ago
try the revised OSX bundle I just posted

Original issue reported on code.google.com by gforney on 2010-04-26 14:18:56

gforney commented 9 years ago
The launcher is not working.  I am taking down the mac bundles until I get something
that works.

Original issue reported on code.google.com by gforney on 2010-04-26 14:55:56

gforney commented 9 years ago
they are working now - bundles are back on the download site.

Try the new bundles and report back whether they are working for you.

Original issue reported on code.google.com by gforney on 2010-04-27 00:58:43

gforney commented 9 years ago
presume verified

Original issue reported on code.google.com by gforney on 2010-05-02 03:24:38

gforney commented 9 years ago
If you use the http://MacPorts.org system then 'port install sox' will correctly
compile + link sox-14.3.1 on whatever MacOS version you're using.

Original issue reported on code.google.com by davidfavor on 2010-05-17 14:11:55