zoglauer / megalib

MEGAlib - the Medium-Energy Gamma-ray Astronomy library
http://megalibtoolkit.com
Other
41 stars 32 forks source link

ROOT compiling on macOS 13.6.3 #86

Open pbloser opened 8 months ago

pbloser commented 8 months ago

Hi Andreas, me again...

I'm trying to install MEGAlib on a iMac Pro (our linux cluster here in my division is not well-suited to MEGAlib any more it seems, unlike 2.5 year ago, but I need some computing power to do activation sims). I've been following the instructions on your website: I believe I have Xcode, XQuartz, and cmake all installed correctly, command line tools etc., and took all MacPorts and conda-related lines out of my .bash_profile.

So I did

:MEGAlib pbloser$ bash setup.sh --branch=main

But the ROOT installation crashed. I'm attaching the RootBuildLog.txt file. The relevant part seems to be

make[1]: /Applications/Xcode.app/Contents/Developer/usr/bin/make: Permission denied make[1]: /Applications/Xcode.app/Contents/Developer/usr/bin/make: Permission denied make[1]: [core/clib/CMakeFiles/move_header_core_clib.dir/all] Error 1 make[1]: Waiting for unfinished jobs.... make[1]: [CMakeFiles/FREETYPE.dir/all] Error 1 make[1]: /Applications/Xcode.app/Contents/Developer/usr/bin/make: Permission denied make[1]: /Applications/Xcode.app/Contents/Developer/usr/bin/make: Permission denied make[1]: [CMakeFiles/TBB.dir/all] Error 1 make[1]: *** [CMakeFiles/googletest.dir/all] Error 1

I don't get this. That make executable seems to be set up for all to execute:

:MEGAlib pbloser$ ll /Applications/Xcode.app/Contents/Developer/usr/bin/make -rwxr-xr-x 2 root wheel 436016 Nov 17 01:07 /Applications/Xcode.app/Contents/Developer/usr/bin/make*

I can't find anything relevant by googling. I saw you once recommended someone install ROOT separately using MacPorts and then point the build script to it, so I will try that in the morning (v6.28.10? That's what the script downloaded) if you don't have a better idea...

RootBuildLog.txt

zoglauer commented 8 months ago

Hi Peter,

Since you get a permission denied on make, you will not be able to compile anything. Something screwed up your Xcode permissions. I would just delete Xcode and reinstall it, since you don't know what else is broken.

pbloser commented 8 months ago

Ah, good point…. ;-) OK, I’ll seek internal support help on this Xcode issue...

Peter F. Bloser Scientist, ISR-1 Los Alamos National Laboratory Office: 505-664-0524 Cell: 505-695-3699 @.***

On Dec 20, 2023, at 8:14 PM, Andreas Zoglauer @.***> wrote:

Hi Peter,

Since you get a permission denied on make, you will not be able to compile anything. Something screwed up your Xcode permissions. I would just delete Xcode and reinstall it, since you don't know what else is broken.

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/zoglauer/megalib/issues/86*issuecomment-1865416920__;Iw!!Bt8fGhp8LhKGRg!D7mjyUdbeaku3_QFI6WFkzvgAUJ53sPsPdOEni6JJFhqPz5tuvou4CPH-15Lz2TUXrfRTE84pE6SxDYtBOd4vWd3$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ASMOT325QHNJ5QJ32QLAL53YKOSRFAVCNFSM6AAAAABA5T4DDKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRVGQYTMOJSGA__;!!Bt8fGhp8LhKGRg!D7mjyUdbeaku3_QFI6WFkzvgAUJ53sPsPdOEni6JJFhqPz5tuvou4CPH-15Lz2TUXrfRTE84pE6SxDYtBMPkSwZu$. You are receiving this because you authored the thread.Message ID: @.***>