0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

[GCC] [issue] install gcc-13.1.0 from source on M2 MacBook Air

Last updated at Posted at 2023-05-04

メモ:
M2のMacbookにgcc-13.1.0をsourceからInstallしようとしたら、makeでErrorになった。

export GCC_INSTALL_TOP=${PWD}/gcc
export GCC_VERSION=13.1.0
export PATH=${GCC_INSTALL_TOP}/bin:${PATH}
export LD_LIBRARY_PATH=${GCC_INSTALL_TOP}/lib:${GCC_INSTALL_TOP}/lib64:${LD_LIBRARY_PATH}

とPathの設定をした後に

mkdir gcc
cd gcc

wget http://ftp.tsukuba.wide.ad.jp/software/gcc/releases/gcc-${GCC_VERSION}/gcc-${GCC_VERSION}.tar.gz
export GCC_TAR_FILE=`ls gcc-*tar.gz`
tar -zxvf ${GCC_TAR_FILE}
export GCC_EXTRACTED_DIR=`ls -d gcc*/`
cd ${GCC_EXTRACTED_DIR}
./contrib/download_prerequisites
mkdir build
cd build
../configure --enable-languages=all --prefix=${GCC_INSTALL_TOP} --disable-boostrap --disable-nultilib
make
make install

とすれば、gcc-13.1.0が入るはずなのだが(CentOS7ならInstallできる)、make実行時に下記のErrorが出る。

checking for AF_UNIX... yes
checking for AF_INET6... yes
checking for _LK_LOCK... no
checking if mkdir takes one argument... no
*** Configuration aarch64-apple-darwin21.6.0 not supported
make[2]: *** [configure-stage1-gcc] Error 1
make[1]: *** [stage1-bubble] Error 2
make: *** [all] Error 2

M2のMacbookは無理なのかも。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?