-
Notifications
You must be signed in to change notification settings - Fork 80
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
M2 Pro, arm64 system architecture got Linking failed with exit code: 1 #428
Comments
From the information you have supplied, it is difficult to offer suggestions. Have you looked at the information here https://tada.github.io/pljava/build/build.html#Troubleshooting_the_build and on the build tips page it links to? They will suggest ways of capturing more useful information (and then how to filter that down to the key information most useful to report). |
@jcflack , yes i checked the build info page and troubleshoot page. log info i can share more here... It seems issue with arm64 architecture.
|
It looks to me as if it may have been a slightly-dubious shortcut taken 19 years ago, that a modern compiler is taking issue with. The case for the shortcut may have been that the function does nothing but But honestly, with only three uses and all in one source file, I don't think it would hurt to have six more lines of code 19 years later, and specialize the function, and eliminate the need to make assumptions about it. |
May i know, Is any plan to merge those fixes ? |
I wonder whether those three warnings are a red herring here. I also see them in the CI testing here, but only as warnings and they do not fail the build. Also, they are compiler warnings, and your failure seems to be from the linker. Your linker message is saying "can't link with a main executable file ... for architecture x86_64". You've mentioned you're on Is it possible the build script is finding an I'm not sure why there would be an |
This issue, along with #411, seems to relate to the Mac OS compiler and linker ending up with some objects built for This may be a matter of not getting the right options to the compiler or linker during the build. In It may be that the "Mac OS X" configuration needs to be either adjusted to use the right command options on both I do not have ready access to an |
Error log
I have arm64 system architecture. It's failing on project pljava-so
Originally posted by @sandeep2244 in #411 (comment)
The text was updated successfully, but these errors were encountered: