New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dyld: malformed mach-o: load commands size (33848) > 32768 #10330
Comments
This looks like a problem with our mac bundle. Let me see if I can replicate it. |
@luca-heltai I can reproduce this issue on my mac (a week-old mac mini running Catalina). Let me know when you are available to take a look. |
Unfortunately, I cannot reproduce on my mac. We could take a look at this today? |
So that means I have to build the library from the bottom? |
Unfortunately, until we get this fixed that will be necessary. |
@luca-heltai I have time to fix this but I don't know how to build or test the mac bundle. Could you help me by pointing me to instructions on how to rebuild the mac bundle with spack on my machine? |
I've tried to fix this in the past week, with no luck. The way I proceed is the following:
/Applications/deal.II.app/Contents/Resources/
/Applications/deal.II.app/Contents/Resources/spack Call this SPACK_ROOT
$SPACK_ROOT/gcc-9.2 for example, from http://prdownloads.sourceforge.net/hpc/gfortran-9.2-bin.tar.gz?download)
$SPACK_ROOT/bin/spack compiler add --scope site $SPACK_ROOT/gcc-9.2
$SPACK_ROOT/etc/spack/compilers.yaml so that clang and gcc-9.2 are both present as cxx and gfortran compilers:
$SPACK_ROOT/bin/spack install dealii@9.2 If this succeeds, you should be able to run deal.II examples. After this, we can make a bundle by filling the rest of the |
I was able to do this for the package, but it did not work correctly for some of the libraries. I ran |
I think I was able (FINALLY) to fix the package. I'm uploading my package right now. I could not set all libraries with their absolute path, so the solution is either to use modules (module load deal.II), or to enable the view, in which case Notice that this is deprecated and should not happen, but I have no way to circumvent the load size. We load too many libraries, and spack creates paths that are too long... I have uploaded a new package on the deal.II 9.2.0 release page. @drwells can you check if this works for you? |
It looks like it was not signed correctly - I get the following error:
|
You should "ctrl" click. This would open a dialog where you are asked if you trust me. I believe you should say yes here. ;) |
Oh, duh (you can tell that I don't normally use a mac). The symbolic links in, e.g., I also see a warning
Otherwise things appear to be in order. I can run step-40 in parallel just fine. |
Hello,everyone!I have built deal.ii9.2.0 on my macbook using Spack.Here is my steps:
|
@luca-heltai @drwells @tamiko Thanks a lot! |
This can be fixed by using either filesystem views or modules. They both allow you to modify the environment variables such that all libraries are detected and consistent with how the dependencies are build. You can also see the deal.II wiki for a little more detail on how you'd use them to build deal.II. Personally, I used to use views because they were implemented in spack before modules and seemed really easy and intuitive to use. But last time I installed deal.II on a cluster and my workstation I tried modules. I get the feeling the modules are more robust (since loading the modules will make spack modify the environment, rather than you needing to do it yourself). So I would now recommend the modules approach, even though the syntax is a little weird and it takes a little time to understand how to set them up. |
Notice that the deal.II package is already set up with modules on by default:
will allow you to simply write |
This should avoid all problems @Fanxiaotsing is observing with the libraries |
Can we close this? Alberto Salvadori also confirmed that the package is working for him now. |
This works for me too (with the not-important exceptions listed above) so yes. |
All the examples can not run on macos catalina10.15.4 with 9.2.0 installed,can anyone fix this problem?use the "otool -l"can get
otool -l /Applications/deal.II.app/Contents/Resources/Libraries/lib/libdeal_II.g.9.2.0.dylib
/Applications/deal.II.app/Contents/Resources/Libraries/lib/libdeal_II.g.9.2.0.dylib:
Mach header
magic cputype cpusubtype caps filetype ncmds sizeofcmds flags
0xfeedfacf 16777223 3 0x00 6 196 38368 0x00118085
Load command 0
cmd LC_SEGMENT_64
cmdsize 632
segname __TEXT
vmaddr 0x0000000000000000
vmsize 0x0000000009087000
fileoff 0
filesize 151547904
maxprot 0x00000005
initprot 0x00000005
nsects 7
flags 0x0
Section
sectname __text
segname __TEXT
addr 0x0000000000031260
size 0x0000000006b90d33
offset 201312
align 2^4 (16)
reloff 0
nreloc 0
flags 0x80000400
reserved1 0
reserved2 0
@drwells edit: trimmed for brevity
The text was updated successfully, but these errors were encountered: