-
-
Notifications
You must be signed in to change notification settings - Fork 185
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
Linkerscript not supported #131
Comments
This part is only true for ELF backend. MinGW implementation doesn't support them. IIRC GMP build process doesn't use linker scripts. You probably have non-patched version of libtool, see https://github.com/mstorsjo/llvm-mingw#known-issues |
Got it, thanks. GMP uses linker scripts to pass in the list of object files to link. I modified libtool.sh to set the variable “with_gnu_ld” to “no” and it was able to get farther in the linking process as it stopped using linkerscript to pass object files to ld-link. How would I get a patched version of libtool, as I am not sure if my libtool.sh hack will cause problems down the line? |
It depends. On Windows MSYS2 provides patched libtool, on Arch Linux you can use this AUR package and finally you can build libtool yourself with those 2 patches: 1 and 2 I don't know if other patches are necessary on Linux. |
Got it. I am building gmp with msys2 MINGW64, so that means I am using the patched libtool. Or is there something I have to do activate to use it? |
libtool is embedded in each source package (if you unpack a source tarball and build it, you normally don't need libtool installed on your system, as it uses a copy bundled in the tarball). Rerun |
I installed libtool with: So, I decided to simply copy over the newly installed libtool from mingw to overwrite the libtool in the gmp build directory, but now get errors like this: Any help is appreciated :). |
Update:
It works now :). Thanks for your help and for your excellent work with llvm-mingw. |
I am trying to build GNU GMP on Windows 64 bit x86 host for ARM64. However, linkerscript file isn’t supported (as per the readme as well). However, https://lld.llvm.org/# states that LLD is a drop in replacement for GNU LD and that it supports the same linker scripts. Is there any way to get the tool chain to support linkerscript?
The text was updated successfully, but these errors were encountered: