GYP3 icon indicating copy to clipboard operation
GYP3 copied to clipboard

[WIP] Cleanup xcode detect etc

Open refack opened this issue 6 years ago • 8 comments

refack avatar Apr 03 '19 20:04 refack

@cclauss PTAL?

refack avatar Apr 03 '19 20:04 refack

Found the main issue (lists and *args and bears oh my!)

refack avatar Apr 03 '19 22:04 refack

Errors from https://travis-ci.com/refack/GYP/jobs/196474940:

not ok 196 test/ios/gyptest-framework.py ninja
  ---
  duration_ms: 1.293
  stdout: |-
    /Users/travis/build/refack/GYP/gyp_main.py returned 1
    STDOUT =========================================================================
    
    STDERR =========================================================================
    Traceback (most recent call last):
      File "/Users/travis/build/refack/GYP/gyp_main.py", line 6, in <module>
        sys.exit(gyp.script_main())
      File "/Users/travis/build/refack/GYP/gyp/__init__.py", line 452, in script_main
        return main(sys.argv[1:])
      File "/Users/travis/build/refack/GYP/gyp/__init__.py", line 444, in main
        return gyp_main(args)
      File "/Users/travis/build/refack/GYP/gyp/__init__.py", line 429, in gyp_main
        generator.GenerateOutput(flat_list, targets, data, params)
      File "/Users/travis/build/refack/GYP/gyp/generator/ninja.py", line 806, in GenerateOutput
        GenerateOutputForConfig(target_list, target_dicts, data, params, config_name)
      File "/Users/travis/build/refack/GYP/gyp/generator/ninja.py", line 737, in GenerateOutputForConfig
        target = writer.WriteSpec()
      File "/Users/travis/build/refack/GYP/gyp/NinjaWriter.py", line 1364, in WriteSpec
        output = self._WriteMacBundle(self.spec, mac_bundle_depends, is_empty_bundle)
      File "/Users/travis/build/refack/GYP/gyp/NinjaWriter.py", line 1005, in _WriteMacBundle
        self._AppendPostbuildVariable(variables, spec, output, self.target.binary, is_command_start=not package_framework)
      File "/Users/travis/build/refack/GYP/gyp/NinjaWriter.py", line 1042, in _AppendPostbuildVariable
        postbuild = self._GetPostbuildCommand(spec, output, binary, is_command_start)
      File "/Users/travis/build/refack/GYP/gyp/NinjaWriter.py", line 1057, in _GetPostbuildCommand
        postbuilds = self.xcode_settings.AddImplicitPostbuilds(self.config_name, output_path, output_binary_path, postbuilds, quiet=True)
      File "/Users/travis/build/refack/GYP/gyp/xcode_emulation.py", line 1077, in AddImplicitPostbuilds
        post = self._GetIOSPostbuilds(configname)
      File "/Users/travis/build/refack/GYP/gyp/xcode_emulation.py", line 1021, in _GetIOSPostbuilds
        key = XCodeDetect.GetIOSCodeSignIdentityKey(identity)
      File "/Users/travis/build/refack/GYP/gyp/common.py", line 26, in __call__
        result = self.func(*args)
      File "/Users/travis/build/refack/GYP/gyp/XCodeDetect.py", line 76, in GetIOSCodeSignIdentityKey
        fingerprint = match_lines[0].split()[1]
    IndexError: list index out of range
  stderr: |-
    FAILED test:
     of /Users/travis/build/refack/GYP/gyp_main.py [test/ios/gyptest-framework.py]
    test/ios/gyptest-framework.py:16 at <module>
  ...
not ok 253 test/mac/gyptest-deployment-target.py make
  ---
  duration_ms: 1.576
  stdout: |-
    STDOUT =========================================================================
      CC(target) out/Default/obj.target/macosx-version-min-10.5/check-version-min.o
      LINK(target) out/Default/macosx-version-min-10.5
      CC(target) out/Default/obj.target/macosx-version-min-10.6/check-version-min.o
      LINK(target) out/Default/macosx-version-min-10.6
    
    STDERR =========================================================================
    0a1,2
    > clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
    > clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
  stderr: |-
    FAILED test:
     of /Users/travis/build/refack/GYP/gyp_main.py [test/mac/gyptest-deployment-target.py]
    test/mac/gyptest-deployment-target.py:17 at <module>
  ...

targos avatar May 01 '19 13:05 targos

GYP [cleanup-xcode-detect-etc●] % security find-identity -p codesigning -v                           
     0 valid identities found

stropitek avatar May 01 '19 14:05 stropitek

not ok 233 test/mac/gyptest-archs.py make
  ---
  duration_ms: 4.325
  stdout: |-
    STDOUT =========================================================================
      CXX(target) out/Default/obj.target/target_a/file_a.o
      LIBTOOL-STATIC out/Default/libtarget_a.a
      CXX(target) out/Default/obj.target/target_b/file_b.o
      LIBTOOL-STATIC out/Default/libtarget_b.a
      CXX(target) out/Default/obj.target/target_c_standalone_helper/file_c.o
      SOLINK_MODULE(target) out/Default/target_c_standalone_helper.so
      ACTION test_dependencies_gyp_target_c_standalone_target_Package_C out/Default/libc_standalone.a
      TOUCH out/Default/obj.target/./target_c_standalone.stamp
      CXX(target) out/Default/obj.target/target_d_standalone_helper/file_d.o
      SOLINK(target) out/Default/libtarget_d_standalone_helper.dylib
      ACTION test_dependencies_gyp_target_d_standalone_target_Package_D out/Default/libd_standalone.a
      TOUCH out/Default/obj.target/./target_d_standalone.stamp
    
    STDERR =========================================================================
    0a1,6
    > ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS)
    > ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd, missing required architecture i386 in file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd
    > ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib/libc++.tbd, missing required architecture i386 in file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib/libc++.tbd
    > ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS)
    > ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd, missing required architecture i386 in file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd
    > ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib/libc++.tbd, missing required architecture i386 in file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib/libc++.tbd
  stderr: |-
    FAILED test:
     of /Users/stropitek/git/refack/GYP/gyp_main.py [test/mac/gyptest-archs.py]
    test/mac/gyptest-archs.py:42 at <module>
  ...
not ok 234 test/mac/gyptest-archs.py ninja
  ---
  duration_ms: 5.108
  stdout: |-
    /Users/stropitek/git/refack/GYP/gyp_main.py returned 1
    STDOUT =========================================================================
    ninja: Entering directory `out/Default'
    [1/5] CXX obj/exe_32_64.empty_main.i386.o
    [2/5] CXX obj/exe_32_64.empty_main.x86_64.o
    [3/5] LINK arch/exe_32_64.i386, POSTBUILDS
    FAILED: arch/exe_32_64.i386 
    c++ -arch i386 -L./ -o arch/exe_32_64.i386 obj/exe_32_64.empty_main.i386.o  
    ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS)
    ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd, missing required architecture i386 in file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd
    ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib/libc++.tbd, missing required architecture i386 in file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib/libc++.tbd
    ld: dynamic main executables must link with libSystem.dylib for architecture i386
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    [4/5] LINK arch/exe_32_64.x86_64, POSTBUILDS
    ninja: build stopped: subcommand failed.
    
    STDERR =========================================================================
  stderr: |-
    FAILED test:
     of /Users/stropitek/git/refack/GYP/gyp_main.py [test/mac/gyptest-archs.py]
    test/mac/gyptest-archs.py:63 at <module>
  ...

stropitek avatar May 01 '19 14:05 stropitek

not ok 242 test/mac/gyptest-clang-cxx-library.py ninja
  ---
  duration_ms: 1.619
  stdout: |-
    /Users/stropitek/git/refack/GYP/gyp_main.py returned 1
    STDOUT =========================================================================
    ninja: Entering directory `out/Default'
    [1/4] CXX obj/libstdc++.libstdc++.o
    FAILED: obj/libstdc++.libstdc++.o 
    /usr/bin/clang++ -MMD -MF obj/libstdc++.libstdc++.o.d   -fasm-blocks -mpascal-strings -Os -gdwarf-2 -arch x86_64 -stdlib=libstdc++  -c ../../libstdc++.cc -o obj/libstdc++.libstdc++.o
    warning: include path for stdlibc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
    ../../libstdc++.cc:5:10: fatal error: 'string' file not found
    #include <string>
             ^~~~~~~~
    1 warning and 1 error generated.
    [2/4] CXX obj/libc++.libc++.o
    ninja: build stopped: subcommand failed.
    
    STDERR =========================================================================
  stderr: |-
    FAILED test:
     of /Users/stropitek/git/refack/GYP/gyp_main.py [test/mac/gyptest-clang-cxx-library.py]
    test/mac/gyptest-clang-cxx-library.py:24 at <module>
  ...

stropitek avatar May 01 '19 14:05 stropitek

not ok 253 test/mac/gyptest-deployment-target.py make
  ---
  duration_ms: 1.014
  stdout: |-
    /Users/stropitek/git/refack/GYP/gyp_main.py returned 2
    STDOUT =========================================================================
      CC(target) out/Default/obj.target/macosx-version-min-10.5/check-version-min.o
      LINK(target) out/Default/macosx-version-min-10.5
    
    STDERR =========================================================================
    clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
    ld: library not found for -lstdc++
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make: *** [out/Default/macosx-version-min-10.5] Error 1
  stderr: |-
    FAILED test:
     of /Users/stropitek/git/refack/GYP/gyp_main.py [test/mac/gyptest-deployment-target.py]
    test/mac/gyptest-deployment-target.py:17 at <module>
  ...
not ok 254 test/mac/gyptest-deployment-target.py ninja
  ---
  duration_ms: 1.013
  stdout: |-
    /Users/stropitek/git/refack/GYP/gyp_main.py returned 1
    STDOUT =========================================================================
    ninja: Entering directory `out/Default'
    [1/4] CC obj/macosx-version-min-10.6.check-version-min.o
    [2/4] CC obj/macosx-version-min-10.5.check-version-min.o
    [3/4] LINK macosx-version-min-10.5, POSTBUILDS
    FAILED: macosx-version-min-10.5 
    cc -mmacosx-version-min=10.5 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -arch x86_64 -L./ -o macosx-version-min-10.5 obj/macosx-version-min-10.5.check-version-min.o  
    ld: library not found for -lgcc_s.10.5
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    [4/4] LINK macosx-version-min-10.6, POSTBUILDS
    ninja: build stopped: subcommand failed.
    
    STDERR =========================================================================
  stderr: |-
    FAILED test:
     of /Users/stropitek/git/refack/GYP/gyp_main.py [test/mac/gyptest-deployment-target.py]
    test/mac/gyptest-deployment-target.py:17 at <module>
  ...

stropitek avatar May 01 '19 14:05 stropitek

not ok 321 test/mac/gyptest-type-envvars.py make
  ---
  duration_ms: 1.515
  stdout: |-
    /Users/stropitek/git/refack/GYP/gyp_main.py returned 2
    STDOUT =========================================================================
      CC(target) out/Default/obj.target/bundle_loadable_module/file.o
      SOLINK_MODULE(target) out/Default/bundle_loadable_module.bundle/Contents/MacOS/bundle_loadable_module
      PACKAGE FRAMEWORK out/Default/bundle_loadable_module.bundle
    POSTBUILD(bundle_loadable_module) envtest
    
    STDERR =========================================================================
    make: *** [out/Default/bundle_loadable_module.bundle] Error 1
  stderr: |-
    FAILED test:
     of /Users/stropitek/git/refack/GYP/gyp_main.py [test/mac/gyptest-type-envvars.py]
    test/mac/gyptest-type-envvars.py:25 at <module>
  ...
not ok 322 test/mac/gyptest-type-envvars.py ninja
  ---
  duration_ms: 1.648
  stdout: |-
    /Users/stropitek/git/refack/GYP/gyp_main.py returned 1
    STDOUT =========================================================================
    ninja: Entering directory `out/Default'
    [1/17] CC obj/nonbundle_shared_library.file.o
    [2/17] CC obj/my_app.file.o
    [3/17] CC obj/nonbundle_executable.file.o
    [4/17] CC obj/nonbundle_static_library.file.o
    [5/17] CC obj/nonbundle_loadable_module.file.o
    [6/17] CC obj/bundle_shared_library.file.o
    [7/17] LINK 'My App.app/Contents/MacOS/My App', POSTBUILDS
    [8/17] CC obj/bundle_loadable_module.file.o
    [9/17] STAMP 'My App.app'
    FAILED: My App.app 
    (export BUILT_FRAMEWORKS_DIR="/Users/stropitek/git/refack/GYP/out/ninja_test_mac_gyptest-type-envvars_py/type_envvars/out/Default/My App.app/Contents/Frameworks"; export BUILT_PRODUCTS_DIR=/Users/stropitek/git/refack/GYP/out/ninja_test_mac_gyptest-type-envvars_py/type_envvars/out/Default; export CONFIGURATION=Default; export CONTENTS_FOLDER_PATH="My App.app/Contents"; export EXECUTABLE_FOLDER_PATH="My App.app/Contents/MacOS"; export EXECUTABLE_NAME="My App"; export EXECUTABLE_PATH="My App.app/Contents/MacOS/My App"; export FRAMEWORKS_FOLDER_PATH="My App.app/Contents/Frameworks"; export FULL_PRODUCT_NAME="My App.app"; export INFOPLIST_PATH="My App.app/Contents/Info.plist"; export JAVA_FOLDER_PATH="My App.app/Contents/Resources/Java"; export MACH_O_TYPE=mh_execute; export PLUGINS_FOLDER_PATH="My App.app/Contents/PlugIns"; export PRODUCT_NAME="My App"; export PRODUCT_TYPE=com.apple.product-type.application; export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk; export SHARED_FRAMEWORKS_FOLDER_PATH="My App.app/Contents/SharedFrameworks"; export SHARED_SUPPORT_FOLDER_PATH="My App.app/Contents/SharedSupport"; export SRCROOT=/Users/stropitek/git/refack/GYP/out/ninja_test_mac_gyptest-type-envvars_py/type_envvars/out/Default/../../; export SOURCE_ROOT="${SRCROOT}"; export TARGET_BUILD_DIR=/Users/stropitek/git/refack/GYP/out/ninja_test_mac_gyptest-type-envvars_py/type_envvars/out/Default; export TEMP_DIR="${TMPDIR}"; export UNLOCALIZED_RESOURCES_FOLDER_PATH="My App.app/Contents/Resources"; export WRAPPER_NAME="My App.app"; export XCODE_VERSION_ACTUAL=10210; export XPCSERVICES_FOLDER_PATH="My App.app/Contents/XPCServices"; (cd ../../ && ./test_bundle_executable.sh); G=$?; ((exit $G) || rm -rf 'My App.app') && exit $G) && touch 'My App.app'
    [10/17] SOLINK libnonbundle_shared_library.dylib, POSTBUILDS
    FAILED: libnonbundle_shared_library.dylib libnonbundle_shared_library.dylib.TOC 
    if [ ! -e libnonbundle_shared_library.dylib -o ! -e libnonbundle_shared_library.dylib.TOC ] || otool -l libnonbundle_shared_library.dylib | grep -q LC_REEXPORT_DYLIB ; then cc -shared -arch x86_64 -L./ -install_name /usr/local/lib/libnonbundle_shared_library.dylib -o libnonbundle_shared_library.dylib @libnonbundle_shared_library.dylib.rsp && (export BUILT_FRAMEWORKS_DIR=/Users/stropitek/git/refack/GYP/out/ninja_test_mac_gyptest-type-envvars_py/type_envvars/out/Default; export BUILT_PRODUCTS_DIR=/Users/stropitek/git/refack/GYP/out/ninja_test_mac_gyptest-type-envvars_py/type_envvars/out/Default; export CONFIGURATION=Default; export DYLIB_INSTALL_NAME_BASE=/usr/local/lib; export EXECUTABLE_NAME=libnonbundle_shared_library.dylib; export EXECUTABLE_PATH=libnonbundle_shared_library.dylib; export FULL_PRODUCT_NAME=libnonbundle_shared_library.dylib; export LD_DYLIB_INSTALL_NAME=/usr/local/lib/libnonbundle_shared_library.dylib; export MACH_O_TYPE=mh_dylib; export PRODUCT_NAME=nonbundle_shared_library; export PRODUCT_TYPE=com.apple.product-type.library.dynamic; export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk; export SRCROOT=/Users/stropitek/git/refack/GYP/out/ninja_test_mac_gyptest-type-envvars_py/type_envvars/out/Default/../../; export SOURCE_ROOT="${SRCROOT}"; export TARGET_BUILD_DIR=/Users/stropitek/git/refack/GYP/out/ninja_test_mac_gyptest-type-envvars_py/type_envvars/out/Default; export TEMP_DIR="${TMPDIR}"; export XCODE_VERSION_ACTUAL=10210; (cd ../../ && ./test_nonbundle_shared_library.sh); G=$?; ((exit $G) || rm -rf libnonbundle_shared_library.dylib) && exit $G) && { otool -l libnonbundle_shared_library.dylib | grep LC_ID_DYLIB -A 5; nm -gP libnonbundle_shared_library.dylib | cut -f1-2 -d' ' | grep -v U$; true; } > libnonbundle_shared_library.dylib.TOC; else cc -shared -arch x86_64 -L./ -install_name /usr/local/lib/libnonbundle_shared_library.dylib -o libnonbundle_shared_library.dylib @libnonbundle_shared_library.dylib.rsp && (export BUILT_FRAMEWORKS_DIR=/Users/stropitek/git/refack/GYP/out/ninja_test_mac_gyptest-type-envvars_py/type_envvars/out/Default; export BUILT_PRODUCTS_DIR=/Users/stropitek/git/refack/GYP/out/ninja_test_mac_gyptest-type-envvars_py/type_envvars/out/Default; export CONFIGURATION=Default; export DYLIB_INSTALL_NAME_BASE=/usr/local/lib; export EXECUTABLE_NAME=libnonbundle_shared_library.dylib; export EXECUTABLE_PATH=libnonbundle_shared_library.dylib; export FULL_PRODUCT_NAME=libnonbundle_shared_library.dylib; export LD_DYLIB_INSTALL_NAME=/usr/local/lib/libnonbundle_shared_library.dylib; export MACH_O_TYPE=mh_dylib; export PRODUCT_NAME=nonbundle_shared_library; export PRODUCT_TYPE=com.apple.product-type.library.dynamic; export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk; export SRCROOT=/Users/stropitek/git/refack/GYP/out/ninja_test_mac_gyptest-type-envvars_py/type_envvars/out/Default/../../; export SOURCE_ROOT="${SRCROOT}"; export TARGET_BUILD_DIR=/Users/stropitek/git/refack/GYP/out/ninja_test_mac_gyptest-type-envvars_py/type_envvars/out/Default; export TEMP_DIR="${TMPDIR}"; export XCODE_VERSION_ACTUAL=10210; (cd ../../ && ./test_nonbundle_shared_library.sh); G=$?; ((exit $G) || rm -rf libnonbundle_shared_library.dylib) && exit $G) && { otool -l libnonbundle_shared_library.dylib | grep LC_ID_DYLIB -A 5; nm -gP libnonbundle_shared_library.dylib | cut -f1-2 -d' ' | grep -v U$; true; } > libnonbundle_shared_library.dylib.tmp && if ! cmp -s libnonbundle_shared_library.dylib.tmp libnonbundle_shared_library.dylib.TOC; then mv libnonbundle_shared_library.dylib.tmp libnonbundle_shared_library.dylib.TOC ; fi; fi
    [11/17] SOLINK(module) nonbundle_loadable_module.so, POSTBUILDS
    FAILED: nonbundle_loadable_module.so nonbundle_loadable_module.so.TOC 
    if [ ! -e nonbundle_loadable_module.so -o ! -e nonbundle_loadable_module.so.TOC ] || otool -l nonbundle_loadable_module.so | grep -q LC_REEXPORT_DYLIB ; then cc -bundle -arch x86_64 -L./ -o nonbundle_loadable_module.so @nonbundle_loadable_module.so.rsp && (export BUILT_FRAMEWORKS_DIR=/Users/stropitek/git/refack/GYP/out/ninja_test_mac_gyptest-type-envvars_py/type_envvars/out/Default; export BUILT_PRODUCTS_DIR=/Users/stropitek/git/refack/GYP/out/ninja_test_mac_gyptest-type-envvars_py/type_envvars/out/Default; export CONFIGURATION=Default; export DYLIB_INSTALL_NAME_BASE=/usr/local/lib; export EXECUTABLE_NAME=nonbundle_loadable_module.so; export EXECUTABLE_PATH=nonbundle_loadable_module.so; export FULL_PRODUCT_NAME=nonbundle_loadable_module.so; export LD_DYLIB_INSTALL_NAME=/usr/local/lib/nonbundle_loadable_module.so; export MACH_O_TYPE=mh_bundle; export PRODUCT_NAME=nonbundle_loadable_module; export PRODUCT_TYPE=com.apple.product-type.library.dynamic; export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk; export SRCROOT=/Users/stropitek/git/refack/GYP/out/ninja_test_mac_gyptest-type-envvars_py/type_envvars/out/Default/../../; export SOURCE_ROOT="${SRCROOT}"; export TARGET_BUILD_DIR=/Users/stropitek/git/refack/GYP/out/ninja_test_mac_gyptest-type-envvars_py/type_envvars/out/Default; export TEMP_DIR="${TMPDIR}"; export XCODE_VERSION_ACTUAL=10210; (cd ../../ && ./test_nonbundle_loadable_module.sh); G=$?; ((exit $G) || rm -rf nonbundle_loadable_module.so) && exit $G) && { otool -l nonbundle_loadable_module.so | grep LC_ID_DYLIB -A 5; nm -gP nonbundle_loadable_module.so | cut -f1-2 -d' ' | grep -v U$; true; } > nonbundle_loadable_module.so.TOC; else cc -bundle -arch x86_64 -L./ -o nonbundle_loadable_module.so @nonbundle_loadable_module.so.rsp && (export BUILT_FRAMEWORKS_DIR=/Users/stropitek/git/refack/GYP/out/ninja_test_mac_gyptest-type-envvars_py/type_envvars/out/Default; export BUILT_PRODUCTS_DIR=/Users/stropitek/git/refack/GYP/out/ninja_test_mac_gyptest-type-envvars_py/type_envvars/out/Default; export CONFIGURATION=Default; export DYLIB_INSTALL_NAME_BASE=/usr/local/lib; export EXECUTABLE_NAME=nonbundle_loadable_module.so; export EXECUTABLE_PATH=nonbundle_loadable_module.so; export FULL_PRODUCT_NAME=nonbundle_loadable_module.so; export LD_DYLIB_INSTALL_NAME=/usr/local/lib/nonbundle_loadable_module.so; export MACH_O_TYPE=mh_bundle; export PRODUCT_NAME=nonbundle_loadable_module; export PRODUCT_TYPE=com.apple.product-type.library.dynamic; export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk; export SRCROOT=/Users/stropitek/git/refack/GYP/out/ninja_test_mac_gyptest-type-envvars_py/type_envvars/out/Default/../../; export SOURCE_ROOT="${SRCROOT}"; export TARGET_BUILD_DIR=/Users/stropitek/git/refack/GYP/out/ninja_test_mac_gyptest-type-envvars_py/type_envvars/out/Default; export TEMP_DIR="${TMPDIR}"; export XCODE_VERSION_ACTUAL=10210; (cd ../../ && ./test_nonbundle_loadable_module.sh); G=$?; ((exit $G) || rm -rf nonbundle_loadable_module.so) && exit $G) && { otool -l nonbundle_loadable_module.so | grep LC_ID_DYLIB -A 5; nm -gP nonbundle_loadable_module.so | cut -f1-2 -d' ' | grep -v U$; true; } > nonbundle_loadable_module.so.tmp && if ! cmp -s nonbundle_loadable_module.so.tmp nonbundle_loadable_module.so.TOC; then mv nonbundle_loadable_module.so.tmp nonbundle_loadable_module.so.TOC ; fi; fi
    [12/17] LIBTOOL-STATIC libnonbundle_static_library.a, POSTBUILDS
    FAILED: libnonbundle_static_library.a 
    rm -f libnonbundle_static_library.a && ./gyp-mac-tool filter-libtool libtool  -static -o libnonbundle_static_library.a obj/nonbundle_static_library.file.o && (export BUILT_FRAMEWORKS_DIR=/Users/stropitek/git/refack/GYP/out/ninja_test_mac_gyptest-type-envvars_py/type_envvars/out/Default; export BUILT_PRODUCTS_DIR=/Users/stropitek/git/refack/GYP/out/ninja_test_mac_gyptest-type-envvars_py/type_envvars/out/Default; export CONFIGURATION=Default; export EXECUTABLE_NAME=libnonbundle_static_library.a; export EXECUTABLE_PATH=libnonbundle_static_library.a; export FULL_PRODUCT_NAME=libnonbundle_static_library.a; export MACH_O_TYPE=staticlib; export PRODUCT_NAME=nonbundle_static_library; export PRODUCT_TYPE=com.apple.product-type.library.static; export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk; export SRCROOT=/Users/stropitek/git/refack/GYP/out/ninja_test_mac_gyptest-type-envvars_py/type_envvars/out/Default/../../; export SOURCE_ROOT="${SRCROOT}"; export TARGET_BUILD_DIR=/Users/stropitek/git/refack/GYP/out/ninja_test_mac_gyptest-type-envvars_py/type_envvars/out/Default; export TEMP_DIR="${TMPDIR}"; export XCODE_VERSION_ACTUAL=10210; (cd ../../ && ./test_nonbundle_static_library.sh); G=$?; ((exit $G) || rm -rf libnonbundle_static_library.a) && exit $G)
    ninja: build stopped: subcommand failed.
    
    STDERR =========================================================================
  stderr: |-
    FAILED test:
     of /Users/stropitek/git/refack/GYP/gyp_main.py [test/mac/gyptest-type-envvars.py]
    test/mac/gyptest-type-envvars.py:25 at <module>
  ...

stropitek avatar May 01 '19 14:05 stropitek