public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug libstdc++/99306] New: bootstrap failure on msdosdjgpp: error: alignment of 'm' is greater than maximum object file alignment 16 @ 2021-02-27 18:33 unlvsur at live dot com 2021-02-27 19:00 ` [Bug libstdc++/99306] cross compiler " unlvsur at live dot com ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: unlvsur at live dot com @ 2021-02-27 18:33 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99306 Bug ID: 99306 Summary: bootstrap failure on msdosdjgpp: error: alignment of 'm' is greater than maximum object file alignment 16 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: unlvsur at live dot com Target Milestone: --- ../../../../../gcc/libstdc++-v3/src/c++11/shared_ptr.cc:39:14: error: alignment of 'm' is greater than maximum object file alignment 16 39 | static M m[mask + 1]; | ^ make[5]: *** [Makefile:648: shared_ptr.lo] Error 1 make[5]: *** Waiting for unfinished jobs.... ../../../../../gcc/libstdc++-v3/src/c++11/cow-locale_init.cc: In member function 'void std::locale::_Impl::_M_init_extra(void*, void*, const char*, const char*)': ../../../../../gcc/libstdc++-v3/src/c++11/cow-locale_init.cc:140:50: warning: unused parameter 'clocm' [-Wunused-parameter] 140 | locale::_Impl::_M_init_extra(void* cloc, void* clocm, | ~~~~~~^~~~~ ../../../../../gcc/libstdc++-v3/src/c++11/cow-locale_init.cc:141:61: warning: unused parameter '__smon' [-Wunused-parameter] 141 | const char* __s, const char* __smon) | ~~~~~~~~~~~~^~~~~~ make[4]: *** [Makefile:764: all-recursive] Error 1 make[3]: *** [Makefile:568: all-recursive] Error 1 make[2]: *** [Makefile:493: all] Error 2 make[1]: *** [Makefile:11838: all-target-libstdc++-v3] Error 2 make: *** [Makefile:970: all] Error 2 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/99306] cross compiler bootstrap failure on msdosdjgpp: error: alignment of 'm' is greater than maximum object file alignment 16 2021-02-27 18:33 [Bug libstdc++/99306] New: bootstrap failure on msdosdjgpp: error: alignment of 'm' is greater than maximum object file alignment 16 unlvsur at live dot com @ 2021-02-27 19:00 ` unlvsur at live dot com 2021-03-01 9:26 ` rguenth at gcc dot gnu.org 2021-03-01 16:43 ` redi at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: unlvsur at live dot com @ 2021-02-27 19:00 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99306 --- Comment #1 from cqwrteur <unlvsur at live dot com> --- Created attachment 50268 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50268&action=edit shared_ptr optional no alignment patch ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/99306] cross compiler bootstrap failure on msdosdjgpp: error: alignment of 'm' is greater than maximum object file alignment 16 2021-02-27 18:33 [Bug libstdc++/99306] New: bootstrap failure on msdosdjgpp: error: alignment of 'm' is greater than maximum object file alignment 16 unlvsur at live dot com 2021-02-27 19:00 ` [Bug libstdc++/99306] cross compiler " unlvsur at live dot com @ 2021-03-01 9:26 ` rguenth at gcc dot gnu.org 2021-03-01 16:43 ` redi at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: rguenth at gcc dot gnu.org @ 2021-03-01 9:26 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99306 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2021-03-01 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- __gnu_cxx::__mutex& get_mutex(unsigned char i) { // increase alignment to put each lock on a separate cache line struct alignas(64) M : __gnu_cxx::__mutex { }; static M m[mask + 1]; return m[i]; there's __BIGGEST_ALIGNMENT__ one could use as bound but that will usually be lower than the max ofile alignment and on most targets likely less than 64. That value (64) looks like it should be target dependent anyway (configury?) ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/99306] cross compiler bootstrap failure on msdosdjgpp: error: alignment of 'm' is greater than maximum object file alignment 16 2021-02-27 18:33 [Bug libstdc++/99306] New: bootstrap failure on msdosdjgpp: error: alignment of 'm' is greater than maximum object file alignment 16 unlvsur at live dot com 2021-02-27 19:00 ` [Bug libstdc++/99306] cross compiler " unlvsur at live dot com 2021-03-01 9:26 ` rguenth at gcc dot gnu.org @ 2021-03-01 16:43 ` redi at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: redi at gcc dot gnu.org @ 2021-03-01 16:43 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99306 --- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- It's intended to be the cacheline size, so would use std::hardware_destructive_interference_size, but that's not implemented yet for the reasons given in PR 88466. And also because it's just a very verbose way to say 64 :-P ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-03-01 16:43 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2021-02-27 18:33 [Bug libstdc++/99306] New: bootstrap failure on msdosdjgpp: error: alignment of 'm' is greater than maximum object file alignment 16 unlvsur at live dot com 2021-02-27 19:00 ` [Bug libstdc++/99306] cross compiler " unlvsur at live dot com 2021-03-01 9:26 ` rguenth at gcc dot gnu.org 2021-03-01 16:43 ` redi at gcc dot gnu.org
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).