Skip to content

macos 15.4 building bug of module map file #18306

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task
cxwx opened this issue Apr 8, 2025 · 15 comments
Closed
1 task

macos 15.4 building bug of module map file #18306

cxwx opened this issue Apr 8, 2025 · 15 comments
Labels

Comments

@cxwx
Copy link
Contributor

cxwx commented Apr 8, 2025

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

@cxwx cxwx added the bug label Apr 8, 2025
@ferdymercury
Copy link
Collaborator

Did you try with latest-stable or with master ?

@cxwx
Copy link
Contributor Author

cxwx commented Apr 8, 2025

using neither the lastest master version nor stables works @ferdymercury

@vepadulano
Copy link
Member

Dear @cxwx ,

Thanks for reaching out! The issue you report should have already been fixed by ff43ae8. Have you made sure to remove your old build directory and start the build of ROOT from scratch?

@cxwx
Copy link
Contributor Author

cxwx commented Apr 8, 2025

Dear @vepadulano
I've remove the old install directory.
there may be some thirdparty libs in homebrew I'm not sure

@cxwx
Copy link
Contributor Author

cxwx commented Apr 8, 2025

ls: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/std_darwin.MacOSX14.2.sdk.modulemap: No such file or directory

not found, where should the std_darwin.MacOSX14.2.sdk.modulemap locate?

@vepadulano
Copy link
Member

Dear @cxwx ,

I am not sure we have the full picture here. You mentioned removing the "install" directory, but you should remove the build directory first and foremost, did you also do that? I don't know where that missing file or directory error could come from.

@vepadulano
Copy link
Member

For reference, I also have MacOS 15.4 with XCode 16.3 and I can build ROOT normally

@cxwx
Copy link
Contributor Author

cxwx commented Apr 8, 2025

For reference, I also have MacOS 15.4 with XCode 16.3 and I can build ROOT normally

Is there a file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/std_darwin.MacOSX14.2.sdk.modulemap in macos?

@vepadulano
Copy link
Member

Is there a file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/std_darwin.MacOSX14.2.sdk.modulemap in macos?

Not that I can see, but I also don't understand why it is needed it in your environment

@cxwx
Copy link
Contributor Author

cxwx commented Apr 8, 2025

the problem is

[ 52%] Generating G__Core.cxx, ../lib/Core.pcm

cd /Users/chenxu/software/ROOT/build2/core && /opt/homebrew/bin/cmake -E env LD_LIBRARY_PATH=/Users/chenxu/software/ROOT/build2/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/Geant4/install/lib/ /Users/chenxu/software/ROOT/build2/core/rootcling_stage1/src/rootcling_stage1 -v2 -f G__Core.cxx -cxxmodule -s /Users/chenxu/software/ROOT/build2/lib/libCore.so -excludePath /Users/chenxu/software/ROOT/root-6-34-08 -excludePath /Users/chenxu/software/ROOT/build2/ginclude -excludePath /Users/chenxu/software/ROOT/build2/externals -excludePath /Users/chenxu/software/ROOT/build2/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/build2/include -I/opt/homebrew/include -I/Users/chenxu/software/ROOT/build2/ginclude -I/Users/chenxu/software/ROOT/root-6-34-08/core/base/inc -I/Users/chenxu/software/ROOT/root-6-34-08/core/base/v7/inc -I/Users/chenxu/software/ROOT/root-6-34-08/core/clib/inc -I/Users/chenxu/software/ROOT/root-6-34-08/core/clingutils/inc -I/Users/chenxu/software/ROOT/root-6-34-08/core/clingutils/res -I/Users/chenxu/software/ROOT/root-6-34-08/core/cont/inc -I/Users/chenxu/software/ROOT/root-6-34-08/core/foundation/inc -I/Users/chenxu/software/ROOT/root-6-34-08/core/foundation/v7/inc -I/Users/chenxu/software/ROOT/root-6-34-08/core/foundation/res -I/Users/chenxu/software/ROOT/root-6-34-08/core/gui/inc -I/Users/chenxu/software/ROOT/root-6-34-08/core/meta/inc -I/Users/chenxu/software/ROOT/root-6-34-08/core/rint/inc -I/Users/chenxu/software/ROOT/root-6-34-08/core/textinput/inc -I/Users/chenxu/software/ROOT/root-6-34-08/core/textinput/src -I/Users/chenxu/software/ROOT/root-6-34-08/core/thread/inc -I/Users/chenxu/software/ROOT/root-6-34-08/core/zip/inc -I/Users/chenxu/software/ROOT/root-6-34-08/core/lzma/inc -I/opt/homebrew/include -I/Users/chenxu/software/ROOT/root-6-34-08/core/lz4/inc -I/Users/chenxu/software/ROOT/root-6-34-08/core/zstd/inc -I/Users/chenxu/software/ROOT/root-6-34-08/core/macosx/inc -I/Users/chenxu/software/ROOT/root-6-34-08/core/unix/inc -I/Users/chenxu/software/ROOT/root-6-34-08/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/RDirectoryEntry.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/RLogger.hxx ROOT/RNotFn.hxx ROOT/RRangeCast.hxx ROOT/RSpan.hxx ROOT/RStringView.hxx ROOT/StringUtils.hxx ROOT/span.hxx ROOT/TypeTraits.hxx ROOT/RError.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-6-34-08/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

@cxwx
Copy link
Contributor Author

cxwx commented Apr 8, 2025

Dear @cxwx ,

Thanks for reaching out! The issue you report should have already been fixed by ff43ae8. Have you made sure to remove your old build directory and start the build of ROOT from scratch?

merged already, I've also tried to force using std_darwin.MacOSX15.2.sdk.modulemap or std_darwin.sdk.modulemap, with other bugs.

@martamaja10
Copy link
Contributor

Hi @cxwx,

could you try following what is suggested in this forum post: https://root-forum.cern.ch/t/issue-with-macos-15-4-xcode-16-3/63327 .

Cheers,
Marta

@cxwx
Copy link
Contributor Author

cxwx commented Apr 8, 2025

I'll try that, more info.
using homebrew version ROOT, 6.34.08 also cause module problem.

root -n
fatal error: module map file '/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/std_darwin.modulemap' not found
<<< cling interactive line includer >>>: fatal error: module file '/private/tmp/root-20250408-18619-fisguy/root-6.34.08/builddir/lib/std.pcm' not found: module file not found
<<< cling interactive line includer >>>: note: imported by module 'Darwin' in '/opt/homebrew/Cellar/root/6.34.08/lib/root/Darwin.pcm'
Failed to load module Darwin
Module std not found.
Failed to load module ROOT_Foundation_C
Failed to load module ROOT_Rtypes
Failed to load module ROOT_Foundation_Stage1_NoRTTI
Failed to load module Core
Failed to load module Rint
Failed to load module RIO
Failed to load module MathCore
Failed to load module Hist
Failed to load module SpectrumPainter
Failed to load module XMLParser
Failed to load module RooFitHS3
Failed to load module SPlot
Failed to load module TreePlayer
Failed to load module Foam
Failed to load module ROOTBrowserv7
.......
.......
Failed to load module ROOTTreeViewer
Failed to load module GenVector
Failed to load module Cling_Runtime
Failed to load module RooFitCore
Failed to load module Core
Failed to load module ROOTNTupleUtil

 *** Break *** segmentation violation
[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
[/opt/homebrew/Cellar/root/6.34.08/lib/root/libCling.so] ROOT::TMetaUtils::TNormalizedCtxtImpl::keepTypedef(cling::LookupHelper const&, char const*, bool) (no debug info)
[/opt/homebrew/Cellar/root/6.34.08/lib/root/libCling.so] ROOT::TMetaUtils::TNormalizedCtxtImpl::TNormalizedCtxtImpl(cling::LookupHelper const&) (no debug info)
[/opt/homebrew/Cellar/root/6.34.08/lib/root/libCling.so] ROOT::TMetaUtils::TNormalizedCtxt::TNormalizedCtxt(cling::LookupHelper const&) (no debug info)
[/opt/homebrew/Cellar/root/6.34.08/lib/root/libCling.so] TCling::TCling(char const*, char const*, char const* const*, void*) (no debug info)
[/opt/homebrew/Cellar/root/6.34.08/lib/root/libCling.so] CreateInterpreter (no debug info)
[/opt/homebrew/Cellar/root/6.34.08/lib/root/libCore.so] TROOT::InitInterpreter() (no debug info)
[/opt/homebrew/Cellar/root/6.34.08/lib/root/libCore.so] ROOT::Internal::GetROOT2() (no debug info)
[/opt/homebrew/Cellar/root/6.34.08/lib/root/libCore.so] TApplication::TApplication(char const*, int*, char**, void*, int) (no debug info)
[/opt/homebrew/Cellar/root/6.34.08/lib/root/libRint.so] TRint::TRint(char const*, int*, char**, void*, int, bool, bool) (no debug info)
[/opt/homebrew/Cellar/root/6.34.08/bin/root.exe] main (no debug info)
[/usr/lib/dyld] start (no debug info)

@cxwx
Copy link
Contributor Author

cxwx commented Apr 8, 2025

Hi @cxwx,

could you try following what is suggested in this forum post: https://root-forum.cern.ch/t/issue-with-macos-15-4-xcode-16-3/63327 .

Cheers, Marta

Thanks It works, but still has a tiny problem when compile, see below.

@cxwx
Copy link
Contributor Author

cxwx commented Apr 8, 2025

same problem #16494

Image

@cxwx cxwx changed the title macos 15.4 building bug macos 15.4 building bug of module map file Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

4 participants