https://docon.tistory.com/122 에서 crosstool-ng을 설치하고, arm-cortex_a8-linux-gnueabi 툴체인을 선택해, 몇가지 사항들을 바꿔준 뒤 툴체인을 빌드하였다. 그러나 빌드 명령을 입력하니 아래와 같은 오류가 떴다.
jh@jh-ubuntu:~/Desktop/BBB/crosstool-ng$ ./ct-ng build
[INFO ] Performing some trivial sanity checks
[WARN ] Number of open files 1024 may not be sufficient to build the toolchain; increasing to 2048
[INFO ] Build started 20260326.222404
[INFO ] Building environment variables
[WARN ] Directory '/home/jh/src' does not exist.
[WARN ] Will not save downloaded tarballs to local storage.
[EXTRA] Preparing working directories
[EXTRA] Installing user-supplied crosstool-NG configuration
[EXTRA] =================================================================
[EXTRA] Dumping internal crosstool-NG configuration
[EXTRA] Building a toolchain for:
[EXTRA] build = x86_64-pc-linux-gnu
[EXTRA] host = x86_64-pc-linux-gnu
[EXTRA] target = arm-cortex_a8-linux-gnueabihf
[EXTRA] Dumping internal crosstool-NG configuration: done in 0.07s (at 00:02)
[INFO ] =================================================================
[INFO ] Retrieving needed toolchain components' tarballs
[EXTRA] Retrieving 'linux-4.20.8'
[EXTRA] Verifying SHA512 checksum for 'linux-4.20.8.tar.xz'
[EXTRA] Retrieving 'zlib-1.2.11'
[EXTRA] Verifying SHA512 checksum for 'zlib-1.2.11.tar.xz'
[EXTRA] Retrieving 'gmp-6.1.2'
[EXTRA] Verifying SHA512 checksum for 'gmp-6.1.2.tar.xz'
[EXTRA] Retrieving 'mpfr-4.0.2'
[EXTRA] Verifying SHA512 checksum for 'mpfr-4.0.2.tar.xz'
[EXTRA] Retrieving 'isl-0.20'
[ERROR] isl: download failed
[ERROR]
[ERROR] >>
[ERROR] >> Build failed in step 'Retrieving needed toolchain components' tarballs'
[ERROR] >> called in step '(top-level)'
[ERROR] >>
[ERROR] >> Error happened in: CT_Abort[scripts/functions@487]
[ERROR] >> called from: CT_DoFetch[scripts/functions@2103]
[ERROR] >> called from: CT_PackageRun[scripts/functions@2063]
[ERROR] >> called from: CT_Fetch[scripts/functions@2174]
[ERROR] >> called from: do_isl_get[scripts/build/companion_libs/121-isl.sh@16]
[ERROR] >> called from: do_companion_libs_get[scripts/build/companion_libs.sh@15]
[ERROR] >> called from: main[scripts/crosstool-NG.sh@648]
[ERROR] >>
[ERROR] >> For more info on this error, look at the file: 'build.log'
[ERROR] >> There is a list of known issues, some with workarounds, in:
[ERROR] >> https://crosstool-ng.github.io/docs/known-issues/
[ERROR] >>
[ERROR] >> If you feel this is a bug in crosstool-NG, report it at:
[ERROR] >> https://github.com/crosstool-ng/crosstool-ng/issues/
[ERROR] >>
[ERROR] >> Make sure your report includes all the information pertinent to this issue.
[ERROR] >> Read the bug reporting guidelines here:
[ERROR] >> http://crosstool-ng.github.io/support/
[ERROR]
[ERROR] (elapsed: 0:42.35)
[00:43] / gmake: *** [ct-ng:261: build] Error 1
로그를 보아하니, `isl-0.20을 retrieving하는 과정에서의 download failed`가 원인이다.
crosstool-ng 빌드 이슈(https://github.com/crosstool-ng/crosstool-ng/issues/1625)에 의하면, 해당 오류는 crosstool-ng-1.24.0(현재 내 버전)이 릴리즈된 이후 필요한 packages의 호스팅이 옮겨져서 발생하는 오류라고 한다.
이를 고치는 방법은 간단히 master branch에서 빌드를 하면 된다고 한다.
따라서 기존 crosstool-ng를 삭제하고 master branch에서 다시 빌드를 시도해보았고, 문제가 잘 해결되었다.
'Embedded Systems > 리눅스' 카테고리의 다른 글
| [Linux] 를 이해하기 위해 일단 비글본블랙에 올려보자. - 툴체인 만들기 (0) | 2026.03.25 |
|---|---|
| [Linux] gnueabi vs gnueabihf 차이를 이해해보자(ABI) (0) | 2026.03.25 |
| [Linux] 임베디드 리눅스 부팅 순서 + 비글본 블랙(BBB) 부팅 순서 (0) | 2026.03.17 |
| [Linux] 임베디드 리눅스 부팅 타임 최적화 (0) | 2025.11.19 |
| [Linux] BBB Linux boot time 최적화 #0 (0) | 2025.11.04 |