Project

General

Profile

Bug #11048

Building master fails on OS X.

Added by Moritz Moeller about 2 years ago. Updated about 2 years ago.

Status:
Incomplete
Priority:
Low
Assignee:
Category:
-
Target version:
-
Start date:
06/09/2016
Due date:
% Done:

20%

Affected Version:
git stable branch
System:
Mac OS X
bitness:
64-bit
hardware architecture:
amd64/x86

Description

[ 20%] Building C object src/CMakeFiles/lib_darktable.dir/control/jobs.c.o
/Users/moeller/code/darktable/src/control/jobs.c:459:8: error: thread-local storage is not supported for the current target
static __thread int threadid = -1;
^
1 error generated.
make2: * [src/CMakeFiles/lib_darktable.dir/control/jobs.c.o] Error 1
make1:
[src/CMakeFiles/lib_darktable.dir/all] Error 2
make: *
* [all] Error 2

History

#1 Updated by Tobias Ellinghaus about 2 years ago

  • % Done changed from 0 to 20
  • Status changed from New to Incomplete

That code is there forever. Did anything change in your setup?

#2 Updated by Moritz Moeller about 2 years ago

This can be fixed by bumping DCMAKE_OSX_DEPLOYMENT_TARGET. I only tried 10.11.

https://github.com/darktable-org/darktable/blob/master/packaging/macosx/BUILD.txt should be updated.

#3 Updated by Igor Kuzmin about 2 years ago

  • Assignee set to Igor Kuzmin

Which compiler are you using? Because it should work with gcc and deployment target mentioned in BUILD.txt and you are probably using Xcode's clang. If you're building for yourself there's no real need to set deployment target at all, it should build fine then.

Also available in: Atom PDF