http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50842
Bug #: 50842 Summary: gnatmake fails to link in stage3 with undefined symbol _iconv_close Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassig...@gcc.gnu.org ReportedBy: dang...@gcc.gnu.org Host: i686-apple-darwin9 Target: i686-apple-darwin9 Build: i686-apple-darwin9 ../../xgcc -B../../ -I- -I../rts -I. -I/Users/dave/gnu/gcc/gcc/gcc/ada -DIN_GCC -g -O2 -W -Wall -o ../../gnatmake b_gnatm.o a-except.o ali.o ali-util.o aspec ts.o s-casuti.o alloc.o atree.o binderr.o butil.o casing.o csets.o debug.o elist s.o einfo.o errout.o erroutc.o errutil.o err_vars.o fmap.o fname.o fname-uf.o fn ame-sf.o gnatmake.o gnatvsn.o hostparm.o interfac.o i-c.o i-cstrin.o krunch.o li b.o make.o makeusg.o makeutl.o mlib.o mlib-fil.o mlib-prj.o mlib-tgt.o mlib-tgt- specific.o mlib-utl.o namet.o nlists.o opt.o osint.o osint-m.o output.o prj.o pr j-attr.o prj-attr-pm.o prj-com.o prj-dect.o prj-env.o prj-conf.o prj-pp.o prj-er r.o prj-ext.o prj-nmsc.o prj-pars.o prj-part.o prj-proc.o prj-strt.o prj-tree.o prj-util.o restrict.o rident.o s-exctab.o s-secsta.o s-stalib.o s-stoele.o scans .o scng.o sdefault.o sfn_scan.o s-purexc.o s-htable.o scil_ll.o sem_aux.o sinfo. o sinput.o sinput-c.o sinput-p.o snames.o stand.o stringt.o styleg.o stylesw.o s ystem.o validsw.o switch.o switch-m.o table.o targparm.o tempdir.o tree_io.o typ es.o uintp.o uname.o urealp.o usage.o widechar.o \ ../../libcommon-target.a ../../libcommon.a ../../../libcpp/l ibcpp.a targext.o link.o ../rts/libgnat.a ../../../libiberty/libiberty.a Undefined symbols: "_iconv_close", referenced from: __cpp_destroy_iconv in libcpp.a(charset.o) __cpp_destroy_iconv in libcpp.a(charset.o) __cpp_destroy_iconv in libcpp.a(charset.o) __cpp_destroy_iconv in libcpp.a(charset.o) __cpp_destroy_iconv in libcpp.a(charset.o) __cpp_convert_input in libcpp.a(charset.o) "_iconv", referenced from: convert_using_iconv(void*, unsigned char const*, unsigned long, _cpp_strbu f*) in libcpp.a(charset.o) convert_using_iconv(void*, unsigned char const*, unsigned long, _cpp_strbu f*) in libcpp.a(charset.o) convert_using_iconv(void*, unsigned char const*, unsigned long, _cpp_strbu f*) in libcpp.a(charset.o) convert_using_iconv(void*, unsigned char const*, unsigned long, _cpp_strbu f*) in libcpp.a(charset.o) "_iconv_open", referenced from: init_iconv_desc(cpp_reader*, char const*, char const*) in libcpp.a(charset .o) ld: symbol(s) not found dave@MACPRO:~/gnu/gcc/objdir/gcc$ ./xgcc -B./ -v Reading specs from ./specs COLLECT_GCC=./xgcc COLLECT_LTO_WRAPPER=./lto-wrapper Target: i686-apple-darwin9 Configured with: ../gcc/configure --build=i686-apple-darwin9 --host=i686-apple-darwin9 --target=i686-apple-darwin9 --with-tune=generic --prefix=/opt/gnu/gcc/gcc-4.7.0 --with-gmp=/opt/gnu/gcc/gcc-4.7.0 --enable-debug=no --disable-nls --disable-multilib --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-threads=posix --enable-__cxa_atexit --enable-java-gc=boehm : (reconfigured) ../gcc/configure --build=i686-apple-darwin9 --host=i686-apple-darwin9 --target=i686-apple-darwin9 --with-tune=generic --prefix=/opt/gnu/gcc/gcc-4.7.0 --with-gmp=/opt/gnu/gcc/gcc-4.7.0 --enable-debug=no --disable-nls --disable-multilib --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-threads=posix --enable-__cxa_atexit --enable-java-gc=boehm Thread model: posix gcc version 4.7.0 20111023 (experimental) [trunk revision 180354] (GCC)