Problem on Mac OS X

Hello,
I am using ROOT 6.24/09 head of branch. I am on Mac OS Ventura Darwin Kernel Version 22.1.0.
Apple clang version 14.0.0 (clang-1400.0.29.202)
Target: x86_64-apple-darwin22.1.0

When I try to compile any macro I get

root [0] .x hw.C
Hello World
root [1] .x hw.C+
Info in <ACLiC>: script has already been loaded in interpreted mode
Info in <ACLiC>: unloading /Users/fca/./hw.C and compiling it
Info in <TMacOSXSystem::ACLiC>: creating shared library /Users/fca/./hw_C.so
sh: -c: line 0: unexpected EOF while looking for matching `"'
sh: -c: line 1: syntax error: unexpected end of file
Error in <ACLiC>: Executing 'cd "/Users/fca" ; c++ -fPIC -c -O2 -std=c++17 -Wc++11-narrowing -Wsign-compare -Wsometimes-uninitialized -Wconditional-uninitialized -Wheader-guard -Warray-bounds -Wcomment -Wtautological-compare -Wstrncat-size -Wloop-analysis -Wbool-conversion -m64 -pipe -W -Woverloaded-virtual -fsigned-char -fno-common -Qunused-arguments -pthread -stdlib=libc++  -I$ROOTSYS/include -isysroot "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/" -I"/usr/local/root/etc/" -I"/usr/local/root/etc//cling" -I"/usr/local/root/include/" -I"/usr/local/root/include"   -D__ACLIC__ "/Users/fca/hw_C_ACLiC_dict.cxx" ; c++ -O2 "/Users/fca/hw_C_ACLiC_dict.o" -dynamiclib -Wl,-headerpad_max_install_names -m64 -single_module -Wl,-dead_strip_dylibs -undefined dynamic_lookup   "/usr/local/Cellar/zstd/1.5.2/lib/libzstd.1.dylib" "/usr/local/Cellar/lz4/1.9.4/lib/liblz4.1.dylib" "/usr/local/Cellar/xxhash/0.8.1/lib/libxxhash.0.dylib" "/usr/local/root/lib/libRint.so" "/usr/local/root/lib/libCore.so" "/usr/local/Cellar/xxhash/0.8.1/lib/libxxhash.0.8.1.dylib" "/usr/local/Cellar/lz4/1.9.4/lib/liblz4.1.9.4.dylib" "/usr/local/Cellar/zstd/1.5.2/lib/libzstd.1.5.2.dylib" "/usr/lib/libpcre.0.dylib /usr/lib/liblzma.5.dylib /usr/lib/libz.1.dylib /usr/lib/libfakelink.dylib /usr/lib/libenergytrace.dylib /usr/lib/libapple_nghttp2.dylib /usr/lib/libcompression.dylib /usr/lib/libnetwork.dylib /usr/lib/libsqlite3.dylib /usr/lib/libCoreEntitlements.dylib /usr/lib/libMobileGestalt.dylib /usr/lib/libcoretls.dylib /usr/lib/libcoretls_cfhelpers.dylib /usr/lib/libxar.1.dylib /usr/lib/libarchive.2.dylib /usr/lib/libxml2.2.dylib /usr/lib/swift/libswiftCore.dylib /usr/lib/swift/libswiftCoreFoundation.dylib /usr/lib/swift/libswiftDarwin.dylib /usr/lib/swift/libswiftDispatch.dylib /usr/lib/swift/libswiftIOKit.dylib /usr/lib/swift/libswiftObjectiveC.dylib /usr/lib/swift/libswiftXPC.dylib /usr/lib/swift/libswift_Concurrency.dylib /usr/lib/swift/libswift_StringProcessing.dylib /usr/lib/swift/libswiftos.dylib /usr/lib/libpcap.A.dylib /usr/lib/libdns_services.dylib /usr/lib/libbz2.1.0.dylib /usr/lib/libiconv.2.dylib /usr/lib/libcharset.1.dylib /usr/lib/swift/libswift_RegexParser.dylib /usr/lib/libheimdal-asn1.dylib /usr/lib/libCheckFix.dylib /usr/lib/libmecab.dylib /usr/lib/libgermantok.dylib /usr/lib/libThaiTokenizer.dylib /usr/lib/libutil.dylib /usr/lib/libapp_launch_measurement.dylib /usr/lib/libmis.dylib /usr/lib/libxslt.1.dylib /usr/lib/libcmph.dylib /usr/lib/libTLE.dylib /usr/lib/libspindump.dylib /usr/lib/libate.dylib /usr/lib/libexpat.1.dylib /usr/lib/libAudioStatistics.dylib /usr/lib/libSMC.dylib /usr/lib/libperfcheck.dylib /usr/lib/libIOReport.dylib" "/usr/local/root/lib/libRIO.so" "/usr/local/root/lib/libThread.so" "/usr/local/root/lib/libCling.so" "/usr/lib/libncurses.5.4.dylib" "/usr/local/root/lib/libMathCore.so" "/usr/local/root/lib/libImt.so" "/usr/local/root/lib/libMultiProc.so" "/usr/local/Cellar/tbb@2020_u3/2020_U3_1/lib/libtbb.dylib" "/usr/local/root/lib/libNet.so" "/usr/lib/libsandbox.1.dylib /usr/lib/libCoreStorage.dylib /usr/lib/libcsfde.dylib /usr/lib/libMatch.1.dylib /usr/lib/libAccessibilityBaseImplementations.dylib  -o "/Users/fca/./hw_C.so"' failed!

the macro in question is

#include "stdio.h"
void hw () {
printf("Hello World\n");
}

There is in effect a " missing at the very end between dylib and -o

[...] /usr/lib/libAccessibilityBaseImplementations.dylib  -o "/Users/fca/./hw_C.so"' 

Any help would be appreciated,


Please read tips for efficient and successful posting and posting code

ROOT Version: 6.24/09 head of branch
Platform: Mac OS Ventura Darwin Kernel Version 22.1.0
Compiler: Apple clang version 14.0.0 (clang-1400.0.29.202)


Hi Federico,

The fix is on the way:

Olivier

Thanks! Ventura has made quite a mess… Best,

OK now with the head… with a warning

root [2] .x hw.C++
Info in <ACLiC>: unmodified script has already been compiled and loaded
Info in <ACLiC>: it will be regenerated and reloaded!
Info in <TMacOSXSystem::ACLiC>: creating shared library /Users/fca/./hw_C.so
ld: warning: -undefined dynamic_lookup may not work with chained fixups
ld: warning: -undefined dynamic_lookup may not work with chained fixups
Hello World
root [3] .q

Hi Federico,

I think these warnings are known and been worked on, work in progress :slight_smile:

Cheers,
Enrico

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.