Skip to content

Conversation

p0nce
Copy link
Contributor

@p0nce p0nce commented Sep 28, 2015

to avoid trivial incompatibility with OSX version earlier than the one used to build DUB

It avoids the Illegal instruction error.

I've tested on OSX 10.6.8 and the next error is:

dyld: Library not loaded /usr/lib/libcurl.4.dylib
Referenced from: /path/to/dub
Reason: Incompatible library version: dub requires version 7.0.0 or later, but libcurl.4.dylib provides version 6.0.0
Trace/BPT trap

…ty with OSX version earlier than the one used to build DUB
@s-ludwig
Copy link
Member

I think that library incompatibility might be fixed with DMD 2.069, because libcurl is loaded dynamically there. But since this is a Phobos dependency, there is nothing that can be done from DUB's side.

BTW, any reason why an explicit export is needed?

@p0nce
Copy link
Contributor Author

p0nce commented Sep 28, 2015

BTW, any reason why an explicit export is needed?

I've checked and indeed it isn't needed.

But since this is a Phobos dependency, there is nothing that can be done from DUB's side.

Let's just wait DMD 2.069 then, nothing urgent. One can build on another machine.

s-ludwig added a commit that referenced this pull request Sep 28, 2015
Sets MACOSX_DEPLOYMENT_TARGET variable
@s-ludwig s-ludwig merged commit cdf2753 into dlang:master Sep 28, 2015
@s-ludwig
Copy link
Member

Okay

@jacob-carlborg
Copy link
Contributor

Next version of DMD and the current version of LDC have a minimum requirement of OS X 10.7.

@p0nce
Copy link
Contributor Author

p0nce commented May 23, 2016

I target OS X 10.7+ for this reason, and don't need a DUB running on OS X 10.6 anymore. Do you want another PR?

@s-ludwig
Copy link
Member

Will/does setting it to 10.6 cause build issues with those compilers?

@p0nce
Copy link
Contributor Author

p0nce commented May 23, 2016

If phobos is built with 10.7 as minimum OS version then it could create problems if we don't do the same. Though I don't really know what could happen.

@jacob-carlborg
Copy link
Contributor

Will/does setting it to 10.6 cause build issues with those compilers?

@s-ludwig yes:

$ cat main.d
int a = 3; // TLS
void main() {}

$ ./dmd main.d -L-macosx_version_min -L10.6 -L-lcrt1.10.6.o
ld: targeted OS version does not support use of thread local variables in _D4main1ai for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
--- errorlevel 1

Targeting 10.7 works perfectly fine: ./dmd main.d -L-macosx_version_min -L10.7 -L-lcrt1.o

@s-ludwig
Copy link
Member

Okay, incremented to 10.7 now.

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

Successfully merging this pull request may close these issues.

3 participants