Bug 277481 - lang/rust-1.76.0 and lang/rust-1.74.0 do not build on 13.2-STABLE
Summary: lang/rust-1.76.0 and lang/rust-1.74.0 do not build on 13.2-STABLE
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-04 18:59 UTC by Dave Hayes
Modified: 2024-03-04 21:58 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Hayes 2024-03-04 18:59:59 UTC
I used both 1.74.1 from Q12024 and 1.76.0 from HEAD. Both give me this:


[00:14:55] expected success, got: exit status: 101
[00:14:55] 
[00:14:55] stdout ----
[00:14:55] 
[00:14:55] stderr ----
[00:14:55] 
[00:14:55] 
[00:14:55] 
[00:14:55] Traceback (most recent call last):
[00:14:55]   File "/wrkdirs/usr/ports/lang/rust/work/rustc-1.76.0-src/x.py", line 50, in <module>
[00:14:55]     bootstrap.main()
[00:14:55]   File "/wrkdirs/usr/ports/lang/rust/work/rustc-1.76.0-src/src/bootstrap/bootstrap.py", line 1125, in main
[00:14:55]     bootstrap(args)
[00:14:55]   File "/wrkdirs/usr/ports/lang/rust/work/rustc-1.76.0-src/src/bootstrap/bootstrap.py", line 1101, in bootstrap
[00:14:55]     run(args, env=env, verbose=build.verbose, is_bootstrap=True)
[00:14:55]   File "/wrkdirs/usr/ports/lang/rust/work/rustc-1.76.0-src/src/bootstrap/bootstrap.py", line 187, in run
[00:14:55]     raise RuntimeError(err)
[00:14:55] RuntimeError: failed to run: /wrkdirs/usr/ports/lang/rust/work/_build/bootstrap/debug/bootstrap dist --jobs=32

modulo versions and line numbers (same stack trace otherwise). 

Am I doing something wrong here? Why is jobs = 32? Can I turn that down a bit?
Comment 1 Dave Hayes 2024-03-04 19:05:03 UTC
An interesting datapoint, when I turn PORT_LLVM on just to see what happens, I get this from poudriere:

[00:00:07] Error: Dependency loop detected:
These packages depend on each other: py39-openssl-23.2.0,1 py39-cryptography-41.0.7_1,1 rust-1.76.0 llvm16-16.0.6_9 py39-recommonmark-0.5.0_2 py39-sphinx-5.3.0_1,1 py39-requests-2.31.0 py39-urllib3-1.26.18,1
Comment 2 Tatsuki Makino 2024-03-04 21:47:25 UTC
I presume from the format of the logs that it is building in poudriere.
poudriere can fix the number of jobs by writing the following in /usr/local/etc/poudriere.d/make.conf.

MAKE_JOBS_NUMBER= 4 # example

Although the number of parallel runs is reduced, it is faster than when ALLOW_MAKE_JOBS is not used.

Bootstrapping runs binaries that have already been compiled by others.
Therefore, compatibility with the machine on which it is run may occur.
1.76.0 is no longer run on 12.x-STABLE amd64.
We need more version and architecture information to see if this is a compatibility issue.
Comment 3 Dave Hayes 2024-03-04 21:57:17 UTC
(In reply to Tatsuki Makino from comment #2)

So yes I am building in poudriere. I'm assuming from your comment that PARALLEL_JOBS in poudriere has nothing to do with MAKE_JOBS_NUMBER. I have PARALLEL_JOBS set to 8 regardless, so I am to presume that MAKE_JOBS_NUMBER defaults to 32?

FreeBSD 13.2-STABLE stable/13-c2c7340fef is my OS "fingerprint".
Comment 4 Dave Hayes 2024-03-04 21:58:00 UTC
(In reply to Dave Hayes from comment #3)
Oh yeah, this is amd64.