public inbox for libstdc++@gcc.gnu.org
 help / color / mirror / Atom feed
* Successfully build libstdc++ for wasm32-wasi
@ 2021-04-28  2:12 unlvsur unlvsur
  2021-04-28  8:52 ` Jonathan Wakely
  0 siblings, 1 reply; 4+ messages in thread
From: unlvsur unlvsur @ 2021-04-28  2:12 UTC (permalink / raw)
  To: unlvsur unlvsur via Libstdc++

[-- Attachment #1: Type: text/plain, Size: 253 bytes --]

The issue is that clang front-end does not support -stdlib=libstdc++ for wasm32-wasi. It always adds -lc++abi toggle. Is that possible to disable this and use -lsupc++?

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10


[-- Attachment #2: gcc.7z --]
[-- Type: application/octet-stream, Size: 1994557 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Successfully build libstdc++ for wasm32-wasi
  2021-04-28  2:12 Successfully build libstdc++ for wasm32-wasi unlvsur unlvsur
@ 2021-04-28  8:52 ` Jonathan Wakely
  2021-04-28 12:21   ` unlvsur unlvsur
  0 siblings, 1 reply; 4+ messages in thread
From: Jonathan Wakely @ 2021-04-28  8:52 UTC (permalink / raw)
  To: unlvsur unlvsur; +Cc: unlvsur unlvsur via Libstdc++

On Wed, 28 Apr 2021, 04:59 unlvsur unlvsur via Libstdc++, <
libstdc++@gcc.gnu.org> wrote:

> The issue is that clang front-end does not support -stdlib=libstdc++ for
> wasm32-wasi. It always adds -lc++abi toggle. Is that possible to disable
> this and use -lsupc++?
>


That seems like a question about using clang, so off topic here, but I
would try -nostdlib -lsupc++

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Successfully build libstdc++ for wasm32-wasi
  2021-04-28  8:52 ` Jonathan Wakely
@ 2021-04-28 12:21   ` unlvsur unlvsur
  2021-04-28 12:30     ` FW: " unlvsur unlvsur
  0 siblings, 1 reply; 4+ messages in thread
From: unlvsur unlvsur @ 2021-04-28 12:21 UTC (permalink / raw)
  To: Jonathan Wakely; +Cc: unlvsur unlvsur via Libstdc++

Probably We need to tell clang to support -stdlib=libstdc++ for wasm? And nathan is able to modify the clang source code directly

Get Outlook for Android<https://aka.ms/AAb9ysg>

________________________________
From: Jonathan Wakely <jwakely.gcc@gmail.com>
Sent: Wednesday, April 28, 2021 4:52:55 AM
To: unlvsur unlvsur <unlvsur@live.com>
Cc: unlvsur unlvsur via Libstdc++ <libstdc++@gcc.gnu.org>
Subject: Re: Successfully build libstdc++ for wasm32-wasi



On Wed, 28 Apr 2021, 04:59 unlvsur unlvsur via Libstdc++, <libstdc++@gcc.gnu.org<mailto:libstdc%2B%2B@gcc.gnu.org>> wrote:
The issue is that clang front-end does not support -stdlib=libstdc++ for wasm32-wasi. It always adds -lc++abi toggle. Is that possible to disable this and use -lsupc++?


That seems like a question about using clang, so off topic here, but I would try -nostdlib -lsupc++



^ permalink raw reply	[flat|nested] 4+ messages in thread

* FW: Successfully build libstdc++ for wasm32-wasi
  2021-04-28 12:21   ` unlvsur unlvsur
@ 2021-04-28 12:30     ` unlvsur unlvsur
  0 siblings, 0 replies; 4+ messages in thread
From: unlvsur unlvsur @ 2021-04-28 12:30 UTC (permalink / raw)
  To: cfe-dev, llvm-dev, libstdc++

[-- Attachment #1: Type: text/plain, Size: 1607 bytes --]

Hello clang and llvm devs. Can you enable -stdlib=libstdc++ for wasm32-wasi? I have successfully built libstdc++ with clang, targeting wasm32-wasi. Problem is clang does not support this for that target. Options like -nostdinc++ will end up conflict with -lc++abi since clang always adds -lc++abi to the compilation command.

I know GCC itself does not support webassembly, but Libstdc++ can be built.

Thank you

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10

From: unlvsur unlvsur<mailto:unlvsur@live.com>
Sent: Wednesday, April 28, 2021 08:21
To: Jonathan Wakely<mailto:jwakely.gcc@gmail.com>
Cc: unlvsur unlvsur via Libstdc++<mailto:libstdc++@gcc.gnu.org>
Subject: Re: Successfully build libstdc++ for wasm32-wasi

Probably We need to tell clang to support -stdlib=libstdc++ for wasm? And nathan is able to modify the clang source code directly
Get Outlook for Android<https://aka.ms/AAb9ysg>


From: Jonathan Wakely <jwakely.gcc@gmail.com>
Sent: Wednesday, April 28, 2021 4:52:55 AM
To: unlvsur unlvsur <unlvsur@live.com>
Cc: unlvsur unlvsur via Libstdc++ <libstdc++@gcc.gnu.org>
Subject: Re: Successfully build libstdc++ for wasm32-wasi


On Wed, 28 Apr 2021, 04:59 unlvsur unlvsur via Libstdc++, <libstdc++@gcc.gnu.org<mailto:libstdc%2B%2B@gcc.gnu.org>> wrote:
The issue is that clang front-end does not support -stdlib=libstdc++ for wasm32-wasi. It always adds -lc++abi toggle. Is that possible to disable this and use -lsupc++?


That seems like a question about using clang, so off topic here, but I would try -nostdlib -lsupc++




[-- Attachment #2: 65B15BA9A5594C71B0CA9E75307E1408.png --]
[-- Type: image/png, Size: 159 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-04-28 12:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-28  2:12 Successfully build libstdc++ for wasm32-wasi unlvsur unlvsur
2021-04-28  8:52 ` Jonathan Wakely
2021-04-28 12:21   ` unlvsur unlvsur
2021-04-28 12:30     ` FW: " unlvsur unlvsur

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).