This is the mail archive of the gcc@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: GCC build on darwin12.3


Are you using Mac ports for gmp/mpfr/mpc libraries?  I see that
you have "-L/opt/local/lib" on you path.

I had the same issue and as I recall it was related to installing
iconv mac port package and incompatibility of iconv.h header
files.

I switched to building gmp/mpfr/mpc from sources and not installing
mac ports. Alternatively you can run contrib/download_prerequisites.

Nenad

On 3/28/13 6:32 AM, Gabriel Dos Reis wrote:
Hi,

Do we still support GCC on recent versions of mac os x?
The reason I am asking is that I have been unable to build
GCC, both 4.8 branch and trunk, for about 2 weeks now.

The failure as of this morning is:

g++   -g -O2 -DIN_GCC   -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual
-Wmissing-format-attribute -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings -fno-common
-DHAVE_CONFIG_H  -o cc1 c/c-lang.o c-family/stub-objc.o attribs.o
c/c-errors.o c/c-decl.o c/c-typeck.o c/c-convert.o c/c-aux-info.o
c/c-objc-common.o c/c-parser.o c-family/c-common.o
c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o
c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o
c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o
c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o
c-family/c-ada-spec.o tree-mudflap.o i386-c.o darwin-c.o \
	  cc1-checksum.o libbackend.a main.o tree-browser.o
libcommon-target.a libcommon.a ../libcpp/libcpp.a
../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a  -liconv
../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a
../libdecnumber/libdecnumber.a   -L/opt/local/lib -lmpc -lmpfr -lgmp
-L../zlib -lz
Undefined symbols for architecture x86_64:
   "_iconv", referenced from:
       convert_using_iconv(void*, unsigned char const*, unsigned long,
_cpp_strbuf*)in libcpp.a(charset.o)
      (maybe you meant: __cpp_destroy_iconv, cpp_init_iconv(cpp_reader*)      )
   "_iconv_close", referenced from:
       __cpp_destroy_iconv in libcpp.a(charset.o)
       __cpp_convert_input 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 for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [cc1] Error 1
make[1]: *** [all-gcc] Error 2
make: *** [all] Error 2


Configuration flags:  --disable-nls --disable-multilib --enable-languages=c++

The iconv library appears to be working with other programs just fine.

-- Gaby


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