Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#13841 closed defect (fixed)

g95-0.90_2 build error on Intel Leopard

Reported by: skymoo (Adam Mercer) Owned by: skymoo (Adam Mercer)
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc: takeshi@…
Port:

Description

g95 fails to build on Intel Leopard with the following error:

Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_Users_ram_opt_macports_lang_g95/work/g95-0.90" && make all " returned error 2
Command output: /opt/local/var/macports/build/_Users_ram_opt_macports_lang_g95/work/gcc-4.0.3/gcc/gcc.h:45:1: warning: this is the location of the previous definition
gawk -f /opt/local/var/macports/build/_Users_ram_opt_macports_lang_g95/work/gcc-4.0.3/gcc/opt-functions.awk \
	       -f /opt/local/var/macports/build/_Users_ram_opt_macports_lang_g95/work/gcc-4.0.3/gcc/opt-gather.awk \
	       /opt/local/var/macports/build/_Users_ram_opt_macports_lang_g95/work/gcc-4.0.3/gcc/common.opt  lang.opt > options.tmp
gawk -f /opt/local/var/macports/build/_Users_ram_opt_macports_lang_g95/work/gcc-4.0.3/gcc/opt-functions.awk \
	       -f /opt/local/var/macports/build/_Users_ram_opt_macports_lang_g95/work/gcc-4.0.3/gcc/optc-gen.awk options.tmp > options.c
gawk -f /opt/local/var/macports/build/_Users_ram_opt_macports_lang_g95/work/gcc-4.0.3/gcc/opt-functions.awk \
	       -f /opt/local/var/macports/build/_Users_ram_opt_macports_lang_g95/work/gcc-4.0.3/gcc/opth-gen.awk options.tmp > options.h
/usr/bin/gcc-4.0 -c -O2 -DIN_GCC -Wall -Wmissing-prototypes -no-cpp-precomp -I. -I- -I/opt/local/var/macports/build/_Users_ram_opt_macports_lang_g95/work/gcc-4.0.3/gcc -I/opt/local/var/macports/build/_Users_ram_opt_macports_lang_g95/work/gcc-4.0.3/include -I/opt/local/var/macports/build/_Users_ram_opt_macports_lang_g95/work/gcc-4.0.3/gcc/config -I/opt/local/var/macports/build/_Users_ram_opt_macports_lang_g95/work/gcc-4.0.3/libcpp/include -I/opt/local/var/macports/build/_Users_ram_opt_macports_lang_g95/work/gcc-4.0.3/g95/gcc -I/opt/local/include -I/opt/local/var/macports/build/_Users_ram_opt_macports_lang_g95/work/gcc-4.0.3/g95/intl -I/opt/local/var/macports/build/_Users_ram_opt_macports_lang_g95/work/gcc-4.0.3/intl /opt/local/var/macports/build/_Users_ram_opt_macports_lang_g95/work/gcc-4.0.3/gcc/opts.c
cc1: note: obsolete option -I- used, please use -iquote instead
/usr/bin/gcc-4.0 -c -O2 -DIN_GCC -Wall -Wmissing-prototypes -no-cpp-precomp -I. -I- -I/opt/local/var/macports/build/_Users_ram_opt_macports_lang_g95/work/gcc-4.0.3/gcc -I/opt/local/var/macports/build/_Users_ram_opt_macports_lang_g95/work/gcc-4.0.3/include -I/opt/local/var/macports/build/_Users_ram_opt_macports_lang_g95/work/gcc-4.0.3/gcc/config -I/opt/local/var/macports/build/_Users_ram_opt_macports_lang_g95/work/gcc-4.0.3/libcpp/include -I/opt/local/var/macports/build/_Users_ram_opt_macports_lang_g95/work/gcc-4.0.3/g95/gcc -I/opt/local/include -I/opt/local/var/macports/build/_Users_ram_opt_macports_lang_g95/work/gcc-4.0.3/g95/intl -I/opt/local/var/macports/build/_Users_ram_opt_macports_lang_g95/work/gcc-4.0.3/intl options.c
cc1: note: obsolete option -I- used, please use -iquote instead
/usr/bin/gcc-4.0 -c -O2 -DIN_GCC -Wall -Wmissing-prototypes -no-cpp-precomp -DTARGET_NAME=\"i386-apple-darwin9.1.0\" -DSTANDARD_EXEC_PREFIX=\"/opt/local/lib/gcc-lib/i386-apple-darwin9.1.0/4.0.3\" -DTARGET_SYSTEM_ROOT=\"\" -DDEFAULT_TARGET_VERSION=\"\" -DDEFAULT_TARGET_MACHINE=\"\" -DTOOLDIR_BASE_PREFIX=\"\" -DSTANDARD_STARTFILE_PREFIX=\"\" -DSTANDARD_STARTFILE_PREFIX_2=\"/usr/lib/\" -DSTANDARD_EXEC_PREFIX=\"/opt/local/lib/gcc-lib/i386-apple-darwin9.1.0/4.0.3\" -DSTANDARD_BINDIR_PREFIX=\"/opt/local/bin\" -DSTANDARD_LIBEXEC_PREFIX=\"/opt/local/lib/gcc-lib/i386-apple-darwin9.1.0/4.0.3\" -DG95_SPEC=\"\"  -I. -I- -I/opt/local/var/macports/build/_Users_ram_opt_macports_lang_g95/work/gcc-4.0.3/gcc -I/opt/local/var/macports/build/_Users_ram_opt_macports_lang_g95/work/gcc-4.0.3/include -I/opt/local/var/macports/build/_Users_ram_opt_macports_lang_g95/work/gcc-4.0.3/gcc/config -I/opt/local/var/macports/build/_Users_ram_opt_macports_lang_g95/work/gcc-4.0.3/libcpp/include -I/opt/local/var/macports/build/_Users_ram_opt_macports_lang_g95/work/gcc-4.0.3/g95/gcc -I/opt/local/include -I/opt/local/var/macports/build/_Users_ram_opt_macports_lang_g95/work/gcc-4.0.3/g95/intl -I/opt/local/var/macports/build/_Users_ram_opt_macports_lang_g95/work/gcc-4.0.3/intl /opt/local/var/macports/build/_Users_ram_opt_macports_lang_g95/work/gcc-4.0.3/gcc/gcc.c
cc1: note: obsolete option -I- used, please use -iquote instead
echo "const char version_string[] = \"`cat gcc_version` (g95 0.90!) \" __DATE__;" > version.c
echo 'const char bug_report_url[] = "http://www.g95.org or mail andyv@firstinter.net";' >> version.c
/usr/bin/gcc-4.0 -O2 -DIN_GCC -Wall -Wmissing-prototypes -no-cpp-precomp -c version.c
/usr/bin/gcc-4.0  -O2 -DIN_GCC -Wall -Wmissing-prototypes -no-cpp-precomp  -L/opt/local/lib -o g95  g95-g95spec.o /opt/local/var/macports/build/_Users_ram_opt_macports_lang_g95/work/gcc-4.0.3/g95/gcc/prefix.o gcc.o version.o /opt/local/var/macports/build/_Users_ram_opt_macports_lang_g95/work/gcc-4.0.3/g95/gcc/intl.o /opt/local/var/macports/build/_Users_ram_opt_macports_lang_g95/work/gcc-4.0.3/g95/libiberty/libiberty.a /opt/local/var/macports/build/_Users_ram_opt_macports_lang_g95/work/gcc-4.0.3/g95/intl/libintl.a -liconv 
Undefined symbols:
  "_iconv", referenced from:
      __nl_find_msg in libintl.a(dcigettext.o)
  "_iconv_open", referenced from:
      __nl_init_domain_conv in libintl.a(loadmsgcat.o)
      __nl_init_domain_conv in libintl.a(loadmsgcat.o)
  "_iconv_close", referenced from:
      __nl_free_domain_conv in libintl.a(loadmsgcat.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [g95] Error 1
make: *** [all] Error 2

Warning: the following items did not execute (for g95): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.

Attachments (1)

Portfile.diff (1.0 KB) - added by takeshi@… 17 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 17 years ago by takeshi@…

I noted the error on my Mac Book Pro. It is due to a lack of iconv_* functions in MacPorts' libiconv.

I am wondering if I should link to system's libiconv or rewrite iconv_* to libiconv_*.

Somehow, I was able to build g95 from the scratch (before installing other ports).

Changed 17 years ago by takeshi@…

Attachment: Portfile.diff added

comment:2 Changed 17 years ago by skymoo (Adam Mercer)

the patch enables me to build g95 successfully, thanks

comment:3 Changed 17 years ago by skymoo (Adam Mercer)

Owner: changed from macports-tickets@… to ram@…
Status: newassigned

comment:4 Changed 17 years ago by skymoo (Adam Mercer)

Resolution: fixed
Status: assignedclosed

committed in r32672

comment:5 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.