Skip to content

macos 15.4 building bug of module map file #18306

@cxwx

Description

@cxwx

Check duplicate issues.

  • Checked for duplicates

Description

after upgrading macos -> 15.4 and xcode 16.3

cd /Users/chenxu/software/ROOT/build3/core && /opt/homebrew/bin/cmake -E env LD_LIBRARY_PATH=/Users/chenxu/software/ROOT/build3/lib:/Users/chenxu/software2/install/lib:/Users/chenxu/software/install3/lib:/Users/chenxu/software/install2/lib:/Users/chenxu/software/install/lib::/opt/homebrew/lib/:/Users/chenxu/software/ROOT/install//lib/:/Users/chenxu/software/Geant4/install/lib/ /Users/chenxu/software/ROOT/build3/core/rootcling_stage1/src/rootcling_stage1 -v2 -f G__Core.cxx -cxxmodule -s /Users/chenxu/software/ROOT/build3/lib/libCore.so -excludePath /Users/chenxu/software/ROOT/root -excludePath /Users/chenxu/software/ROOT/build3/ginclude -excludePath /Users/chenxu/software/ROOT/build3/externals -excludePath /Users/chenxu/software/ROOT/build3/builtins -writeEmptyRootPCM -mSystemByproducts -m _Builtin_intrinsics -mByproduct _Builtin_intrinsics -mByproduct ROOT_Foundation_Stage1_NoRTTI -mByproduct ROOT_Foundation_C -mByproduct ROOT_Rtypes -DR__ARC4_STDLIB -D__STDC_NO_COMPLEX__ -D__COMPLEX_H__ -D_COMPLEX_H -D__CLANG_STDATOMIC_H -compilerI/usr/local/include -compilerI/Users/chenxu/software2/install/include -compilerI/Users/chenxu/software/install3/include -compilerI/Users/chenxu/software/install2/include -compilerI/Users/chenxu/software/install/include -compilerI/opt/homebrew/include -compilerI/Users/chenxu/software/Geant4/install/include/Geant4 -compilerI/opt/homebrew/include/mysql -compilerI/opt/homebrew/include/opencv4 -compilerI/opt/homebrew/include/lua -compilerI/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1 -compilerI/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include -compilerI/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -compilerI/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -compilerI/usr/local/include -compilerI/Users/chenxu/software2/install/include -compilerI/Users/chenxu/software/install3/include -compilerI/Users/chenxu/software/install2/include -compilerI/Users/chenxu/software/install/include -compilerI/opt/homebrew/include -compilerI/Users/chenxu/software/Geant4/install/include/Geant4 -compilerI/opt/homebrew/include/mysql -compilerI/opt/homebrew/include/opencv4 -compilerI/opt/homebrew/include/lua -compilerI/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include -compilerI/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -compilerI/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/chenxu/software/ROOT/build3/include -I/opt/homebrew/include -I/Users/chenxu/software/ROOT/build3/ginclude -I/Users/chenxu/software/ROOT/root/core/base/inc -I/Users/chenxu/software/ROOT/root/core/base/v7/inc -I/Users/chenxu/software/ROOT/root/core/clib/inc -I/Users/chenxu/software/ROOT/root/core/clingutils/inc -I/Users/chenxu/software/ROOT/root/core/clingutils/res -I/Users/chenxu/software/ROOT/root/core/cont/inc -I/Users/chenxu/software/ROOT/root/core/foundation/inc -I/Users/chenxu/software/ROOT/root/core/foundation/res -I/Users/chenxu/software/ROOT/root/core/gui/inc -I/Users/chenxu/software/ROOT/root/core/meta/inc -I/Users/chenxu/software/ROOT/root/core/rint/inc -I/Users/chenxu/software/ROOT/root/core/textinput/inc -I/Users/chenxu/software/ROOT/root/core/textinput/src -I/Users/chenxu/software/ROOT/root/core/thread/inc -I/Users/chenxu/software/ROOT/root/core/zip/inc -I/Users/chenxu/software/ROOT/root/core/lzma/inc -I/opt/homebrew/include -I/Users/chenxu/software/ROOT/root/core/lz4/inc -I/Users/chenxu/software/ROOT/root/core/zstd/inc -I/Users/chenxu/software/ROOT/root/core/macosx/inc -I/Users/chenxu/software/ROOT/root/core/unix/inc -I/Users/chenxu/software/ROOT/root/core/unix/../clib/res -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include ROOT/TErrorDefaultHandler.hxx ROOT/TExecutorCRTP.hxx ROOT/TSequentialExecutor.hxx ROOT/StringConv.hxx Buttons.h Bytes.h Byteswap.h KeySymbols.h MessageTypes.h Riostream.h Rtypes.h TApplication.h TAtt3D.h TAttAxis.h TAttBBox2D.h TAttBBox.h TAttFill.h TAttLine.h TAttMarker.h TAttPad.h TAttText.h TBase64.h TBenchmark.h TBuffer3D.h TBuffer3DTypes.h TBuffer.h TColor.h TColorGradient.h TDatime.h TDirectory.h TEnv.h TException.h TExec.h TFileCollection.h TFileInfo.h TFolder.h TInetAddress.h TMacro.h TMathBase.h TMD5.h TMemberInspector.h TMessageHandler.h TNamed.h TNotifyLink.h TObject.h TObjString.h TParameter.h TPluginManager.h TPoint.h TPRegexp.h TProcessID.h TProcessUUID.h TQClass.h TQCommand.h TQConnection.h TQObject.h TRedirectOutputGuard.h TRefCnt.h TRef.h TRegexp.h TRemoteObject.h TROOT.h TRootIOCtor.h TStopwatch.h TStorage.h TString.h TStringLong.h TStyle.h TSysEvtHandler.h TSystemDirectory.h TSystemFile.h TSystem.h TTask.h TThreadSlots.h TTime.h TTimer.h TTimeStamp.h TUri.h TUrl.h TUUID.h TVersionCheck.h TVirtualAuth.h TVirtualFFT.h TVirtualGL.h TVirtualMonitoring.h TVirtualMapFile.h TVirtualMutex.h TVirtualPadEditor.h TVirtualPad.h TVirtualPadPainter.h TVirtualPerfStats.h TVirtualPS.h TVirtualQConnection.h TVirtualRWMutex.h TVirtualTableInterface.h TVirtualViewer3D.h TVirtualX.h ROOT/RFloat16.hxx ROOT/RIndexIter.hxx strlcpy.h snprintf.h strtok.h root_std_complex.h ROOT/TSeq.hxx TArrayC.h TArrayD.h TArrayF.h TArray.h TArrayI.h TArrayL64.h TArrayL.h TArrayS.h TBits.h TBtree.h TClassTable.h TClonesArray.h TCollection.h TCollectionProxyInfo.h TExMap.h THashList.h THashTable.h TIterator.h TList.h TMap.h TObjArray.h TObjectTable.h TOrdCollection.h TRefArray.h TRefTable.h TSeqCollection.h TSortedList.h TVirtualCollectionProxy.h ESTLType.h RStringView.h TClassEdit.h TError.h ThreadLocalStorage.h ROOT/RError.hxx ROOT/RLogger.hxx ROOT/RNotFn.hxx ROOT/RRangeCast.hxx ROOT/RSpan.hxx ROOT/RStringView.hxx ROOT/StringUtils.hxx ROOT/span.hxx ROOT/TypeTraits.hxx GuiTypes.h TApplicationImp.h TBrowser.h TBrowserImp.h TCanvasImp.h TClassMenuItem.h TContextMenu.h TContextMenuImp.h TControlBarImp.h TGuiFactory.h TInspectorImp.h TObjectSpy.h TToggleGroup.h TToggle.h TBaseClass.h TClassGenerator.h TClass.h TClassRef.h TClassStreamer.h TDataMember.h TDataType.h TDictAttributeMap.h TDictionary.h TEnumConstant.h TEnum.h TFileMergeInfo.h TFunction.h TFunctionTemplate.h TGenericClassInfo.h TGlobal.h TInterpreter.h TInterpreterValue.h TIsAProxy.h TListOfDataMembers.h TListOfEnums.h TListOfEnumsWithLock.h TListOfFunctions.h TListOfFunctionTemplates.h TMemberStreamer.h TMethodArg.h TMethodCall.h TMethod.h TProtoClass.h TRealData.h TSchemaHelper.h TSchemaRule.h TSchemaRuleSet.h TStatusBitsChecker.h TStreamerElement.h TStreamer.h TVirtualIsAProxy.h TVirtualRefProxy.h TVirtualStreamerInfo.h TVirtualArray.h TVirtualObject.h Getline.h TMacOSXSystem.h TUnixSystem.h /Users/chenxu/software/ROOT/root/core/base/inc/LinkDef.h
fatal error: module map file '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/std_darwin.MacOSX14.2.sdk.modulemap' not found
fatal error: module map file '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/std_darwin.MacOSX14.2.sdk.modulemap' not found
fatal error: module map file '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/std_darwin.MacOSX14.2.sdk.modulemap' not found
fatal error: module map file '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/std_darwin.MacOSX14.2.sdk.modulemap' not found
........
........
fatal error: module map file '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/std_darwin.MacOSX14.2.sdk.modulemap' not found
fatal error: module map file '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/std_darwin.MacOSX14.2.sdk.modulemap' not found
fatal error: module map file '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/std_darwin.MacOSX14.2.sdk.modulemap' not found
<<< cling interactive line includer >>>: fatal error: could not build module '_Builtin_intrinsics'
Error: Module '_Builtin_intrinsics' failed to load.
fatal error: module map file '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/std_darwin.MacOSX14.2.sdk.modulemap' not found
fatal error: module map file '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/std_darwin.MacOSX14.2.sdk.modulemap' not found
fatal error: module map file '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/std_darwin.MacOSX14.2.sdk.modulemap' not found
fatal error: module map file '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/std_darwin.MacOSX14.2.sdk.modulemap' not found
fatal error: module map file '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/std_darwin.MacOSX14.2.sdk.modulemap' not found
fatal error: module map file '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/std_darwin.MacOSX14.2.sdk.modulemap' not found
fatal error: module map file '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/std_darwin.MacOSX14.2.sdk.modulemap' not found
fatal error: module map file '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/std_darwin.MacOSX14.2.sdk.modulemap' not found

Reproducer

after upgrading macos -> 15.4 and xcode 16.3

cmake ../root
make

ROOT version

master lastest

Installation method

cmake

Operating system

macos

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions