You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rustc-1.72.1 does not build against llvm-17.0.1. I just installed llvm-17 on my x86_64-apple-darwin system, and tried to build rustc using the tarball release. It fails during:
Building compiler artifacts (stage0 -> stage1, x86_64-apple-darwin)
The following warnings were emitted during compilation:
warning: llvm-wrapper/PassWrapper.cpp:668:14: error: no matching constructor for initialization of 'PGOOptions'
warning: 668 | PGOOpt = PGOOptions(PGOGenPath, "", "",
warning: | ^ ~~~~~~~~~~~~~~~~~~~
warning: 669 | #if LLVM_VERSION_GE(17, 0)
warning: | ~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: 670 | FS,
warning: | ~~~
warning: 671 | #endif
warning: | ~~~~~~
warning: 672 | PGOOptions::IRInstr, PGOOptions::NoCSAction,
warning: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: 673 | DebugInfoForProfiling);
warning: | ~~~~~~~~~~~~~~~~~~~~~
warning: /usr/local/include/llvm/Support/PGOOptions.h:30:3: note: candidate constructor not viable: no known conversion from 'IntrusiveRefCntPtr<FileSystem>' to 'std::string' (aka 'basic_string<char>') for 4th argument
warning: 31 | PGOOptions(std::string ProfileFile, std::string CSProfileGenFile,
warning: | ^
warning: 32 | std::string ProfileRemappingFile, std::string MemoryProfile,
warning: | ~~~~~~~~~~~~~~~~~~~~~~~~~
warning: /usr/local/include/llvm/Support/PGOOptions.h:36:3: note: candidate constructor not viable: requires 1 argument, but 7 were provided
warning: 36 | PGOOptions(const PGOOptions &);
warning: | ^ ~~~~~~~~~~~~~~~~~~
warning: llvm-wrapper/PassWrapper.cpp:676:14: error: no matching constructor for initialization of 'PGOOptions'
warning: 676 | PGOOpt = PGOOptions(PGOUsePath, "", "",
warning: | ^ ~~~~~~~~~~~~~~~~~~~
warning: 677 | #if LLVM_VERSION_GE(17, 0)
warning: | ~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: 678 | FS,
warning: | ~~~
warning: 679 | #endif
warning: | ~~~~~~
warning: 680 | PGOOptions::IRUse, PGOOptions::NoCSAction,
warning: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: 681 | DebugInfoForProfiling);
warning: | ~~~~~~~~~~~~~~~~~~~~~
warning: /usr/local/include/llvm/Support/PGOOptions.h:30:3: note: candidate constructor not viable: no known conversion from 'IntrusiveRefCntPtr<FileSystem>' to 'std::string' (aka 'basic_string<char>') for 4th argument
warning: 31 | PGOOptions(std::string ProfileFile, std::string CSProfileGenFile,
warning: | ^
warning: 32 | std::string ProfileRemappingFile, std::string MemoryProfile,
warning: | ~~~~~~~~~~~~~~~~~~~~~~~~~
warning: /usr/local/include/llvm/Support/PGOOptions.h:36:3: note: candidate constructor not viable: requires 1 argument, but 7 were provided
warning: 36 | PGOOptions(const PGOOptions &);
warning: | ^ ~~~~~~~~~~~~~~~~~~
warning: llvm-wrapper/PassWrapper.cpp:683:14: error: no matching constructor for initialization of 'PGOOptions'
warning: 683 | PGOOpt = PGOOptions(PGOSampleUsePath, "", "",
warning: | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~
warning: 684 | #if LLVM_VERSION_GE(17, 0)
warning: | ~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: 685 | FS,
warning: | ~~~
warning: 686 | #endif
warning: | ~~~~~~
warning: 687 | PGOOptions::SampleUse, PGOOptions::NoCSAction,
warning: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: 688 | DebugInfoForProfiling);
warning: | ~~~~~~~~~~~~~~~~~~~~~
warning: /usr/local/include/llvm/Support/PGOOptions.h:30:3: note: candidate constructor not viable: no known conversion from 'IntrusiveRefCntPtr<FileSystem>' to 'std::string' (aka 'basic_string<char>') for 4th argument
warning: 31 | PGOOptions(std::string ProfileFile, std::string CSProfileGenFile,
warning: | ^
warning: 32 | std::string ProfileRemappingFile, std::string MemoryProfile,
warning: | ~~~~~~~~~~~~~~~~~~~~~~~~~
warning: /usr/local/include/llvm/Support/PGOOptions.h:36:3: note: candidate constructor not viable: requires 1 argument, but 7 were provided
warning: 36 | PGOOptions(const PGOOptions &);
warning: | ^ ~~~~~~~~~~~~~~~~~~
warning: llvm-wrapper/PassWrapper.cpp:690:14: error: no matching constructor for initialization of 'PGOOptions'
warning: 690 | PGOOpt = PGOOptions("", "", "",
warning: | ^ ~~~~~~~~~~~
warning: 691 | #if LLVM_VERSION_GE(17, 0)
warning: | ~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: 692 | FS,
warning: | ~~~
warning: 693 | #endif
warning: | ~~~~~~
warning: 694 | PGOOptions::NoAction, PGOOptions::NoCSAction,
warning: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: 695 | DebugInfoForProfiling);
warning: | ~~~~~~~~~~~~~~~~~~~~~
warning: /usr/local/include/llvm/Support/PGOOptions.h:30:3: note: candidate constructor not viable: no known conversion from 'IntrusiveRefCntPtr<FileSystem>' to 'std::string' (aka 'basic_string<char>') for 4th argument
warning: 31 | PGOOptions(std::string ProfileFile, std::string CSProfileGenFile,
warning: | ^
warning: 32 | std::string ProfileRemappingFile, std::string MemoryProfile,
warning: | ~~~~~~~~~~~~~~~~~~~~~~~~~
warning: /usr/local/include/llvm/Support/PGOOptions.h:36:3: note: candidate constructor not viable: requires 1 argument, but 7 were provided
warning: 36 | PGOOptions(const PGOOptions &);
warning: | ^ ~~~~~~~~~~~~~~~~~~
warning: 4 errors generated.
error: failed to run custom build command for `rustc_llvm v0.0.0 (/tera/tera/debo/Projects/rustc/rustc-1.72.1-src/compiler/rustc_llvm)`
Caused by:
process didn't exit successfully: `/tera/tera/debo/Projects/rustc/rustc-1.72.1-src/build/x86_64-apple-darwin/stage0-rustc/release/build/rustc_llvm-4a091f77a713dfda/build-script-build` (exit status: 1)
--- stdout
rustc-1.72.1 does not build against llvm-17.0.1. I just installed llvm-17 on my x86_64-apple-darwin system, and tried to build rustc using the tarball release. It fails during:
Is this a known issue, that llvm-17 and rustc-1.72.1 are not compatible?
The text was updated successfully, but these errors were encountered: