I'm trying to compile the run the toolchain written by Dan Peori and I'm hitting a snag. I've searched these forums and haven't found any solution yet. First my software:
- Cygwin (default install except with wget, make, and gettext)
- Toolchain script psptoolchain-20050622.tgz
Ok everything is fine, until I get to "configuring in intl". I get:
Code: Select all
touch stmp-bfd-h
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -D_GNU_SOURCE -I. -I../../bfd -I../../bfd/../include -I../../bfd/../intl
-I../intl -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c -o archive.lo ../../bfd/archive.c
gcc -DHAVE_CONFIG_H -I. -I../../bfd -I. -D_GNU_SOURCE -I. -I../../bfd -I../../bfd/../include -I../../bfd/../intl -I../intl -W -Wall -Wstrict-prototype
s -Wmissing-prototypes -g -O2 -c ../../bfd/archive.c -o archive.o
In file included from ../../bfd/archive.c:131:
../../bfd/sysdep.h:135:21: libintl.h: No such file or directory
../../bfd/archive.c: In function `_bfd_write_archive_contents':
../../bfd/archive.c:1729: warning: implicit declaration of function `dgettext'
make[3]: *** [archive.lo] Error 1
make[3]: Leaving directory `/tmp/pspdev/binutils-2.16/build-psp/bfd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/pspdev/binutils-2.16/build-psp/bfd'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/pspdev/binutils-2.16/build-psp/bfd'
make: *** [all-bfd] Error 2
ERROR BUILDING BINUTILS (binutils-2.16 psp)
OK, so after doing the hacky copy of the header and rerunning, I get a link error in "configuring binutils" and it is:
Code: Select all
mkdir .libs
gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -o size.exe size.o bucomm.o version.o filemode.o ../bfd/.libs/libbfd.a ../libiberty/libi
berty.a ./../intl/libintl.a
size.o(.text+0x14): In function `usage':
C:/Cygwin/tmp/pspdev/binutils-2.16/build-psp/binutils/../../binutils/size.c:80: undefined reference to `libintl_gettext'
size.o(.text+0x36):C:/Cygwin/tmp/pspdev/binutils-2.16/build-psp/binutils/../../binutils/size.c:81: undefined reference to `libintl_gettext'
size.o(.text+0x4e):C:/Cygwin/tmp/pspdev/binutils-2.16/build-psp/binutils/../../binutils/size.c:82: undefined reference to `libintl_gettext'
size.o(.text+0x66):C:/Cygwin/tmp/pspdev/binutils-2.16/build-psp/binutils/../../binutils/size.c:83: undefined reference to `libintl_gettext'
size.o(.text+0xa8):C:/Cygwin/tmp/pspdev/binutils-2.16/build-psp/binutils/../../binutils/size.c:99: undefined reference to `libintl_gettext'
size.o(.text+0x9d6): In function `main':
C:/Cygwin/tmp/pspdev/binutils-2.16/build-psp/binutils/../../binutils/size.c:128: undefined reference to `libintl_bindtextdomain'
size.o(.text+0x9e2):C:/Cygwin/tmp/pspdev/binutils-2.16/build-psp/binutils/../../binutils/size.c:129: undefined reference to `libintl_textdomain'
size.o(.text+0xa5f):C:/Cygwin/tmp/pspdev/binutils-2.16/build-psp/binutils/../../binutils/size.c:180: undefined reference to `libintl_gettext'
bucomm.o(.text+0x1b4): In function `set_default_bfd_target':
C:/Cygwin/tmp/pspdev/binutils-2.16/build-psp/binutils/../../binutils/bucomm.c:109: undefined reference to `libintl_gettext'
bucomm.o(.text+0x1e2): In function `list_matching_formats':
C:/Cygwin/tmp/pspdev/binutils-2.16/build-psp/binutils/../../binutils/bucomm.c:120: undefined reference to `libintl_gettext'
bucomm.o(.text+0x282): In function `list_supported_targets':
C:/Cygwin/tmp/pspdev/binutils-2.16/build-psp/binutils/../../binutils/bucomm.c:137: undefined reference to `libintl_gettext'
bucomm.o(.text+0x2e4):C:/Cygwin/tmp/pspdev/binutils-2.16/build-psp/binutils/../../binutils/bucomm.c:135: undefined reference to `libintl_gettext'
bucomm.o(.text+0x31a):C:/Cygwin/tmp/pspdev/binutils-2.16/build-psp/binutils/../../binutils/bucomm.c:155: more undefined references to `libintl_gettext
' follow
../bfd/.libs/libbfd.a(archive.o)(.text+0x2580): In function `bfd_write_archive_contents':
C:/Cygwin/tmp/pspdev/binutils-2.16/build-psp/bfd/../../bfd/archive.c:1728: undefined reference to `libintl_dgettext'
../bfd/.libs/libbfd.a(archive.o)(.text+0x2af7): In function `bfd_archive_bsd_update_armap_timestamp':
C:/Cygwin/tmp/pspdev/binutils-2.16/build-psp/bfd/../../bfd/archive.c:2018: undefined reference to `libintl_dgettext'
../bfd/.libs/libbfd.a(bfd.o)(.text+0x4b): In function `bfd_errmsg':
C:/Cygwin/tmp/pspdev/binutils-2.16/build-psp/bfd/../../bfd/bfd.c:359: undefined reference to `libintl_dgettext'
../bfd/.libs/libbfd.a(bfd.o)(.text+0x257): In function `bfd_assert':
C:/Cygwin/tmp/pspdev/binutils-2.16/build-psp/bfd/../../bfd/bfd.c:768: undefined reference to `libintl_dgettext'
../bfd/.libs/libbfd.a(bfd.o)(.text+0x2ad): In function `bfd_abort':
C:/Cygwin/tmp/pspdev/binutils-2.16/build-psp/bfd/../../bfd/bfd.c:783: undefined reference to `libintl_dgettext'
../bfd/.libs/libbfd.a(bfd.o)(.text+0x2e0):C:/Cygwin/tmp/pspdev/binutils-2.16/build-psp/bfd/../../bfd/bfd.c:790: more undefined references to `libintl_
dgettext' follow
collect2: ld returned 1 exit status
make[3]: *** [size.exe] Error 1
make[3]: Leaving directory `/tmp/pspdev/binutils-2.16/build-psp/binutils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/pspdev/binutils-2.16/build-psp/binutils'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/tmp/pspdev/binutils-2.16/build-psp/binutils'
make: *** [all-binutils] Error 2
ERROR BUILDING BINUTILS (binutils-2.16 psp)
Tommy.