Bug#1032317: libc++-15-dev: after installing libc++-15-dev, wasi-wasm32 stddef.h stops declaring size_t
Faidon Liambotis
paravoid at debian.org
Wed Mar 8 15:46:11 GMT 2023
On Wed, Mar 08, 2023 at 09:08:13AM +0100, Sylvestre Ledru wrote:
> > Specifically, it looks like the entire patching of the method
> > WebAssembly::AddClangCXXStdlibIncludeArgs isn't happening anymore. One
> > of these differences was exactly about this -- the comment says:
> > // don't include the host architecture's headers in the search path
> >
> > Sylvestre, I think you did the 14->15 porting, right? Do you
> > know/remember what happened there?
>
> Maybe i did a mistake in the merge?!
Upstream commit b5787a0 ("Support -stdlib=libstdc++ for WebAssembly")
reorganized the code a bit, which resulted in a merge conflict. It also
included half of what my patch did, namely the getDriver().SysRoot to
computeSysRoot() conversion, which probably resulted in you thinking
that this hunk isn't necessary anymore!
I'm attaching a diff that restores the second half of the diff, and I
believe should fix this bug. (LLVM is a pain to build and test, so I
haven't tested this at all yet; hoping that it's easier for Sylvestre to
test!). I'm also attaching the interdiff in case it helps anyone to
review.
I'm not submitting an MR because I noticed that "15" branch has
progressed further compared to 1-15.0.7-1, and I'm not sure how you'd
like to handle it; basically whether these changes are suitable for
bookworm at this point, or whether you'd like to to fork a branch for
bookworm.
Side-note unrelated to this bug, but confused me during its
investigation:
# this is a badly named duplicate of debian/1%15.0.7-1
git tag -d debian/1%15.0.71; git push origin :debian/1%15.0.71
# cruft left behind from the move to debian/patches/wasm/
git checkout 15; git rm debian/patches/wasm-*; git commit -m "Remove cruft"
git checkout snapshot; git rm debian/patches/wasm-*; git commit -m "Remove cruft"
HTH!
Faidon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-15.0.7-1-wasm.diff
Type: text/x-diff
Size: 1498 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-llvm-team/attachments/20230308/372ebd4b/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-15.0.7-1-wasm-interdiff.diff
Type: text/x-diff
Size: 1151 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-llvm-team/attachments/20230308/372ebd4b/attachment-0001.diff>
More information about the Pkg-llvm-team
mailing list