OT: kompilace gcc
Tomas Hlavacek
tomas.hlavacek na elfove.cz
Neděle Září 7 17:19:05 CEST 2003
Dobry den!
Mam nasledujici problem: mam debian-unstable, vice-mene aktualni:
gcc-2.95 (zkousel jsem i gcc-3.3.2)*
*libc6 2.3.2-5 + dev
a snazim se zkompilovat gcc-3.2.1 ale zkousel jsem i jine verze gcc
(3.3.1 a 2.95)
pouzito:
../gcc-3.2.1/configure --prefix=/static --with-ld=/static/bin/ld
--with-as=/static/bin/as
make bootstrap
kompilace skonci na tomhle resp. u jinych verzi na obmenach tohohle:
make CC="stage1/xgcc -Bstage1/
-B/home/brill/data/projects/own/mandos/root/static/i386-pc-linux-gnu/bin/" \
STAGE_PREFIX=stage1/ \
CFLAGS="-g -O2" LDFLAGS="" WARN_CFLAGS="\$(GCC_WARN_CFLAGS)"
STRICT_WARN="-Wtraditional -pedantic -Wno-long-long"
libdir=/home/brill/data/projects/own/mandos/root/static/lib LANGUAGES="c
gcov ada c++ f77 java objc" MAKEOVERRIDES= OUTPUT_OPTION="-o \$@"
make[2]: Entering directory
`/home/brill/data/projects/own/mandos/tmp/gcc-build/gcc'
(cd intl && make all)
make[3]: Entering directory
`/home/brill/data/projects/own/mandos/tmp/gcc-build/gcc/intl'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/home/brill/data/projects/own/mandos/tmp/gcc-build/gcc/intl'
stage1/xgcc -Bstage1/
-B/home/brill/data/projects/own/mandos/root/static/i386-pc-linux-gnu/bin/
-c -DIN_GCC -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long
-DHAVE_CONFIG_H -I. -I. -I../../gcc-3.2.1/gcc -I../../gcc-3.2.1/gcc/.
-I../../gcc-3.2.1/gcc/config -I../../gcc-3.2.1/gcc/../include
../../gcc-3.2.1/gcc/c-objc-common.c -o c-objc-common.o
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 haifa-sched.o hash.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 tree.o tree-dump.o tree-inline.o unroll.o varasm.o varray.o
version.o vmsdbgout.o xcoffout.o ggc-page.o i386.o
ranlib libbackend.a
stage1/xgcc -Bstage1/
-B/home/brill/data/projects/own/mandos/root/static/i386-pc-linux-gnu/bin/
-DIN_GCC -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
/usr/lib/libc_nonshared.a(elf-init.oS): In function `__libc_csu_init':
elf-init.oS(.text+0x1e): undefined reference to `__init_array_start'
elf-init.oS(.text+0x24): undefined reference to `__init_array_end'
elf-init.oS(.text+0x36): undefined reference to `__init_array_start'
/usr/lib/libc_nonshared.a(elf-init.oS): In function `__libc_csu_fini':
elf-init.oS(.text+0x63): undefined reference to `__fini_array_end'
elf-init.oS(.text+0x69): undefined reference to `__fini_array_start'
elf-init.oS(.text+0x85): undefined reference to `__fini_array_start'
collect2: ld returned 1 exit status
make[2]: *** [cc1] Error 1
make[2]: Leaving directory
`/home/brill/data/projects/own/mandos/tmp/gcc-build/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory
`/home/brill/data/projects/own/mandos/tmp/gcc-build/gcc'
make: *** [bootstrap] Error 2
Co jsem udelal blbe?
Diky
Tomas
--
Tomas Hlavacek
mobile: +420-724-069784
Další informace o konferenci Linux