This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PCH broke target sh-elf ?


tm <tm@mail.kloo.net> writes:

> I've been getting this error for the past few days when
> trying to build gcc for target sh-elf from CVS:
> 
> rm -rf libbackend.a
> ar rc libbackend.a alias.o bb-reorder.o bitmap.o builtins.o caller-save.o
> calls.o cfg.o cfganal.o cfgbuild.o cfgcleanup.o cfglayout.o cfgloop.o
> cfgrtl.o combine.o conflict.o convert.o cse.o cselib.o dbxout.o debug.o
> dependence.o df.o diagnostic.o doloop.o dominance.o dwarf2asm.o
> dwarf2out.o dwarfout.o emit-rtl.o except.o explow.o expmed.o expr.o
> final.o flow.o fold-const.o function.o gcse.o genrtl.o ggc-common.o
> global.o graph.o gtype-desc.o haifa-sched.o hashtable.o hooks.o ifcvt.o
> insn-attrtab.o insn-emit.o insn-extract.o insn-opinit.o insn-output.o
> insn-peep.o insn-recog.o integrate.o intl.o jump.o  langhooks.o lcm.o
> lists.o local-alloc.o loop.o mbchar.o optabs.o params.o predict.o
> print-rtl.o print-tree.o profile.o real.o recog.o reg-stack.o regclass.o
> regmove.o regrename.o reload.o reload1.o reorg.o resource.o rtl.o
> rtlanal.o rtl-error.o sbitmap.o sched-deps.o sched-ebb.o sched-rgn.o
> sched-vis.o sdbout.o sibcall.o simplify-rtx.o ssa.o ssa-ccp.o ssa-dce.o
> stmt.o stor-layout.o stringpool.o timevar.o toplev.o tracer.o tree.o
> tree-dump.o tree-inline.o unroll.o varasm.o varray.o version.o vmsdbgout.o
> xcoffout.o ggc-page.o sh.o 
> ranlib libbackend.a
> gcc -DIN_GCC -DCROSS_COMPILE   -g -O2 -W -Wall -Wwrite-strings
> -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic
> -Wno-long-long  -DHAVE_CONFIG_H  -o cc1 \
> 	c-parse.o c-lang.o attribs.o c-errors.o c-lex.o c-pragma.o
> c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-format.o
> c-semantics.o c-objc-common.o libcpp.a  main.o libbackend.a
> ./libiberty/libiberty.a
> c-lang.o(.rodata+0xe14): undefined reference to `gt_ggc_r_gt_sh_h'
> collect2: ld returned 1 exit status
> make[1]: *** [cc1] Error 1
> 
> What the heck is gt_ggc_r_gt_sh_h?

It's the GT GGC Roots from "gt-sh.h".  The names aren't
supposed to be human-readable.

It means you're missing the 

#include "gt-sh.h"

at the end of gcc/config/sh.c.

-- 
- Geoffrey Keating <geoffk@geoffk.org> <geoffk@redhat.com>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]