arm-elf-gcc3 fetch then build problem
Rob Probin
rob at lightsoft.co.uk
Thu Jun 17 14:34:56 PDT 2010
Hi,
Summary: Mainly a link problem with _libiconv and _libiconv_close and
_libiconv_open. Also URLs are broken for fetch.
Hopefully I haven't missed something really stupid, or already
covered. Apologies in advance if so.
Long version:
=========
Can anyone reproduce this problem?
I have built/installed arm-elf-binutils and arm-elf-gcc successfully.
sudo port install arm-elf-gcc3
Got:
sudo port install arm-elf-gcc3
---> Computing dependencies for arm-elf-gcc3
---> Fetching arm-elf-gcc3
Error: No defined site for tag: gcc, using master_sites
---> Attempting to fetch gcc-3.4.6.tar.bz2 from gnu:gcc/gcc-3.4.6/
---> Attempting to fetch gcc-3.4.6.tar.bz2 from
ftp://sources.redhat.com/pub/newlib/:newlib
Error: Target org.macports.fetch returned: fetch failed
Log for arm-elf-gcc3 is at:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_arm-elf-gcc3/main.log
Error: Status 1 encountered during processing.
Ok, so something wrong with the URLs perhaps... No problem, get
gcc-3.4.6.tar.bz2 from somewhere (probably
http://ftp.gnu.org/gnu/gcc/gcc-3.4.6/) and put it in ...
/opt/local/car/macports/dist/gcc
Try again:
sudo port install arm-elf-gcc3
Get's much further .... but...
Error: Target org.macports.build returned: shell command failed
Log for arm-elf-gcc3 is at:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_arm-elf-gcc3/main.log
Inside the log:
:info:build cc -no-cpp-precomp -pipe -O2 -arch x86_64 -DIN_GCC
-DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -pedantic -Wno-long-long -DHAVE_CONFIG_H
-I. -I.
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_arm-elf-gcc3/work/gcc-3.4.6/gcc
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_arm-elf-gcc3/work/gcc-3.4.6/gcc/.
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_arm-elf-gcc3/work/gcc-3.4.6/gcc/../include
-I../intl -c insn-recog.c \
:info:build -o insn-recog.o
:info:build cc -no-cpp-precomp -pipe -O2 -arch x86_64 -DIN_GCC
-DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -pedantic -Wno-long-long -DHAVE_CONFIG_H -o
Tcollect2 \
:info:build collect2.o tlink.o intl.o version.o
../libiberty/libiberty.a -L/usr/lib ../intl/libintl.a
-L/opt/local/lib -liconv
:info:build Undefined symbols:
:info:build "_libiconv_open", referenced from:
:info:build __nl_init_domain_conv in libintl.a(loadmsgcat.o)
:info:build __nl_init_domain_conv in libintl.a(loadmsgcat.o)
:info:build "_libiconv_close", referenced from:
:info:build __nl_free_domain_conv in libintl.a(loadmsgcat.o)
:info:build "_libiconv", referenced from:
:info:build __nl_find_msg in libintl.a(dcigettext.o)
:info:build (maybe you meant: _libiconv_set_relocation_prefix)
:info:build ld: symbol(s) not found
:info:build collect2: ld returned 1 exit status
:info:build make[1]: *** [collect2] Error 1
:info:build make[1]: *** Waiting for unfinished jobs....
:info:build make: *** [all-gcc] Error 2
:info:build shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_arm-elf-gcc3/work/build"
&& /usr/bin/make -j4 all AR_FOR_TARGET=arm-elf-ar
AS_FOR_TARGET=arm-elf-as LD_FOR_TARGET=arm-elf-ld
NM_FOR_TARGET=arm-elf-nm RANLIB_FOR_TARGET=arm-elf-ranlib " returned
error 2
Anyone got any ideas how to fix this?
My system: Mac OS X 10.6.3 (Snow Leopard), x86. MacPorts 1.9.0.
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5659)
Regards,
Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20100617/0038f4e1/attachment.html>
More information about the macports-users
mailing list