-
-
Notifications
You must be signed in to change notification settings - Fork 264
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
LDC 1.5 beta1, Ubuntu 14.04: Exceptions not caught when using gold linker and static linking #2390
Comments
|
Works for me on Ubuntu 16.04 using gold v1.11. |
|
Verified. Unbuntu 16.04 works for me as well. I hit the problem on ubuntu when using Travis-CI. The latest version of ubuntu Travis supports is 14.04. I used dockerized versions of ubuntu 14.04 and 16.04 to verify the behavior. The gold version is 1.11 on both, but the glibc versions are different (2.19 vs 2.23) |
|
You can use docker with Travis: https://docs.travis-ci.com/user/docker/ |
|
Yeah, I'll have to look into docker. I only need the gold linker for LTO, for non-LTO builds it's fine. It'd be nice to have a successful LTO build on Travis. I've already got the OS X version is going. One possibility might be to have the LDC docker image available from the docker store updated to use ubuntu 16.04 and LDC 1.5. It'd be convenient if that could be invoked from Travis. Update: Just checked, the LDC docker image uses 16.04, it's just not on LDC 1.5 yet. |
|
You basically need a base image with gcc. The official |
|
Thanks the follow-up. Given that ubuntu 16.04 works, it's fine with me if you want to close this as won't fix. |
|
I was able to use the updated dlanguage/ldc docker image to build with Ubuntu 16.04 on Travis:
The updated image supports the Currently it's necessary to specify the 1.5.0 tag explicitly (ie. |
|
I saw an instance of this with LDC 1.5.0 and Ubuntu 16.04. Occurred after adding some code to one of my tools. Same behavior. I didn't investigate further, but instead tried switching to LDC 1.7.0, which uses LLVM 5.0.1. The issue did not occur. I don't know that there are any actions to take, apart from being aware that more cases may surface. |
|
Update: I tried building my tools with |
Using the gold linker with
-static, the built app is not able to catch exceptions and exits instead.Ubuntu 14.04
LDC 1.5.0-beta1
Program (app.d):
All of these build forms work fine:
Behavior of the above builds (as expected):
Combining the gold linker and static linking causes trouble catching the exception:
I've also tried building with thin and full LTO and multiple programs. The above behavior occurs whenever static linking is combined with the goal linker.
The text was updated successfully, but these errors were encountered: