pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/52758: Make install in pkgsrc/lang/rust fails with a LLVM version problem



>Number:         52758
>Category:       pkg
>Synopsis:       Make install in pkgsrc/lang/rust fails with a LLVM version problem
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 24 11:50:00 +0000 2017
>Originator:     Mik
>Release:        lang/rust pkgsrc-2016Q4 (branch: 1.5.2)
>Organization:
>Environment:
NetBSD dk17 7.0.2 NetBSD 7.0.2 (GENERIC.201610210724Z) amd64
>Description:
the package lang/rust build fails with this error:

error: bad LLVM version: 3.9.0, need >=3.7

yet, I have LLVM 3.9.0 installed on my system.

How can I deal with that ? I tried to build LLVM again but with same error in rust build time.

here the complete log:

12:29:37 # make install
=> Bootstrap dependency digest>=20010302: found digest-20160304
=> Checksum SHA1 OK for rust-1.10.0-x86_64-unknown-netbsd.tar.gz
=> Checksum RMD160 OK for rust-1.10.0-x86_64-unknown-netbsd.tar.gz
=> Checksum SHA512 OK for rust-1.10.0-x86_64-unknown-netbsd.tar.gz
=> Checksum SHA1 OK for rustc-1.11.0-src.tar.gz
=> Checksum RMD160 OK for rustc-1.11.0-src.tar.gz
=> Checksum SHA512 OK for rustc-1.11.0-src.tar.gz
===> Installing dependencies for rust-1.11.0nb1
==========================================================================
The following variables will affect the build process of this package,
rust-1.11.0nb1.  Their current value is shown below:

        * PYTHON_VERSION_DEFAULT = 27

Based on these variables, the following variables have been set:

        * PYPACKAGE = python27

You may want to abort the process now with CTRL-C and change their value
before continuing.  Be sure to run `/usr/bin/make clean' after
the changes.
==========================================================================
=> Tool dependency bash-[0-9]*: found bash-4.4.011
=> Tool dependency gmake>=3.81: found gmake-4.1nb3
=> Build dependency cmake>=2.8.5nb1: found cmake-3.7.1nb3
=> Build dependency cwrappers>=20150314: found cwrappers-20161125
=> Full dependency llvm>=3.9.0: found llvm-3.9.0
=> Full dependency python27>=2.7.1nb2: found python27-2.7.12nb4
===> Overriding tools for rust-1.11.0nb1
===> Extracting for rust-1.11.0nb1
===> Patching for rust-1.11.0nb1
=> Applying pkgsrc patches for rust-1.11.0nb1
===> Creating toolchain wrappers for rust-1.11.0nb1
===> Configuring for rust-1.11.0nb1
=> Replacing bash interpreter in src/rust-installer/gen-install-script.sh src/rust-installer/gen-installer.sh.
configure: looking for configure programs
configure: found program 'cmp'
configure: found program 'mkdir'
configure: found program 'printf'
configure: found program 'cut'
configure: found program 'head'
configure: found program 'grep'
configure: found program 'xargs'
configure: found program 'cp'
configure: found program 'find'
configure: found program 'uname'
configure: found program 'date'
configure: found program 'tr'
configure: found program 'sed'
configure: found program 'file'
configure: found program 'make'
configure: inspecting environment
configure: recreating config.tmp
configure: 
configure: processing ./configure args
configure: 
configure: CFG_DISABLE_DOCS     := 1 
configure: CFG_ENABLE_LOCAL_RUST := 1 
configure: CFG_LOCALSTATEDIR    := /var/lib 
configure: CFG_SYSCONFDIR       := /etc 
configure: CFG_DATADIR          := /share 
configure: CFG_INFODIR          := /share/info 
configure: CFG_LLVM_ROOT        := /usr/pkg 
configure: CFG_PYTHON           :=  
configure: CFG_JEMALLOC_ROOT    :=  
configure: CFG_BUILD            := x86_64-unknown-netbsd 
configure: CFG_ANDROID_CROSS_PATH :=  
configure: CFG_I686_LINUX_ANDROID_NDK :=  
configure: CFG_ARM_LINUX_ANDROIDEABI_NDK :=  
configure: CFG_ARMV7_LINUX_ANDROIDEABI_NDK :=  
configure: CFG_AARCH64_LINUX_ANDROID_NDK :=  
configure: CFG_NACL_CROSS_PATH  :=  
configure: CFG_RELEASE_CHANNEL  := stable 
configure: CFG_MUSL_ROOT        := /usr/local 
configure: CFG_EXTRA_FILENAME   :=  
configure: CFG_DEFAULT_LINKER   := cc 
configure: CFG_DEFAULT_AR       := ar 
configure: CFG_LIBDIR           := /usr/pkg/lib 
configure: 
configure: validating ./configure args
configure: 
configure: 
configure: looking for build programs
configure: 
configure: CFG_CURL             := /usr/pkg/bin/curl (7.52.1)
configure: CFG_PYTHON           := /usr/pkg/bin/python2.7 
configure: CFG_GIT              := /usr/pkg/bin/git (2.11.0)
configure: git: no git directory. disabling submodules
configure: CFG_MD5              := /usr/bin/md5 
configure: CFG_MD5SUM           :=  
configure: CFG_HASH_COMMAND     := /usr/bin/md5 -q | cut -c 1-8 
configure: CFG_CLANG            := /usr/pkgsrc/lang/rust/work/.cwrappe ...
configure: CFG_CCACHE           :=  
configure: CFG_GCC              := /usr/pkgsrc/lang/rust/work/.cwrappe ...
configure: CFG_LD               := /usr/pkgsrc/lang/rust/work/.cwrappe ...
configure: CFG_VALGRIND         :=  
configure: CFG_PERF             :=  
configure: CFG_ISCC             :=  
configure: CFG_ANTLR4           :=  
configure: CFG_GRUN             :=  
configure: CFG_FLEX             := /usr/bin/flex (2.5.39)
configure: CFG_BISON            := /usr/pkg/bin/bison (3.0.4)
configure: CFG_GDB              := /usr/bin/gdb (7.7.1)
configure: CFG_LLDB             :=  
configure: CFG_CMAKE            := /usr/pkg/bin/cmake (3.7.1)
configure: CFG_DISABLE_VALGRIND_RPASS := 1 
configure: CFG_GDB_VERSION      := GNU gdb (GDB) 7.7.1 
configure: CFG_LLDB_PYTHON      := /usr/pkg/bin/python2.7 
configure: 
configure: looking for target specific programs
configure: 
configure: CFG_ADB              :=  
configure: 
configure: using rustc at: /usr/pkgsrc/lang/rust/work/rust-1.10.0-x86_64-unknown-netbsd/rustc with version: rustc 1.10.0 (cfcb716cf 2016-07-03)
configure: 
configure: CFG_LOCAL_RUST_ROOT  := /usr/pkgsrc/lang/rust/work/rust-1.1 ...
configure: CFG_DISABLE_JEMALLOC := 1 
configure: 
configure: using custom LLVM at /usr/pkg
configure: 
configure: error: bad LLVM version: 3.9.0, need >=3.7
*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/lang/rust
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/lang/rust
12:30:40 #
>How-To-Repeat:
cd /usr/pkgsrc/lang/rust
make install
>Fix:


Home | Main Index | Thread Index | Old Index