Skip to content

Commit 686c660

Browse files
committed
Makefile: do not compile Rust projects with old toolchain
On Alpine 3.17 (Rust 1.64.0): error[E0658]: use of unstable library feature 'mixed_integer_ops' --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/unicode-width-0.1.14/src/tables.rs:407:22 | 407 | (sum.wrapping_add_signed(isize::from(add)), info) | ^^^^^^^^^^^^^^^^^^^ | = note: see issue #87840 <rust-lang/rust#87840> for more information error[E0658]: use of unstable library feature 'mixed_integer_ops' --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/unicode-width-0.1.14/src/tables.rs:702:22 | 702 | (sum.wrapping_add_signed(isize::from(add)), info) | ^^^^^^^^^^^^^^^^^^^ | = note: see issue #87840 <rust-lang/rust#87840> for more information For more information about this error, try `rustc --explain E0658`. error: could not compile `unicode-width` due to 2 previous errors warning: build failed, waiting for other jobs to finish... make[1]: *** [../rust-makefile.mk:5: all] Error 101 make: *** [Makefile:180: test] Error 2 Feature mixed_integer_ops was stabilized in Rustc 1.66.0. Crate unicode-width is actually used by all Rust projects in this repository.
1 parent a6bf854 commit 686c660

5 files changed

+23
-23
lines changed

Makefile

+16-16
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ endif
8686
# Test rust/cargo availability
8787
ifneq ($(call can-run,$(CARGO) --version),y)
8888
SUBDIRS_BLACKLIST += rust%
89-
else ifeq ($(call can-run,$(RUSTC) --version | grep '^rustc 1\.\(3[0-9]\|4[0-9]\|5[0-9]\|6[0-1]\)\.'),y)
89+
else ifeq ($(call can-run,$(RUSTC) --version | grep '^rustc 1\.\(3[0-9]\|4[0-9]\|5[0-9]\|6[0-5]\)\.'),y)
9090
# Old versions of rustc (<=1.39) fail to build subtle-2.3.0 because:
9191
# error[E0210]: type parameter `T` must be used as the type parameter for some
9292
# local type (e.g., `MyStruct<T>`)
@@ -103,35 +103,35 @@ else ifeq ($(call can-run,$(RUSTC) --version | grep '^rustc 1\.\(3[0-9]\|4[0-9]\
103103
# Old versions of rustc (<=1.44) fail to build clap-2.33.3 because:
104104
# error[E0723]: loops and conditional expressions are not stable in const fn
105105
# note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
106+
# Old versions of cargo (<=1.47) fail to build rug-1.19.0 because:
107+
# failed to parse manifest at .../.cargo/registry/src/github.com-1ecc6299db9ec823/rug-1.19.0/Cargo.toml
108+
# failed to parse the `edition` key
109+
# this version of Cargo is older than the `2021` edition, and only supports `2015` and `2018` editions.
106110
# Old versions of rustc (<=1.52) fail to build byteorder-1.5.0 because:
107111
# this version of Cargo is older than the `2021` edition, and only supports `2015` and `2018` editions.
108-
# Old versions of rustc (<=1.59) fail to build byteorder-1.5.0 because:
109-
# error: package `byteorder v1.5.0` cannot be built because it requires rustc 1.60 or newer, while the currently active rustc version is 1.56.1
110-
# Old versions of rustc (<=1.61) fail to build unicode-width-0.1.13 because:
111-
# error[E0658]: deriving `Default` on enums is experimental
112-
# note: see issue #86985 <https://github.com/rust-lang/rust/issues/86985> for more information
113-
# note: this error originates in the derive macro `Default` (in Nightly builds, run with -Z macro-backtrace for more info)
114-
SUBDIRS_BLACKLIST += rust/asymkeyfind% rust/check_linux_pass% rust/download_web%
115-
else ifeq ($(call can-run,$(RUSTC) --version | grep '^rustc 1\.\(6[1-4]\)\.'),y)
116112
# Old versions of rustc (<=1.52) fail to build libz-sys-1.1.8 because:
117113
# error[E0658]: arbitrary expressions in key-value attributes are unstable
118114
# note: see issue #78835 <https://github.com/rust-lang/rust/issues/78835> for more information
115+
# Old versions of rustc (<=1.59) fail to build byteorder-1.5.0 because:
116+
# error: package `byteorder v1.5.0` cannot be built because it requires rustc 1.60 or newer, while the currently active rustc version is 1.56.1
119117
# Old versions of rustc (<=1.60) fail to build log-0.4.19 because:
120118
# error: package `log v0.4.19` cannot be built because it requires rustc 1.60.0 or newer
121-
# Old versions of rustc (<=1.61) fail to build `memchr-v2.6.3 because:
119+
# Old versions of rustc (<=1.60) fail to build `memchr-v2.6.3 because:
122120
# error: package `memchr v2.6.3` cannot be built because it requires rustc 1.61 or newer, while the currently active
123-
# rustc version is 1.60.0
124-
# Old versions of cargo (<=1.47) fail to build rug-1.19.0 because:
125-
# failed to parse manifest at .../.cargo/registry/src/github.com-1ecc6299db9ec823/rug-1.19.0/Cargo.toml
126-
# failed to parse the `edition` key
127-
# this version of Cargo is older than the `2021` edition, and only supports `2015` and `2018` editions.
121+
# Old versions of rustc (<=1.61) fail to build unicode-width-0.1.13 because:
122+
# error[E0658]: deriving `Default` on enums is experimental
123+
# note: see issue #86985 <https://github.com/rust-lang/rust/issues/86985> for more information
124+
# note: this error originates in the derive macro `Default` (in Nightly builds, run with -Z macro-backtrace for more info)
128125
# Old versions of cargo (<=1.64) fail to build rug-1.19.0 because:
129126
# error: package `rug v1.19.0` cannot be built because it requires rustc 1.65 or newer, while the currently active
130127
# rustc version is 1.61.0
131128
# Old versions of cargo (<=1.64) fail to build addr2line-v0.21.0` because:
132129
# error: package `addr2line v0.21.0` cannot be built because it requires rustc 1.65 or newer, while the currently
133130
# active rustc version is 1.63.0
134-
SUBDIRS_BLACKLIST += rust/asymkeyfind% rust/download_web%
131+
# Old versions of rustc (<=1.65) fail to build unicode-width-0.1.14 because:
132+
# error[E0658]: use of unstable library feature 'mixed_integer_ops'
133+
# note: see issue #87840 <https://github.com/rust-lang/rust/issues/87840> for more information
134+
SUBDIRS_BLACKLIST += rust/asymkeyfind% rust/check_linux_pass% rust/download_web%
135135
endif
136136

137137
# Show "SUBDIR ..." only if -w and -s and V=1 are not given, and then add

machines/Dockerfile-alpine3.17

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ COPY . /shared/
5151
CMD ["/run_shared_test.sh"]
5252

5353
# make list-nobuild:
54-
# Global blacklist: latex% rust/asymkeyfind% rust/download_web%
54+
# Global blacklist: latex% rust/asymkeyfind% rust/check_linux_pass% rust/download_web%
5555
# In sub-directories:
5656
# c: x86-read_64b_regs_in_32b_mode
5757
# glossaries:

machines/Dockerfile-debian12-bookworm

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ COPY . /shared/
6363
CMD ["/run_shared_test.sh"]
6464

6565
# make list-nobuild:
66-
# Global blacklist: latex% rust/asymkeyfind% rust/download_web%
66+
# Global blacklist: latex% rust/asymkeyfind% rust/check_linux_pass% rust/download_web%
6767
# In sub-directories:
6868
# c:
6969
# glossaries:
@@ -78,7 +78,7 @@ CMD ["/run_shared_test.sh"]
7878
# rust:
7979
# verification:
8080
# With gcc -m32:
81-
# Global blacklist: latex% rust/asymkeyfind% rust/download_web%
81+
# Global blacklist: latex% rust/asymkeyfind% rust/check_linux_pass% rust/download_web%
8282
# In sub-directories:
8383
# c: gmp_functions gtk_alpha_window
8484
# glossaries:

machines/Dockerfile-fedora35

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ COPY . /shared/
6161
CMD ["xvfb-run", "/run_shared_test.sh"]
6262

6363
# make list-nobuild:
64-
# Global blacklist: latex%
64+
# Global blacklist: latex% rust/asymkeyfind% rust/check_linux_pass% rust/download_web%
6565
# In sub-directories:
6666
# c:
6767
# glossaries:
@@ -76,7 +76,7 @@ CMD ["xvfb-run", "/run_shared_test.sh"]
7676
# rust:
7777
# verification:
7878
# With gcc -m32:
79-
# Global blacklist: latex%
79+
# Global blacklist: latex% rust/asymkeyfind% rust/check_linux_pass% rust/download_web%
8080
# In sub-directories:
8181
# c: gtk_alpha_window
8282
# glossaries:

machines/Dockerfile-ubuntu1804-bionic

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ COPY . /shared/
6464
CMD ["/run_shared_test.sh"]
6565

6666
# make list-nobuild:
67-
# Global blacklist: latex%
67+
# Global blacklist: latex% rust/asymkeyfind% rust/check_linux_pass% rust/download_web%
6868
# In sub-directories:
6969
# c:
7070
# glossaries:
@@ -79,7 +79,7 @@ CMD ["/run_shared_test.sh"]
7979
# rust:
8080
# verification:
8181
# With gcc -m32:
82-
# Global blacklist: latex%
82+
# Global blacklist: latex% rust/asymkeyfind% rust/check_linux_pass% rust/download_web%
8383
# In sub-directories:
8484
# c: gmp_functions gtk_alpha_window
8585
# glossaries:

0 commit comments

Comments
 (0)