Your message dated Fri, 15 Dec 2023 20:55:02 +0000
with message-id <[email protected]>
and subject line Bug#1057838: fixed in llvm-toolchain-17 1:17.0.6-3
has caused the Debian Bug report #1057838,
regarding clang-17: c++ include dir from sysroot unexpectedly in include paths 
when in wasm c mode
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1057838: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1057838
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: clang-17
Version: 1:17.0.6-1
Severity: important
X-Debbugs-Cc: [email protected]

Dear Maintainer,

When I checked the include paths for clang-17 in c mode with wasm target and 
sysroot,
I saw the c++ include dir from the sysroot among the include paths.

$ clang-17 -target wasm32-unknown-emscripten 
--sysroot=/home/izzygala/node-packaging/emscripten/emscripten/cache/sysroot -E 
- -v
Debian clang version 17.0.6 (1)
Target: wasm32-unknown-emscripten
...
...
...
ignoring nonexistent directory 
"/home/izzygala/node-packaging/emscripten/emscripten/cache/sysroot/local/include/wasm32-emscripten"
ignoring nonexistent directory 
"/home/izzygala/node-packaging/emscripten/emscripten/cache/sysroot/local/include"
ignoring nonexistent directory 
"/home/izzygala/node-packaging/emscripten/emscripten/cache/sysroot/include/wasm32-emscripten"
ignoring nonexistent directory 
"/home/izzygala/node-packaging/emscripten/emscripten/cache/sysroot/include/c++/v1/backward"
 # I did not expect this to be here
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/llvm-17/lib/clang/17/include
 
/home/izzygala/node-packaging/emscripten/emscripten/cache/sysroot/include/c++/v1
 # I did not expect this to be here
 /home/izzygala/node-packaging/emscripten/emscripten/cache/sysroot/include
End of search list.

I didn't expect to see 
/home/izzygala/node-packaging/emscripten/emscripten/cache/sysroot/include/c++/v1
in the include paths.
I didn't expect clang to attempt to add 
/home/izzygala/node-packaging/emscripten/emscripten/cache/sysroot/include/c++/v1/backward
to the include paths.

I tried the same setup with a pre-built clang binary on Windows and it does not 
add the c++ include
dir from the sysroot to the include paths for c mode with wasm target and 
sysroot.

PS C:\Users\Isreal Galadima\Documents\Code\emscripten> clang -target 
wasm32-unknown-emscripten --sysroot="C:/Users/Isreal 
Galadima/Documents/Code/emscripten/cache/sysroot" -E - -v
clang version 17.0.6
Target: wasm32-unknown-emscripten
Thread model: posix
...
...
...
ignoring nonexistent directory "C:/Users/Isreal 
Galadima/Documents/Code/emscripten/cache/sysroot/include/wasm32-emscripten"
#include "..." search starts here:
#include <...> search starts here:
 C:\Program Files\LLVM\lib\clang\17\include
 C:/Users/Isreal Galadima/Documents/Code/emscripten/cache/sysroot/include
End of search list.

I think this [1] patch on Salsa may be the cause. Thanks.


1. 
https://salsa.debian.org/pkg-llvm-team/llvm-toolchain/-/blob/17/debian/patches/wasm/wasm-sysroot-usr.diff

-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.15.123.1-microsoft-standard-WSL2 (SMP w/4 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages clang-17 depends on:
ii  binutils                2.41.50.20231202-1
ii  libc6                   2.37-13
ii  libc6-dev               2.37-13
ii  libclang-common-17-dev  1:17.0.6-1
ii  libclang-cpp17          1:17.0.6-1
ii  libclang1-17            1:17.0.6-1
ii  libgcc-13-dev           13.2.0-8
ii  libgcc-s1               13.2.0-8
ii  libllvm17               1:17.0.6-1
ii  libobjc-13-dev          13.2.0-8
ii  libstdc++-13-dev        13.2.0-8
ii  libstdc++6              13.2.0-8
ii  llvm-17-linker-tools    1:17.0.6-1

Versions of packages clang-17 recommends:
ii  llvm-17-dev  1:17.0.6-1
ii  python3      3.11.6-1

Versions of packages clang-17 suggests:
pn  clang-17-doc  <none>
pn  wasi-libc     <none>

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: llvm-toolchain-17
Source-Version: 1:17.0.6-3
Done: Sylvestre Ledru <[email protected]>

We believe that the bug you reported is fixed in the latest version of
llvm-toolchain-17, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sylvestre Ledru <[email protected]> (supplier of updated llvm-toolchain-17 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Fri, 15 Dec 2023 18:51:57 +0100
Source: llvm-toolchain-17
Architecture: source
Version: 1:17.0.6-3
Distribution: unstable
Urgency: medium
Maintainer: LLVM Packaging Team <[email protected]>
Changed-By: Sylvestre Ledru <[email protected]>
Closes: 1057838
Changes:
 llvm-toolchain-17 (1:17.0.6-3) unstable; urgency=medium
 .
   * Cherry pick the wasm fix from 16
     (Closes: #1057838)
Checksums-Sha1:
 36d23fcb14171f4b07e2878107c5c1e5f55da03a 8059 llvm-toolchain-17_17.0.6-3.dsc
 20e52e32561ae09a24fe3566280494f4d776ca0f 171588 
llvm-toolchain-17_17.0.6-3.debian.tar.xz
 c149d2ad219cf406963cfc0dd91399d4d62cb525 34559 
llvm-toolchain-17_17.0.6-3_amd64.buildinfo
Checksums-Sha256:
 fc3a4db337b4732547166a9d9580971f6d3c1ef63745975c0e78144847ebd5d9 8059 
llvm-toolchain-17_17.0.6-3.dsc
 01720d45317f6d94ed191f217f7a5469f2d57eb40791c0d0d5eff8a2b9e383da 171588 
llvm-toolchain-17_17.0.6-3.debian.tar.xz
 93f79a14626b948040d21423803559b9a6740f776fa70618970f1c0759cd183a 34559 
llvm-toolchain-17_17.0.6-3_amd64.buildinfo
Files:
 9722192a702f7cb2d8e6fbfc4946ba9c 8059 devel optional 
llvm-toolchain-17_17.0.6-3.dsc
 518ea9afcbbe2fdb895002fa56ce322f 171588 devel optional 
llvm-toolchain-17_17.0.6-3.debian.tar.xz
 08eb141899190c002662d4ed0b20efe9 34559 devel optional 
llvm-toolchain-17_17.0.6-3_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEtg21mU05vsTRqVzPfmUo2nUvG+EFAmV8r9gACgkQfmUo2nUv
G+ExhRAAgHNzwdACIVJngSqO9RXwiKSvCVknlZNgOjLIhIHbM/n0EuYEfwKPPqDl
AikVfgkYkpyqTAK603KxYsMNxNDvgVrfgZ51nXe1F/1k9T4Ynl7BS5WlR73ddOV9
srLrqXNT/5Ou0WBN73DOnuWqEj50x29u3QmTqseFY1cLOIADkj/u0y3eCQz22egS
jowDZurD2mZEg7SoBuoR7cxoBz7yehCYNkEVUE/g6eWQP5br78xHG2f2ZeF2VYFe
1rOHtW2gr4mCiNYG9Py6SF1hyWkfm5z9z3kMmrD1vHJlF1DNNaP/mH1UjcixO2DL
kQmNki4tuk7llWPcr+hWBuvK0y/QY8IiEtWoMPkMkQ726NjDTgvHNA4qWBLqsVT1
7J9Lm2+4RVMqTvvBw2Y1GuzdrfhKkxv4SmeMObf7lypq4gJK3Nt+qQ13fy5p4ai0
8JkourcXb530Vx++2EpeiURIFcWblMLVoV+9+7Tm5Vkrg/cyNei2V977YjZdO2xo
q9OaFNdyVMIsg//kWgtB+TQcbwJPqb1ALehX3PgWW1ZUmnjvPFuluO9sl9gY41Gl
QK2l+BWvb/RN937w/6EW2DEhKEqlDxixpe8slfD/p/3bkv2GjBTXeRVBApzc1QTJ
vVpi3yxyA7CBVI7Dv1JKlPCKz8RJp7clEPfJRIk8zDsTeNSI7cY=
=mZIc
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to