pkgsrc-Bugs archive

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

pkg/53509: lang/rust fails to compile on NetBSD



>Number:         53509
>Category:       pkg
>Synopsis:       lang/rust fails to compile on NetBSD
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 10 20:15:00 +0000 2018
>Originator:     John Klos
>Release:        NetBSD 8.0
>Organization:
	
>Environment:
	
	
System: NetBSD dohee.nextvr.com 8.0_STABLE NetBSD 8.0_STABLE (DOHEE) #0: Tue Aug  7 22:48:23 UTC 2018  john%dohee.zia.io@localhost:/usr/obj-amd64/sys/arch/amd64/compile/DOHEE amd64
Architecture: amd64
Machine: amd64
>Description:
	
Trying to compile lang/rust on NetBSD 8.0 on amd64 with -j 1 fails:

   Compiling rustc-demangle v0.1.7
error: Could not compile `serde`.

Caused by:
  process didn't exit successfully: 
`/usr/pkgsrc/lang/rust/work/rustc-1.28.0-src/build/bootstrap/debug/rustc 
--crate-name serde vendor/serde/src/lib.rs --error-format json --crate-type lib 
--emit=dep-info,link -C opt-level=2 --cfg feature="default" --cfg feature="std" -C 
metadata=7f80a69c56d08dce -C extra-filename=-7f80a69c56d08dce --out-dir 
/usr/pkgsrc/lang/rust/work/rustc-1.28.0-src/build/x86_64-unknown-netbsd/stage0-tools/release/deps 
-L 
dependency=/usr/pkgsrc/lang/rust/work/rustc-1.28.0-src/build/x86_64-unknown-netbsd/stage0-tools/release/deps 
--cap-lints allow` (exit code: 1)
warning: build failed, waiting for other jobs to finish...
error: build failed
command did not execute successfully: 
"/usr/pkgsrc/lang/rust/work/rust-bootstrap/bin/cargo" "build" "--target" 
"x86_64-unknown-netbsd" "-j" "16" "--release" "--frozen" "--manifest-path" 
"/usr/pkgsrc/lang/rust/work/rustc-1.28.0-src/src/tools/rustbook/Cargo.toml" 
"--features" "" "--message-format" "json"
expected success, got: exit code: 101
Traceback (most recent call last):
  File "./x.py", line 20, in <module>
    bootstrap.main()
  File "/usr/pkgsrc/lang/rust/work/rustc-1.28.0-src/src/bootstrap/bootstrap.py", 
line 827, in main
    bootstrap(help_triggered)
  File "/usr/pkgsrc/lang/rust/work/rustc-1.28.0-src/src/bootstrap/bootstrap.py", 
line 818, in bootstrap
    run(args, env=env, verbose=build.verbose)
  File "/usr/pkgsrc/lang/rust/work/rustc-1.28.0-src/src/bootstrap/bootstrap.py", 
line 148, in run
    raise RuntimeError(err)
RuntimeError: failed to run: 
/usr/pkgsrc/lang/rust/work/rustc-1.28.0-src/build/bootstrap/debug/bootstrap -v dist
*** Error code 1


another failure with -j 2:

   Compiling mac v0.1.1
dead lock detected
error: Could not compile `unicode-xid`.

Caused by:
  process didn't exit successfully: 
`/usr/pkgsrc/lang/rust/work/rustc-1.28.0-src/build/bootstrap/debug/rustc 
--crate-name unicode_xid vendor/unicode-xid-0.0.4/src/lib.rs --error-format json 
--crate-type lib --emit=dep-info,link -C opt-level=2 --cfg feature="default" -C 
metadata=f6e76b9c253f655d -C extra-filename=-f6e76b9c253f655d --out-dir 
/usr/pkgsrc/lang/rust/work/rustc-1.28.0-src/build/x86_64-unknown-netbsd/stage0-tools/release/deps 
-L 
dependency=/usr/pkgsrc/lang/rust/work/rustc-1.28.0-src/build/x86_64-unknown-netbsd/stage0-tools/release/deps 
--cap-lints allow` (exit code: 1)
warning: build failed, waiting for other jobs to finish...
error: build failed
command did not execute successfully: 
"/usr/pkgsrc/lang/rust/work/rust-bootstrap/bin/cargo" "build" "--target" 
"x86_64-unknown-netbsd" "-j" "16" "--release" "--frozen" "--manifest-path" 
"/usr/pkgsrc/lang/rust/work/rustc-1.28.0-src/src/tools/rustbook/Cargo.toml" 
"--features" "" "--message-format" "json"
expected success, got: exit code: 101
Traceback (most recent call last):
  File "./x.py", line 20, in <module>
    bootstrap.main()
  File "/usr/pkgsrc/lang/rust/work/rustc-1.28.0-src/src/bootstrap/bootstrap.py", 
line 827, in main
    bootstrap(help_triggered)
  File "/usr/pkgsrc/lang/rust/work/rustc-1.28.0-src/src/bootstrap/bootstrap.py", 
line 818, in bootstrap
    run(args, env=env, verbose=build.verbose)
  File "/usr/pkgsrc/lang/rust/work/rustc-1.28.0-src/src/bootstrap/bootstrap.py", 
line 148, in run
    raise RuntimeError(err)
RuntimeError: failed to run: 
/usr/pkgsrc/lang/rust/work/rustc-1.28.0-src/build/bootstrap/debug/bootstrap -v dist
*** Error code 1



Also, it appears rust doesn't honor -j:

17281 root      25    0   309M  274M CPU/11     0:04 84.45% 18.70% cc1plus
23372 root      25    0   341M  301M CPU/1      0:04 83.13% 18.41% cc1plus
22403 root      25    0   304M  266M CPU/2      0:03 77.22% 14.01% cc1plus
18499 root      25    0   258M  231M RUN/13     0:03 71.04% 12.89% cc1plus
10935 root      25    0   278M  240M CPU/14     0:03 89.29% 12.45% cc1plus
  764 root      25    0   205M  177M RUN/9      0:02 94.30%  8.98% cc1plus
16233 root      25    0   196M  168M CPU/0      0:01 55.86%  5.32% cc1plus
14269 root      25    0   191M  154M CPU/8      0:01 86.00%  4.20% cc1plus
 8986 root      25    0   127M   83M CPU/5      0:00 23.00%  1.12% cc1plus
 4765 root      25    0   121M   80M CPU/15     0:00 20.00%  0.98% cc1plus
23925 root      25    0    98M   67M CPU/7      0:00 15.00%  0.73% cc1plus


 
>How-To-Repeat:
	
Try to compile rust.
>Fix:
	

>Unformatted:
 	
 	


Home | Main Index | Thread Index | Old Index