Page MenuHomePhabricator

[guix] OSX build
AbandonedPublicDraft

Authored by PiRK on Feb 28 2024, 09:18.

Details

Reviewers
None
Group Reviewers
Restricted Project
Summary

WIP

Test Plan

guix build for OSX and gitian-osx

Diff Detail

Event Timeline

the SDK_PATH environment will not be set for gitian builds

Tail of the build log:

 * [new tag]             phabricator/diff/45598 -> phabricator/diff/45598
 * [new tag]             phabricator/diff/45600 -> phabricator/diff/45600
 * [new tag]             phabricator/diff/45601 -> phabricator/diff/45601
 * [new tag]             phabricator/diff/45602 -> phabricator/diff/45602
 * [new tag]             phabricator/diff/45603 -> phabricator/diff/45603
 * [new tag]             phabricator/diff/45604 -> phabricator/diff/45604
 * [new tag]             phabricator/diff/45620 -> phabricator/diff/45620
 * [new tag]             phabricator/diff/45628 -> phabricator/diff/45628
 * [new tag]             phabricator/diff/45630 -> phabricator/diff/45630
 * [new tag]             phabricator/diff/45631 -> phabricator/diff/45631
 * [new tag]             phabricator/diff/45633 -> phabricator/diff/45633
 * [new tag]             phabricator/diff/45634 -> phabricator/diff/45634
 * [new tag]             phabricator/diff/45635 -> phabricator/diff/45635
 * [new tag]             phabricator/diff/45636 -> phabricator/diff/45636
 * [new tag]             phabricator/diff/45637 -> phabricator/diff/45637
 * [new tag]             phabricator/diff/45641 -> phabricator/diff/45641
 * [new tag]             phabricator/diff/45642 -> phabricator/diff/45642
 * [new tag]             phabricator/diff/45643 -> phabricator/diff/45643
 * [new tag]             phabricator/diff/45644 -> phabricator/diff/45644
 * [new tag]             phabricator/diff/45646 -> phabricator/diff/45646
 * [new tag]             phabricator/diff/45647 -> phabricator/diff/45647
 * [new tag]             phabricator/diff/45648 -> phabricator/diff/45648
 * [new tag]             phabricator/diff/45650 -> phabricator/diff/45650
 * [new tag]             phabricator/diff/45651 -> phabricator/diff/45651
 * [new tag]             phabricator/diff/45668 -> phabricator/diff/45668
 * [new tag]             phabricator/diff/45670 -> phabricator/diff/45670
 * [new tag]             phabricator/diff/45671 -> phabricator/diff/45671
 * [new tag]             phabricator/diff/45672 -> phabricator/diff/45672
 * [new tag]             phabricator/diff/45675 -> phabricator/diff/45675
 * [new tag]             phabricator/diff/45677 -> phabricator/diff/45677
 * [new tag]             phabricator/diff/45678 -> phabricator/diff/45678
 * [new tag]             phabricator/diff/45679 -> phabricator/diff/45679
 * [new tag]             phabricator/diff/45690 -> phabricator/diff/45690
 * [new tag]             phabricator/diff/45692 -> phabricator/diff/45692
 * [new tag]             phabricator/diff/45694 -> phabricator/diff/45694
 * [new tag]             phabricator/diff/8992  -> phabricator/diff/8992
 * [new tag]             phabricator/diff/8993  -> phabricator/diff/8993
 * [new branch]          master                 -> master
--- Building for bullseye amd64 ---
Stopping target if it is up
Error response from daemon: No such container: gitian-target
Error: No such container: gitian-target
Making a new image copy
Starting target
Checking if target is up.
Preparing build environment
Updating apt-get repository (log in var/install.log)
Installing additional packages (log in var/install.log)
Upgrading system, may take a while (log in var/install.log)
Creating package manifest
Creating build script (var/build-script)
Running build script (log in var/build.log)
./bin/gbuild:23:in `system!': failed to run on-target setarch x86_64 bash -x < var/build-script > var/build.log 2>&1 (RuntimeError)
	from ./bin/gbuild:185:in `build_one_configuration'
	from ./bin/gbuild:339:in `block (2 levels) in <main>'
	from ./bin/gbuild:334:in `each'
	from ./bin/gbuild:334:in `block in <main>'
	from ./bin/gbuild:332:in `each'
	from ./bin/gbuild:332:in `<main>'
Build gitian-osx failed with exit code 1

Tail of the build log:

to: /work/depends/x86_64-apple-darwin
/work/abc-ci-builds/build-osx
SDK_PATH=""
OSX_SDK_PATH="/Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers"
SDK_PATH=""
OSX_SDK_PATH="/Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers"
CMake Warning at /usr/share/cmake-3.18/Modules/Platform/Darwin-Initialize.cmake:286 (message):
  Ignoring CMAKE_OSX_SYSROOT value:

   /Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers

  because the directory does not exist.
Call Stack (most recent call first):
  /usr/share/cmake-3.18/Modules/CMakeSystemSpecificInitialize.cmake:21 (include)
  CMakeLists.txt:9 (project)


-- The C compiler identification is Clang 11.1.0
-- The CXX compiler identification is Clang 11.1.0
-- Detecting C compiler ABI info
SDK_PATH=""
OSX_SDK_PATH="/Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers"
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /work/depends/x86_64-apple-darwin/native/bin/clang
SDK_PATH=""
OSX_SDK_PATH="/Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers"
-- Check for working C compiler: /work/depends/x86_64-apple-darwin/native/bin/clang - broken
CMake Error at /usr/share/cmake-3.18/Modules/CMakeTestCCompiler.cmake:66 (message):
  The C compiler

    "/work/depends/x86_64-apple-darwin/native/bin/clang"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /work/abc-ci-builds/build-osx/CMakeFiles/CMakeTmp
    
    Run Build Command(s):/usr/bin/ninja cmTC_2b3fc && [1/2] Building C object CMakeFiles/cmTC_2b3fc.dir/testCCompiler.c.o
    [2/2] Linking C executable cmTC_2b3fc
    FAILED: cmTC_2b3fc 
    : && /work/depends/x86_64-apple-darwin/native/bin/clang --target=x86_64-apple-darwin -mmacosx-version-min=10.15 -Wl,-headerpad_max_install_names  CMakeFiles/cmTC_2b3fc.dir/testCCompiler.c.o -o cmTC_2b3fc   && :
    ld: warning: directory not found for option '-F/System/Library/Frameworks/'
    ld: library not found for -lSystem
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    ninja: build stopped: subcommand failed.
    
    

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:9 (project)


-- Configuring incomplete, errors occurred!
See also "/work/abc-ci-builds/build-osx/CMakeFiles/CMakeOutput.log".
See also "/work/abc-ci-builds/build-osx/CMakeFiles/CMakeError.log".
Build build-osx failed with exit code 1