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

buildJniLib failing with architecture Exception #16

Open
hudda10 opened this issue Oct 10, 2023 · 0 comments
Open

buildJniLib failing with architecture Exception #16

hudda10 opened this issue Oct 10, 2023 · 0 comments

Comments

@hudda10
Copy link

hudda10 commented Oct 10, 2023

The command to build JniLib is failing on Mac M1 , OS Sonoma 14

gcc -shared -lgfortran -L /usr/local/gfortran/lib/ -o /slsqp4j/slsqp4j/build/libs/libslsqp.so /slsqp4j/slsqp4j/build/c/slsqp.o /slsqp4j/slsqp4j/build/fortran/slsqp.o

with error

found architecture 'arm64', required architecture 'x86_64'
ld: Undefined symbols:
slsqp, referenced from:
_Java_com_skew_slsqp4j_util_NativeUtils_slsqp in slsqp.o
clang: error: linker command failed with exit code 1

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

1 participant