Skip to content
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

found architecture 'x86_64', required architecture 'arm64' #44

Open
stefanmarinus opened this issue Mar 27, 2024 · 1 comment
Open

found architecture 'x86_64', required architecture 'arm64' #44

stefanmarinus opened this issue Mar 27, 2024 · 1 comment

Comments

@stefanmarinus
Copy link

I was trying to install nuSQuIDS on a Mac with the Apple M2 Max chip.

./configure --prefix="../nusquids" --with-gsl-incdir="../gsl/include" --with-gsl-libdir="../gsl/lib" --with-squids-incdir="../include" --with-squids-libdir="../squids/lib"

Checking manually specified GSL...
Looking for hdf5...
 Found hdf5 version 1.10.4 via executables in $PATH
Checking manually specified SQUIDS...
Generating config file...
Generating version header...
Generating data path header...
Generating makefile...
./configure: line 868: pkg-config: command not found
Done.

To build the library, run the following: make
After, to build examples: make examples

The doing

make

produced the following error:

Compiling src/body.cpp to build/body.o
Compiling src/nuSQuIDS.cpp to build/nuSQuIDS.o
Compiling src/resources.cpp to build/resources.o
Compiling src/taudecay.cpp to build/taudecay.o
Compiling src/tools.cpp to build/tools.o
Compiling src/xsections.cpp to build/xsections.o
Linking lib/libnuSQuIDS.a
Linking lib/libnuSQuIDS.dylib
ld: warning: -pie being ignored. It is only used when linking a main executable
ld: warning: ignoring duplicate libraries: '-lm', '-lpthread'
ld: warning: ignoring file '/opt/anaconda3/lib/libhdf5_hl.100.dylib': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '/opt/anaconda3/lib/libhdf5.103.dylib': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '/opt/anaconda3/lib/libz.1.2.11.dylib': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '/opt/anaconda3/lib/libc++.1.0.dylib': found architecture 'x86_64', required architecture 'arm64'
ld: Undefined symbols:
  _H5Aclose, referenced from:
........
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [lib/libnuSQuIDS.dylib] Error 1

I have no root access.

@B0bsen
Copy link

B0bsen commented Jun 22, 2024

Seems like you need to build the hdf5 library from source (https://portal.hdfgroup.org/downloads/) and tell its location to the configure script using --with-hdf5=/Location/of/hdf5.
HDF5 can be built the same way as nuSQuIDS by invoking the configure script with options --prefix=/Location/of/hdf5 and --enable-cxx for the required c bindings.

Can you tell me if nuSQuIDS works on your arm mac? I have a M1 Max machine and was able to install nuSQuIDS (without python bindings) but as soon as I execute my program it is immediately killed by zsh.
On my Intel Mac I do not encounter this problem... SQuIDS for instance works...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants