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

Travis OSX doesn't like LDC 1.2 as host compiler #2077

Closed
kinke opened this issue Apr 23, 2017 · 7 comments
Closed

Travis OSX doesn't like LDC 1.2 as host compiler #2077

kinke opened this issue Apr 23, 2017 · 7 comments

Comments

@kinke
Copy link
Member

kinke commented Apr 23, 2017

See here:

error: Invalid bitcode version (Producer: '800.0.42.1_0' Reader: '703.0.31_0')

I guess because the 1.2 binary uses LLVM 4.0. No idea why there's any bitcode involved though.

@JohanEngelen
Copy link
Member

Hm, this may be an high-priority issue.
https://stackoverflow.com/questions/38875117/error-invalid-bitcode-version-producer-800-0-35-0-0-reader-703-0-31-0

Is it that the Mac binaries that I built are not usable on other people's systems if they don't have xcode 8?

@dnadlinger
Copy link
Member

It seems more like something related to the object files we produce?

@kinke
Copy link
Member Author

kinke commented Apr 23, 2017

For Travis, we may use other OSX images with Xcode 8+: https://docs.travis-ci.com/user/osx-ci-environment#OS-X-Version

@JohanEngelen
Copy link
Member

I am thinking it is either the object files we produce, or the phobos/druntime stdlib archives (they contain a bit of C code, so it's not all produced by us and its archived by my XCode 8 archiver).

@dnadlinger
Copy link
Member

For Travis, we may use other OSX images with Xcode 8+: https://docs.travis-ci.com/user/osx-ci-environment#OS-X-Version

I'd rather we fix the binary packages to work with Xcode 7 as well for better compatibility with people using older systems.

@JohanEngelen
Copy link
Member

This apparently is caused by enabling LTO while building LDC: see #2082 .
I haven't looked further into this yet, but for now I will not enable LTO while building binary packages on Mac, and will replace the 1.2.0 binary on the release page.

@kinke
Copy link
Member Author

kinke commented Apr 30, 2017

Fixed by #2083.

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

3 participants