Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#14563 closed defect (duplicate)

ld fail on building i386-elf-gcc

Reported by: j.averous@… Owned by: pguyot (Paul Guyot)
Priority: High Milestone:
Component: ports Version: 1.6.0
Keywords: gcc elf i386 ld leopard make error symbol Cc:
Port:

Description

I do this on my terminal :

$ sudo port install i386-elf-gcc"

After a moment, I get this :

--->  Building i386-elf-gcc with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-elf-gcc/work/build" && make all AR_FOR_TARGET=i386-elf-ar AS_FOR_TARGET=i386-elf-as LD_FOR_TARGET=i386-elf-ld NM_FOR_TARGET=i386-elf-nm RANLIB_FOR_TARGET=i386-elf-ranlib " returned error 2
Command output: make[2]: Nothing to be done for `all'.
cc -no-cpp-precomp   -O2 -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long    -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  main.o libbackend.a ../libiberty/libiberty.a ../intl/libintl.a -L/opt/local/lib -liconv 
Undefined symbols:
  "_iconv_close", referenced from:
      __cpp_destroy_iconv in libcpp.a(cppcharset.o)
      __cpp_destroy_iconv in libcpp.a(cppcharset.o)
      __cpp_convert_input in libcpp.a(cppcharset.o)
  "_iconv", referenced from:
      _convert_using_iconv in libcpp.a(cppcharset.o)
      _convert_using_iconv in libcpp.a(cppcharset.o)
  "_iconv_open", referenced from:
      _init_iconv_desc in libcpp.a(cppcharset.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [cc1] Error 1
make: *** [all-gcc] Error 2

Error: Status 1 encountered during processing.

I'm in Leopard X.5.2, on the last version of MacPort.

$ port version
Version: 1.600

Change History (3)

comment:1 Changed 16 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to pguyot@…
Summary: ld fail on buildingld fail on building i386-elf-gcc

Assigning to maintainer.

comment:2 Changed 16 years ago by pguyot (Paul Guyot)

Resolution: duplicate
Status: newclosed

dup of #13499.

comment:3 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.