Skip to content

Commit 4119d4c

Browse files
committed
Makefile: do not compile rust/download_web with old toolchain
object crate beacume incompatible with Debian 10 toolchain (rust 1.41): error[E0658]: subslice patterns are unstable --> /root/.cargo/registry/src/gb.xjqchip.workers.dev-1ecc6299db9ec823/object-0.23.0/src/read/mod.rs:162:41 | 162 | [0x7f, b'E', b'L', b'F', 1, ..] => FileKind::Elf32, | ^^ | = note: for more information, see rust-lang/rust#62254
1 parent 0b68f5e commit 4119d4c

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

Makefile

+6-1
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,16 @@ else
9696
# For more information about this error, try `rustc --explain E0210`.
9797
# Old versions of rustc (<=1.39) fail to build curl-0.4.34 because:
9898
# error[E0658]: the `#[non_exhaustive]` attribute is an experimental feature
99-
# ote: for more information, see https://github.com/rust-lang/rust/issues/44109
99+
# note: for more information, see https://github.com/rust-lang/rust/issues/44109
100+
# Old versions of rustc (<=1.42) fail to build object-0.23.0 because:
101+
# error[E0658]: subslice patterns are unstable
102+
# note: for more information, see https://github.com/rust-lang/rust/issues/62254
100103
ifeq ($(call can-run,$(RUSTC) --version | grep '^rustc 1\.\(3[0-4]\)\.'),y)
101104
SUBDIRS_BLACKLIST += rust/asymkeyfind% rust/check_linux_pass% rust/download_web%
102105
else ifeq ($(call can-run,$(RUSTC) --version | grep '^rustc 1\.\(3[0-9]\)\.'),y)
103106
SUBDIRS_BLACKLIST += rust/check_linux_pass% rust/download_web%
107+
else ifeq ($(call can-run,$(RUSTC) --version | grep '^rustc 1\.\(4[0-1]\)\.'),y)
108+
SUBDIRS_BLACKLIST += rust/download_web%
104109
endif
105110
endif
106111

machines/Dockerfile-alpine3.12

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

5252
# make list-nobuild:
53-
# Global blacklist: latex%
53+
# Global blacklist: latex% rust/download_web%
5454
# In sub-directories:
5555
# c: x86-read_64b_regs_in_32b_mode
5656
# glossaries:

machines/Dockerfile-debian10-buster

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

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

machines/Dockerfile-fedora30

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

6363
# make list-nobuild:
64-
# Global blacklist: latex%
64+
# Global blacklist: latex% rust/download_web%
6565
# In sub-directories:
6666
# c:
6767
# glossaries:
@@ -75,7 +75,7 @@ CMD ["/run_shared_test.sh"]
7575
# rust:
7676
# verification:
7777
# With gcc -m32:
78-
# Global blacklist: latex%
78+
# Global blacklist: latex% rust/download_web%
7979
# In sub-directories:
8080
# c: gtk_alpha_window
8181
# glossaries:

0 commit comments

Comments
 (0)