#10240: rustc-1.23.0-src
-------------------------+-----------------------
 Reporter:  ken@…        |       Owner:  ken@…
     Type:  enhancement  |      Status:  assigned
 Priority:  normal       |   Milestone:  8.2
Component:  BOOK         |     Version:  SVN
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+-----------------------

Comment (by ken@…):

 Still failed to DESTDIR as root, and the attempt took over 20 minutes
 (less than 7 minutes for a user DESTDIR install).
 {{{
    Compiling error-chain v0.11.0
 error: could not find native static library `ssh2`, perhaps an -L flag is
 missing?

 error: Could not compile `libssh2-sys`.
 }}}

 That had only installed 329MB (of 426 MB). In a full reinstall (built,
 tested, and installed as root) that error-chain gets compiled while
 install is building stage2 cargo.

 Repeating, same result.  Added RUST_BACKTRACE=1 and eventually found the
 following some way before the failure:

 {{{
 -- Checking for module 'libcurl'
 --   Found libcurl, version 7.57.0
 -- Found OpenSSL: /usr/lib/libcrypto.so (found version "1.1.0g")
 -- Could NOT find HTTP_Parser (missing: HTTP_PARSER_INCLUDE_DIR
 HTTP_PARSER_LIBRARY)
 -- http-parser version 2 was not found; using bundled 3rd-party sources.
 -- Found ZLIB: /usr/lib/libz.so (found version "1.2.11")
 -- Checking for module 'libssh2'
 --   No package 'libssh2' found
 -- LIBSSH2 not found. Set CMAKE_PREFIX_PATH if it is installed outside of
 the default search path.
 }}}

 I guess libssh2 is [https://github.com/libssh2/libssh2/releases] but no
 idea why it suddenly want it.

 At this point both my user and root each have 237 MB of files in their
 ~/.cargo directories. Which means that building as a user and then
 installing as root causes root to waste time downloading the same cargo
 files. <sigh/>

 I know that building as root (which is what I normally do) successfully
 installs without that extra lib, and building as a user successfully runs
 a DESTDIR.

 From there, trying to do a REAL install fails similarly - I'm now
 rebuilding rust as root to ensure nothing got installed in an incomplete
 state.

 I think I'm going to say that people can build *as root* to save time and
 space, OR build as a user and do a DESTDIR install.  Building as a user
 but installing as root will significantly extend the build while root
 downloads all the cargo files which the user has already downloaded, and
 rebuilds them.

 If root tries to run a DESTDIR install, extra package(s) will be required.

 This sucks rocks.

--
Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/10240#comment:6>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to