From: David Wohlferd <dw@LimeGreenSocks.com>
To: cygwin@cygwin.com
Subject: Compiling gcc trunk under cygwin
Date: Fri, 22 Jan 2016 07:35:00 -0000 [thread overview]
Message-ID: <56A1B7E3.3030202@LimeGreenSocks.com> (raw)
Until recently, I've been able to build gcc under cygwin just fine. But
(relatively) recent checkins (232454 & 232071) are causing problems.
I've been trying to track down what to do about them, but crawling thru
the depths of makefiles, sed scripts, etc is proving difficult for this
long-time Windows programmer. But I do have some clues.
The problems all seem to revolve around __GXX_WEAK__.
I notice that cygwin's current (and experimental 5.2.0) builds of gcc
don't define __GXX_WEAK__. After reading this
(https://cygwin.com/ml/cygwin/2010-04/msg00281.html), that makes sense.
And that's fine by me, I don't need it anyway.
But during the building of gcc, the xgcc that gets built *does* define
it. And with these new changes, that leads to errors like this:
../src/c++11/.libs/libc++11convenience.a(cow-stdexcept.o): In function
`_txnal_cow_string_C1_for_exceptions(void*, char const*, void*)':
/cygdrive/c/cygwin64/src/gcc-trunk/libstdc++-v3/src/c++11/cow-stdexcept.cc:236:(.text$_Z35_txnal_cow_string_C1_for_exceptionsPvPKcS_+0x2c):
relocation truncated to fit: R_X86_64_PC32 against undefined symbol
`_ITM_RU1'
/cygdrive/c/cygwin64/src/gcc-trunk/libstdc++-v3/src/c++11/cow-stdexcept.cc:248:(.text$_Z35_txnal_cow_string_C1_for_exceptionsPvPKcS_+0x39):
relocation truncated to fit: R_X86_64_PC32 against undefined symbol
`transaction clone for operator
new[](unsigned long)'
/cygdrive/c/cygwin64/src/gcc-trunk/libstdc++-v3/src/c++11/cow-stdexcept.cc:267:(.text$_Z35_txnal_cow_string_C1_for_exceptionsPvPKcS_+0x5d):
relocation truncated to fit: R_X86_64_PC32 against undefined symbol
`_ITM_memcpyRtWn'
../src/c++11/.libs/libc++11convenience.a(cow-stdexcept.o): In function
`txnal_read_ptr':
/cygdrive/c/cygwin64/src/gcc-trunk/libstdc++-v3/src/c++11/cow-stdexcept.cc:278:(.text$_Z23_txnal_cow_string_c_strPKv+0x1):
relocation truncated to fit: R_X86_64_PC32 against undefined symbol
`_ITM_RU8'
/cygdrive/c/cygwin64/src/gcc-trunk/libstdc++-v3/src/c++11/cow-stdexcept.cc:278:(.text$_Z23_txnal_sso_string_c_strPKv+0x1):
relocation truncated to fit: R_X86_64_PC32 against undefined symbol
`_ITM_RU8'
/cygdrive/c/cygwin64/src/gcc-trunk/libstdc++-v3/src/c++11/cow-stdexcept.cc:278:(.text$_Z20_txnal_cow_string_D1Pv+0x5):
relocation truncated to fit: R_X86_64_PC32 against undefined symbol
`_ITM_RU8'
../src/c++11/.libs/libc++11convenience.a(cow-stdexcept.o): In function
`_txnal_cow_string_D1(void*)':
/cygdrive/c/cygwin64/src/gcc-trunk/libstdc++-v3/src/c++11/cow-stdexcept.cc:324:(.text$_Z20_txnal_cow_string_D1Pv+0x1e):
relocation truncated to fit: R_X86_64_PC32 against undefined symbol
`_ITM_addUserCommitAction'
../src/c++11/.libs/libc++11convenience.a(cow-stdexcept.o): In function
`transaction clone for std::logic_error::logic_error(char const*)':
/cygdrive/c/cygwin64/src/gcc-trunk/libstdc++-v3/src/c++11/cow-stdexcept.cc:408:(.text$_ZGTtNSt11logic_errorC1EPKc+0x2e):
relocation truncated to fit: R_X86_64_PC32 against undefined symbol
`_ITM_memcpyRnWt'
../src/c++11/.libs/libc++11convenience.a(cow-stdexcept.o): In function
`transaction clone for
std::logic_error::logic_error(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)':
/cygdrive/c/cygwin64/src/gcc-trunk/libstdc++-v3/src/c++11/cow-stdexcept.cc:408:(.text$_ZGTtNSt11logic_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x2e):
relocation truncated to fit: R_X86_64_PC32 against undefined symbol
`_ITM_memcpyRnWt'
../src/c++11/.libs/libc++11convenience.a(cow-stdexcept.o): In function
`txnal_read_ptr':
/cygdrive/c/cygwin64/src/gcc-trunk/libstdc++-v3/src/c++11/cow-stdexcept.cc:278:(.text$_ZGTtNSt11logic_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x36):
relocation truncated to fit: R_X86_64_PC32 against undefined symbol
`_ITM_RU8'
../src/c++11/.libs/libc++11convenience.a(cow-stdexcept.o): In function
`transaction clone for std::logic_error::~logic_error()':
/cygdrive/c/cygwin64/src/gcc-trunk/libstdc++-v3/src/c++11/cow-stdexcept.cc:408:(.text$_ZGTtNSt11logic_errorD0Ev+0x1a):
additional relocation overflows omitted from the output
I can fix the errors and get my build working again by:
a) adding "#define __GXX_WEAK__ 0" to the top of cow-stdexcept.cc
b) commenting out the undef and define of MAKE_DECL_ONE_ONLY in cygming.h
But there's got to be a better way.
Is there some configure option I'm supposed to be using when building
gcc for cygwin? How else could your 5.2.0 not be defining
__GXX_WEAK__? Looking at the configure options in gcc -v isn't showing
me anything that looks like a solution.
dw
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
next reply other threads:[~2016-01-22 5:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-22 7:35 David Wohlferd [this message]
2016-01-23 16:42 ` Roger Orr
2016-01-27 6:45 ` Roger Orr
2016-02-02 8:10 Roger Orr
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56A1B7E3.3030202@LimeGreenSocks.com \
--to=dw@limegreensocks.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).