public inbox for
 help / color / mirror / Atom feed
* libstdc++ "freestanding" ('--disable-hosted-libstdcxx') with '-fno-rtti', '-fno-exceptions': 'libstdc++-v3/libsupc++/' global constructors
@ 2022-07-14 11:54 Thomas Schwinge
  2022-07-14 15:25 ` Jonathan Wakely
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Schwinge @ 2022-07-14 11:54 UTC (permalink / raw)
  To: libstdc++, Jonathan Wakely


In context of <> '[OpenMP][AMDGCN][nvptx]
C++ offloading: unresolved _Znwm = "operator new(unsigned long)"'
I'm looking into building GCN, nvptx offloading libstdc++ "freestanding"
('--disable-hosted-libstdcxx') with '-fno-rtti', '-fno-exceptions'.
(I've basically got these things wired up; details to be shared later.)

For nvptx, I'm running into:

    In function ‘(static initializers for [...]/libstdc++-v3/libsupc++/’:
    cc1plus: sorry, unimplemented: global constructors not supported on this target
    make[4]: *** [Makefile:777: eh_alloc.lo] Error 1

... because, indeed, "global constructors not supported" for nvptx at
this time.  This may change, but I'd first like to get clarified
conceptually to which extent 'libstdc++-v3/libsupc++/' is
actually relevant for such a libstdc++ configuration, and/or whether this
should be expected to compile fine already?  Do certain things simply
need to be '#if'-conditionalized, or similar, for example?  I've not yet
looked into the details; hoping that's maybe easy for you to answer?

Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955

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

end of thread, other threads:[~2022-07-14 15:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-14 11:54 libstdc++ "freestanding" ('--disable-hosted-libstdcxx') with '-fno-rtti', '-fno-exceptions': 'libstdc++-v3/libsupc++/' global constructors Thomas Schwinge
2022-07-14 15:25 ` Jonathan Wakely

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).