* No libstdc++ for nvptx
[not found] ` <87ppfwiw78.fsf@schwinge.name>
@ 2015-03-11 21:44 ` Thomas Schwinge
2023-12-20 14:14 ` No libstdc++ for GCN (was: No libstdc++ for nvptx) Thomas Schwinge
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Schwinge @ 2015-03-11 21:44 UTC (permalink / raw)
To: gcc-patches; +Cc: Bernd Schmidt
[-- Attachment #1: Type: text/plain, Size: 2108 bytes --]
Hi!
I committed the following in r221362:
commit 5121139d0e8b22290fc9e752b07752d8a1b70182
Author: tschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Wed Mar 11 21:42:50 2015 +0000
No libstdc++ for nvptx.
The C++ front end insists to link against libstdc++ -- which we don't build:
$ < build-gcc/gcc/testsuite/g++/g++.log grep -o 'error opening [^[:cntrl:]]*' | sort | uniq -c
2 error opening libasan.a
2 error opening libssp.a
12075 error opening libstdc++.a
Based on GCC trunk r220892:
=== g++ Summary ===
# of expected passes [-63221-]{+68841+}
# of unexpected failures [-11751-]{+8764+}
# of unexpected successes 6
# of expected failures [-246-]{+249+}
# of unresolved testcases [-5950-]{+3353+}
# of unsupported tests [-4160-]{+4143+}
gcc/
* config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221362 138bc75d-0d04-0410-961f-82ee72b054a4
---
gcc/ChangeLog | 4 ++++
gcc/config/nvptx/nvptx.h | 4 ++++
2 files changed, 8 insertions(+)
diff --git gcc/ChangeLog gcc/ChangeLog
index 28979d5..e474fc8 100644
--- gcc/ChangeLog
+++ gcc/ChangeLog
@@ -1,3 +1,7 @@
+2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
+
+ * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
+
2015-03-11 Marek Polacek <polacek@redhat.com>
PR tree-optimization/65388
diff --git gcc/config/nvptx/nvptx.h gcc/config/nvptx/nvptx.h
index e74d16f..e4e58dd 100644
--- gcc/config/nvptx/nvptx.h
+++ gcc/config/nvptx/nvptx.h
@@ -366,4 +366,8 @@ struct GTY(()) machine_function
#define FUNCTION_MODE QImode
#define HAS_INIT_SECTION 1
+/* The C++ front end insists to link against libstdc++ -- which we don't build.
+ Tell it to instead link against the innocuous libgcc. */
+#define LIBSTDCXX "gcc"
+
#endif /* GCC_NVPTX_H */
Grüße,
Thomas
[-- Attachment #2: Type: application/pgp-signature, Size: 472 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* No libstdc++ for GCN (was: No libstdc++ for nvptx)
2015-03-11 21:44 ` No libstdc++ for nvptx Thomas Schwinge
@ 2023-12-20 14:14 ` Thomas Schwinge
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Schwinge @ 2023-12-20 14:14 UTC (permalink / raw)
To: gcc-patches, Andrew Stubbs, Julian Brown
[-- Attachment #1: Type: text/plain, Size: 1711 bytes --]
Hi!
On 2015-03-11T22:44:27+0100, I wrote:
> I committed the following in r221362:
> No libstdc++ for nvptx.
>
> The C++ front end insists to link against libstdc++ -- which we don't build:
>
> $ < build-gcc/gcc/testsuite/g++/g++.log grep -o 'error opening [^[:cntrl:]]*' | sort | uniq -c
> 2 error opening libasan.a
> 2 error opening libssp.a
> 12075 error opening libstdc++.a
>
> Based on GCC trunk r220892:
>
> === g++ Summary ===
>
> # of expected passes [-63221-]{+68841+}
> # of unexpected failures [-11751-]{+8764+}
> # of unexpected successes 6
> # of expected failures [-246-]{+249+}
> # of unresolved testcases [-5950-]{+3353+}
> # of unsupported tests [-4160-]{+4143+}
> --- gcc/config/nvptx/nvptx.h
> +++ gcc/config/nvptx/nvptx.h
> +/* The C++ front end insists to link against libstdc++ -- which we don't build.
> + Tell it to instead link against the innocuous libgcc. */
> +#define LIBSTDCXX "gcc"
Pushed to master branch commit 4d9d015cf4054f5f9df14a2c11ce81379b6caf0f
"No libstdc++ for GCN", see attached.
(Both these commit are going to get reverted once I've got libstdc++-v3
enabled for GCN, nvptx, but until then, this further harmonizes my GCN
vs. nvptx test results.)
Grüße
Thomas
-----------------
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
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-No-libstdc-for-GCN.patch --]
[-- Type: text/x-diff, Size: 2377 bytes --]
From 4d9d015cf4054f5f9df14a2c11ce81379b6caf0f Mon Sep 17 00:00:00 2001
From: Thomas Schwinge <thomas@codesourcery.com>
Date: Thu, 13 Apr 2023 08:54:47 +0200
Subject: [PATCH] No libstdc++ for GCN
Like commit d94fae044da071381b73a2ee8afa874b14fa3820 "No libstdc++ for nvptx"
(2015) and elsewhere.
Based on commit 5f1bed2a7af828103ca23a3546466a23e8dd2f30 (2023-12-16), there
are a ton of progressions (for test cases not actually depending on libstdc++
symbols, obviously):
=== g++ Summary ===
# of expected passes [-178369-]{+189226+}
# of unexpected failures [-19880-]{+14089+}
# of unexpected successes 14
# of expected failures [-1684-]{+1685+}
# of unresolved testcases [-9820-]{+4837+}
# of unsupported tests [-11971-]{+11968+}
..., and only two benign "regressions":
[-UNSUPPORTED:-]{+FAIL:+} g++.dg/init/array54.C -std=c++14 {+(test for excess errors)+}
{+UNRESOLVED: g++.dg/init/array54.C -std=c++14 compilation failed to produce executable+}
[Etc.]
[...]/g++.dg/init/array54.C:5:10: fatal error: atomic: No such file or directory
That's similar to a lof of other test cases intending to '#include' standard
C++/libstdc++ headers; to be addressed in due time.
PASS: g++.old-deja/g++.pt/const2.C -std=c++98 at line 5 (test for warnings, line )
[-PASS:-]{+FAIL:+} g++.old-deja/g++.pt/const2.C -std=c++98 (test for excess errors)
[Etc.]
ld: error: undefined symbol: A<int>::i
>>> referenced by /tmp/ccqXWCSh.o:(p)
The 'error: undefined symbol' is expected here; maybe should simply in the test
case 'dg-prune-output "referenced by"'? (This PASSed before, as the
'dg-message "i"' was satisfied by 'ld: error: unable to find library -lstdc++',
eh...)
gcc/
* config/gcn/gcn.h (LIBSTDCXX): Define to "gcc".
---
gcc/config/gcn/gcn.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gcc/config/gcn/gcn.h b/gcc/config/gcn/gcn.h
index cb52be7a3a1..b8f2854d497 100644
--- a/gcc/config/gcn/gcn.h
+++ b/gcc/config/gcn/gcn.h
@@ -836,3 +836,7 @@ enum gcn_builtin_codes
|| M == V2SFmode || M == V2DImode || M == V2DFmode) \
? 2 \
: 1)
+
+/* The C++ front end insists to link against libstdc++ -- which we don't build.
+ Tell it to instead link against the innocuous libgcc. */
+#define LIBSTDCXX "gcc"
--
2.34.1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-12-20 14:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <53C80524.3010508@codesourcery.com>
[not found] ` <87ppfwiw78.fsf@schwinge.name>
2015-03-11 21:44 ` No libstdc++ for nvptx Thomas Schwinge
2023-12-20 14:14 ` No libstdc++ for GCN (was: No libstdc++ for nvptx) Thomas Schwinge
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).