[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/11247] Assert failure in arm.cc
From: |
ahartmetz at gmail dot com |
Subject: |
[Bug gold/11247] Assert failure in arm.cc |
Date: |
4 Feb 2010 15:23:48 -0000 |
------- Additional Comments From ahartmetz at gmail dot com 2010-02-04 15:23
-------
(In reply to comment #2)
> Thanks for the bug report. Can you list the errors you get when building
gold?
The first issue doesn't need much explanation; there is an sprintf() in the
file and no declaration is available.
Index: arm-reloc-property.cc
===================================================================
RCS file: /cvs/src/src/gold/arm-reloc-property.cc,v
retrieving revision 1.2
diff -u -r1.2 arm-reloc-property.cc
--- arm-reloc-property.cc 4 Feb 2010 03:32:18 -0000 1.2
+++ arm-reloc-property.cc 4 Feb 2010 15:11:15 -0000
@@ -22,6 +22,7 @@
#include "gold.h"
+#include <cstdio>
#include <cstring>
#include <stack>
#include <string>
The other issue I "fixed" by changing the Makefile after it has been generated:
TARGETOBJS = arm.$(OBJEXT) arm-reloc-property.$(OBJEXT) arm.$(OBJEXT) arm-
reloc-property.$(OBJEXT)
- remove one of the arm-reloc-property.$(OBJEXT)
The relevant commands and error messages look like this:
ranlib libgold.a
In file included from debug.h:30,
from target.h:40,
from object.h:33,
from arm.cc:42:
errors.h:44: note: the mangling of 'va_list' has changed in GCC 4.4
mv -f .deps/arm.Tpo .deps/arm.Po
g++ -W -Wall -Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-
seed=ld-new -g -O2 -o ld-new main.o arm.o arm-reloc-property.o arm.o arm-
reloc-property.o libgold.a ../libiberty/libiberty.a -lz
g++ -W -Wall -Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-
seed=incremental-dump -g -O2 -o incremental-dump incremental-dump.o arm.o
arm-reloc-property.o arm.o arm-reloc-property.o libgold.a
../libiberty/libiberty.a -lz
arm-reloc-property.o: In function
`gold::Arm_reloc_property_table::reloc_name_in_error_message(unsigned int)':
/mnt/swap/kde/aux/binutils/gold/arm-reloc-property.h:199: multiple definition
of `gold::Arm_reloc_property_table::reloc_name_in_error_message(unsigned int)'
arm-reloc-property.o:/mnt/swap/kde/aux/binutils/gold/arm-reloc-property.cc:293:
first defined here
arm-reloc-property.o: In function
`gold::Arm_reloc_property::Tree_node::make_tree(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)':
/mnt/swap/kde/aux/binutils/gold/arm-reloc-property.cc:45: multiple definition
of `gold::Arm_reloc_property::Tree_node::make_tree(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)'
arm-reloc-property.o:/mnt/swap/kde/aux/binutils/gold/arm-reloc-property.cc:45:
first defined here
arm-reloc-property.o: In function `Arm_reloc_property':
/mnt/swap/kde/aux/binutils/gold/arm-reloc-property.cc:92: multiple definition
of `gold::Arm_reloc_property::Arm_reloc_property(unsigned int, char const*,
gold::Arm_reloc_property::Reloc_type, bool,
gold::Arm_reloc_property::Reloc_class, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, bool, int, bool)'
arm-reloc-property.o:/mnt/swap/kde/aux/binutils/gold/arm-reloc-property.cc:92:
first defined here
arm-reloc-property.o: In function `Arm_reloc_property':
/mnt/swap/kde/aux/binutils/gold/arm-reloc-property.cc:92: multiple definition
of `gold::Arm_reloc_property::Arm_reloc_property(unsigned int, char const*,
gold::Arm_reloc_property::Reloc_type, bool,
gold::Arm_reloc_property::Reloc_class, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, bool, int, bool)'
arm-reloc-property.o:/mnt/swap/kde/aux/binutils/gold/arm-reloc-property.cc:92:
first defined here
arm-reloc-property.o: In function `Arm_reloc_property_table':
/mnt/swap/kde/aux/binutils/gold/arm-reloc-property.cc:258: multiple definition
of `gold::Arm_reloc_property_table::Arm_reloc_property_table()'
arm-reloc-property.o:/mnt/swap/kde/aux/binutils/gold/arm-reloc-property.cc:258:
first defined here
arm-reloc-property.o: In function `Arm_reloc_property_table':
/mnt/swap/kde/aux/binutils/gold/arm-reloc-property.cc:258: multiple definition
of `gold::Arm_reloc_property_table::Arm_reloc_property_table()'
arm-reloc-property.o:/mnt/swap/kde/aux/binutils/gold/arm-reloc-property.cc:258:
first defined here
collect2: ld returned 1 exit status
make[2]: *** [ld-new] Error 1
make[2]: *** Waiting for unfinished jobs....
arm-reloc-property.o: In function
`gold::Arm_reloc_property_table::reloc_name_in_error_message(unsigned int)':
/mnt/swap/kde/aux/binutils/gold/arm-reloc-property.h:199: multiple definition
of `gold::Arm_reloc_property_table::reloc_name_in_error_message(unsigned int)'
arm-reloc-property.o:/mnt/swap/kde/aux/binutils/gold/arm-reloc-property.cc:293:
first defined here
arm-reloc-property.o: In function
`gold::Arm_reloc_property::Tree_node::make_tree(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)':
/mnt/swap/kde/aux/binutils/gold/arm-reloc-property.cc:45: multiple definition
of `gold::Arm_reloc_property::Tree_node::make_tree(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)'
arm-reloc-property.o:/mnt/swap/kde/aux/binutils/gold/arm-reloc-property.cc:45:
first defined here
arm-reloc-property.o: In function `Arm_reloc_property':
/mnt/swap/kde/aux/binutils/gold/arm-reloc-property.cc:92: multiple definition
of `gold::Arm_reloc_property::Arm_reloc_property(unsigned int, char const*,
gold::Arm_reloc_property::Reloc_type, bool,
gold::Arm_reloc_property::Reloc_class, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, bool, int, bool)'
arm-reloc-property.o:/mnt/swap/kde/aux/binutils/gold/arm-reloc-property.cc:92:
first defined here
arm-reloc-property.o: In function `Arm_reloc_property':
/mnt/swap/kde/aux/binutils/gold/arm-reloc-property.cc:92: multiple definition
of `gold::Arm_reloc_property::Arm_reloc_property(unsigned int, char const*,
gold::Arm_reloc_property::Reloc_type, bool,
gold::Arm_reloc_property::Reloc_class, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&, bool, int, bool)'
arm-reloc-property.o:/mnt/swap/kde/aux/binutils/gold/arm-reloc-property.cc:92:
first defined here
arm-reloc-property.o: In function `Arm_reloc_property_table':
/mnt/swap/kde/aux/binutils/gold/arm-reloc-property.cc:258: multiple definition
of `gold::Arm_reloc_property_table::Arm_reloc_property_table()'
arm-reloc-property.o:/mnt/swap/kde/aux/binutils/gold/arm-reloc-property.cc:258:
first defined here
arm-reloc-property.o: In function `Arm_reloc_property_table':
/mnt/swap/kde/aux/binutils/gold/arm-reloc-property.cc:258: multiple definition
of `gold::Arm_reloc_property_table::Arm_reloc_property_table()'
arm-reloc-property.o:/mnt/swap/kde/aux/binutils/gold/arm-reloc-property.cc:258:
first defined here
collect2: ld returned 1 exit status
make[2]: *** [incremental-dump] Error 1
make[2]: Leaving directory `/mnt/swap/kde/aux/binutils/gold'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/swap/kde/aux/binutils/gold'
make: *** [all] Error 2
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11247
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug gold/11247] New: Assert failure in arm.cc, ahartmetz at gmail dot com, 2010/02/04
- [Bug gold/11247] Assert failure in arm.cc, ahartmetz at gmail dot com, 2010/02/04
- [Bug gold/11247] Assert failure in arm.cc, ian at airs dot com, 2010/02/04
- [Bug gold/11247] Assert failure in arm.cc,
ahartmetz at gmail dot com <=
- [Bug gold/11247] Assert failure in arm.cc, ahartmetz at gmail dot com, 2010/02/04
- [Bug gold/11247] Assert failure in arm.cc, ahartmetz at gmail dot com, 2010/02/04
- [Bug gold/11247] Assert failure in arm.cc, dougkwan at google dot com, 2010/02/04
- [Bug gold/11247] Assert failure in arm.cc, dougkwan at google dot com, 2010/02/04
- [Bug gold/11247] Assert failure in arm.cc, cvs-commit at gcc dot gnu dot org, 2010/02/04
- [Bug gold/11247] Assert failure in arm.cc, dougkwan at google dot com, 2010/02/04
- [Bug gold/11247] Assert failure in arm.cc, ahartmetz at gmail dot com, 2010/02/05
- [Bug gold/11247] Assert failure in arm.cc, dougkwan at google dot com, 2010/02/05
- [Bug gold/11247] Assert failure in arm.cc, cvs-commit at gcc dot gnu dot org, 2010/02/05
- [Bug gold/11247] Assert failure in arm.cc, dougkwan at google dot com, 2010/02/05