Unknown command line argument '-x86-pad-for-align=false'

Asked by Qiji Xin

Hi,

I got an error when running MadGraph. The error exists in both versions 3.3.2 and 3.1.0.
The details of the error are copied below. Could anyone please help to solve the problem?
Let me know if you need any further details.

Thank you very much!

--------------------------------

Error detected in "generate_events run_01"
write debug file /Users/xqj/Dropbox/1acdm/1work/MG_work/vmsTOmuj_Nf6/run_01_tag_1_debug.log
If you need help with this issue please contact us on https://answers.launchpad.net/mg5amcnlo
str : A compilation Error occurs when trying to compile /Users/xqj/Dropbox/1acdm/1work/MG_work/vmsTOmuj_Nf6/Source.
 The compilation fails with the following output message:
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o StringCast.o StringCast.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o ranmar.o ranmar.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o alfas_functions_lhapdf.o alfas_functions_lhapdf.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o transpole.o transpole.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o invarients.o invarients.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o hfill.o hfill.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o pawgraphs.o pawgraphs.f
     gfortran -w -fPIC -O -ffixed-line-length-132 -c -o ran1.o ran1.f
     clang (LLVM option parsing): Unknown command line argument '-x86-pad-for-align=false'. Try: 'clang (LLVM option parsing) --help'
     clang (LLVM option parsing): Did you mean '--x86-slh-loads=false'?
     clang (LLVM option parsing): Unknown command line argument '-x86-pad-for-align=false'. Try: 'clang (LLVM option parsing) --help'
     clang (LLVM option parsing): Did you mean '--x86-slh-loads=false'?
     clang (LLVM option parsing): Unknown command line argument '-x86-pad-for-align=false'. Try: 'clang (LLVM option parsing) --help'
     clang (LLVM option parsing): Did you mean '--x86-slh-loads=false'?
     make: *** [alfas_functions_lhapdf.o] Error 1
     make: *** Waiting for unfinished jobs....
     clang (LLVM option parsing): Unknown command line argument '-x86-pad-for-align=false'. Try: 'clang (LLVM option parsing) --help'
     clang (LLVM option parsing): Did you mean '--x86-slh-loads=false'?
     make: *** [ran1.o] Error 1
     make: *** [pawgraphs.o] Error 1
     make: *** [hfill.o] Error 1
     clang (LLVM option parsing): Unknown command line argument '-x86-pad-for-align=false'. Try: 'clang (LLVM option parsing) --help'
     clang (LLVM option parsing): Did you mean '--x86-slh-loads=false'?
     make: *** [StringCast.o] Error 1
     clang (LLVM option parsing): Unknown command line argument '-x86-pad-for-align=false'. Try: 'clang (LLVM option parsing) --help'
     clang (LLVM option parsing): Did you mean '--x86-slh-loads=false'?
     make: *** [transpole.o] Error 1
     clang (LLVM option parsing): Unknown command line argument '-x86-pad-for-align=false'. Try: 'clang (LLVM option parsing) --help'
     clang (LLVM option parsing): Did you mean '--x86-slh-loads=false'?
     make: *** [ranmar.o] Error 1
     clang (LLVM option parsing): Unknown command line argument '-x86-pad-for-align=false'. Try: 'clang (LLVM option parsing) --help'
     clang (LLVM option parsing): Did you mean '--x86-slh-loads=false'?
     make: *** [invarients.o] Error 1

 Please try to fix this compilations issue and retry.
 Help might be found at https://answers.launchpad.net/mg5amcnlo.
 If you think that this is a bug, you can report this at https://bugs.launchpad.net/mg5amcnlo

Question information

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

Hi,

The flag "-x86-pad-for-align=false" is not part of our code:
[3.4.0]$ grep "\-x86\-pad\-for\-align=false" . -rin
[3.4.0]$

So it is likely inserted by your system (maybe environment variable or due to some interplay of incompatible version between your version of LLVM and clang --not sure that statement is even possible actually-- or an incompatiblity between gfortran and clang/llvm).

Never seen that error before (and even google does not know it)

Cheers,

Olivier

Revision history for this message
Qiji Xin (xinqijisuper) said :
#2

Dear Olivier,

Thank you very much for pointing out the incompatibility between gfortran and clang. I upgraded my clang from 12.0.0 to 13 and now the problem has been solved!

Best,
Qiji