I am trying to install Gentoo prefix on MacOS X (Mojave and Catalina). The system is fresh installed and mostly clean (Xcode is obviously an exception).
bootstrap-prefix.sh produces a series of error messages, then fails. I am trying to fix these errors one by one. This reports deals with the following error message:
!!! unknown compiler.
This error happens in function configure_toolchain(). My invocation of 'gcc --version' produces the following output:
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple clang version 11.0.0 (clang-1184.108.40.206)
Thread model: posix
which obviously is slightly different with what the script expects.
The fix is trivial. I will be attaching a patch.
Steps to Reproduce:
!!! unknown compiler
No error message and the version of clang is properly determined.
Obviously I cannot provide 'emerge --info' output.
Created attachment 668363 [details, diff]
Fix for clang-11 version check
Tested on cleanish MacOS 10.14.6 with Xcode 11.3.1(11C505).
The bug has been closed via the following commit(s):
Author: Fabian Groffen <email@example.com>
AuthorDate: 2020-10-26 11:49:09 +0000
Commit: Fabian Groffen <firstname.lastname@example.org>
CommitDate: 2020-10-26 11:49:09 +0000
scripts/bootstrap-prefix.sh: add detection support for newer Apple clang
Thanks Alexander Bezrukov for an initial patch. I went with a slightly
different approach, to be a bit more specific and hopefully not match
something unexpected in the future.
Signed-off-by: Fabian Groffen <email@example.com>
scripts/bootstrap-prefix.sh | 17 +++++++++++++++++
1 file changed, 17 insertions(+)