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
"ld: warning: pointer not aligned at address ..." #7591
Comments
Comment author: @xavierleroy Thanks for the advance notice: I see you're into beta versions of MacOS. We'll need to reproduce. Could you possibly do "ocamlopt -S test.ml" and attach the generated test.s to this report? |
Comment author: @xavierleroy Thanks for the test.s file. Indeed, the frametable of module Test is not properly 8-aligned. This is not a fatal error because x86-64 supports unaligned accesses, but this is not intended nor desirable. A fix is on the way. |
Comment author: @xavierleroy See #1257 |
Comment author: @xavierleroy Should be fixed since the merge of #1257 |
This is a follow-up to commit 7077b60 that fixed a lack of 8-alignment for the frame table on ADM64, as reported in #7591. A similar issue was reported in #7887 for ARM64 and is fixed here. For good measure, explicit alignment was added to PPC64 as well, although there was probably no issue there. Closes: #7887.
This is a follow-up to commit 7077b60 that fixed a lack of 8-alignment for the frame table on ADM64, as reported in #7591. A similar issue was reported in #7887 for ARM64 and is fixed here. For good measure, explicit alignment was added to PPC64 as well, although there was probably no issue there. Closes: #7887.
Original bug ID: 7591
Reporter: voglerr
Status: resolved (set by @xavierleroy on 2017-09-21T11:49:37Z)
Resolution: fixed
Priority: normal
Severity: minor
OS: macOS
OS Version: 10.13 Beta
Version: 4.05.0
Target version: 4.06.0 +dev/beta1/beta2/rc1
Fixed in version: 4.06.0 +dev/beta1/beta2/rc1
Category: platform support (windows, cross-compilation, etc)
Related to: #7887
Monitored by: voglerr @gasche @dbuenzli
Bug description
Since the latest macOS update (probably because of the Xcode update) I get linker warnings with ocamlopt.
ocaml 4.05.0, 4.04.1
Xcode Version 9.0 beta 2 (9M137d)
Apple LLVM version 9.0.0 (clang-900.0.26)
macOS 10.13 Beta (17A306f)
File attachments
The text was updated successfully, but these errors were encountered: