Page MenuHomeFreeBSD

devel/wasi-libcxx: update to 14.0.6
Needs ReviewPublic

Authored by vishwin on May 22 2022, 7:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jan 17, 3:48 AM
Unknown Object (File)
Jan 2 2023, 2:27 AM
Unknown Object (File)
Dec 16 2022, 4:02 PM
Unknown Object (File)
Dec 15 2022, 7:19 AM
Unknown Object (File)
Dec 1 2022, 12:03 PM
Subscribers

Details

Summary

Standalone builds are deprecated, switch to CMAKE_SOURCE_PATH=${WRKSRC}/runtimes and clean up unused cmake variables.

14.0.3 is the latest release but keep in sync with devel/llvm14.

Test Plan

Results in functional gecko ports, allows LTO to work again. With correspondingly updated wasi- ports of course.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 46269
Build 43158: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.May 22 2022, 8:44 PM

update to 14.0.6 (sync with devel/llvm14)

This revision now requires review to proceed.Jul 5 2022, 12:24 PM
vishwin retitled this revision from devel/wasi-libcxx: update to 14.0.2 to devel/wasi-libcxx: update to 14.0.6.Jul 5 2022, 12:25 PM

`Missing license file for LLVM2 in /wrkdirs/usr/ports/devel/wasi-libcxx/work/llvm-project-14.0.6.src/LICENSE.TXT`

After pointing to a license file, fails to build in clean 13.1/amd64 jail and clean ports 949904de1fdf + all the last revisions in stack:

/usr/local/bin/clang++14 -std=gnu++17 --target=wasm32-wasi --sysroot=/usr/local/share/wasi-sysroot -o rlbox.wasm -Wl,--export-all -Wl,--stack-first -Wl,-z,stack-size=262144 -Wl,--no-entry -Wl,--growable-table ogg_alloc.wasm ogg_bitwise.wasm ogg_framing.wasm xmlparse.wasm xmlrole.wasm xmltok.wasm wasm2c_sandbox_wrapper.wasm mozHunspellRLBoxSandbox.wasm affentry.wasm affixmgr.wasm csutil.wasm hashmgr.wasm hunspell.wasm phonet.wasm replist.wasm suggestmgr.wasm GraphiteExtra.wasm CmapCache.wasm Code.wasm Collider.wasm Decompressor.wasm Face.wasm FeatureMap.wasm FileFace.wasm Font.wasm GlyphCache.wasm GlyphFace.wasm Intervals.wasm Justifier.wasm NameTable.wasm Pass.wasm Position.wasm Segment.wasm Silf.wasm Slot.wasm Sparse.wasm TtfUtil.wasm UtfCodec.wasm call_machine.wasm gr_char_info.wasm gr_face.wasm gr_features.wasm gr_font.wasm gr_logging.wasm gr_segment.wasm gr_slot.wasm json.wasm RLBoxWOFF2Sandbox.wasm table_tags.wasm variable_length.wasm woff2_common.wasm woff2_dec.wasm woff2_out.wasm -lwasi-emulated-process-clocks
../../dist/host/bin/wasm2c -o rlbox.wasm.c rlbox.wasm
0105557: error: unexpected opcode: 0xfc 0xa
gmake[4]: *** [/wrkdirs/usr/ports/www/firefox/work/firefox-102.0.1/config/rules.mk:501: rlbox.wasm.c] Error 1

LLVM and/or WASI 14.0.5 seems to be last known good version to build as of https://bugzilla.mozilla.org/show_bug.cgi?id=1771649#c10
For now I locally reverted LLVM to 14.0.5 and updated 14.0.2-era revisions to 14.0.5, so the build can pass.

Maybe investigate if the current devel/llvm14 14.0.6 can build with WASI from 14.0.5, as I don't currently have plans to do that.

I got this too. Just reverting wasi-libc to the previous month "fixes" it, so something during the month went afoul.