Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

makeotf fails to build on darwin #1339

Closed
sternenseemann opened this issue Apr 10, 2021 · 4 comments
Closed

makeotf fails to build on darwin #1339

sternenseemann opened this issue Apr 10, 2021 · 4 comments

Comments

@sternenseemann
Copy link

Using xcodebuild from https://github.com/facebook/xcbuild, the c parts fail to build. Interestingly the precise failure is always similar, but a different target fails almost everytime, so could be related to target dependency resolution potentially.

++ pwd
+ curDir=/private/tmp/nix-build-python3.8-afdko-3.6.2.drv-7/afdko-3.6.2/c
+ '[' -z '' ']'
++ ls -1 ./detype1/build/osx/xcode/build.sh ./makeotf/build/osx/xcode/build.sh ./mergefonts/build/osx/xcode/build.sh ./rotatefont/build/osx/xcode/build.sh ./sfntdiff/build/osx/xcode/build.sh ./sfntedit/build/osx/xcode/build.sh ./spot/build/osx/xcode/build.sh ./tx/build/osx/xcode/build.sh ./type1/build/osx/xcode/build.sh
+ buildAllList='./detype1/build/osx/xcode/build.sh
./makeotf/build/osx/xcode/build.sh
./mergefonts/build/osx/xcode/build.sh
./rotatefont/build/osx/xcode/build.sh
./sfntdiff/build/osx/xcode/build.sh
./sfntedit/build/osx/xcode/build.sh
./spot/build/osx/xcode/build.sh
./tx/build/osx/xcode/build.sh
./type1/build/osx/xcode/build.sh'
+ for shFile in $buildAllList
+ echo '***Running ./detype1/build/osx/xcode/build.sh'
***Running ./detype1/build/osx/xcode/build.sh
++ dirname ./detype1/build/osx/xcode/build.sh
+ newDir=./detype1/build/osx/xcode
++ basename ./detype1/build/osx/xcode/build.sh
+ shFile=build.sh
+ cd ./detype1/build/osx/xcode
+ sh build.sh ''
+ target=detype1
+ '[' -z '' ']'
+ xcodebuild -target detype1 -project detype1.xcodeproj -configuration Release
Build settings from the command line:
    DERIVED_DATA_DIR=.
    SDKROOT=MacOSX10.12

=== BUILD TARGET detype1 OF PROJECT detype1 WITH CONFIGURATION Release ===

Check dependencies

Write auxiliary files
/bin/mkdir -p ./detype1-fczkhgyvzsdralcnvugylghgyjnp/Build/Intermediates/detype1.build/Release/detype1.build
write-file ./detype1-fczkhgyvzsdralcnvugylghgyjnp/Build/Intermediates/detype1.build/Release/detype1.build/detype1.hmap
write-file ./detype1-fczkhgyvzsdralcnvugylghgyjnp/Build/Intermediates/detype1.build/Release/detype1.build/detype1-own-target-headers.hmap
write-file ./detype1-fczkhgyvzsdralcnvugylghgyjnp/Build/Intermediates/detype1.build/Release/detype1.build/detype1-all-target-headers.hmap
write-file ./detype1-fczkhgyvzsdralcnvugylghgyjnp/Build/Intermediates/detype1.build/Release/detype1.build/detype1-all-non-framework-target-headers.hmap
write-file ./detype1-fczkhgyvzsdralcnvugylghgyjnp/Build/Intermediates/detype1.build/Release/detype1.build/detype1-generated-files.hmap
write-file ./detype1-fczkhgyvzsdralcnvugylghgyjnp/Build/Intermediates/detype1.build/Release/detype1.build/detype1-project-headers.hmap
/bin/mkdir -p ./detype1-fczkhgyvzsdralcnvugylghgyjnp/Build/Intermediates/detype1.build/Release/detype1.build/Objects-normal/x86_64
write-file ./detype1-fczkhgyvzsdralcnvugylghgyjnp/Build/Intermediates/detype1.build/Release/detype1.build/Objects-normal/x86_64/detype1.LinkFileList

Create product structure

CompileC ./detype1-fczkhgyvzsdralcnvugylghgyjnp/Build/Intermediates/detype1.build/Release/detype1.build/Objects-normal/x86_64/detype1.o ../../../source/detype1.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler
    cd /private/tmp/nix-build-python3.8-afdko-3.6.2.drv-7/afdko-3.6.2/c/detype1/build/osx/xcode
    export DEVELOPER_DIR=/nix/store/g1vxj28zczw76b9gldpxs6xxrdfn8wgn-xcodebuild-0.1.2-pre
    export PATH=/nix/store/bcn3s3m68b2gvsyrzi5086nxlqw0ark1-Platforms/MacOSX.platform/Developer/usr/bin:/nix/store/bcn3s3m68b2gvsyrzi5086nxlqw0ark1-Platforms/MacOSX.platform/usr/local/bin:/nix/store/bcn3s3m68b2gvsyrzi5086nxlqw0ark1-Platforms/MacOSX.platform/usr/bin:/nix/store/bcn3s3m68b2gvsyrzi5086nxlqw0ark1-Platforms/MacOSX.platform/usr/local/bin:/nix/store/kd9yd2s4scdxar941i4114w6s4x0r7b8-Toolchains/XcodeDefault.xctoolchain/usr/bin:/nix/store/kd9yd2s4scdxar941i4114w6s4x0r7b8-Toolchains/XcodeDefault.xctoolchain/usr/libexec:/nix/store/g1vxj28zczw76b9gldpxs6xxrdfn8wgn-xcodebuild-0.1.2-pre/usr/bin:/nix/store/g1vxj28zczw76b9gldpxs6xxrdfn8wgn-xcodebuild-0.1.2-pre/usr/local/bin:/nix/store/g1vxj28zczw76b9gldpxs6xxrdfn8wgn-xcodebuild-0.1.2-pre/Tools:/nix/store/rakqkwxql1hsa16dphdfkdky8i9cib5v-python3-3.8.8/bin:/nix/store/mx4iywww84nybia92apnrbnl5fxylp5n-python3.8-setuptools-50.3.1/bin:/nix/store/ikx6ly1mp9fdqn4pkn7nlrq3lbxkawg2-python3.8-wheel-0.36.2/bin:/nix/store/2vc3zqfh1hrhwvpghyjh3wrnwh8c3lqs-python3.8-pip-20.3.4/bin:/nix/store/g1vxj28zczw76b9gldpxs6xxrdfn8wgn-xcodebuild-0.1.2-pre/bin:/nix/store/kd9yd2s4scdxar941i4114w6s4x0r7b8-Toolchains/XcodeDefault.xctoolchain/bin:/nix/store/kdf8y3wg4qy2bkk81p4kkk7x76ia5k93-python3.8-pytest-6.2.2/bin:/nix/store/l3zvd3g9jwc7vq4jnfnz7xh7zvvplxn7-clang-wrapper-7.1.0/bin:/nix/store/94yzw5n7fxx8zy8xp4yq45pz4wdw74vw-clang-7.1.0/bin:/nix/store/5hcln5ydxnwhc9dbaf55sqkry7r29ncd-coreutils-8.32/bin:/nix/store/fgbkzkmzjp3q3b8p8rmf867xdsbyvjbn-cctools-binutils-darwin-wrapper-949.0.1/bin:/nix/store/s31f50385mj95q0ws54g2m3msxshvmkd-cctools-binutils-darwin-949.0.1/bin:/nix/store/wyfx47i37bzqny2c5mjpbsss5rzw9sb4-findutils-4.7.0/bin:/nix/store/35ggwcsfh3r025sp6z6yzrghyd40lw28-diffutils-3.7/bin:/nix/store/k0jin7qlhjgl6pdypnidzcg1gwgk1zhm-gnused-4.8/bin:/nix/store/w0cd23xv69kvrwbvyl5hbsx5q5fpf6if-gnugrep-3.6/bin:/nix/store/h5a3swvrlm878i6qrhnv77in6y7pmyyk-gawk-5.1.0/bin:/nix/store/0zaqix1m67ab18da3rrg582fakzay0j6-gnutar-1.34/bin:/nix/store/jbxngsmvp45x19nyrp2ffijx5nh0xm8s-gzip-1.10/bin:/nix/store/chjc0klrlrj81w491wn5fpn60ivb6dmc-bzip2-1.0.6.0.2-bin/bin:/nix/store/x1j8srrnl97ahjpajggh9vpnzp9hrvjb-gnumake-4.3/bin:/nix/store/74shlfgb18717ixjlpivpxd7iqcyhyn5-bash-4.4-p23/bin:/nix/store/d46s718n1zazbm72aa36zin5dwmfys4l-patch-2.7.6/bin:/nix/store/aik85pqs765f8y2p31x0px6fl3grf5kz-xz-5.2.5-bin/bin
    /nix/store/kd9yd2s4scdxar941i4114w6s4x0r7b8-Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -arch x86_64 -isysroot /nix/store/rs13ifpgwswvspiccwljxdlhgd7p4p4n-SDKs/MacOSX10.12.sdk -mmacosx-version-min=10.8 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -DOSX=1 -DOS=os_osx -fasm-blocks -fno-common -fstrict-aliasing -fpascal-strings -Os -Wno-trigraphs -Wempty-body -Winfinite-recursion -Wunreachable-code -Wdeprecated-declarations -Wno-missing-field-initializers -Wno-newline-eof -Wno-missing-prototypes -Wpointer-sign -Wswitch -Wfour-char-constants -Wno-conversion -Wbool-conversion -Wconstant-conversion -Wenum-conversion -Wint-conversion -Wno-sign-conversion -Wshorten-64-to-32 -Wno-missing-braces -Wparentheses -Wno-shadow -Wsign-compare -Wuninitialized -Wunknown-pragmas -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-value -Wunused-variable -I./detype1-fczkhgyvzsdralcnvugylghgyjnp/Build/Intermediates/detype1.build/Release/detype1.build/detype1-own-target-headers.hmap -I./detype1-fczkhgyvzsdralcnvugylghgyjnp/Build/Intermediates/detype1.build/Release/detype1.build/detype1-all-target-headers.hmap -iquote ./detype1-fczkhgyvzsdralcnvugylghgyjnp/Build/Intermediates/detype1.build/Release/detype1.build/detype1-generated-files.hmap -iquote ./detype1-fczkhgyvzsdralcnvugylghgyjnp/Build/Intermediates/detype1.build/Release/detype1.build/detype1-project-headers.hmap -I../../../exe/osx/release//include -I/nix/store/rs13ifpgwswvspiccwljxdlhgd7p4p4n-SDKs/MacOSX10.12.sdk/usr/include -I../../../../spot/sfnt_includes -I../../../../public/lib/api -I./detype1-fczkhgyvzsdralcnvugylghgyjnp/Build/Intermediates/detype1.build/Release/detype1.build/DerivedSources/x86_64 -I./detype1-fczkhgyvzsdralcnvugylghgyjnp/Build/Intermediates/detype1.build/Release/detype1.build/DerivedSources -F../../../exe/osx/release/ -fno-inline -MMD -MT dependencies -MF ./detype1-fczkhgyvzsdralcnvugylghgyjnp/Build/Intermediates/detype1.build/Release/detype1.build/Objects-normal/x86_64/detype1.d -c /private/tmp/nix-build-python3.8-afdko-3.6.2.drv-7/afdko-3.6.2/c/detype1/build/osx/xcode/../../../source/detype1.c -o ./detype1-fczkhgyvzsdralcnvugylghgyjnp/Build/Intermediates/detype1.build/Release/detype1.build/Objects-normal/x86_64/detype1.o

Ld ../../../exe/osx/release//detype1 normal x86_64
    cd /private/tmp/nix-build-python3.8-afdko-3.6.2.drv-7/afdko-3.6.2/c/detype1/build/osx/xcode
    export DEVELOPER_DIR=/nix/store/g1vxj28zczw76b9gldpxs6xxrdfn8wgn-xcodebuild-0.1.2-pre
    export MACOSX_DEPLOYMENT_TARGET=10.8
    export PATH=/nix/store/bcn3s3m68b2gvsyrzi5086nxlqw0ark1-Platforms/MacOSX.platform/Developer/usr/bin:/nix/store/bcn3s3m68b2gvsyrzi5086nxlqw0ark1-Platforms/MacOSX.platform/usr/local/bin:/nix/store/bcn3s3m68b2gvsyrzi5086nxlqw0ark1-Platforms/MacOSX.platform/usr/bin:/nix/store/bcn3s3m68b2gvsyrzi5086nxlqw0ark1-Platforms/MacOSX.platform/usr/local/bin:/nix/store/kd9yd2s4scdxar941i4114w6s4x0r7b8-Toolchains/XcodeDefault.xctoolchain/usr/bin:/nix/store/kd9yd2s4scdxar941i4114w6s4x0r7b8-Toolchains/XcodeDefault.xctoolchain/usr/libexec:/nix/store/g1vxj28zczw76b9gldpxs6xxrdfn8wgn-xcodebuild-0.1.2-pre/usr/bin:/nix/store/g1vxj28zczw76b9gldpxs6xxrdfn8wgn-xcodebuild-0.1.2-pre/usr/local/bin:/nix/store/g1vxj28zczw76b9gldpxs6xxrdfn8wgn-xcodebuild-0.1.2-pre/Tools:/nix/store/rakqkwxql1hsa16dphdfkdky8i9cib5v-python3-3.8.8/bin:/nix/store/mx4iywww84nybia92apnrbnl5fxylp5n-python3.8-setuptools-50.3.1/bin:/nix/store/ikx6ly1mp9fdqn4pkn7nlrq3lbxkawg2-python3.8-wheel-0.36.2/bin:/nix/store/2vc3zqfh1hrhwvpghyjh3wrnwh8c3lqs-python3.8-pip-20.3.4/bin:/nix/store/g1vxj28zczw76b9gldpxs6xxrdfn8wgn-xcodebuild-0.1.2-pre/bin:/nix/store/kd9yd2s4scdxar941i4114w6s4x0r7b8-Toolchains/XcodeDefault.xctoolchain/bin:/nix/store/kdf8y3wg4qy2bkk81p4kkk7x76ia5k93-python3.8-pytest-6.2.2/bin:/nix/store/l3zvd3g9jwc7vq4jnfnz7xh7zvvplxn7-clang-wrapper-7.1.0/bin:/nix/store/94yzw5n7fxx8zy8xp4yq45pz4wdw74vw-clang-7.1.0/bin:/nix/store/5hcln5ydxnwhc9dbaf55sqkry7r29ncd-coreutils-8.32/bin:/nix/store/fgbkzkmzjp3q3b8p8rmf867xdsbyvjbn-cctools-binutils-darwin-wrapper-949.0.1/bin:/nix/store/s31f50385mj95q0ws54g2m3msxshvmkd-cctools-binutils-darwin-949.0.1/bin:/nix/store/wyfx47i37bzqny2c5mjpbsss5rzw9sb4-findutils-4.7.0/bin:/nix/store/35ggwcsfh3r025sp6z6yzrghyd40lw28-diffutils-3.7/bin:/nix/store/k0jin7qlhjgl6pdypnidzcg1gwgk1zhm-gnused-4.8/bin:/nix/store/w0cd23xv69kvrwbvyl5hbsx5q5fpf6if-gnugrep-3.6/bin:/nix/store/h5a3swvrlm878i6qrhnv77in6y7pmyyk-gawk-5.1.0/bin:/nix/store/0zaqix1m67ab18da3rrg582fakzay0j6-gnutar-1.34/bin:/nix/store/jbxngsmvp45x19nyrp2ffijx5nh0xm8s-gzip-1.10/bin:/nix/store/chjc0klrlrj81w491wn5fpn60ivb6dmc-bzip2-1.0.6.0.2-bin/bin:/nix/store/x1j8srrnl97ahjpajggh9vpnzp9hrvjb-gnumake-4.3/bin:/nix/store/74shlfgb18717ixjlpivpxd7iqcyhyn5-bash-4.4-p23/bin:/nix/store/d46s718n1zazbm72aa36zin5dwmfys4l-patch-2.7.6/bin:/nix/store/aik85pqs765f8y2p31x0px6fl3grf5kz-xz-5.2.5-bin/bin
    /nix/store/kd9yd2s4scdxar941i4114w6s4x0r7b8-Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -filelist ./detype1-fczkhgyvzsdralcnvugylghgyjnp/Build/Intermediates/detype1.build/Release/detype1.build/Objects-normal/x86_64/detype1.LinkFileList -mmacosx-version-min=10.8 -isysroot /nix/store/rs13ifpgwswvspiccwljxdlhgd7p4p4n-SDKs/MacOSX10.12.sdk -F../../../exe/osx/release/ -Xlinker -dependency_info -Xlinker ./detype1-fczkhgyvzsdralcnvugylghgyjnp/Build/Intermediates/detype1.build/Release/detype1.build/Objects-normal/x86_64/detype1_dependency_info.dat -o ../../../exe/osx/release//detype1

** BUILD SUCCEEDED **
+ cp ../../../exe/osx/release/detype1 ../../../../build_all
+ failed=0
+ cd /private/tmp/nix-build-python3.8-afdko-3.6.2.drv-7/afdko-3.6.2/c
+ '[' 0 -ne 0 ']'
+ for shFile in $buildAllList
+ echo '***Running ./makeotf/build/osx/xcode/build.sh'
***Running ./makeotf/build/osx/xcode/build.sh
++ dirname ./makeotf/build/osx/xcode/build.sh
+ newDir=./makeotf/build/osx/xcode
++ basename ./makeotf/build/osx/xcode/build.sh
+ shFile=build.sh
+ cd ./makeotf/build/osx/xcode
+ sh build.sh ''
+ target=makeotf
+ '[' -z '' ']'
+ xcodebuild -target BuildAll -project makeotf.xcodeproj -configuration Release
Build settings from the command line:
    DERIVED_DATA_DIR=.
    SDKROOT=MacOSX10.12

=== BUILD TARGET cffread OF PROJECT cffread WITH CONFIGURATION Release ===

Check dependencies

Write auxiliary files
/bin/mkdir -p ./makeotf-ggpoqdznuxhdylczewuybzwrgpsz/Build/Intermediates/cffread.build/Release/cffread.build
write-file ./makeotf-ggpoqdznuxhdylczewuybzwrgpsz/Build/Intermediates/cffread.build/Release/cffread.build/cffread.hmap
write-file ./makeotf-ggpoqdznuxhdylczewuybzwrgpsz/Build/Intermediates/cffread.build/Release/cffread.build/cffread-own-target-headers.hmap
write-file ./makeotf-ggpoqdznuxhdylczewuybzwrgpsz/Build/Intermediates/cffread.build/Release/cffread.build/cffread-all-target-headers.hmap
write-file ./makeotf-ggpoqdznuxhdylczewuybzwrgpsz/Build/Intermediates/cffread.build/Release/cffread.build/cffread-all-non-framework-target-headers.hmap
write-file ./makeotf-ggpoqdznuxhdylczewuybzwrgpsz/Build/Intermediates/cffread.build/Release/cffread.build/cffread-generated-files.hmap
write-file ./makeotf-ggpoqdznuxhdylczewuybzwrgpsz/Build/Intermediates/cffread.build/Release/cffread.build/cffread-project-headers.hmap
/bin/mkdir -p ./makeotf-ggpoqdznuxhdylczewuybzwrgpsz/Build/Intermediates/cffread.build/Release/cffread.build/Objects-normal/x86_64
write-file ./makeotf-ggpoqdznuxhdylczewuybzwrgpsz/Build/Intermediates/cffread.build/Release/cffread.build/Objects-normal/x86_64/cffread.LinkFileList

Create product structure

CompileC ./makeotf-ggpoqdznuxhdylczewuybzwrgpsz/Build/Intermediates/cffread.build/Release/cffread.build/Objects-normal/x86_64/cffread.o ../../../../source/cffread/cffread.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler
    cd /private/tmp/nix-build-python3.8-afdko-3.6.2.drv-7/afdko-3.6.2/c/makeotf/makeotf_lib/build/cffread/osx/xcode
    export DEVELOPER_DIR=/nix/store/g1vxj28zczw76b9gldpxs6xxrdfn8wgn-xcodebuild-0.1.2-pre
    export PATH=/nix/store/bcn3s3m68b2gvsyrzi5086nxlqw0ark1-Platforms/MacOSX.platform/Developer/usr/bin:/nix/store/bcn3s3m68b2gvsyrzi5086nxlqw0ark1-Platforms/MacOSX.platform/usr/local/bin:/nix/store/bcn3s3m68b2gvsyrzi5086nxlqw0ark1-Platforms/MacOSX.platform/usr/bin:/nix/store/bcn3s3m68b2gvsyrzi5086nxlqw0ark1-Platforms/MacOSX.platform/usr/local/bin:/nix/store/kd9yd2s4scdxar941i4114w6s4x0r7b8-Toolchains/XcodeDefault.xctoolchain/usr/bin:/nix/store/kd9yd2s4scdxar941i4114w6s4x0r7b8-Toolchains/XcodeDefault.xctoolchain/usr/libexec:/nix/store/g1vxj28zczw76b9gldpxs6xxrdfn8wgn-xcodebuild-0.1.2-pre/usr/bin:/nix/store/g1vxj28zczw76b9gldpxs6xxrdfn8wgn-xcodebuild-0.1.2-pre/usr/local/bin:/nix/store/g1vxj28zczw76b9gldpxs6xxrdfn8wgn-xcodebuild-0.1.2-pre/Tools:/nix/store/rakqkwxql1hsa16dphdfkdky8i9cib5v-python3-3.8.8/bin:/nix/store/mx4iywww84nybia92apnrbnl5fxylp5n-python3.8-setuptools-50.3.1/bin:/nix/store/ikx6ly1mp9fdqn4pkn7nlrq3lbxkawg2-python3.8-wheel-0.36.2/bin:/nix/store/2vc3zqfh1hrhwvpghyjh3wrnwh8c3lqs-python3.8-pip-20.3.4/bin:/nix/store/g1vxj28zczw76b9gldpxs6xxrdfn8wgn-xcodebuild-0.1.2-pre/bin:/nix/store/kd9yd2s4scdxar941i4114w6s4x0r7b8-Toolchains/XcodeDefault.xctoolchain/bin:/nix/store/kdf8y3wg4qy2bkk81p4kkk7x76ia5k93-python3.8-pytest-6.2.2/bin:/nix/store/l3zvd3g9jwc7vq4jnfnz7xh7zvvplxn7-clang-wrapper-7.1.0/bin:/nix/store/94yzw5n7fxx8zy8xp4yq45pz4wdw74vw-clang-7.1.0/bin:/nix/store/5hcln5ydxnwhc9dbaf55sqkry7r29ncd-coreutils-8.32/bin:/nix/store/fgbkzkmzjp3q3b8p8rmf867xdsbyvjbn-cctools-binutils-darwin-wrapper-949.0.1/bin:/nix/store/s31f50385mj95q0ws54g2m3msxshvmkd-cctools-binutils-darwin-949.0.1/bin:/nix/store/wyfx47i37bzqny2c5mjpbsss5rzw9sb4-findutils-4.7.0/bin:/nix/store/35ggwcsfh3r025sp6z6yzrghyd40lw28-diffutils-3.7/bin:/nix/store/k0jin7qlhjgl6pdypnidzcg1gwgk1zhm-gnused-4.8/bin:/nix/store/w0cd23xv69kvrwbvyl5hbsx5q5fpf6if-gnugrep-3.6/bin:/nix/store/h5a3swvrlm878i6qrhnv77in6y7pmyyk-gawk-5.1.0/bin:/nix/store/0zaqix1m67ab18da3rrg582fakzay0j6-gnutar-1.34/bin:/nix/store/jbxngsmvp45x19nyrp2ffijx5nh0xm8s-gzip-1.10/bin:/nix/store/chjc0klrlrj81w491wn5fpn60ivb6dmc-bzip2-1.0.6.0.2-bin/bin:/nix/store/x1j8srrnl97ahjpajggh9vpnzp9hrvjb-gnumake-4.3/bin:/nix/store/74shlfgb18717ixjlpivpxd7iqcyhyn5-bash-4.4-p23/bin:/nix/store/d46s718n1zazbm72aa36zin5dwmfys4l-patch-2.7.6/bin:/nix/store/aik85pqs765f8y2p31x0px6fl3grf5kz-xz-5.2.5-bin/bin
    /nix/store/kd9yd2s4scdxar941i4114w6s4x0r7b8-Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -arch x86_64 -isysroot /nix/store/rs13ifpgwswvspiccwljxdlhgd7p4p4n-SDKs/MacOSX10.12.sdk -mmacosx-version-min=10.8 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -DBRV_64BIT_TYPES -DCFF_T13_SUPPORT=0 -fasm-blocks -fno-common -fstrict-aliasing -fpascal-strings -Os -Wno-trigraphs -Wempty-body -Winfinite-recursion -Wunreachable-code -Wdeprecated-declarations -Wno-missing-field-initializers -Wno-newline-eof -Wno-missing-prototypes -Wpointer-sign -Wswitch -Wfour-char-constants -Wno-conversion -Wbool-conversion -Wconstant-conversion -Wenum-conversion -Wint-conversion -Wno-sign-conversion -Wshorten-64-to-32 -Wno-missing-braces -Wparentheses -Wno-shadow -Wsign-compare -Wuninitialized -Wunknown-pragmas -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-value -Wunused-variable -I./makeotf-ggpoqdznuxhdylczewuybzwrgpsz/Build/Intermediates/cffread.build/Release/cffread.build/cffread-own-target-headers.hmap -I./makeotf-ggpoqdznuxhdylczewuybzwrgpsz/Build/Intermediates/cffread.build/Release/cffread.build/cffread-all-target-headers.hmap -iquote ./makeotf-ggpoqdznuxhdylczewuybzwrgpsz/Build/Intermediates/cffread.build/Release/cffread.build/cffread-generated-files.hmap -iquote ./makeotf-ggpoqdznuxhdylczewuybzwrgpsz/Build/Intermediates/cffread.build/Release/cffread.build/cffread-project-headers.hmap -I../../../../lib/osx/release/include -I/nix/store/rs13ifpgwswvspiccwljxdlhgd7p4p4n-SDKs/MacOSX10.12.sdk/usr/include -I../../../../api/ -I../../../../resource/ -I../../../../../../public/lib/api/ -I../../../../../../public/lib/resource/ -I../../../../build/hotpccts/pccts/h -I./makeotf-ggpoqdznuxhdylczewuybzwrgpsz/Build/Intermediates/cffread.build/Release/cffread.build/DerivedSources/x86_64 -I./makeotf-ggpoqdznuxhdylczewuybzwrgpsz/Build/Intermediates/cffread.build/Release/cffread.build/DerivedSources -F../../../../lib/osx/release -fno-inline -MMD -MT dependencies -MF ./makeotf-ggpoqdznuxhdylczewuybzwrgpsz/Build/Intermediates/cffread.build/Release/cffread.build/Objects-normal/x86_64/cffread.d -c /private/tmp/nix-build-python3.8-afdko-3.6.2.drv-7/afdko-3.6.2/c/makeotf/makeotf_lib/build/cffread/osx/xcode/../../../../source/cffread/cffread.c -o ./makeotf-ggpoqdznuxhdylczewuybzwrgpsz/Build/Intermediates/cffread.build/Release/cffread.build/Objects-normal/x86_64/cffread.o
/private/tmp/nix-build-python3.8-afdko-3.6.2.drv-7/afdko-3.6.2/c/makeotf/makeotf_lib/build/cffread/osx/xcode/../../../../source/cffread/cffread.c:629:41: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
    *length = getnum(h, index->offSize) - offset;
            ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/private/tmp/nix-build-python3.8-afdko-3.6.2.drv-7/afdko-3.6.2/c/makeotf/makeotf_lib/build/cffread/osx/xcode/../../../../source/cffread/cffread.c:647:19: warning: implicit conversion loses integer precision: 'unsigned long' to 'unsigned int' [-Wshorten-64-to-32]
        *length = strlen(std[sid]);
                ~ ^~~~~~~~~~~~~~~~
/private/tmp/nix-build-python3.8-afdko-3.6.2.drv-7/afdko-3.6.2/c/makeotf/makeotf_lib/build/cffread/osx/xcode/../../../../source/cffread/cffread.c:2101:37: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
        DICTRead(h, h->dict.Private.length, h->dict.Private.offset, 0);
        ~~~~~~~~    ~~~~~~~~~~~~~~~~^~~~~~
/private/tmp/nix-build-python3.8-afdko-3.6.2.drv-7/afdko-3.6.2/c/makeotf/makeotf_lib/build/cffread/osx/xcode/../../../../source/cffread/cffread.c:2157:41: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
            DICTRead(h, h->dict.Private.length, h->dict.Private.offset, 1);
            ~~~~~~~~    ~~~~~~~~~~~~~~~~^~~~~~
/private/tmp/nix-build-python3.8-afdko-3.6.2.drv-7/afdko-3.6.2/c/makeotf/makeotf_lib/build/cffread/osx/xcode/../../../../source/cffread/cffread.c:2249:26: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
            addSID(h, gid++, 0); /* .notdef */
            ~~~~~~    ~~~^~
/private/tmp/nix-build-python3.8-afdko-3.6.2.drv-7/afdko-3.6.2/c/makeotf/makeotf_lib/build/cffread/osx/xcode/../../../../source/cffread/cffread.c:2254:35: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
                        addSID(h, gid, (unsigned short)getnum(h, SID_SIZE));
                        ~~~~~~    ^~~
/private/tmp/nix-build-python3.8-afdko-3.6.2.drv-7/afdko-3.6.2/c/makeotf/makeotf_lib/build/cffread/osx/xcode/../../../../source/cffread/cffread.c:2264:42: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
                            addSID(h, gid++, sid++);
                            ~~~~~~    ~~~^~
/private/tmp/nix-build-python3.8-afdko-3.6.2.drv-7/afdko-3.6.2/c/makeotf/makeotf_lib/build/cffread/osx/xcode/../../../../source/cffread/cffread.c:2275:42: warning: implicit conversion loses integer precision: 'long' to 'unsigned int' [-Wshorten-64-to-32]
                            addSID(h, gid++, sid++);
                            ~~~~~~    ~~~^~
8 warnings generated.

Libtool ../../../../lib/osx/release/libcffread.a normal x86_64
    cd /private/tmp/nix-build-python3.8-afdko-3.6.2.drv-7/afdko-3.6.2/c/makeotf/makeotf_lib/build/cffread/osx/xcode
    export DEVELOPER_DIR=/nix/store/g1vxj28zczw76b9gldpxs6xxrdfn8wgn-xcodebuild-0.1.2-pre
    export MACOSX_DEPLOYMENT_TARGET=10.8
    export PATH=/nix/store/bcn3s3m68b2gvsyrzi5086nxlqw0ark1-Platforms/MacOSX.platform/Developer/usr/bin:/nix/store/bcn3s3m68b2gvsyrzi5086nxlqw0ark1-Platforms/MacOSX.platform/usr/local/bin:/nix/store/bcn3s3m68b2gvsyrzi5086nxlqw0ark1-Platforms/MacOSX.platform/usr/bin:/nix/store/bcn3s3m68b2gvsyrzi5086nxlqw0ark1-Platforms/MacOSX.platform/usr/local/bin:/nix/store/kd9yd2s4scdxar941i4114w6s4x0r7b8-Toolchains/XcodeDefault.xctoolchain/usr/bin:/nix/store/kd9yd2s4scdxar941i4114w6s4x0r7b8-Toolchains/XcodeDefault.xctoolchain/usr/libexec:/nix/store/g1vxj28zczw76b9gldpxs6xxrdfn8wgn-xcodebuild-0.1.2-pre/usr/bin:/nix/store/g1vxj28zczw76b9gldpxs6xxrdfn8wgn-xcodebuild-0.1.2-pre/usr/local/bin:/nix/store/g1vxj28zczw76b9gldpxs6xxrdfn8wgn-xcodebuild-0.1.2-pre/Tools:/nix/store/rakqkwxql1hsa16dphdfkdky8i9cib5v-python3-3.8.8/bin:/nix/store/mx4iywww84nybia92apnrbnl5fxylp5n-python3.8-setuptools-50.3.1/bin:/nix/store/ikx6ly1mp9fdqn4pkn7nlrq3lbxkawg2-python3.8-wheel-0.36.2/bin:/nix/store/2vc3zqfh1hrhwvpghyjh3wrnwh8c3lqs-python3.8-pip-20.3.4/bin:/nix/store/g1vxj28zczw76b9gldpxs6xxrdfn8wgn-xcodebuild-0.1.2-pre/bin:/nix/store/kd9yd2s4scdxar941i4114w6s4x0r7b8-Toolchains/XcodeDefault.xctoolchain/bin:/nix/store/kdf8y3wg4qy2bkk81p4kkk7x76ia5k93-python3.8-pytest-6.2.2/bin:/nix/store/l3zvd3g9jwc7vq4jnfnz7xh7zvvplxn7-clang-wrapper-7.1.0/bin:/nix/store/94yzw5n7fxx8zy8xp4yq45pz4wdw74vw-clang-7.1.0/bin:/nix/store/5hcln5ydxnwhc9dbaf55sqkry7r29ncd-coreutils-8.32/bin:/nix/store/fgbkzkmzjp3q3b8p8rmf867xdsbyvjbn-cctools-binutils-darwin-wrapper-949.0.1/bin:/nix/store/s31f50385mj95q0ws54g2m3msxshvmkd-cctools-binutils-darwin-949.0.1/bin:/nix/store/wyfx47i37bzqny2c5mjpbsss5rzw9sb4-findutils-4.7.0/bin:/nix/store/35ggwcsfh3r025sp6z6yzrghyd40lw28-diffutils-3.7/bin:/nix/store/k0jin7qlhjgl6pdypnidzcg1gwgk1zhm-gnused-4.8/bin:/nix/store/w0cd23xv69kvrwbvyl5hbsx5q5fpf6if-gnugrep-3.6/bin:/nix/store/h5a3swvrlm878i6qrhnv77in6y7pmyyk-gawk-5.1.0/bin:/nix/store/0zaqix1m67ab18da3rrg582fakzay0j6-gnutar-1.34/bin:/nix/store/jbxngsmvp45x19nyrp2ffijx5nh0xm8s-gzip-1.10/bin:/nix/store/chjc0klrlrj81w491wn5fpn60ivb6dmc-bzip2-1.0.6.0.2-bin/bin:/nix/store/x1j8srrnl97ahjpajggh9vpnzp9hrvjb-gnumake-4.3/bin:/nix/store/74shlfgb18717ixjlpivpxd7iqcyhyn5-bash-4.4-p23/bin:/nix/store/d46s718n1zazbm72aa36zin5dwmfys4l-patch-2.7.6/bin:/nix/store/aik85pqs765f8y2p31x0px6fl3grf5kz-xz-5.2.5-bin/bin
    /nix/store/kd9yd2s4scdxar941i4114w6s4x0r7b8-Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only x86_64 -filelist ./makeotf-ggpoqdznuxhdylczewuybzwrgpsz/Build/Intermediates/cffread.build/Release/cffread.build/Objects-normal/x86_64/cffread.LinkFileList -syslibroot /nix/store/rs13ifpgwswvspiccwljxdlhgd7p4p4n-SDKs/MacOSX10.12.sdk -o ../../../../lib/osx/release/libcffread.a
fatal error: /nix/store/kd9yd2s4scdxar941i4114w6s4x0r7b8-Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file list file: ./makeotf-ggpoqdznuxhdylczewuybzwrgpsz/Build/Intermediates/cffread.build/Release/cffread.build/Objects-normal/x86_64/cffread.LinkFileList (No such file or directory)

** BUILD FAILED **

The following build commands failed:
    Libtool ../../../../lib/osx/release/libcffread.a normal x86_64
(1 failure)

I'll try to verify that Apple's xcodebuild also fails, but supporting xcbuild would be important for us for https://github.com/nixos/nixpkgs, since using the system xcodebuild means build impurity.

@sternenseemann
Copy link
Author

Also fails with system xcodebuild.

@iterumllc
Copy link
Collaborator

@sternenseemann as all of this is likely to be replaced soon you might try grabbing #1367 and seeing if you can get CMake to work for you on Darwin.

@iterumllc
Copy link
Collaborator

#1367 has been merged into the develop branch.

@sternenseemann
Copy link
Author

No longer a problem in 3.7.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants