* Mysterious g++ link problems
@ 2005-07-13 13:54 David Abrahams
2005-07-13 14:07 ` Dave Korn
2005-07-13 14:08 ` Gerrit P. Haase
0 siblings, 2 replies; 9+ messages in thread
From: David Abrahams @ 2005-07-13 13:54 UTC (permalink / raw)
To: cygwin
Here are the symptoms.
"/usr/local/gcc-3.4.4/bin/g++.exe" -Wall -ftemplate-depth-100 -O0 -fno-inline -g -DBOOST_ALL_NO_LIB=1 -I"..\..\.." -c -o "..\..\..\bin.v2\libs\parameter\test\sfinae.test\gcc-3.4.4\debug\sfinae.o" "sfinae.cpp"
"/usr/local/gcc-3.4.4/bin/g++.exe" -o "..\..\..\bin.v2\libs\parameter\test\sfinae.test\gcc-3.4.4\debug\sfinae.exe" "..\..\..\bin.v2\libs\parameter\test\sfinae.test\gcc-3.4.4\debug\sfinae.o" -g
/usr/lib/gcc/i686-pc-cygwin/3.4.4/libstdc++.a(eh_terminate.o):: undefined reference to `___w32_sharedptr_terminate'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/libstdc++.a(eh_terminate.o):: undefined reference to `___w32_sharedptr_terminate'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/libstdc++.a(eh_terminate.o):: undefined reference to `___w32_sharedptr_unexpected'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/libstdc++.a(eh_terminate.o):: undefined reference to `___w32_sharedptr_terminate'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/libstdc++.a(eh_terminate.o):: undefined reference to `___w32_sharedptr_terminate'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/libstdc++.a(eh_terminate.o):: undefined reference to `___w32_sharedptr_unexpected'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/libstdc++.a(eh_throw.o):: undefined reference to `___w32_sharedptr_unexpected'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/libstdc++.a(eh_throw.o):: undefined reference to `___w32_sharedptr_terminate'
collect2: ld returned 1 exit status
This compiler was configured built and installed by me with
--prefix=/usr/local/gcc-3.4.4 and has worked flawlessly up 'till now
(and still works fine on other programs).
Somewhat strangely,
> cygcheck -c gcc
Cygwin Package Information
Package Version Status
gcc 3.4.4-1 OK
I think until recently /bin/gcc referred to gcc-3.3.3 on my system,
but I guess a recent use of the Cygwin setup program updated it to
3.4.4. Everything works fine if I use /bin/g++, so I guess I can just
throw out the contents of /usr/local/gcc-3.4.4, but this is still a
bit disturbing.
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: Mysterious g++ link problems
2005-07-13 13:54 Mysterious g++ link problems David Abrahams
@ 2005-07-13 14:07 ` Dave Korn
2005-07-13 14:32 ` David Abrahams
2005-07-14 0:12 ` Gary R. Van Sickle
2005-07-13 14:08 ` Gerrit P. Haase
1 sibling, 2 replies; 9+ messages in thread
From: Dave Korn @ 2005-07-13 14:07 UTC (permalink / raw)
To: cygwin
----Original Message----
>From: David Abrahams
>Sent: 13 July 2005 14:51
> Here are the symptoms.
> /usr/lib/gcc/i686-pc-cygwin/3.4.4/libstdc++.a(eh_terminate.o):: undefined
> reference to `___w32_sharedptr_terminate'
> This compiler was configured built and installed by me with
> --prefix=/usr/local/gcc-3.4.4 and has worked flawlessly up 'till now
> (and still works fine on other programs).
> > cygcheck -c gcc
> Cygwin Package Information
> Package Version Status
> gcc 3.4.4-1 OK
> I think until recently /bin/gcc referred to gcc-3.3.3 on my system,
> but I guess a recent use of the Cygwin setup program updated it to
> 3.4.4. Everything works fine if I use /bin/g++, so I guess I can just
> throw out the contents of /usr/local/gcc-3.4.4, but this is still a
> bit disturbing.
Looks like a clash between the two compilers. For some reason your
compiler in /usr/local/gcc-3.4.4 is finding and linking against the cygwin
compiler's libstdc in /usr/lib/gcc/.
Googling for '__w32_sharedptr_terminate throws up....
http://gcc.gnu.org/ml/gcc/2004-04/msg00636.html
which is an inconclusive thread but may perhaps throw some light on the
problem
cheers,
DaveK
--
Can't think of a witty .sigline today....
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Mysterious g++ link problems
2005-07-13 13:54 Mysterious g++ link problems David Abrahams
2005-07-13 14:07 ` Dave Korn
@ 2005-07-13 14:08 ` Gerrit P. Haase
2005-07-13 14:19 ` David Abrahams
1 sibling, 1 reply; 9+ messages in thread
From: Gerrit P. Haase @ 2005-07-13 14:08 UTC (permalink / raw)
To: David Abrahams; +Cc: cygwin
David Abrahams wrote:
> Here are the symptoms.
>
> "/usr/local/gcc-3.4.4/bin/g++.exe" -Wall -ftemplate-depth-100 -O0 -fno-inline -g -DBOOST_ALL_NO_LIB=1 -I"..\..\.." -c -o "..\..\..\bin.v2\libs\parameter\test\sfinae.test\gcc-3.4.4\debug\sfinae.o" "sfinae.cpp"
>
> "/usr/local/gcc-3.4.4/bin/g++.exe" -o "..\..\..\bin.v2\libs\parameter\test\sfinae.test\gcc-3.4.4\debug\sfinae.exe" "..\..\..\bin.v2\libs\parameter\test\sfinae.test\gcc-3.4.4\debug\sfinae.o" -g
>
> /usr/lib/gcc/i686-pc-cygwin/3.4.4/libstdc++.a(eh_terminate.o):: undefined reference to `___w32_sharedptr_terminate'
> /usr/lib/gcc/i686-pc-cygwin/3.4.4/libstdc++.a(eh_terminate.o):: undefined reference to `___w32_sharedptr_terminate'
> /usr/lib/gcc/i686-pc-cygwin/3.4.4/libstdc++.a(eh_terminate.o):: undefined reference to `___w32_sharedptr_unexpected'
> /usr/lib/gcc/i686-pc-cygwin/3.4.4/libstdc++.a(eh_terminate.o):: undefined reference to `___w32_sharedptr_terminate'
> /usr/lib/gcc/i686-pc-cygwin/3.4.4/libstdc++.a(eh_terminate.o):: undefined reference to `___w32_sharedptr_terminate'
> /usr/lib/gcc/i686-pc-cygwin/3.4.4/libstdc++.a(eh_terminate.o):: undefined reference to `___w32_sharedptr_unexpected'
> /usr/lib/gcc/i686-pc-cygwin/3.4.4/libstdc++.a(eh_throw.o):: undefined reference to `___w32_sharedptr_unexpected'
> /usr/lib/gcc/i686-pc-cygwin/3.4.4/libstdc++.a(eh_throw.o):: undefined reference to `___w32_sharedptr_terminate'
> collect2: ld returned 1 exit status
>
> This compiler was configured built and installed by me with
> --prefix=/usr/local/gcc-3.4.4 and has worked flawlessly up 'till now
> (and still works fine on other programs).
>
> Somewhat strangely,
>
> > cygcheck -c gcc
> Cygwin Package Information
> Package Version Status
> gcc 3.4.4-1 OK
>
> I think until recently /bin/gcc referred to gcc-3.3.3 on my system,
> but I guess a recent use of the Cygwin setup program updated it to
> 3.4.4. Everything works fine if I use /bin/g++, so I guess I can just
> throw out the contents of /usr/local/gcc-3.4.4, but this is still a
> bit disturbing.
You are using the wrong libstdc++.a runtime. Try to figure out why
/usr/local/gcc is using /usr/lig/gcc runtime instead of your own
/usr/local/lib/gcc runtime.
Suggested solution: either uninstall your local build of gcc and use
the 'official' Cygwin gcc build or uninstall the official release.
Gerrit
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Mysterious g++ link problems
2005-07-13 14:08 ` Gerrit P. Haase
@ 2005-07-13 14:19 ` David Abrahams
2005-07-13 14:28 ` Dave Korn
2005-07-13 14:28 ` Gerrit P. Haase
0 siblings, 2 replies; 9+ messages in thread
From: David Abrahams @ 2005-07-13 14:19 UTC (permalink / raw)
To: cygwin
"Gerrit P. Haase" <gerrit@familiehaase.de> writes:
> David Abrahams wrote:
>
>> Here are the symptoms.
>> "/usr/local/gcc-3.4.4/bin/g++.exe" -Wall -ftemplate-depth-100
>> -O0 -fno-inline -g -DBOOST_ALL_NO_LIB=1 -I"..\..\.." -c -o
>> "..\..\..\bin.v2\libs\parameter\test\sfinae.test\gcc-3.4.4\debug\sfinae.o"
>> "sfinae.cpp" "/usr/local/gcc-3.4.4/bin/g++.exe" -o
>> "..\..\..\bin.v2\libs\parameter\test\sfinae.test\gcc-3.4.4\debug\sfinae.exe"
>> "..\..\..\bin.v2\libs\parameter\test\sfinae.test\gcc-3.4.4\debug\sfinae.o"
>> -g /usr/lib/gcc/i686-pc-cygwin/3.4.4/libstdc++.a(eh_terminate.o)::
>> undefined reference to `___w32_sharedptr_terminate'
>> /usr/lib/gcc/i686-pc-cygwin/3.4.4/libstdc++.a(eh_terminate.o):: undefined reference to `___w32_sharedptr_terminate'
>> /usr/lib/gcc/i686-pc-cygwin/3.4.4/libstdc++.a(eh_terminate.o):: undefined reference to `___w32_sharedptr_unexpected'
>> /usr/lib/gcc/i686-pc-cygwin/3.4.4/libstdc++.a(eh_terminate.o):: undefined reference to `___w32_sharedptr_terminate'
>> /usr/lib/gcc/i686-pc-cygwin/3.4.4/libstdc++.a(eh_terminate.o):: undefined reference to `___w32_sharedptr_terminate'
>> /usr/lib/gcc/i686-pc-cygwin/3.4.4/libstdc++.a(eh_terminate.o):: undefined reference to `___w32_sharedptr_unexpected'
>> /usr/lib/gcc/i686-pc-cygwin/3.4.4/libstdc++.a(eh_throw.o):: undefined reference to `___w32_sharedptr_unexpected'
>> /usr/lib/gcc/i686-pc-cygwin/3.4.4/libstdc++.a(eh_throw.o):: undefined reference to `___w32_sharedptr_terminate'
>> collect2: ld returned 1 exit status
>> This compiler was configured built and installed by me with
>> --prefix=/usr/local/gcc-3.4.4 and has worked flawlessly up 'till now
>> (and still works fine on other programs).
>> Somewhat strangely, > cygcheck -c gcc
>> Cygwin Package Information
>> Package Version Status
>> gcc 3.4.4-1 OK
>> I think until recently /bin/gcc referred to gcc-3.3.3 on my system,
>> but I guess a recent use of the Cygwin setup program updated it to
>> 3.4.4. Everything works fine if I use /bin/g++, so I guess I can just
>> throw out the contents of /usr/local/gcc-3.4.4, but this is still a
>> bit disturbing.
>
> You are using the wrong libstdc++.a runtime. Try to figure out why
> /usr/local/gcc is using /usr/lig/gcc runtime instead of your own
> /usr/local/lib/gcc runtime.
I'm not using /usr/local/gcc. I assume you meant
/usr/local/gcc=3.4.4/bin/g++?
I'd like to try to "figure out why," but I don't know where to start
looking.
> Suggested solution: either uninstall your local build of gcc and use
> the 'official' Cygwin gcc build or uninstall the official release.
I'm happy to use the official one, but I'd still like to understand
what happened.
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: Mysterious g++ link problems
2005-07-13 14:19 ` David Abrahams
@ 2005-07-13 14:28 ` Dave Korn
2005-07-13 14:28 ` Gerrit P. Haase
1 sibling, 0 replies; 9+ messages in thread
From: Dave Korn @ 2005-07-13 14:28 UTC (permalink / raw)
To: cygwin
----Original Message----
>From: David Abrahams
>Sent: 13 July 2005 15:18
> I'm not using /usr/local/gcc. I assume you meant
> /usr/local/gcc=3.4.4/bin/g++?
>
> I'd like to try to "figure out why," but I don't know where to start
> looking.
Add "-v" to the command line to see exactly how all the sub-programs are
being invoked.
Compare with the output from "gcc -print-search-dirs".
cheers,
DaveK
--
Can't think of a witty .sigline today....
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Mysterious g++ link problems
2005-07-13 14:19 ` David Abrahams
2005-07-13 14:28 ` Dave Korn
@ 2005-07-13 14:28 ` Gerrit P. Haase
2005-07-13 15:31 ` David Abrahams
1 sibling, 1 reply; 9+ messages in thread
From: Gerrit P. Haase @ 2005-07-13 14:28 UTC (permalink / raw)
To: David Abrahams; +Cc: cygwin
David Abrahams wrote:
>>You are using the wrong libstdc++.a runtime. Try to figure out why
>>/usr/local/gcc is using /usr/lib/gcc runtime instead of your own
>>/usr/local/lib/gcc runtime.
>
>
> I'm not using /usr/local/gcc. I assume you meant
> /usr/local/gcc=3.4.4/bin/g++?
Yes. You're calling /usr/local/gcc-3.4.4/bin/g++.exe. Was the runtime
also installed below /usr/local/gcc-3.4.4/... or maybe it was installed
to /usr/lib/gcc/..., then it wass clobbered by the official release.
> I'd like to try to "figure out why," but I don't know where to start
> looking.
>
>
>>Suggested solution: either uninstall your local build of gcc and use
>>the 'official' Cygwin gcc build or uninstall the official release.
>
>
> I'm happy to use the official one, but I'd still like to understand
> what happened.
Try `/usr/local/gcc-3.4.4/bin/g++.exe -print-search-dirs` or
`/usr/local/gcc-3.4.4/bin/gcc -print-search-dirs`, this gives for
the Cygwin release: libraries: =/usr/lib/gcc/i686-pc-cygwin/3.4.4/:...
Gerrit
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Mysterious g++ link problems
2005-07-13 14:07 ` Dave Korn
@ 2005-07-13 14:32 ` David Abrahams
2005-07-14 0:12 ` Gary R. Van Sickle
1 sibling, 0 replies; 9+ messages in thread
From: David Abrahams @ 2005-07-13 14:32 UTC (permalink / raw)
To: cygwin
"Dave Korn" <dave.korn@artimi.com> writes:
> ----Original Message----
>>From: David Abrahams
>>Sent: 13 July 2005 14:51
>
>> Here are the symptoms.
>
>> /usr/lib/gcc/i686-pc-cygwin/3.4.4/libstdc++.a(eh_terminate.o):: undefined
>> reference to `___w32_sharedptr_terminate'
>
>> This compiler was configured built and installed by me with
>> --prefix=/usr/local/gcc-3.4.4 and has worked flawlessly up 'till now
>> (and still works fine on other programs).
>
>> > cygcheck -c gcc
>> Cygwin Package Information
>> Package Version Status
>> gcc 3.4.4-1 OK
>
>> I think until recently /bin/gcc referred to gcc-3.3.3 on my system,
>> but I guess a recent use of the Cygwin setup program updated it to
>> 3.4.4. Everything works fine if I use /bin/g++, so I guess I can just
>> throw out the contents of /usr/local/gcc-3.4.4, but this is still a
>> bit disturbing.
>
>
> Looks like a clash between the two compilers. For some reason your
> compiler in /usr/local/gcc-3.4.4 is finding and linking against the cygwin
> compiler's libstdc in /usr/lib/gcc/.
>
> Googling for '__w32_sharedptr_terminate throws up....
>
> http://gcc.gnu.org/ml/gcc/2004-04/msg00636.html
>
> which is an inconclusive thread but may perhaps throw some light on the
> problem
Read it already, thanks.
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Mysterious g++ link problems
2005-07-13 14:28 ` Gerrit P. Haase
@ 2005-07-13 15:31 ` David Abrahams
0 siblings, 0 replies; 9+ messages in thread
From: David Abrahams @ 2005-07-13 15:31 UTC (permalink / raw)
To: Gerrit P. Haase; +Cc: cygwin
"Gerrit P. Haase" <gerrit@familiehaase.de> writes:
> Try `/usr/local/gcc-3.4.4/bin/g++.exe -print-search-dirs` or
> `/usr/local/gcc-3.4.4/bin/gcc -print-search-dirs`, this gives for
> the Cygwin release: libraries: =/usr/lib/gcc/i686-pc-cygwin/3.4.4/:...
I figured out the problem, thanks:
http://lists.boost.org/boost/2005/07/30267.php
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: Mysterious g++ link problems
2005-07-13 14:07 ` Dave Korn
2005-07-13 14:32 ` David Abrahams
@ 2005-07-14 0:12 ` Gary R. Van Sickle
1 sibling, 0 replies; 9+ messages in thread
From: Gary R. Van Sickle @ 2005-07-14 0:12 UTC (permalink / raw)
To: cygwin
[snip]
>
> Looks like a clash between the two compilers.
COMPILER FIGHT! ;-)
--
Gary R. Van Sickle
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2005-07-14 0:12 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-13 13:54 Mysterious g++ link problems David Abrahams
2005-07-13 14:07 ` Dave Korn
2005-07-13 14:32 ` David Abrahams
2005-07-14 0:12 ` Gary R. Van Sickle
2005-07-13 14:08 ` Gerrit P. Haase
2005-07-13 14:19 ` David Abrahams
2005-07-13 14:28 ` Dave Korn
2005-07-13 14:28 ` Gerrit P. Haase
2005-07-13 15:31 ` David Abrahams
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).