[MacPorts] #57403: ROOT 6 compilation via cling fails
MacPorts
noreply at macports.org
Wed Oct 17 09:47:15 UTC 2018
#57403: ROOT 6 compilation via cling fails
----------------------+--------------------------
Reporter: hansgans | Owner: cjones051073
Type: defect | Status: assigned
Priority: High | Milestone:
Component: ports | Version:
Keywords: mojave | Port: root6
----------------------+--------------------------
After updating to macOS10.14 (and reinstalling all ports) I cannot compile
my ROOT macros anymore (interpreting does still work, as far as I see).
Compiling a simple macro e.g.:
{{{
#include "TROOT.h"
#include <iostream>
void test() {
std::cout<<"adsf"<<std::endl;
}
}}}
using {{{root test.C+}}} fails with various `unknown type errors`:
{{{
Processing test.C+...
Info in <TMacOSXSystem::ACLiC>: creating shared library
/Users/me/Desktop/./test_C.so
warning: no such sysroot directory: '-I/opt/local/libexec/root6/etc/root'
In file included from input_line_1:1:
In file included from
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/new:91:
In file included from
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/exception:82:
In file included from
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstdlib:86:
In file included from
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/stdlib.h:94:
/opt/local/libexec/root6/etc/root/cling/lib/clang/5.0.0/include/stdlib.h:8:15:
fatal error: 'stdlib.h' file not found
#include_next <stdlib.h>
^~~~~~~~~~
In file included from input_line_3:1:
In file included from
/opt/local/libexec/root6/include/root/RtypesCore.h:25:
In file included from
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/stddef.h:46:
/opt/local/libexec/root6/etc/root/cling/lib/clang/5.0.0/include/stddef.h:51:9:
error: unknown type name '__PTRDIFF_TYPE__'
typedef __PTRDIFF_TYPE__ ptrdiff_t;
}}}
ROOT seems to use header files for clang5 while AppleClang is currently at
version 10.0. The full log file is attached.
--
Ticket URL: <https://trac.macports.org/ticket/57403>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list