Skip to content

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

Description

@stefanmarinus

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions