Unable to install HEPTools in MG5 due to machine `arm64-apple' not recognized

Asked by Huanguo Li

Hi,

I am trying to install lhapdf and pithia8 in my local MG5 version 3.5.6 on MacOS.

However, when type install lhapdf, it returned me an error summarised below:

checking build system type... Invalid configuration `arm64-apple-darwin20.0.0': machine `arm64-apple' not recognized
configure: error: /bin/sh ./config/config.sub arm64-apple-darwin20.0.0 failed

What should I do to fix this issue? Thank you.

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Huanguo Li
Solved:
Last query:
Last reply:
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#1

I guess that you are using clang to compile since if I do:

 [lib]$ clang -v 2>&1 | grep Target
Target: arm64-apple-darwin22.1.0

Which is close enough from your invalid configuration reported above.

On my machine, I have a non clang version of gcc:

[lib]$ gcc -v 2>&1 | grep Target
Target: aarch64-apple-darwin22.2.0

On which lhapdf does not complain about.

So my advice, is to install a "real" version of gcc. But yes compiling on ARM MAC is something quite complicated... So good luck.

Cheers,

Olivier

Revision history for this message
Huanguo Li (huanguoli) said :
#2

Hi Olivier,

Thank you for the reply.

Yes, I am trying to compile in mamba at the beginning. Now I switched to a real environment and it compiled successfully. Thank you again for the help.

Best,
Huanguo