How to make ARM cross compilation on Mac OS X (error: invalid listing option `r' - cross compiling error)

前端 未结 4 557
栀梦
栀梦 2020-12-18 07:18

I\'m trying to build a gcc cross compiler on Mac OS X, the target is arm-elf-eabi.

This is what I\'ve done so far:

Install gcc and environmenta

4条回答
  •  感情败类
    2020-12-18 07:46

    In the directory build-gcc/gcc, there exists an as script file to be invoked instead of the /usr/bin/as. When I renamed as to as_temp, and rerun, everything works fine. The environmental variable AS=/usr/bin/as does not seem to solve this issue.

    I needed one more modification that /opt/cross/arm-elf-eabi/sys-root/usr/include should be created in order to prevent another error message.

    I also found that this site is pretty useful in cross compilation on Mac OS X.

提交回复
热议问题