This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: relocation truncated to fit: R_ARM_THM_PC11
- From: Thomas Koeller <thomas dot koeller at baslerweb dot com>
- To: Sven Rehfuß <sven dot rehfuss at b2motion dot de>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Fri, 19 Mar 2004 10:55:40 +0100
- Subject: Re: [ECOS] relocation truncated to fit: R_ARM_THM_PC11
- Organization: Basler AG
- References: <1079632391.2737.61.camel@linux.local> <200403181932.49327.thomas.koeller@baslerweb.com> <1079636117.2737.67.camel@linux.local>
This is also a known gcc bug, see
http://www.mail-archive.com/gcc-bugs@gcc.gnu.org/msg59587.html. There is
a patch available, which can be retrieved from the PR site.
In general, problems like this can best be solved by just using Google to
search for the error message text - works in this case, try it out. And
please do not forget to cc any mails to the list!
tk
Sven Rehfuß wrote:
> Hi,
> I tried to compile gcc-3.3.3 again and this time (I do not know why) I
> get the error:
> dp-bit.c: In function `__pack_d':
> dp-bit.c:411: error: insn does not satisfy its constraints:
> (insn:HI 333 331 561 0x401e5ec8 (set (reg:HI 3 r3 [109])
> (mem:HI (label_ref 584) [0 S2 A16])) 169 {*thumb_movhi_insn}
> (insn_list:REG_DEP_ANTI 330 (insn_list:REG_DEP_OUTPUT 329 (nil)))
> (expr_list:REG_EQUIV (const_int 2047 [0x7ff])
> (nil)))
> dp-bit.c:411: internal compiler error: in extract_constrain_insn_cached,
> at recog.c:2090
> Please submit a full bug report,
> with preprocessed source if appropriate.
>
> Can you help me?
>
> Regards,
> Sven Rehfuß
>
> Am Do, 2004-03-18 um 19.32 schrieb Thomas Koeller:
> > That's a known GCC bug. Update to gcc-3.3.3. See
> > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12476
> > tk
> >
> > Am Donnerstag, 18. März 2004 18:53 schrieb Sven Rehfuß:
> > > Hi,
> > > I get the error
> > > relocation truncated to fit: R_ARM_THM_PC11
> > > if i compile a program using thumb instrcutions.
> > > I added -mthumb, -mthumb-interwork and -mlong-calls to my compiling
> > > instructions.
> > > What can I do??
> > >
> > > Regards,
> > > Sven
> > >
> > > P.S.: the complete message
> > >
> > >
> > > navigation.o:/home/sven/Projekte/NavMe/source/library/webraska_v1.0/inc
> > >lude /BasicClasses/WbskAutoObject.h:124: relocation truncated to fit:
> > > R_ARM_THM_PC11 navigationClass::onDataStart() * navigation.o: In
> > > function `non-virtual thunk [nv:-4] to
> > > navigationClass::onDataStop()':
> > > *
> > > navigation.o(.gnu.linkonce.t._ZThn4_N15navigationClass10onDataStopEv+0x
> > >2): relocation truncated to fit: R_ARM_THM_PC11
> > > navigationClass::onDataStop() * navigation.o: In function `non-virtual
> > > thunk [nv:-4] to
> > > navigationClass::onDataAbort(webraska::DecodingReport const&)':
> > > *
> > > navigation.o(.gnu.linkonce.t._ZThn4_N15navigationClass11onDataAbortERKN
> > >8web raska14DecodingReportE+0x2): relocation truncated to fit:
> > > R_ARM_THM_PC11 navigationClass::onDataAbort(webraska::DecodingReport
> > > const&) * navigation.o: In function `non-virtual thunk [nv:-8] to
> > > navigationClass::onRoadmapLoaded(webraska::RoadmapDecoder::Header
> > > const&, webraska::Vector<webraska::PtrAutoObject<webraska::Section> >
> > > const&)':
> > > *
> > > navigation.o(.gnu.linkonce.t._ZThn8_N15navigationClass15onRoadmapLoaded
> > >ERKN
> > > 8webraska14RoadmapDecoder6HeaderERKNS0_6VectorINS0_13PtrAutoObjectINS0_
> > >7Sect ionEEEEE+0x2): relocation truncated to fit: R_ARM_THM_PC11
> > > navigationClass::onRoadmapLoaded(webraska::RoadmapDecoder::Header
> > > const&, webraska::Vector<webraska::PtrAutoObject<webraska::Section> >
> > > const&) * navigation.o: In function `non-virtual thunk [nv:-16] to
> > > navigationClass::onFirstSectionAvailable(webraska::GuidanceEngine&)':
> > > *
> > > navigation.o(.gnu.linkonce.t._ZThn16_N15navigationClass23onFirstSection
> > >Avai lableERN8webraska14GuidanceEngineE+0x2): relocation truncated to
> > > fit: R_ARM_THM_PC11
> > > navigationClass::onFirstSectionAvailable(webraska::GuidanceEngine&) *
> > > navigation.o: In function `non-virtual thunk [nv:-12] to
> > > navigationClass::onNewDrivingInfo(webraska::GuidanceEngine&,
> > > webraska::PtrAutoObject<webraska::DrivingInfo> const&)':
> > > *
> > > navigation.o(.gnu.linkonce.t._ZThn12_N15navigationClass16onNewDrivingIn
> > >foER
> > > N8webraska14GuidanceEngineERKNS0_13PtrAutoObjectINS0_11DrivingInfoEEE+0
> > >x2): relocation truncated to fit: R_ARM_THM_PC11
> > > navigationClass::onNewDrivingInfo(webraska::GuidanceEngine&,
> > > webraska::PtrAutoObject<webraska::DrivingInfo> const&) * navigation.o:
> > > In function `non-virtual thunk [nv:-12] to
> > > navigationClass::onReroutingBegin(webraska::GuidanceEngine&,
> > > webraska::PtrAutoObject<webraska::DrivingInfo> const&)':
> > > *
> > > navigation.o(.gnu.linkonce.t._ZThn12_N15navigationClass16onReroutingBeg
> > >inER
> > > N8webraska14GuidanceEngineERKNS0_13PtrAutoObjectINS0_11DrivingInfoEEE+0
> > >x2): relocation truncated to fit: R_ARM_THM_PC11
> > > navigationClass::onReroutingBegin(webraska::GuidanceEngine&,
> > > webraska::PtrAutoObject<webraska::DrivingInfo> const&) *
> > > /home/sven/Projekte/NavMe/source/library/webraska_v1.0/lib/libThreadAnd
> > >Stre ams.a(WbskMemIOStream): In function `non-virtual thunk [nv:-8] to
> > > webraska::MemIOStreamB::~MemIOStreamB [in-charge]()': *
> > > WbskMemIOStream(.gnu.linkonce.t._ZThn8_N8webraska12MemIOStreamBD1Ev+0x2
> > >): relocation truncated to fit: R_ARM_THM_PC11
> > > webraska::MemIOStreamB::~MemIOStreamB [in-charge]() *
> > > /home/sven/Projekte/NavMe/source/library/webraska_v1.0/lib/libThreadAnd
> > >Stre ams.a(WbskMemIOStream): In function `non-virtual thunk [nv:-8] to
> > > webraska::MemIOStreamB::~MemIOStreamB [in-charge deleting]()': *
> > > WbskMemIOStream(.gnu.linkonce.t._ZThn8_N8webraska12MemIOStreamBD0Ev+0x2
> > >): relocation truncated to fit: R_ARM_THM_PC11
> > > webraska::MemIOStreamB::~MemIOStreamB [in-charge deleting]() *
> > > /home/sven/Projekte/NavMe/source/library/webraska_v1.0/lib/libThreadAnd
> > >Stre ams.a(WbskMemIOStream): In function `non-virtual thunk [nv:-8] to
> > > webraska::MemIOStreamB::open()': *
> > > WbskMemIOStream(.gnu.linkonce.t._ZThn8_N8webraska12MemIOStreamB4openEv+
> > >0x2)
> > >
> > >: relocation truncated to fit: R_ARM_THM_PC11
> > >: webraska::MemIOStreamB::open()
> > >
> > > *
> > > /home/sven/Projekte/NavMe/source/library/webraska_v1.0/lib/libThreadAnd
> > >Stre ams.a(WbskMemIOStream): In function `non-virtual thunk [nv:-8] to
> > > webraska::MemIOStreamB::close()': *
> > > WbskMemIOStream(.gnu.linkonce.t._ZThn8_N8webraska12MemIOStreamB5closeEv
> > >+0x2 ): relocation truncated to fit: R_ARM_THM_PC11
> > > webraska::MemIOStreamB::close() *
> > > /home/sven/Projekte/NavMe/source/library/webraska_v1.0/lib/libThreadAnd
> > >Stre ams.a(WbskMemIOStream): In function `non-virtual thunk [nv:-8] to
> > > webraska::MemIOStreamB::putBytes(unsigned char const*, unsigned long)':
> > > *
> > > WbskMemIOStream(.gnu.linkonce.t._ZThn8_N8webraska12MemIOStreamB8putByte
> > >sEPK hm+0x2): relocation truncated to fit: R_ARM_THM_PC11
> > > webraska::MemIOStreamB::putBytes(unsigned char const*, unsigned long) *
> > > collect2: ld
> > > * returned 1 exit status
> > > * gmake[2]: *** [navme_develop] Fehler 1
> > > * gmake[1]: *** [all-recursive] Fehler 1
> > > * gmake: *** [all] Fehler 2
> > > * *** Exited with status: 2 ***
--
--------------------------------------------------
Thomas Koeller, Software Development
Basler Vision Technologies
An der Strusbek 60-62
22926 Ahrensburg
Germany
Tel +49 (4102) 463-390
Fax +49 (4102) 463-46390
mailto:thomas.koeller@baslerweb.com
http://www.baslerweb.com
==============================
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss