Skip to content

Fix build issue in oss-fuzz environment (1.1.1)#997

Merged
val-ms merged 2 commits intoCisco-Talos:dev/1.1.1from
val-ms:oss-fuzz-nightly-build-issue-proc-macro2-1.1.1
Aug 11, 2023
Merged

Fix build issue in oss-fuzz environment (1.1.1)#997
val-ms merged 2 commits intoCisco-Talos:dev/1.1.1from
val-ms:oss-fuzz-nightly-build-issue-proc-macro2-1.1.1

Conversation

@val-ms
Copy link
Contributor

@val-ms val-ms commented Aug 11, 2023

There is an error building clam with the rust nightly compiler:

error[E0635]: unknown feature proc_macro_span_shrink
--> /rust/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.56/src/lib.rs:92:30
|
92 | feature(proc_macro_span, proc_macro_span_shrink)
| ^^^^^^^^^^^^^^^^^^^^^^

We need this to work because oss-fuzz is apparently using rust nightly in their image.

Bumping the proc-macro2 crate version in Cargo.lock resolves the error.

val-ms added 2 commits August 10, 2023 17:53
There is an error building clam with the rust nightly compiler:

error[E0635]: unknown feature `proc_macro_span_shrink`
  --> /rust/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.56/src/lib.rs:92:30
   |
92 |     feature(proc_macro_span, proc_macro_span_shrink)
   |                              ^^^^^^^^^^^^^^^^^^^^^^

We need this to work because oss-fuzz is apparently using rust nightly
in their image.

Bumping the proc-macro2 crate version in Cargo.lock resolves the error.
@val-ms
Copy link
Contributor Author

val-ms commented Aug 11, 2023

fuzz-regression pipeline looking good again.

@val-ms val-ms merged commit 0071294 into Cisco-Talos:dev/1.1.1 Aug 11, 2023
@val-ms val-ms deleted the oss-fuzz-nightly-build-issue-proc-macro2-1.1.1 branch August 11, 2023 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant