You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by "Farid Zaripov (JIRA)" <ji...@apache.org> on 2007/10/11 20:07:51 UTC
[jira] Created: (STDCXX-585) [Cygwin] linker errors due to multiple
definition of `std::bad_cast::what()'; `std::bad_typeid::what()';
`std::bad_exception::what()'; `std::bad_alloc::what()'
[Cygwin] linker errors due to multiple definition of `std::bad_cast::what()'; `std::bad_typeid::what()'; `std::bad_exception::what()'; `std::bad_alloc::what()'
---------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: STDCXX-585
URL: https://issues.apache.org/jira/browse/STDCXX-585
Project: C++ Standard Library
Issue Type: Bug
Components: Configuration
Affects Versions: trunk
Environment: gcc 4.2.0 / Cygwin
Reporter: Farid Zaripov
Priority: Blocker
Fix For: 4.2.1
When building the stdcxx on Cygwin I get errors like:
make: Entering directory `/usr/src/stdcxx/trunk/build/examples'
gcc -c -I/usr/src/stdcxx/trunk/include/ansi -D_RWSTDDEBUG -D_REENTRANT -mthreads -I/usr/src/stdcxx/trunk/include -I/usr/src/stdcxx/trunk/build/include -I/usr/src/stdcxx/trunk/examples/include -pedantic -nostdinc++ -g -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align /usr/src/stdcxx/trunk/examples/manual/accumulate.cpp
gcc accumulate.o -o accumulate -mthreads -L/usr/src/stdcxx/trunk/build/lib -lstd15s -lsupc++ -lcatgets -liconv -lm
/usr/local/lib/gcc/i686-pc-cygwin/4.2.0/../../../libsupc++.a(tinfo.o): In function `_ZNK10__cxxabiv121__vmi_class_type_info12__do_dyncastEiNS_17__class_type_info10__sub_kindEPKS1_PKvS4_S6_RNS1_16__dyncast_resultE':
/usr/src/gcc-4.2.0/i686-pc-cygwin/libstdc++-v3/libsupc++/../../.././libstdc++-v3/libsupc++/tinfo.cc:418: multiple definition of `std::bad_cast::what() const'
/usr/src/stdcxx/trunk/build/lib/libstd15s.a(typeinfo.o):/usr/src/stdcxx/trunk/src/typeinfo.cpp:349: first defined here
/usr/local/lib/gcc/i686-pc-cygwin/4.2.0/../../../libsupc++.a(tinfo.o): In function `_ZNK10__cxxabiv121__vmi_class_type_info12__do_dyncastEiNS_17__class_type_info10__sub_kindEPKS1_PKvS4_S6_RNS1_16__dyncast_resultE':
/usr/src/gcc-4.2.0/i686-pc-cygwin/libstdc++-v3/libsupc++/../../.././libstdc++-v3/libsupc++/tinfo.cc:418: multiple definition of `std::bad_typeid::what() const'
/usr/src/stdcxx/trunk/build/lib/libstd15s.a(typeinfo.o):/usr/src/stdcxx/trunk/src/typeinfo.cpp:414: first defined here
/usr/local/lib/gcc/i686-pc-cygwin/4.2.0/../../../libsupc++.a(new_handler.o): In function `_ZNSt9bad_allocD2Ev':
/usr/src/gcc-4.2.0/i686-pc-cygwin/libstdc++-v3/libsupc++/../../.././libstdc++-v3/libsupc++/new_handler.cc:48: multiple definition of `std::bad_alloc::what() const'
/usr/src/stdcxx/trunk/build/lib/libstd15s.a(memory.o):/usr/src/stdcxx/trunk/src/memory.cpp:331: first defined here
/usr/local/lib/gcc/i686-pc-cygwin/4.2.0/../../../libsupc++.a(eh_exception.o): In function `_ZNSt13bad_exceptionD2Ev':
/usr/src/gcc-4.2.0/i686-pc-cygwin/libstdc++-v3/libsupc++/../../.././libstdc++-v3/libsupc++/eh_exception.cc:38: multiple definition of `std::bad_exception::what() const'
/usr/src/stdcxx/trunk/build/lib/libstd15s.a(exception.o):/usr/src/stdcxx/trunk/src/exception.cpp:412: first defined here
collect2: ld returned 1 exit status
make: *** [accumulate] Error 1
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (STDCXX-585) [gcc 4.2.0/Cygwin] linker errors due
to multiple definition of `std::bad_cast::what()';
`std::bad_typeid::what()'; `std::bad_exception::what()';
`std::bad_alloc::what()'
Posted by "Farid Zaripov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/STDCXX-585?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Farid Zaripov resolved STDCXX-585.
----------------------------------
Resolution: Fixed
> [gcc 4.2.0/Cygwin] linker errors due to multiple definition of `std::bad_cast::what()'; `std::bad_typeid::what()'; `std::bad_exception::what()'; `std::bad_alloc::what()'
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: STDCXX-585
> URL: https://issues.apache.org/jira/browse/STDCXX-585
> Project: C++ Standard Library
> Issue Type: Bug
> Components: Configuration
> Affects Versions: 4.2.0
> Environment: gcc 4.2.0 / Cygwin
> Reporter: Farid Zaripov
> Assignee: Farid Zaripov
> Priority: Blocker
> Fix For: 4.2.1
>
> Attachments: BAD_ALLOC_ASSIGNMENT.cpp.diff
>
>
> When building the stdcxx on Cygwin I get errors like:
> make: Entering directory `/usr/src/stdcxx/trunk/build/examples'
> gcc -c -I/usr/src/stdcxx/trunk/include/ansi -D_RWSTDDEBUG -D_REENTRANT -mthreads -I/usr/src/stdcxx/trunk/include -I/usr/src/stdcxx/trunk/build/include -I/usr/src/stdcxx/trunk/examples/include -pedantic -nostdinc++ -g -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align /usr/src/stdcxx/trunk/examples/manual/accumulate.cpp
> gcc accumulate.o -o accumulate -mthreads -L/usr/src/stdcxx/trunk/build/lib -lstd15s -lsupc++ -lcatgets -liconv -lm
> /usr/local/lib/gcc/i686-pc-cygwin/4.2.0/../../../libsupc++.a(tinfo.o): In function `_ZNK10__cxxabiv121__vmi_class_type_info12__do_dyncastEiNS_17__class_type_info10__sub_kindEPKS1_PKvS4_S6_RNS1_16__dyncast_resultE':
> /usr/src/gcc-4.2.0/i686-pc-cygwin/libstdc++-v3/libsupc++/../../.././libstdc++-v3/libsupc++/tinfo.cc:418: multiple definition of `std::bad_cast::what() const'
> /usr/src/stdcxx/trunk/build/lib/libstd15s.a(typeinfo.o):/usr/src/stdcxx/trunk/src/typeinfo.cpp:349: first defined here
> /usr/local/lib/gcc/i686-pc-cygwin/4.2.0/../../../libsupc++.a(tinfo.o): In function `_ZNK10__cxxabiv121__vmi_class_type_info12__do_dyncastEiNS_17__class_type_info10__sub_kindEPKS1_PKvS4_S6_RNS1_16__dyncast_resultE':
> /usr/src/gcc-4.2.0/i686-pc-cygwin/libstdc++-v3/libsupc++/../../.././libstdc++-v3/libsupc++/tinfo.cc:418: multiple definition of `std::bad_typeid::what() const'
> /usr/src/stdcxx/trunk/build/lib/libstd15s.a(typeinfo.o):/usr/src/stdcxx/trunk/src/typeinfo.cpp:414: first defined here
> /usr/local/lib/gcc/i686-pc-cygwin/4.2.0/../../../libsupc++.a(new_handler.o): In function `_ZNSt9bad_allocD2Ev':
> /usr/src/gcc-4.2.0/i686-pc-cygwin/libstdc++-v3/libsupc++/../../.././libstdc++-v3/libsupc++/new_handler.cc:48: multiple definition of `std::bad_alloc::what() const'
> /usr/src/stdcxx/trunk/build/lib/libstd15s.a(memory.o):/usr/src/stdcxx/trunk/src/memory.cpp:331: first defined here
> /usr/local/lib/gcc/i686-pc-cygwin/4.2.0/../../../libsupc++.a(eh_exception.o): In function `_ZNSt13bad_exceptionD2Ev':
> /usr/src/gcc-4.2.0/i686-pc-cygwin/libstdc++-v3/libsupc++/../../.././libstdc++-v3/libsupc++/eh_exception.cc:38: multiple definition of `std::bad_exception::what() const'
> /usr/src/stdcxx/trunk/build/lib/libstd15s.a(exception.o):/usr/src/stdcxx/trunk/src/exception.cpp:412: first defined here
> collect2: ld returned 1 exit status
> make: *** [accumulate] Error 1
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (STDCXX-585) [gcc 4.2.0/Cygwin] linker errors due
to multiple definition of `std::bad_cast::what()';
`std::bad_typeid::what()'; `std::bad_exception::what()';
`std::bad_alloc::what()'
Posted by "Farid Zaripov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/STDCXX-585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12544875 ]
Farid Zaripov commented on STDCXX-585:
--------------------------------------
ChangeLog:
2007-11-22 Farid Zaripov <fa...@epam.com>
STDCXX-585
* BAD_ALLOC_ASSIGNMENT.cpp: Don't define ~bad_alloc() when
testing the presence of the other members to avoid multiply
defined sybmol linker errors.
> [gcc 4.2.0/Cygwin] linker errors due to multiple definition of `std::bad_cast::what()'; `std::bad_typeid::what()'; `std::bad_exception::what()'; `std::bad_alloc::what()'
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: STDCXX-585
> URL: https://issues.apache.org/jira/browse/STDCXX-585
> Project: C++ Standard Library
> Issue Type: Bug
> Components: Configuration
> Affects Versions: 4.2.0
> Environment: gcc 4.2.0 / Cygwin
> Reporter: Farid Zaripov
> Assignee: Farid Zaripov
> Priority: Blocker
> Fix For: 4.2.1
>
> Attachments: BAD_ALLOC_ASSIGNMENT.cpp.diff
>
>
> When building the stdcxx on Cygwin I get errors like:
> make: Entering directory `/usr/src/stdcxx/trunk/build/examples'
> gcc -c -I/usr/src/stdcxx/trunk/include/ansi -D_RWSTDDEBUG -D_REENTRANT -mthreads -I/usr/src/stdcxx/trunk/include -I/usr/src/stdcxx/trunk/build/include -I/usr/src/stdcxx/trunk/examples/include -pedantic -nostdinc++ -g -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align /usr/src/stdcxx/trunk/examples/manual/accumulate.cpp
> gcc accumulate.o -o accumulate -mthreads -L/usr/src/stdcxx/trunk/build/lib -lstd15s -lsupc++ -lcatgets -liconv -lm
> /usr/local/lib/gcc/i686-pc-cygwin/4.2.0/../../../libsupc++.a(tinfo.o): In function `_ZNK10__cxxabiv121__vmi_class_type_info12__do_dyncastEiNS_17__class_type_info10__sub_kindEPKS1_PKvS4_S6_RNS1_16__dyncast_resultE':
> /usr/src/gcc-4.2.0/i686-pc-cygwin/libstdc++-v3/libsupc++/../../.././libstdc++-v3/libsupc++/tinfo.cc:418: multiple definition of `std::bad_cast::what() const'
> /usr/src/stdcxx/trunk/build/lib/libstd15s.a(typeinfo.o):/usr/src/stdcxx/trunk/src/typeinfo.cpp:349: first defined here
> /usr/local/lib/gcc/i686-pc-cygwin/4.2.0/../../../libsupc++.a(tinfo.o): In function `_ZNK10__cxxabiv121__vmi_class_type_info12__do_dyncastEiNS_17__class_type_info10__sub_kindEPKS1_PKvS4_S6_RNS1_16__dyncast_resultE':
> /usr/src/gcc-4.2.0/i686-pc-cygwin/libstdc++-v3/libsupc++/../../.././libstdc++-v3/libsupc++/tinfo.cc:418: multiple definition of `std::bad_typeid::what() const'
> /usr/src/stdcxx/trunk/build/lib/libstd15s.a(typeinfo.o):/usr/src/stdcxx/trunk/src/typeinfo.cpp:414: first defined here
> /usr/local/lib/gcc/i686-pc-cygwin/4.2.0/../../../libsupc++.a(new_handler.o): In function `_ZNSt9bad_allocD2Ev':
> /usr/src/gcc-4.2.0/i686-pc-cygwin/libstdc++-v3/libsupc++/../../.././libstdc++-v3/libsupc++/new_handler.cc:48: multiple definition of `std::bad_alloc::what() const'
> /usr/src/stdcxx/trunk/build/lib/libstd15s.a(memory.o):/usr/src/stdcxx/trunk/src/memory.cpp:331: first defined here
> /usr/local/lib/gcc/i686-pc-cygwin/4.2.0/../../../libsupc++.a(eh_exception.o): In function `_ZNSt13bad_exceptionD2Ev':
> /usr/src/gcc-4.2.0/i686-pc-cygwin/libstdc++-v3/libsupc++/../../.././libstdc++-v3/libsupc++/eh_exception.cc:38: multiple definition of `std::bad_exception::what() const'
> /usr/src/stdcxx/trunk/build/lib/libstd15s.a(exception.o):/usr/src/stdcxx/trunk/src/exception.cpp:412: first defined here
> collect2: ld returned 1 exit status
> make: *** [accumulate] Error 1
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (STDCXX-585) [gcc 4.2.0/Cygwin] linker errors due
to multiple definition of `std::bad_cast::what()';
`std::bad_typeid::what()'; `std::bad_exception::what()';
`std::bad_alloc::what()'
Posted by "Farid Zaripov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/STDCXX-585?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Farid Zaripov reassigned STDCXX-585:
------------------------------------
Assignee: Farid Zaripov
> [gcc 4.2.0/Cygwin] linker errors due to multiple definition of `std::bad_cast::what()'; `std::bad_typeid::what()'; `std::bad_exception::what()'; `std::bad_alloc::what()'
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: STDCXX-585
> URL: https://issues.apache.org/jira/browse/STDCXX-585
> Project: C++ Standard Library
> Issue Type: Bug
> Components: Configuration
> Affects Versions: 4.2.0
> Environment: gcc 4.2.0 / Cygwin
> Reporter: Farid Zaripov
> Assignee: Farid Zaripov
> Priority: Blocker
> Fix For: 4.2.1
>
>
> When building the stdcxx on Cygwin I get errors like:
> make: Entering directory `/usr/src/stdcxx/trunk/build/examples'
> gcc -c -I/usr/src/stdcxx/trunk/include/ansi -D_RWSTDDEBUG -D_REENTRANT -mthreads -I/usr/src/stdcxx/trunk/include -I/usr/src/stdcxx/trunk/build/include -I/usr/src/stdcxx/trunk/examples/include -pedantic -nostdinc++ -g -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align /usr/src/stdcxx/trunk/examples/manual/accumulate.cpp
> gcc accumulate.o -o accumulate -mthreads -L/usr/src/stdcxx/trunk/build/lib -lstd15s -lsupc++ -lcatgets -liconv -lm
> /usr/local/lib/gcc/i686-pc-cygwin/4.2.0/../../../libsupc++.a(tinfo.o): In function `_ZNK10__cxxabiv121__vmi_class_type_info12__do_dyncastEiNS_17__class_type_info10__sub_kindEPKS1_PKvS4_S6_RNS1_16__dyncast_resultE':
> /usr/src/gcc-4.2.0/i686-pc-cygwin/libstdc++-v3/libsupc++/../../.././libstdc++-v3/libsupc++/tinfo.cc:418: multiple definition of `std::bad_cast::what() const'
> /usr/src/stdcxx/trunk/build/lib/libstd15s.a(typeinfo.o):/usr/src/stdcxx/trunk/src/typeinfo.cpp:349: first defined here
> /usr/local/lib/gcc/i686-pc-cygwin/4.2.0/../../../libsupc++.a(tinfo.o): In function `_ZNK10__cxxabiv121__vmi_class_type_info12__do_dyncastEiNS_17__class_type_info10__sub_kindEPKS1_PKvS4_S6_RNS1_16__dyncast_resultE':
> /usr/src/gcc-4.2.0/i686-pc-cygwin/libstdc++-v3/libsupc++/../../.././libstdc++-v3/libsupc++/tinfo.cc:418: multiple definition of `std::bad_typeid::what() const'
> /usr/src/stdcxx/trunk/build/lib/libstd15s.a(typeinfo.o):/usr/src/stdcxx/trunk/src/typeinfo.cpp:414: first defined here
> /usr/local/lib/gcc/i686-pc-cygwin/4.2.0/../../../libsupc++.a(new_handler.o): In function `_ZNSt9bad_allocD2Ev':
> /usr/src/gcc-4.2.0/i686-pc-cygwin/libstdc++-v3/libsupc++/../../.././libstdc++-v3/libsupc++/new_handler.cc:48: multiple definition of `std::bad_alloc::what() const'
> /usr/src/stdcxx/trunk/build/lib/libstd15s.a(memory.o):/usr/src/stdcxx/trunk/src/memory.cpp:331: first defined here
> /usr/local/lib/gcc/i686-pc-cygwin/4.2.0/../../../libsupc++.a(eh_exception.o): In function `_ZNSt13bad_exceptionD2Ev':
> /usr/src/gcc-4.2.0/i686-pc-cygwin/libstdc++-v3/libsupc++/../../.././libstdc++-v3/libsupc++/eh_exception.cc:38: multiple definition of `std::bad_exception::what() const'
> /usr/src/stdcxx/trunk/build/lib/libstd15s.a(exception.o):/usr/src/stdcxx/trunk/src/exception.cpp:412: first defined here
> collect2: ld returned 1 exit status
> make: *** [accumulate] Error 1
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (STDCXX-585) [gcc 4.2.0/Cygwin] linker errors due
to multiple definition of `std::bad_cast::what()';
`std::bad_typeid::what()'; `std::bad_exception::what()';
`std::bad_alloc::what()'
Posted by "Farid Zaripov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/STDCXX-585?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Farid Zaripov updated STDCXX-585:
---------------------------------
Attachment: BAD_ALLOC_ASSIGNMENT.cpp.diff
The patch is attached.
> [gcc 4.2.0/Cygwin] linker errors due to multiple definition of `std::bad_cast::what()'; `std::bad_typeid::what()'; `std::bad_exception::what()'; `std::bad_alloc::what()'
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: STDCXX-585
> URL: https://issues.apache.org/jira/browse/STDCXX-585
> Project: C++ Standard Library
> Issue Type: Bug
> Components: Configuration
> Affects Versions: 4.2.0
> Environment: gcc 4.2.0 / Cygwin
> Reporter: Farid Zaripov
> Assignee: Farid Zaripov
> Priority: Blocker
> Fix For: 4.2.1
>
> Attachments: BAD_ALLOC_ASSIGNMENT.cpp.diff
>
>
> When building the stdcxx on Cygwin I get errors like:
> make: Entering directory `/usr/src/stdcxx/trunk/build/examples'
> gcc -c -I/usr/src/stdcxx/trunk/include/ansi -D_RWSTDDEBUG -D_REENTRANT -mthreads -I/usr/src/stdcxx/trunk/include -I/usr/src/stdcxx/trunk/build/include -I/usr/src/stdcxx/trunk/examples/include -pedantic -nostdinc++ -g -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align /usr/src/stdcxx/trunk/examples/manual/accumulate.cpp
> gcc accumulate.o -o accumulate -mthreads -L/usr/src/stdcxx/trunk/build/lib -lstd15s -lsupc++ -lcatgets -liconv -lm
> /usr/local/lib/gcc/i686-pc-cygwin/4.2.0/../../../libsupc++.a(tinfo.o): In function `_ZNK10__cxxabiv121__vmi_class_type_info12__do_dyncastEiNS_17__class_type_info10__sub_kindEPKS1_PKvS4_S6_RNS1_16__dyncast_resultE':
> /usr/src/gcc-4.2.0/i686-pc-cygwin/libstdc++-v3/libsupc++/../../.././libstdc++-v3/libsupc++/tinfo.cc:418: multiple definition of `std::bad_cast::what() const'
> /usr/src/stdcxx/trunk/build/lib/libstd15s.a(typeinfo.o):/usr/src/stdcxx/trunk/src/typeinfo.cpp:349: first defined here
> /usr/local/lib/gcc/i686-pc-cygwin/4.2.0/../../../libsupc++.a(tinfo.o): In function `_ZNK10__cxxabiv121__vmi_class_type_info12__do_dyncastEiNS_17__class_type_info10__sub_kindEPKS1_PKvS4_S6_RNS1_16__dyncast_resultE':
> /usr/src/gcc-4.2.0/i686-pc-cygwin/libstdc++-v3/libsupc++/../../.././libstdc++-v3/libsupc++/tinfo.cc:418: multiple definition of `std::bad_typeid::what() const'
> /usr/src/stdcxx/trunk/build/lib/libstd15s.a(typeinfo.o):/usr/src/stdcxx/trunk/src/typeinfo.cpp:414: first defined here
> /usr/local/lib/gcc/i686-pc-cygwin/4.2.0/../../../libsupc++.a(new_handler.o): In function `_ZNSt9bad_allocD2Ev':
> /usr/src/gcc-4.2.0/i686-pc-cygwin/libstdc++-v3/libsupc++/../../.././libstdc++-v3/libsupc++/new_handler.cc:48: multiple definition of `std::bad_alloc::what() const'
> /usr/src/stdcxx/trunk/build/lib/libstd15s.a(memory.o):/usr/src/stdcxx/trunk/src/memory.cpp:331: first defined here
> /usr/local/lib/gcc/i686-pc-cygwin/4.2.0/../../../libsupc++.a(eh_exception.o): In function `_ZNSt13bad_exceptionD2Ev':
> /usr/src/gcc-4.2.0/i686-pc-cygwin/libstdc++-v3/libsupc++/../../.././libstdc++-v3/libsupc++/eh_exception.cc:38: multiple definition of `std::bad_exception::what() const'
> /usr/src/stdcxx/trunk/build/lib/libstd15s.a(exception.o):/usr/src/stdcxx/trunk/src/exception.cpp:412: first defined here
> collect2: ld returned 1 exit status
> make: *** [accumulate] Error 1
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (STDCXX-585) [gcc 4.2.0/Cygwin] linker errors due
to multiple definition of `std::bad_cast::what()';
`std::bad_typeid::what()'; `std::bad_exception::what()';
`std::bad_alloc::what()'
Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/STDCXX-585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12549876 ]
Martin Sebor commented on STDCXX-585:
-------------------------------------
I assume the patch has tested successfully with all compilers on both Linux and Windows. If that's correct, let's check it in and keep a close eye on all the other platforms to see what happens and be ready to revert it if it breaks things too badly.
> [gcc 4.2.0/Cygwin] linker errors due to multiple definition of `std::bad_cast::what()'; `std::bad_typeid::what()'; `std::bad_exception::what()'; `std::bad_alloc::what()'
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: STDCXX-585
> URL: https://issues.apache.org/jira/browse/STDCXX-585
> Project: C++ Standard Library
> Issue Type: Bug
> Components: Configuration
> Affects Versions: 4.2.0
> Environment: gcc 4.2.0 / Cygwin
> Reporter: Farid Zaripov
> Assignee: Farid Zaripov
> Priority: Blocker
> Fix For: 4.2.1
>
> Attachments: BAD_ALLOC_ASSIGNMENT.cpp.diff
>
>
> When building the stdcxx on Cygwin I get errors like:
> make: Entering directory `/usr/src/stdcxx/trunk/build/examples'
> gcc -c -I/usr/src/stdcxx/trunk/include/ansi -D_RWSTDDEBUG -D_REENTRANT -mthreads -I/usr/src/stdcxx/trunk/include -I/usr/src/stdcxx/trunk/build/include -I/usr/src/stdcxx/trunk/examples/include -pedantic -nostdinc++ -g -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align /usr/src/stdcxx/trunk/examples/manual/accumulate.cpp
> gcc accumulate.o -o accumulate -mthreads -L/usr/src/stdcxx/trunk/build/lib -lstd15s -lsupc++ -lcatgets -liconv -lm
> /usr/local/lib/gcc/i686-pc-cygwin/4.2.0/../../../libsupc++.a(tinfo.o): In function `_ZNK10__cxxabiv121__vmi_class_type_info12__do_dyncastEiNS_17__class_type_info10__sub_kindEPKS1_PKvS4_S6_RNS1_16__dyncast_resultE':
> /usr/src/gcc-4.2.0/i686-pc-cygwin/libstdc++-v3/libsupc++/../../.././libstdc++-v3/libsupc++/tinfo.cc:418: multiple definition of `std::bad_cast::what() const'
> /usr/src/stdcxx/trunk/build/lib/libstd15s.a(typeinfo.o):/usr/src/stdcxx/trunk/src/typeinfo.cpp:349: first defined here
> /usr/local/lib/gcc/i686-pc-cygwin/4.2.0/../../../libsupc++.a(tinfo.o): In function `_ZNK10__cxxabiv121__vmi_class_type_info12__do_dyncastEiNS_17__class_type_info10__sub_kindEPKS1_PKvS4_S6_RNS1_16__dyncast_resultE':
> /usr/src/gcc-4.2.0/i686-pc-cygwin/libstdc++-v3/libsupc++/../../.././libstdc++-v3/libsupc++/tinfo.cc:418: multiple definition of `std::bad_typeid::what() const'
> /usr/src/stdcxx/trunk/build/lib/libstd15s.a(typeinfo.o):/usr/src/stdcxx/trunk/src/typeinfo.cpp:414: first defined here
> /usr/local/lib/gcc/i686-pc-cygwin/4.2.0/../../../libsupc++.a(new_handler.o): In function `_ZNSt9bad_allocD2Ev':
> /usr/src/gcc-4.2.0/i686-pc-cygwin/libstdc++-v3/libsupc++/../../.././libstdc++-v3/libsupc++/new_handler.cc:48: multiple definition of `std::bad_alloc::what() const'
> /usr/src/stdcxx/trunk/build/lib/libstd15s.a(memory.o):/usr/src/stdcxx/trunk/src/memory.cpp:331: first defined here
> /usr/local/lib/gcc/i686-pc-cygwin/4.2.0/../../../libsupc++.a(eh_exception.o): In function `_ZNSt13bad_exceptionD2Ev':
> /usr/src/gcc-4.2.0/i686-pc-cygwin/libstdc++-v3/libsupc++/../../.././libstdc++-v3/libsupc++/eh_exception.cc:38: multiple definition of `std::bad_exception::what() const'
> /usr/src/stdcxx/trunk/build/lib/libstd15s.a(exception.o):/usr/src/stdcxx/trunk/src/exception.cpp:412: first defined here
> collect2: ld returned 1 exit status
> make: *** [accumulate] Error 1
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (STDCXX-585) [gcc 4.2.0/Cygwin] linker errors due
to multiple definition of `std::bad_cast::what()';
`std::bad_typeid::what()'; `std::bad_exception::what()';
`std::bad_alloc::what()'
Posted by "Farid Zaripov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/STDCXX-585?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Farid Zaripov updated STDCXX-585:
---------------------------------
Summary: [gcc 4.2.0/Cygwin] linker errors due to multiple definition of `std::bad_cast::what()'; `std::bad_typeid::what()'; `std::bad_exception::what()'; `std::bad_alloc::what()' (was: [Cygwin] linker errors due to multiple definition of `std::bad_cast::what()'; `std::bad_typeid::what()'; `std::bad_exception::what()'; `std::bad_alloc::what()')
> [gcc 4.2.0/Cygwin] linker errors due to multiple definition of `std::bad_cast::what()'; `std::bad_typeid::what()'; `std::bad_exception::what()'; `std::bad_alloc::what()'
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: STDCXX-585
> URL: https://issues.apache.org/jira/browse/STDCXX-585
> Project: C++ Standard Library
> Issue Type: Bug
> Components: Configuration
> Affects Versions: trunk
> Environment: gcc 4.2.0 / Cygwin
> Reporter: Farid Zaripov
> Priority: Blocker
> Fix For: 4.2.1
>
>
> When building the stdcxx on Cygwin I get errors like:
> make: Entering directory `/usr/src/stdcxx/trunk/build/examples'
> gcc -c -I/usr/src/stdcxx/trunk/include/ansi -D_RWSTDDEBUG -D_REENTRANT -mthreads -I/usr/src/stdcxx/trunk/include -I/usr/src/stdcxx/trunk/build/include -I/usr/src/stdcxx/trunk/examples/include -pedantic -nostdinc++ -g -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align /usr/src/stdcxx/trunk/examples/manual/accumulate.cpp
> gcc accumulate.o -o accumulate -mthreads -L/usr/src/stdcxx/trunk/build/lib -lstd15s -lsupc++ -lcatgets -liconv -lm
> /usr/local/lib/gcc/i686-pc-cygwin/4.2.0/../../../libsupc++.a(tinfo.o): In function `_ZNK10__cxxabiv121__vmi_class_type_info12__do_dyncastEiNS_17__class_type_info10__sub_kindEPKS1_PKvS4_S6_RNS1_16__dyncast_resultE':
> /usr/src/gcc-4.2.0/i686-pc-cygwin/libstdc++-v3/libsupc++/../../.././libstdc++-v3/libsupc++/tinfo.cc:418: multiple definition of `std::bad_cast::what() const'
> /usr/src/stdcxx/trunk/build/lib/libstd15s.a(typeinfo.o):/usr/src/stdcxx/trunk/src/typeinfo.cpp:349: first defined here
> /usr/local/lib/gcc/i686-pc-cygwin/4.2.0/../../../libsupc++.a(tinfo.o): In function `_ZNK10__cxxabiv121__vmi_class_type_info12__do_dyncastEiNS_17__class_type_info10__sub_kindEPKS1_PKvS4_S6_RNS1_16__dyncast_resultE':
> /usr/src/gcc-4.2.0/i686-pc-cygwin/libstdc++-v3/libsupc++/../../.././libstdc++-v3/libsupc++/tinfo.cc:418: multiple definition of `std::bad_typeid::what() const'
> /usr/src/stdcxx/trunk/build/lib/libstd15s.a(typeinfo.o):/usr/src/stdcxx/trunk/src/typeinfo.cpp:414: first defined here
> /usr/local/lib/gcc/i686-pc-cygwin/4.2.0/../../../libsupc++.a(new_handler.o): In function `_ZNSt9bad_allocD2Ev':
> /usr/src/gcc-4.2.0/i686-pc-cygwin/libstdc++-v3/libsupc++/../../.././libstdc++-v3/libsupc++/new_handler.cc:48: multiple definition of `std::bad_alloc::what() const'
> /usr/src/stdcxx/trunk/build/lib/libstd15s.a(memory.o):/usr/src/stdcxx/trunk/src/memory.cpp:331: first defined here
> /usr/local/lib/gcc/i686-pc-cygwin/4.2.0/../../../libsupc++.a(eh_exception.o): In function `_ZNSt13bad_exceptionD2Ev':
> /usr/src/gcc-4.2.0/i686-pc-cygwin/libstdc++-v3/libsupc++/../../.././libstdc++-v3/libsupc++/eh_exception.cc:38: multiple definition of `std::bad_exception::what() const'
> /usr/src/stdcxx/trunk/build/lib/libstd15s.a(exception.o):/usr/src/stdcxx/trunk/src/exception.cpp:412: first defined here
> collect2: ld returned 1 exit status
> make: *** [accumulate] Error 1
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (STDCXX-585) [gcc 4.2.0/Cygwin] linker errors due
to multiple definition of `std::bad_cast::what()';
`std::bad_typeid::what()'; `std::bad_exception::what()';
`std::bad_alloc::what()'
Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/STDCXX-585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12553391 ]
Martin Sebor commented on STDCXX-585:
-------------------------------------
FWIW, I would have preferred to commit this on trunk only and wait for a full set of results before merging it out to 4.2.1.
> [gcc 4.2.0/Cygwin] linker errors due to multiple definition of `std::bad_cast::what()'; `std::bad_typeid::what()'; `std::bad_exception::what()'; `std::bad_alloc::what()'
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: STDCXX-585
> URL: https://issues.apache.org/jira/browse/STDCXX-585
> Project: C++ Standard Library
> Issue Type: Bug
> Components: Configuration
> Affects Versions: 4.2.0
> Environment: gcc 4.2.0 / Cygwin
> Reporter: Farid Zaripov
> Assignee: Farid Zaripov
> Priority: Blocker
> Fix For: 4.2.1
>
> Attachments: BAD_ALLOC_ASSIGNMENT.cpp.diff
>
>
> When building the stdcxx on Cygwin I get errors like:
> make: Entering directory `/usr/src/stdcxx/trunk/build/examples'
> gcc -c -I/usr/src/stdcxx/trunk/include/ansi -D_RWSTDDEBUG -D_REENTRANT -mthreads -I/usr/src/stdcxx/trunk/include -I/usr/src/stdcxx/trunk/build/include -I/usr/src/stdcxx/trunk/examples/include -pedantic -nostdinc++ -g -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align /usr/src/stdcxx/trunk/examples/manual/accumulate.cpp
> gcc accumulate.o -o accumulate -mthreads -L/usr/src/stdcxx/trunk/build/lib -lstd15s -lsupc++ -lcatgets -liconv -lm
> /usr/local/lib/gcc/i686-pc-cygwin/4.2.0/../../../libsupc++.a(tinfo.o): In function `_ZNK10__cxxabiv121__vmi_class_type_info12__do_dyncastEiNS_17__class_type_info10__sub_kindEPKS1_PKvS4_S6_RNS1_16__dyncast_resultE':
> /usr/src/gcc-4.2.0/i686-pc-cygwin/libstdc++-v3/libsupc++/../../.././libstdc++-v3/libsupc++/tinfo.cc:418: multiple definition of `std::bad_cast::what() const'
> /usr/src/stdcxx/trunk/build/lib/libstd15s.a(typeinfo.o):/usr/src/stdcxx/trunk/src/typeinfo.cpp:349: first defined here
> /usr/local/lib/gcc/i686-pc-cygwin/4.2.0/../../../libsupc++.a(tinfo.o): In function `_ZNK10__cxxabiv121__vmi_class_type_info12__do_dyncastEiNS_17__class_type_info10__sub_kindEPKS1_PKvS4_S6_RNS1_16__dyncast_resultE':
> /usr/src/gcc-4.2.0/i686-pc-cygwin/libstdc++-v3/libsupc++/../../.././libstdc++-v3/libsupc++/tinfo.cc:418: multiple definition of `std::bad_typeid::what() const'
> /usr/src/stdcxx/trunk/build/lib/libstd15s.a(typeinfo.o):/usr/src/stdcxx/trunk/src/typeinfo.cpp:414: first defined here
> /usr/local/lib/gcc/i686-pc-cygwin/4.2.0/../../../libsupc++.a(new_handler.o): In function `_ZNSt9bad_allocD2Ev':
> /usr/src/gcc-4.2.0/i686-pc-cygwin/libstdc++-v3/libsupc++/../../.././libstdc++-v3/libsupc++/new_handler.cc:48: multiple definition of `std::bad_alloc::what() const'
> /usr/src/stdcxx/trunk/build/lib/libstd15s.a(memory.o):/usr/src/stdcxx/trunk/src/memory.cpp:331: first defined here
> /usr/local/lib/gcc/i686-pc-cygwin/4.2.0/../../../libsupc++.a(eh_exception.o): In function `_ZNSt13bad_exceptionD2Ev':
> /usr/src/gcc-4.2.0/i686-pc-cygwin/libstdc++-v3/libsupc++/../../.././libstdc++-v3/libsupc++/eh_exception.cc:38: multiple definition of `std::bad_exception::what() const'
> /usr/src/stdcxx/trunk/build/lib/libstd15s.a(exception.o):/usr/src/stdcxx/trunk/src/exception.cpp:412: first defined here
> collect2: ld returned 1 exit status
> make: *** [accumulate] Error 1
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (STDCXX-585) [gcc 4.2.0/Cygwin] linker errors due
to multiple definition of `std::bad_cast::what()';
`std::bad_typeid::what()'; `std::bad_exception::what()';
`std::bad_alloc::what()'
Posted by "Farid Zaripov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/STDCXX-585?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Farid Zaripov updated STDCXX-585:
---------------------------------
Patch Info: [Patch Available]
> [gcc 4.2.0/Cygwin] linker errors due to multiple definition of `std::bad_cast::what()'; `std::bad_typeid::what()'; `std::bad_exception::what()'; `std::bad_alloc::what()'
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: STDCXX-585
> URL: https://issues.apache.org/jira/browse/STDCXX-585
> Project: C++ Standard Library
> Issue Type: Bug
> Components: Configuration
> Affects Versions: 4.2.0
> Environment: gcc 4.2.0 / Cygwin
> Reporter: Farid Zaripov
> Assignee: Farid Zaripov
> Priority: Blocker
> Fix For: 4.2.1
>
> Attachments: BAD_ALLOC_ASSIGNMENT.cpp.diff
>
>
> When building the stdcxx on Cygwin I get errors like:
> make: Entering directory `/usr/src/stdcxx/trunk/build/examples'
> gcc -c -I/usr/src/stdcxx/trunk/include/ansi -D_RWSTDDEBUG -D_REENTRANT -mthreads -I/usr/src/stdcxx/trunk/include -I/usr/src/stdcxx/trunk/build/include -I/usr/src/stdcxx/trunk/examples/include -pedantic -nostdinc++ -g -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align /usr/src/stdcxx/trunk/examples/manual/accumulate.cpp
> gcc accumulate.o -o accumulate -mthreads -L/usr/src/stdcxx/trunk/build/lib -lstd15s -lsupc++ -lcatgets -liconv -lm
> /usr/local/lib/gcc/i686-pc-cygwin/4.2.0/../../../libsupc++.a(tinfo.o): In function `_ZNK10__cxxabiv121__vmi_class_type_info12__do_dyncastEiNS_17__class_type_info10__sub_kindEPKS1_PKvS4_S6_RNS1_16__dyncast_resultE':
> /usr/src/gcc-4.2.0/i686-pc-cygwin/libstdc++-v3/libsupc++/../../.././libstdc++-v3/libsupc++/tinfo.cc:418: multiple definition of `std::bad_cast::what() const'
> /usr/src/stdcxx/trunk/build/lib/libstd15s.a(typeinfo.o):/usr/src/stdcxx/trunk/src/typeinfo.cpp:349: first defined here
> /usr/local/lib/gcc/i686-pc-cygwin/4.2.0/../../../libsupc++.a(tinfo.o): In function `_ZNK10__cxxabiv121__vmi_class_type_info12__do_dyncastEiNS_17__class_type_info10__sub_kindEPKS1_PKvS4_S6_RNS1_16__dyncast_resultE':
> /usr/src/gcc-4.2.0/i686-pc-cygwin/libstdc++-v3/libsupc++/../../.././libstdc++-v3/libsupc++/tinfo.cc:418: multiple definition of `std::bad_typeid::what() const'
> /usr/src/stdcxx/trunk/build/lib/libstd15s.a(typeinfo.o):/usr/src/stdcxx/trunk/src/typeinfo.cpp:414: first defined here
> /usr/local/lib/gcc/i686-pc-cygwin/4.2.0/../../../libsupc++.a(new_handler.o): In function `_ZNSt9bad_allocD2Ev':
> /usr/src/gcc-4.2.0/i686-pc-cygwin/libstdc++-v3/libsupc++/../../.././libstdc++-v3/libsupc++/new_handler.cc:48: multiple definition of `std::bad_alloc::what() const'
> /usr/src/stdcxx/trunk/build/lib/libstd15s.a(memory.o):/usr/src/stdcxx/trunk/src/memory.cpp:331: first defined here
> /usr/local/lib/gcc/i686-pc-cygwin/4.2.0/../../../libsupc++.a(eh_exception.o): In function `_ZNSt13bad_exceptionD2Ev':
> /usr/src/gcc-4.2.0/i686-pc-cygwin/libstdc++-v3/libsupc++/../../.././libstdc++-v3/libsupc++/eh_exception.cc:38: multiple definition of `std::bad_exception::what() const'
> /usr/src/stdcxx/trunk/build/lib/libstd15s.a(exception.o):/usr/src/stdcxx/trunk/src/exception.cpp:412: first defined here
> collect2: ld returned 1 exit status
> make: *** [accumulate] Error 1
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.