#67284 closed defect (fixed)

clang-11-bootstrap @11.1.0_4: *error: arch takes no arguments

Reported by: Cebtenzzre Owned by: catap (Kirill A. Korinsky)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: tiger Cc: catap (Kirill A. Korinsky)
Port: clang-11-bootstrap

Description

The clang-11-bootstrap port creates a gcc wrapper that tries to use the 'arch' command with the '-arch' argument. But that doesn't seem to work on OS X Tiger 10.4:

$ arch -arch i386
*error: arch takes no arguments

So the build doesn't get very far:

$ sudo port install clang-11-bootstrap
--->  Computing dependencies for clang-11-bootstrap
--->  Fetching archive for clang-11-bootstrap
--->  Attempting to fetch clang-11-bootstrap-11.1.0_4+emulated_tls.darwin_8.i386.tbz2 from http://packages.macports.org/clang-11-bootstrap
--->  Attempting to fetch clang-11-bootstrap-11.1.0_4+emulated_tls.darwin_8.i386.tbz2 from http://ywg.ca.packages.macports.org/mirror/macports/packages/clang-11-bootstrap
--->  Attempting to fetch clang-11-bootstrap-11.1.0_4+emulated_tls.darwin_8.i386.tbz2 from http://mirror.fcix.net/macports/packages/clang-11-bootstrap
--->  Fetching distfiles for clang-11-bootstrap
--->  Verifying checksums for clang-11-bootstrap
--->  Extracting clang-11-bootstrap
--->  Applying patches to clang-11-bootstrap
--->  Configuring clang-11-bootstrap
Error: Failed to configure clang-11-bootstrap: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_clang-11-bootstrap/clang-11-bootstrap/work/build/CMakeFiles/CMakeError.log
Error: Failed to configure clang-11-bootstrap: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_clang-11-bootstrap/clang-11-bootstrap/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port clang-11-bootstrap failed

CMakeError.log starts like this and repeats similarly until CMake gives up:

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_clang-11-bootstrap/clang-11-bootstrap/work/bins/gcc
Build flags: -pipe;-DNDEBUG
Id flags:

The output was:
255
*error: arch takes no arguments

Change History (2)

comment:1 Changed 13 months ago by jmroot (Joshua Root)

Keywords: tiger added

comment:2 Changed 12 months ago by catap (Kirill A. Korinsky)

Owner: set to catap
Resolution: fixed
Status: newclosed

In f55487ee47dd9e1101915cc4d119aa8b1d75896a/macports-ports (master):

clang-11-bootstrap: fix build on Tiger

Closes: #67284

Note: See TracTickets for help on using tickets.