error: thread-local storage is not supported for the current target

1,065 views
Skip to first unread message

Rodolfo Probst

unread,
Jun 26, 2020, 11:39:07 AM6/26/20
to raxml

Hi,



I am trying to install ParGenes on a Mac (OS X Yosemite 10.10.5) and I am getting the following error:


In file included from /Users/longinolab/ParGenes/raxml-ng/src/common.h:23:
/Users/longinolab/ParGenes/raxml-ng/src/ParallelContext.hpp:89:10: error:
thread-local storage is not supported for the current target
static thread_local size_t _thread_id;
^
1 error generated.
make[2]: *** [src/CMakeFiles/raxml_module.dir/ICScoreCalculator.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
1 error generated.
make[2]: *** [src/CMakeFiles/raxml_module.dir/AncestralStates.cpp.o] Error 1
1 error generated.
make[2]: *** [src/CMakeFiles/raxml_module.dir/CommandLineParser.cpp.o] Error 1
1 error generated.
make[2]: *** [src/CMakeFiles/raxml_module.dir/Checkpoint.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/raxml_module.dir/all] Error 2
make: *** [all] Error 2



Benoit mentioned that it looks like a RAxML-NG compilation issue specific to OS X. Couldn't find if someone bumped to the same issue while compiling ParGenes, so I if so, I apologize for duplicating the posts. I will try to build using clang and will come back to report if it worked. Appreciate any feedback.


Thanks,

Rodolfo Probst

Benoît Morel

unread,
Jun 26, 2020, 3:56:55 PM6/26/20
to raxml
Alexey, this seems to be an OS X specific compilation error with raxml-ng. Any idea about how to fix it?

Alexey Kozlov

unread,
Jun 26, 2020, 4:16:04 PM6/26/20
to ra...@googlegroups.com
Hi Rodolfo,

seems like your OSX/XCode version is too old, please see here:

https://stackoverflow.com/questions/28094794/why-does-apple-clang-disallow-c11-thread-local-when-official-clang-supports/29929949#29929949

Best,
Alexey

On 26.06.20 17:39, Rodolfo Probst wrote:
> Hi,
>
>
>
> I am trying to install ParGenes on a Mac (OS X Yosemite 10.10.5) and I am getting the following error:
>
>
> In file included from /Users/longinolab/ParGenes/raxml-ng/src/common.h:23:
> /Users/longinolab/ParGenes/raxml-ng/src/ParallelContext.hpp:89:10: error:
> thread-local storage is not supported for the current target
> static thread_local size_t _thread_id;
> ^
> 1 error generated.
> make[2]: *** [src/CMakeFiles/raxml_module.dir/ICScoreCalculator.cpp.o] Error 1
> make[2]: *** Waiting for unfinished jobs....
> 1 error generated.
> make[2]: *** [src/CMakeFiles/raxml_module.dir/AncestralStates.cpp.o] Error 1
> 1 error generated.
> make[2]: *** [src/CMakeFiles/raxml_module.dir/CommandLineParser.cpp.o] Error 1
> 1 error generated.
> make[2]: *** [src/CMakeFiles/raxml_module.dir/Checkpoint.cpp.o] Error 1
> make[1]: *** [src/CMakeFiles/raxml_module.dir/all] Error 2
> make: *** [all] Error 2
>
>
>
> Benoit mentioned that it looks like a RAxML-NGcompilation issue specific to OS X. Couldn't find if
> someone bumped to the same issue while compiling ParGenes, so I if so, I apologize for duplicating
> the posts. I will try to build using clang and will come back to report if it worked. Appreciate any
> feedback.
>
>
> Thanks,
>
> Rodolfo Probst
>
> --
> You received this message because you are subscribed to the Google Groups "raxml" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> raxml+un...@googlegroups.com <mailto:raxml+un...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/raxml/1ca64984-3e86-4f7d-8ce0-4b63178a903fo%40googlegroups.com
> <https://groups.google.com/d/msgid/raxml/1ca64984-3e86-4f7d-8ce0-4b63178a903fo%40googlegroups.com?utm_medium=email&utm_source=footer>.
Reply all
Reply to author
Forward
0 new messages