Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #14695 (closed defect: fixed)

Opened 8 months ago

Last modified 7 months ago

Command output: make[2]: Nothing to be done for `all'. - mips-elf-gcc - on leopard 10.5.2

Reported by: coresfoundation@… Owned by: pguyot@…
Priority: High Milestone: Port Bugs
Component: ports Version: 1.6.0
Keywords: mips-elf-gcc on leopard 10.5.2 Cc:
Port:

Description

---> Building mips-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_mips-elf-gcc/work/build" && make all AR_FOR_TARGET=mips-elf-ar AS_FOR_TARGET=mips-elf-as LD_FOR_TARGET=mips-elf-ld NM_FOR_TARGET=mips-elf-nm RANLIB_FOR_TARGET=mips-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.

Change History

  Changed 8 months ago by coresfoundation@…

Hi,

Applied the workaround from 13499, and it worked fine for this defect.

In Makefile, the line with

LIBINTL = ${top_builddir}/intl/libintl.a -L/opt/local/lib -liconv

was changed to

LIBINTL = ${top_builddir}/intl/libintl.a -L/usr/lib -L/opt/local/lib -liconv

and it worked.

in reply to: ↑ description   Changed 8 months ago by coresfoundation@…

Replying to coresfoundation@gmail.com:

---> Building mips-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_mips-elf-gcc/work/build" && make all AR_FOR_TARGET=mips-elf-ar AS_FOR_TARGET=mips-elf-as LD_FOR_TARGET=mips-elf-ld NM_FOR_TARGET=mips-elf-nm RANLIB_FOR_TARGET=mips-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.

Attempted workaround from defect id 13499 and worked

In Makefile, the line with

LIBINTL = ${top_builddir}/intl/libintl.a -L/opt/local/lib -liconv

was changed to

LIBINTL = ${top_builddir}/intl/libintl.a -L/usr/lib -L/opt/local/lib -liconv

and it worked.

  Changed 8 months ago by jmr@…

  • owner changed from macports-tickets@… to pguyot@…

Assigning to maintainer.

  Changed 8 months ago by bugmenot@…

the suggested fix worked for me, too.

  Changed 7 months ago by pguyot@…

  • status changed from new to closed
  • resolution set to fixed

Fixed in r36034. I don't have leopard, could you please test it?

Note: See TracTickets for help on using tickets.