Level : WORDPRESS BOOK LINKEDIN PATENT Send Mail 동냥하기 hajunho.com

반응형

 

export PATH=$PATH:~/kernel/5_15_72/linux-5.15.72/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin

make ARCH=arm CROSS_COMPILE=arm-none-eabi- menuconfig

make ARCH=arm CROSS_COMPILE=arm-none-eabi-

 

 SYSHDR  arch/arm/include/generated/uapi/asm/unistd-eabi.h
  HOSTCC  scripts/dtc/dtc.o
  HOSTCC  scripts/dtc/flattree.o
  HOSTCC  scripts/dtc/fstree.o
  HOSTCC  scripts/dtc/data.o
  HOSTCC  scripts/dtc/livetree.o
  HOSTCC  scripts/dtc/treesource.o
  HOSTCC  scripts/dtc/srcpos.o
  HOSTCC  scripts/dtc/checks.o
  HOSTCC  scripts/dtc/util.o
  LEX     scripts/dtc/dtc-lexer.lex.c
  YACC    scripts/dtc/dtc-parser.tab.[ch]
  HOSTCC  scripts/dtc/dtc-lexer.lex.o
  HOSTCC  scripts/dtc/dtc-parser.tab.o
  HOSTLD  scripts/dtc/dtc
  HOSTCC  scripts/dtc/libfdt/fdt.o
  HOSTCC  scripts/dtc/libfdt/fdt_ro.o
  HOSTCC  scripts/dtc/libfdt/fdt_wip.o
  HOSTCC  scripts/dtc/libfdt/fdt_sw.o
  HOSTCC  scripts/dtc/libfdt/fdt_rw.o
  HOSTCC  scripts/dtc/libfdt/fdt_strerror.o
  HOSTCC  scripts/dtc/libfdt/fdt_empty_tree.o
  HOSTCC  scripts/dtc/libfdt/fdt_addresses.o
  HOSTCC  scripts/dtc/libfdt/fdt_overlay.o
  HOSTCC  scripts/dtc/fdtoverlay.o
  HOSTLD  scripts/dtc/fdtoverlay
  HOSTCXX scripts/gcc-plugins/arm_ssp_per_task_plugin.so
In file included from /usr/lib/gcc/arm-none-eabi/10.3.1/plugin/include/gcc-plugin.h:28,
                 from scripts/gcc-plugins/gcc-common.h:7,
                 from scripts/gcc-plugins/arm_ssp_per_task_plugin.c:3:
/usr/lib/gcc/arm-none-eabi/10.3.1/plugin/include/system.h:691:10: fatal error: gmp.h: No such file or directory
  691 | #include <gmp.h>
      |          ^~~~~~~
compilation terminated.
make[2]: *** [scripts/gcc-plugins/Makefile:48: scripts/gcc-plugins/arm_ssp_per_task_plugin.so] Error 1
make[1]: *** [scripts/Makefile.build:552: scripts/gcc-plugins] Error 2

 

x86용 먼저(강력한 범용 컴파일러 환경 보유한 우분투를 위해~) sudo apt install libgmp3-dev

ARM 용

export CC=arm-none-eabi-gcc

wget https://gmplib.org/download/gmp/gmp-6.2.1.tar.xz
tar xf gmp-6.2.1.tar.xz
cd gmp-6.2.1

 

./configure --host=arm-none-eabi --prefix=/home/ubuntu/arm/install/gmp ABI=32
make
make install

 

하다보면 결국 알게 된다.

걍... ARM칩 쓰는 맥 M1 을 써야 한다는 것을...

 

반응형

'3D Company > [Infra] pilot project server 구축' 카테고리의 다른 글

ARM Firmware 003  (0) 2019.02.09
ARM Firmware 002  (0) 2019.02.09
ARM Firmware 001  (0) 2019.02.09
Apple M1 에서는 컴파일러가 그냥 ARM 용이다.  (0) 2019.02.02
ARM GCC 우분투에 설치~  (0) 2019.01.11
  • 네이버 블러그 공유하기
  • 네이버 밴드에 공유하기
  • 페이스북 공유하기
  • 카카오스토리 공유하기