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

LLVM 15 fails the integration tests on MacOS #131

Closed
aminya opened this issue Oct 18, 2022 · 0 comments · Fixed by #133
Closed

LLVM 15 fails the integration tests on MacOS #131

aminya opened this issue Oct 18, 2022 · 0 comments · Fixed by #133

Comments

@aminya
Copy link
Owner

aminya commented Oct 18, 2022

The MacOS cpp build tests are failing. It seems that the Clang 13 is not properly deleted from the previous test, and so the MacOS SDK is not set properly, so the std headers are not correctly included.

https://github.com/aminya/setup-cpp/actions/runs/3255107927/jobs/5344078514#step:9:131

Installing llvm 13.0.0 x64 via direct downloading

llvm 13.0.0 was found in the cache at /Users/runner/hostedtoolcache/llvm/13.0.0/x64/bin.
  console.log
    Testing the existence of /Users/runner/hostedtoolcache/llvm/13.0.0/x64/bin

      at testBin (src/utils/tests/test-helpers.ts:39:13)

  console.log
    Running /Users/runner/hostedtoolcache/llvm/13.0.0/x64/bin/clang-tidy --version

      at testBin (src/utils/tests/test-helpers.ts:47:13)

LLVM (http://llvm.org/):
  LLVM version 13.0.0
  Optimized build.
  Default target: x86_64-apple-darwin21.6.0
  Host CPU: ivybridge
  console.log
    Testing the existence of /Users/runner/hostedtoolcache/llvm/13.0.0/x64/bin

      at testBin (src/utils/tests/test-helpers.ts:39:13)

  console.log
    Running /Users/runner/hostedtoolcache/llvm/13.0.0/x64/bin/clang-format --version

      at testBin (src/utils/tests/test-helpers.ts:47:13)

clang-format version 13.0.0
Installing llvm 15.0.2 x64 via direct downloading

Add /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/setup cpp temp/llvm/bin to PATH
/usr/bin/xcrun --sdk macosx --show-sdk-path
/Applications/Xcode_14.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk
  console.log
    Testing the existence of /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/setup cpp temp/llvm/bin

      at testBin (src/utils/tests/test-helpers.ts:39:13)

  console.log
    Running /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/setup cpp temp/llvm/bin/clang++ --version

      at testBin (src/utils/tests/test-helpers.ts:47:13)

clang version 13.0.0
Target: x86_64-apple-darwin21.6.0
Thread model: posix
InstalledDir: /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/setup cpp temp/llvm/bin
FAIL src/llvm/__tests__/llvm.test.ts (139.453 s)
  setup-llvm
     Finds URL for ubuntu version (247 ms)
     Finds valid LLVM URLs (7384 ms)
     should setup LLVM (85600 ms)
     should find llvm in the cache (1726 ms)
     should setup clang-tidy and clang-format (903 ms)
     should setup LLVM 15.0.2 (19090 ms)

   setup-llvm  should setup LLVM 15.0.2

    Command failed with exit code 1: clang++ /Users/runner/work/setup-cpp/setup-cpp/src/llvm/__tests__/main.cpp -o /Users/runner/work/setup-cpp/setup-cpp/src/llvm/__tests__/main
    In file included from /Users/runner/work/setup-cpp/setup-cpp/src/llvm/__tests__/main.cpp:2:
    In file included from /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/setup cpp temp/llvm/bin/../include/c++/v1/iostream:37:
    In file included from /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/setup cpp temp/llvm/bin/../include/c++/v1/ios:214:
    In file included from /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/setup cpp temp/llvm/bin/../include/c++/v1/__locale:15:
    In file included from /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/setup cpp temp/llvm/bin/../include/c++/v1/string:520:
    In file included from /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/setup cpp temp/llvm/bin/../include/c++/v1/__functional_base:22:
    In file included from /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/setup cpp temp/llvm/bin/../include/c++/v1/exception:83:
    In file included from /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/setup cpp temp/llvm/bin/../include/c++/v1/cstdlib:85:
    In file included from /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/setup cpp temp/llvm/bin/../include/c++/v1/stdlib.h:93:
    In file included from /Applications/Xcode_14.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/stdlib.h:66:
    In file included from /Applications/Xcode_14.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/wait.h:[110](https://github.com/aminya/setup-cpp/actions/runs/3255107927/jobs/5344078514#step:9:111):
Error:     /Applications/Xcode_14.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/resource.h:202:2: error: unknown type name 'uint8_t'
            uint8_t  ri_uuid[16];
            ^
Error:     /Applications/Xcode_14.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/resource.h:203:2: error: unknown type name 'uint64_t'
            uint64_t ri_user_time;
            ^
Error:     /Applications/Xcode_14.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/resource.h:204:2: error: unknown type name 'uint64_t'
            uint64_t ri_system_time;
            ^
Error:     /Applications/Xcode_14.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/resource.h:205:2: error: unknown type name 'uint64_t'
            uint64_t ri_pkg_idle_wkups;
            ^
Error:     /Applications/Xcode_14.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/resource.h:206:2: error: unknown type name 'uint64_t'
            uint64_t ri_interrupt_wkups;
            ^
Error:     /Applications/Xcode_14.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/resource.h:207:2: error: unknown type name 'uint64_t'
            uint64_t ri_pageins;
            ^
Error:     /Applications/Xcode_14.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/resource.h:208:2: error: unknown type name 'uint64_t'
            uint64_t ri_wired_size;
            ^
Error:     /Applications/Xcode_14.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/resource.h:209:2: error: unknown type name 'uint64_t'
            uint64_t ri_resident_size;
            ^
Error:     /Applications/Xcode_14.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/resource.h:210:2: error: unknown type name 'uint64_t'
            uint64_t ri_phys_footprint;
            ^
Error:     /Applications/Xcode_14.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/resource.h:211:2: error: unknown type name 'uint64_t'
            uint64_t ri_proc_start_abstime;
            ^
Error:     /Applications/Xcode_14.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/resource.h:212:2: error: unknown type name 'uint64_t'
            uint64_t ri_proc_exit_abstime;
            ^
Error:     /Applications/Xcode_14.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/resource.h:216:2: error: unknown type name 'uint8_t'
            uint8_t  ri_uuid[16];
            ^
Error:     /Applications/Xcode_14.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/resource.h:217:2: error: unknown type name 'uint64_t'
            uint64_t ri_user_time;
            ^
Error:     /Applications/Xcode_14.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/resource.h:218:2: error: unknown type name 'uint64_t'
            uint64_t ri_system_time;
            ^
Error:     /Applications/Xcode_14.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/resource.h:219:2: error: unknown type name 'uint64_t'
            uint64_t ri_pkg_idle_wkups;
            ^
Error:     /Applications/Xcode_14.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/resource.h:220:2: error: unknown type name 'uint64_t'
            uint64_t ri_interrupt_wkups;
            ^
Error:     /Applications/Xcode_14.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/resource.h:221:2: error: unknown type name 'uint64_t'
            uint64_t ri_pageins;
            ^
Error:     /Applications/Xcode_14.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/resource.h:222:2: error: unknown type name 'uint64_t'
            uint64_t ri_wired_size;
            ^
Error:     /Applications/Xcode_14.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/resource.h:223:2: error: unknown type name 'uint64_t'
            uint64_t ri_resident_size;
            ^
    fatal error: too many errors emitted, stopping now [-ferror-limit=]
    20 errors generated.

      [136](https://github.com/aminya/setup-cpp/actions/runs/3255107927/jobs/5344078514#step:9:137) |     const file = path.join(__dirname, "main.cpp")
      [137](https://github.com/aminya/setup-cpp/actions/runs/3255107927/jobs/5344078514#step:9:138) |     const main_exe = path.join(__dirname, addExeExt("main"))
    > [138](https://github.com/aminya/setup-cpp/actions/runs/3255107927/jobs/5344078514#step:9:139) |     execa.sync("clang++", [file, "-o", main_exe], { cwd: __dirname })
          |           ^
      [139](https://github.com/aminya/setup-cpp/actions/runs/3255107927/jobs/5344078514#step:9:140) |     if (process.platform !== "win32") {
      [140](https://github.com/aminya/setup-cpp/actions/runs/3255107927/jobs/5344078514#step:9:141) |       chmodSync(main_exe, "755")
      [141](https://github.com/aminya/setup-cpp/actions/runs/3255107927/jobs/5344078514#step:9:142) |     }

      at makeError (node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/error.js:60:11)
      at Function.Object.<anonymous>.module.exports.sync (node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js:[194](https://github.com/aminya/setup-cpp/actions/runs/3255107927/jobs/5344078514#step:9:195):17)
      at Object.<anonymous> (src/llvm/__tests__/llvm.test.ts:138:11)
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

Successfully merging a pull request may close this issue.

1 participant