HEADSUP for Pat: the new cbindgen in -current breaks building mozilla-firefox
by Lenard Spencer from LinuxQuestions.org on (#6PXD3)
I just tried building the latest Firefox and got this error:
Code: 1:11.89 ./ServoStyleConsts.h.stub
1:12.14 ./mp4parse_ffi_generated.h.stub
1:12.27 thread 'main' panicked at src/bindgen/config.rs:1125:34:
1:12.27 called `Result::unwrap()` on an `Err` value: "Couldn't parse config file: TOML parse error at line 364, column 1\n |\n364 | \"Keyframe\" = \"Keyframe\"\n | ^\nduplicate key `Keyframe` in table `export.rename`\n."
1:12.27 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
1:12.29 gmake[3]: *** [backend.mk:620: layout/style/.deps/ServoStyleConsts.h.stub] Error 101
1:12.30 gmake[3]: *** Waiting for unfinished jobs....
1:22.68 gmake[2]: *** [/tmp/firefox-130.0/config/recurse.mk:34: export] Error 2
1:22.68 gmake[1]: *** [/tmp/firefox-130.0/config/rules.mk:359: default] Error 2
1:22.68 gmake: *** [client.mk:60: build] Error 2
1:22.70 W 0 compiler warnings present.
Config object not found by mach.After looking at ChangeLog.txt, I immediately saw cbindgen being updated to 0.27.0, and remembering that package as a repeat offender, I rolled it back to the previous release 0.26.0. After that, mozilla-firefox built normally.
Code: 1:11.89 ./ServoStyleConsts.h.stub
1:12.14 ./mp4parse_ffi_generated.h.stub
1:12.27 thread 'main' panicked at src/bindgen/config.rs:1125:34:
1:12.27 called `Result::unwrap()` on an `Err` value: "Couldn't parse config file: TOML parse error at line 364, column 1\n |\n364 | \"Keyframe\" = \"Keyframe\"\n | ^\nduplicate key `Keyframe` in table `export.rename`\n."
1:12.27 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
1:12.29 gmake[3]: *** [backend.mk:620: layout/style/.deps/ServoStyleConsts.h.stub] Error 101
1:12.30 gmake[3]: *** Waiting for unfinished jobs....
1:22.68 gmake[2]: *** [/tmp/firefox-130.0/config/recurse.mk:34: export] Error 2
1:22.68 gmake[1]: *** [/tmp/firefox-130.0/config/rules.mk:359: default] Error 2
1:22.68 gmake: *** [client.mk:60: build] Error 2
1:22.70 W 0 compiler warnings present.
Config object not found by mach.After looking at ChangeLog.txt, I immediately saw cbindgen being updated to 0.27.0, and remembering that package as a repeat offender, I rolled it back to the previous release 0.26.0. After that, mozilla-firefox built normally.