Good Morning, All, I’m trying to crosscompile my ARM project with ARM’s GCC binaries, which complain that cc1 is missing. I tried ln -s /usr/bin/cc /usr/bin/cc1
, which spill a lot of other errors, mainly related to unrecognised switches. Does anybody know how to install gcc correctly on Rocky Linux?
thanks.
AB
Actually cc1 is there:
t$ which cc1
/usr/libexec/gcc/x86_64-redhat-linux/8/cc1
``
`thanks to centOS FORUM, they suggested to reinstall cpp.
However upon running make on my arm project, I've got:
> unrecognized command line option ‘-mfloat-abi=hard’
cc1: error: bad value (‘armv7e-m+fp’) for ‘-march=’ switch
cc1: note: valid arguments to ‘-march=’ switch are: nocona core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2 broadwell skylake skylake-avx512 cannonlake icelake-client icelake-server bonnell atom silvermont slm knl knm x86-64 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver1 btver1 btver2 native
cc1: error: bad value (‘cortex-m4’) for ‘-mtune=’ switch
cc1: note: valid arguments to ‘-mtune=’ switch are: nocona core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2 broadwell skylake skylake-avx512 cannonlake icelake-client icelake-server bonnell atom silvermont slm knl knm intel x86-64 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver1 btver1 btver2 generic native
Does anyone knows how to crosscompile on Rocky Linux?
Best,
AB