Skip to contentSkip to conversation

eprintf error when xcompiling gcc

parisc-linux Matt Taggart 2 participants 2 messages Dec 7, 2000

lore
Share & tools
lore
#0 lore raw

Hi Alan,

I'm trying to cross-compile gcc (--with-libc) and I get several thousand of the following error,

bad.o: In function `ffebad_here':
/home/al-76/puffin/palinux/gcc/gcc/f/bad.c:268: undefined reference to `__eprintf' /opt/palinux/lib/gcc-lib/hppa-linux/2.96/../../../../hppa-linux/bin/ld:
bad.o(.text+0x400): cannot find stub entry 00000052___eprintf+0 /opt/palinux/lib/gcc-lib/hppa-linux/2.96/../../../../hppa-linux/bin/ld:
bad.o(.text+0x400): cannot handle R_PARISC_PCREL17F for __eprintf

The function/.o is different in each error but they all complain about __eprintf.
Is this a problem with the xcompiler or the source(or both)? Is there something else I should be doing when xcompiling? Is this a bug or am I doing something stupid?

Thanks,

Signature · 2 lines
Matt Taggart
[email protected]
#1 lore raw

__eprintf is used by assert, and only when gcc's own assert.h is used. So it seems likely to me that your cross compiler is having difficulty finding it's libc headers. Probably a configure/install type problem.

Signature · 1 line
Linuxcare.  Support for the Revolution.