Hello All,

Doug seems to have solved this, though I don't understand how.

I tried to test the method to build and install libiconv and get it to work with gcc.

Steps taken:

...
- build and install OpenPKG libiconv rpm
- uninstall OpenPKG gcc (as it stops working once libiconv is installed)
- build OpenPKG gcc using the gcc that comes from the OpenPKG rpm (the one that's built with the IBM provided gcc rpm)

This fails giving me the error shown below.

/RPM/TMP/gcc-3.4.4/obj/../gcc/. -I/openpkg/RPM/TMP/gcc-3.4.4/obj/../gcc/../include /openpkg/RPM/TMP/gcc-3.4.4/obj/../gcc/tree-optimize.c -o tree-optimize.o stage1/xgcc -Bstage1/ -B/openpkg/powerpc-ibm-aix5.1.0.0/bin/ -c -O2 -fomit-frame-pointer -funroll-loops -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -DHAVE_CONFIG_H -I. -I. -I/openpkg/RPM/TMP/gcc-3.4.4/obj/../gcc -I/openpkg/RPM/TMP/gcc-3.4.4/obj/../gcc/. -I/openpkg/RPM/TMP/gcc-3.4.4/obj/../gcc/../include /openpkg/RPM/TMP/gcc-3.4.4/obj/../gcc/cgraph.c -o cgraph.o stage1/xgcc -Bstage1/ -B/openpkg/powerpc-ibm-aix5.1.0.0/bin/ -c -O2 -fomit-frame-pointer -funroll-loops -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -DHAVE_CONFIG_H -I. -I. -I/openpkg/RPM/TMP/gcc-3.4.4/obj/../gcc -I/openpkg/RPM/TMP/gcc-3.4.4/obj/../gcc/. -I/openpkg/RPM/TMP/gcc-3.4.4/obj/../gcc/../include /openpkg/RPM/TMP/gcc-3.4.4/obj/../gcc/cgraphunit.c -o cgraphunit.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 cfgloopanal.o cfgloopmanip.o loop-init.o loop-unswitch.o loop-unroll.o cfgrtl.o combine.o conflict.o convert.o coverage.o cse.o cselib.o dbxout.o debug.o df.o diagnostic.o dojump.o doloop.o dominance.o dwarf2asm.o dwarf2out.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 hooks.o ifcvt.o insn-attrtab.o insn-emit.o insn-modes.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 optabs.o options.o opts.o params.o postreload.o predict.o print-rtl.o print-tree.o value-prof.o profile.o ra.o ra-build.o ra-colorize.o ra-debug.o ra-rewrite.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 sreal.o stmt.o stor-layout.o stringpool.o targhooks.o timevar.o toplev.o tracer.o tree.o tree-dump.o unroll.o varasm.o varray.o version.o vmsdbgout.o xcoffout.o alloc-pool.o et-forest.o cfghooks.o bt-load.o pretty-print.o ggc-page.o web.o rs6000.o host-default.o hashtable.o tree-inline.o tree-optimize.o cgraph.o cgraphunit.o
ranlib libbackend.a
stage1/xgcc -Bstage1/ -B/openpkg/powerpc-ibm-aix5.1.0.0/bin/ -O2 -fomit-frame-pointer -funroll-loops -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -DHAVE_CONFIG_H -o cc1 \ c-parse.o c-lang.o c-pretty-print.o stub-objc.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-opts.o c-format.o c-semantics.o c-incpath.o cppdefault.o c-ppoutput.o c-cppbuiltin.o prefix.o c-objc-common.o c-dump.o c-pch.o libcpp.a rs6000-c.o main.o libbackend.a ../libiberty/libiberty.a -liconv
ld: 0711-317 ERROR: Undefined symbol: .iconv
ld: 0711-317 ERROR: Undefined symbol: .iconv_open
ld: 0711-317 ERROR: Undefined symbol: .iconv_close
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
make[2]: *** [cc1] Error 1
make[1]: *** [stage2_build] Error 2
make: *** [bootstrap-lean] Error 2
error: Bad exit status from /openpkg/RPM/TMP/rpm-tmp.26357 (%build)


RPM build errors:
    Bad exit status from /openpkg/RPM/TMP/rpm-tmp.26357 (%build)
[EMAIL PROTECTED]:/openpkg/RPM/PKG>

It sounds like, gudging from what Doug has said, that the _system_
libiconv and the OpenPKG libiconv library are conflicting.

Yet I don't understand Doug how you managed to rebuild the OpenPKG gcc.
Did you really build it with gcc from the Openpkg rpm, as you can't have built it from the openpkg gcc rpm which fails immediately the OpenPKG libiconv rpm is installed.

Or did you build it with xlc (IBM's compiler)?

We are getting very close and perhaps for the moment if I can't build libiconv (reliably) it does not matter too much. I think only a few packages require it, so if that is the case we may have to do without them. On the other hand perhaps the problem above is the -liconv which does not clearly state WHICH libiconv it should be linking against and when building gcc we EXPLICITLY want to build against the OpenPKG libiconv. (Maybe gcc is trying to link against the system libiconv???)

I'm going to call it a day, but it surprising how frustrating these builds are (on the hardware I have access to).

Regards,

Simon
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
User Communication List                      openpkg-users@openpkg.org

Reply via email to