[Bug 254442] lang/rust 1.50.0 fails to build on 12.2-RELEASE

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Mar 20 20:20:27 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254442

            Bug ID: 254442
           Summary: lang/rust 1.50.0 fails to build on 12.2-RELEASE
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: rust at FreeBSD.org
          Reporter: freebsd at sysctl.cz
             Flags: maintainer-feedback?(rust at FreeBSD.org)
          Assignee: rust at FreeBSD.org

Hi,
i have issue with compilation lang/rust
Building LLVM for x86_64-unknown-freebsd
running: "cmake"
"/usr/ports/lang/rust/work/rustc-1.50.0-src/src/llvm-project/llvm" "-G" "Ninja"
"-DLLVM_ENABLE_ASSERTIONS=OFF"
"-DLLVM_TARGETS_TO_BUILD=AArch64;ARM;Hexagon;MSP430;Mips;NVPTX;PowerPC;RISCV;Sparc;SystemZ;WebAssembly;X86"
"-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=AVR" "-DLLVM_INCLUDE_EXAMPLES=OFF"
"-DLLVM_INCLUDE_TESTS=OFF" "-DLLVM_INCLUDE_DOCS=OFF"
"-DLLVM_INCLUDE_BENCHMARKS=OFF" "-DLLVM_ENABLE_TERMINFO=OFF"
"-DLLVM_ENABLE_LIBEDIT=OFF" "-DLLVM_ENABLE_BINDINGS=OFF"
"-DLLVM_ENABLE_Z3_SOLVER=OFF" "-DLLVM_PARALLEL_COMPILE_JOBS=8"
"-DLLVM_TARGET_ARCH=x86_64"
"-DLLVM_DEFAULT_TARGET_TRIPLE=x86_64-unknown-freebsd" "-DLLVM_ENABLE_ZLIB=ON"
"-DLLVM_ENABLE_LIBXML2=OFF" "-DLLVM_VERSION_SUFFIX=-rust-1.50.0-stable"
"-DCMAKE_INSTALL_MESSAGE=LAZY" "-DCMAKE_C_COMPILER=clang"
"-DCMAKE_CXX_COMPILER=clang++" "-DCMAKE_ASM_COMPILER=clang"
"-DCMAKE_C_FLAGS=-ffunction-sections -fdata-sections -fPIC
--target=x86_64-unknown-freebsd -pipe -fstack-protector-strong
-fno-strict-aliasing" "-DCMAKE_CXX_FLAGS=-ffunction-sections -fdata-sections
-fPIC --target=x86_64-unknown-freebsd -pipe -fstack-protector-strong
-fno-strict-aliasing"
"-DCMAKE_INSTALL_PREFIX=/usr/ports/lang/rust/work/rustc-1.50.0-src/build/x86_64-unknown-freebsd/llvm"
"-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64 -pipe
-fstack-protector-strong -fno-strict-aliasing" "-DCMAKE_BUILD_TYPE=Release"
-- The CXX compiler identification is Clang 10.0.1
-- The ASM compiler identification is Clang
-- Found assembler: /usr/bin/clang
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ - broken
CMake Error at /usr/local/share/cmake/Modules/CMakeTestCXXCompiler.cmake:59
(message):
  The C++ compiler

    "/usr/bin/clang++"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir:
/usr/ports/lang/rust/work/rustc-1.50.0-src/build/x86_64-unknown-freebsd/llvm/build/CMakeFiles/CMakeTmp

    Run Build Command(s):/usr/local/bin/ninja cmTC_fa9d4 && [1/2] Building CXX
object CMakeFiles/cmTC_fa9d4.dir/testCXXCompiler.cxx.o
    [2/2] Linking CXX executable cmTC_fa9d4
    FAILED: cmTC_fa9d4 
    : && /usr/bin/clang++ -ffunction-sections -fdata-sections -fPIC
--target=x86_64-unknown-freebsd -pipe -fstack-protector-strong
-fno-strict-aliasing -fstack-protector-strong
CMakeFiles/cmTC_fa9d4.dir/testCXXCompiler.cxx.o -o cmTC_fa9d4   && :
    ld: error: unable to find library -lstdc++
    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:57 (project)


-- Configuring incomplete, errors occurred!
See also
"/usr/ports/lang/rust/work/rustc-1.50.0-src/build/x86_64-unknown-freebsd/llvm/build/CMakeFiles/CMakeOutput.log".
See also
"/usr/ports/lang/rust/work/rustc-1.50.0-src/build/x86_64-unknown-freebsd/llvm/build/CMakeFiles/CMakeError.log".
thread 'main' panicked at '
command did not execute successfully, got: exit code: 1

build script failed, must exit now',
/usr/ports/lang/rust/work/rustc-1.50.0-src/vendor/cmake/src/lib.rs:885:5
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose
backtrace.
        finished in 0.287 seconds
Traceback (most recent call last):
  File "x.py", line 11, in <module>
    bootstrap.main()
  File "/usr/ports/lang/rust/work/rustc-1.50.0-src/src/bootstrap/bootstrap.py",
line 1094, in main
    bootstrap(help_triggered)
  File "/usr/ports/lang/rust/work/rustc-1.50.0-src/src/bootstrap/bootstrap.py",
line 1080, in bootstrap
    run(args, env=env, verbose=build.verbose)
  File "/usr/ports/lang/rust/work/rustc-1.50.0-src/src/bootstrap/bootstrap.py",
line 153, in run
    raise RuntimeError(err)
RuntimeError: failed to run:
/usr/ports/lang/rust/work/rustc-1.50.0-src/build/bootstrap/debug/bootstrap
build --jobs=8
*** Error code 1

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list