[MacPorts] #31988: libiconv doesn't seem to work on x86_64

MacPorts noreply at macports.org
Fri Nov 11 16:21:39 PST 2011


#31988: libiconv doesn't seem to work on x86_64
-------------------------------+--------------------------------------------
 Reporter:  dave@…             |       Owner:  macports-tickets@…                   
     Type:  defect             |      Status:  new                                  
 Priority:  Normal             |   Milestone:                                       
Component:  ports              |     Version:  2.0.3                                
 Keywords:                     |        Port:                                       
-------------------------------+--------------------------------------------

Comment(by dave@…):

 Huh?  What affected port?

 I'm trying to build gcc from source using macports' libiconv.

 The build is invoked this way:

 {{{#!bash
 ~/src/gcc/configure --enable-languages=c,c++ --disable-multilib --disable-
 bootstrap --prefix=/usr/local/stow/gcc-4.7 --with-gmp=/opt/local --with-
 mpfr=/opt/local --with-mpc=/opt/local --without-libitm
 gmake
 }}}

 And fails as follows:

 {{{
 gcc -c   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-
 prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-
 long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-
 definition -Wc++-compat -fno-common  -DHAVE_CONFIG_H -I. -I.
 -I/Users/dave/src/gcc/gcc -I/Users/dave/src/gcc/gcc/.
 -I/Users/dave/src/gcc/gcc/../include -I./../intl
 -I/Users/dave/src/gcc/gcc/../libcpp/include -I/opt/local/include
 -I/opt/local/include -I/opt/local/include
 -I/Users/dave/src/gcc/gcc/../libdecnumber
 -I/Users/dave/src/gcc/gcc/../libdecnumber/dpd -I../libdecnumber    insn-
 automata.c -o insn-automata.o
 rm -rf libcommon-target.a
 ar rc libcommon-target.a i386-common.o prefix.o params.o opts.o opts-
 common.o options.o vec.o hooks.o common/common-targhooks.o
 ranlib -c libcommon-target.a
 rm -rf libcommon.a
 ar rc libcommon.a diagnostic.o pretty-print.o intl.o input.o version.o
 ranlib -c libcommon.a
 gcc   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-
 prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-
 long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-
 definition -Wc++-compat -fno-common  -DHAVE_CONFIG_H  gcov.o libcommon.a
 ../libcpp/libcpp.a ./../intl/libintl.a -liconv  ../libiberty/libiberty.a
 ../libdecnumber/libdecnumber.a  -o gcov
 Undefined symbols for architecture x86_64:
   "_libiconv_open", referenced from:
       _identifier_to_locale in libcommon.a(pretty-print.o)
   "_libiconv", referenced from:
       _identifier_to_locale in libcommon.a(pretty-print.o)
   "_libiconv_close", referenced from:
       _identifier_to_locale in libcommon.a(pretty-print.o)
 ld: symbol(s) not found for architecture x86_64
 collect2: ld returned 1 exit status
 gmake[2]: *** [gcov] Error 1
 gmake[2]: *** Waiting for unfinished jobs....
 rm gcov.pod cpp.pod gfdl.pod gcc.pod fsf-funding.pod
 gmake[2]: Leaving directory `/private/tmp/gcc-build/gcc'
 gmake[1]: *** [all-gcc] Error 2
 gmake[1]: Leaving directory `/private/tmp/gcc-build'
 gmake: *** [all] Error 2
 }}}

 The build is fixed by compiling and installing my own libiconv in
 /usr/local and using that one.

-- 
Ticket URL: <https://trac.macports.org/ticket/31988#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list