Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Sep 2018 22:17:10 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 231411] lang/rust: Fails to build
Message-ID:  <bug-231411-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D231411

            Bug ID: 231411
           Summary: lang/rust: Fails to build
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: rust@FreeBSD.org
          Reporter: rozhuk.im@gmail.com
             Flags: maintainer-feedback?(rust@FreeBSD.org)
          Assignee: rust@FreeBSD.org

...
   Compiling serde_json v1.0.24
error: failed to run custom build command for `libssh2-sys v0.2.8`
process didn't exit successfully:
`/tmp/ports/usr/ports/lang/rust/work/rustc-1.29.0-src/build/x86_64-unknown-=
freebsd/stage2-tools/release/build/libssh2-sys-2d66401c8012e623/build-scrip=
t-build`
(exit code: 101)
...
[ 40%] Building C object src/CMakeFiles/libssh2.dir/kex.c.o
gmake[4]: Leaving directory
'/tmp/ports/usr/ports/lang/rust/work/rustc-1.29.0-src/build/x86_64-unknown-=
freebsd/stage2-tools/x86_64-unknown-freebsd/release/build/libssh2-sys-149db=
94635ec1367/out/build'
gmake[3]: Leaving directory
'/tmp/ports/usr/ports/lang/rust/work/rustc-1.29.0-src/build/x86_64-unknown-=
freebsd/stage2-tools/x86_64-unknown-freebsd/release/build/libssh2-sys-149db=
94635ec1367/out/build'
gmake[2]: Leaving directory
'/tmp/ports/usr/ports/lang/rust/work/rustc-1.29.0-src/build/x86_64-unknown-=
freebsd/stage2-tools/x86_64-unknown-freebsd/release/build/libssh2-sys-149db=
94635ec1367/out/build'

--- stderr
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_CXX_COMPILER
    CMAKE_CXX_FLAGS


/tmp/ports/usr/ports/lang/rust/work/rustc-1.29.0-src/src/vendor/libssh2-sys=
/libssh2/src/hostkey.c:526:10:
error: use of undeclared identifier 'LIBSSH2_HOSTKEY_HASH_SHA256'
    case LIBSSH2_HOSTKEY_HASH_SHA256:
         ^
1 error generated.
gmake[4]: *** [src/CMakeFiles/libssh2.dir/build.make:141:
src/CMakeFiles/libssh2.dir/hostkey.c.o] Error 1
gmake[4]: *** Waiting for unfinished jobs....
/tmp/ports/usr/ports/lang/rust/work/rustc-1.29.0-src/src/vendor/libssh2-sys=
/libssh2/src/channel.c:2262:44:
error: use of undeclared identifier 'LIBSSH2_ERROR_CHANNEL_WINDOW_FULL'
            return _libssh2_error(session, LIBSSH2_ERROR_CHANNEL_WINDOW_FUL=
L,
                                           ^
1 error generated.
gmake[4]: *** [src/CMakeFiles/libssh2.dir/build.make:89:
src/CMakeFiles/libssh2.dir/channel.c.o] Error 1
...


grep -R "LIBSSH2_HOSTKEY_HASH_SHA256"
/tmp/ports/usr/ports/lang/rust/work/rustc-1.29.0-src/
/tmp/ports/usr/ports/lang/rust/work/rustc-1.29.0-src/src/vendor/libssh2-sys=
/libssh2/include/libssh2.h:#define
LIBSSH2_HOSTKEY_HASH_SHA256                         3


I have installed libssh2-1.8.0,3 and looks like rust include libssh2 .h file
from local base instead rust source.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-231411-7788>