From: Simon Wright <simon@pushface.org>
Subject: Re: ALR unable to get many packages
Date: Mon, 07 Aug 2023 14:14:53 +0100 [thread overview]
Message-ID: <lymsz30zaq.fsf@pushface.org> (raw)
In-Reply-To: 03dee1c7-22f9-41ad-89b4-8c6881100a1fn@googlegroups.com
Kenneth Wolcott <kennethwolcott@gmail.com> writes:
> make[1]: *** [../.build/arm64-apple-darwin22.6.0/debug/../setup/src/aws-os_lib.ads] Error 1
> make: *** [config_setup] Error 2
The reason, I think, is that you have /usr/bin in your PATH before
/opt/gcc-13.1.0-aarch64.
From the release notes at
https://github.com/simonjwright/distributing-gcc/releases/tag/gcc-13.1.0-aarch64-2,
Setting PATH
PATH needs to be set to include /opt/gcc-13.1.0-aarch64/bin at the front:
bash
Insert
export PATH=/opt/gcc-13.1.0-aarch64/bin:$PATH
in your ~/.bash_profile_common.
zsh
Likewise, but in ~/.zshrc.
/usr/bin/gcc is the exact same compiler as /usr/bin/clang (a hard link,
by the look of it).
$ /usr/bin/gcc -v
Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: arm64-apple-darwin22.5.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
$ /opt/gcc-13.1.0-aarch64/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/opt/gcc-13.1.0-aarch64/bin/gcc
COLLECT_LTO_WRAPPER=/opt/gcc-13.1.0-aarch64/libexec/gcc/aarch64-apple-darwin21/13.1.0/lto-wrapper
Target: aarch64-apple-darwin21
Configured with: [...]
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 13.1.0 (GCC)
I think you need to fix the PATH problem, then build with
$ alr build -- -XTARGET=aarch64-apple-darwin21
next prev parent reply other threads:[~2023-08-07 13:14 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-04 20:09 ALR unable to get many packages Kenneth Wolcott
2023-08-05 7:28 ` Simon Wright
2023-08-05 21:02 ` Kenneth Wolcott
2023-08-05 21:58 ` Kenneth Wolcott
2023-08-06 8:26 ` Simon Wright
2023-08-05 22:12 ` Simon Wright
2023-08-05 22:41 ` Kenneth Wolcott
2023-08-06 11:30 ` Simon Wright
2023-08-06 23:20 ` Kenneth Wolcott
2023-08-06 23:29 ` Kenneth Wolcott
2023-08-07 13:14 ` Simon Wright [this message]
2023-08-07 15:05 ` Simon Wright
2023-08-08 0:04 ` Kenneth Wolcott
2023-08-08 8:38 ` Simon Wright
2023-08-08 22:58 ` Kenneth Wolcott
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox