Opened 6 months ago

Closed 6 months ago

#68547 closed defect (duplicate)

fossil @2.22: build failure when ccache is installed

Reported by: bsdooby (Peter von Niederhäusern) Owned by: ci42
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: sonoma Cc: chrstphrchvz (Christopher Chavez)
Port: fossil

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Using Xcode 15.0.1 on macOS Sonoma (14.0) the build fails w/

Build C compiler.../usr/bin/clang -arch arm64
Checking for stdlib.h...not found

see also attached Terminal.app log file.

Attachments (1)

build-error.txt (6.7 KB) - added by bsdooby (Peter von Niederhäusern) 6 months ago.
Terminal.app saved build log

Download all attachments as: .zip

Change History (10)

Changed 6 months ago by bsdooby (Peter von Niederhäusern)

Attachment: build-error.txt added

Terminal.app saved build log

comment:1 Changed 6 months ago by bsdooby (Peter von Niederhäusern)

Keywords: build issue port added
Port: fossil added
Summary: [build issue]: fossil does not build on Apple Silicon (arm64)[build issue]: `fossil` does not build on Apple Silicon (arm64)
Version: 2.8.1

comment:2 Changed 6 months ago by bsdooby (Peter von Niederhäusern)

Summary: [build issue]: `fossil` does not build on Apple Silicon (arm64)[build issue]: fossil does not build on Apple Silicon (arm64)

comment:3 Changed 6 months ago by ryandesign (Ryan Carsten Schmidt)

Keywords: sonoma added; build issue port removed
Owner: set to ci42
Status: newassigned

The transcript you attached says:

Error: Compiler does not work. See config.log

Please attach that file.

comment:4 Changed 6 months ago by bsdooby (Peter von Niederhäusern)

I messed up w/ my compiler env (maybe a wrong export CC=..., or export CXX=...). Ticket can be closed. Sorry about that, and thank you for your time!

comment:5 Changed 6 months ago by bsdooby (Peter von Niederhäusern)

Please keep it OPEN! On the wrong system (x86). I will provide the log ASAP.

comment:6 Changed 6 months ago by bsdooby (Peter von Niederhäusern)

  1 Invoked as: ./configure --prefix=/opt/local --disable-fusefs --with-sqlite=/opt/local/lib --with-tcl=/opt/local/lib --with-openssl=/opt/local/libexec/open    ssl3 --with-zlib=/opt/local/lib --with-th1-docs --with-th1-hooks --with-exec-rel-paths --json
  2 Tclsh: /opt/local/bin/tclsh                                                                                             
  3 Failed: ccache /usr/bin/clang -pipe -I/opt/local/libexec/openssl3/include -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64 -    c -g0 conftest__.c -o conftest__.o
  4 ccache: error: Failed to create directory /opt/local/var/macports/build/.ccache/tmp: Not a directory                    
  5 child process exited abnormally                                                                                         
  6 ============                                                                                                            
  7 The failed code was:                                                                                                    
  8 int main(void) {                                                                                                        
  9                                                                                                                         
 10 return 0;                                                                                                               
 11 }                                                                                                                       
 12 ============                                                                                                            
 13 Failed: ccache /usr/bin/clang -pipe -I/opt/local/libexec/openssl3/include -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64 -    c conftest__.c -o conftest__.o
 14 ccache: error: Failed to create directory /opt/local/var/macports/build/.ccache/tmp: Not a directory                    
 15 child process exited abnormally                                                                                         
 16 ============                                                                                                            
 17 The failed code was:                                                                                                    
 18 #include <stdlib.h>                                                                                                     
 19 int main(void) {                                                                                                        
 20                                                                                                                         
 21 return 0;                                                                                                               
 22 }                                                                                                                       
 23 ============     

comment:7 Changed 6 months ago by chrstphrchvz (Christopher Chavez)

Cc: chrstphrchvz added

comment:8 Changed 6 months ago by chrstphrchvz (Christopher Chavez)

Based on the error in comment:6 this looks like a duplicate of #59219.

comment:9 Changed 6 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Resolution: duplicate
Status: assignedclosed
Summary: [build issue]: fossil does not build on Apple Silicon (arm64)fossil @2.22: build failure when ccache is installed
Note: See TracTickets for help on using tickets.