Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Sep 2002 21:48:04 +0200
From:      John Angelmo <john@veidit.net>
To:        current <current@FreeBSD.ORG>
Subject:   libiconv broken
Message-ID:  <3D7F9DF4.3000600@veidit.net>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------090202040208040202030805
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

updated this morning (08.00 CET) to latest current (from GCC 3.1.1 to 
GCC 3.2) everything runs smoothly.

But libiconv seems to break:

cc -I. -I. -I../include -I./../include -O -pipe -march=pentium3 -c 
./iconv.c  -fPIC -DPIC -o .libs/iconv.lo
In file included from gbk.h:64,
                  from converters.h:202,
                  from iconv.c:67:
gbkext1.h: In function `gbkext1_mbtowc':
gbkext1.h:852: unrecognizable insn:
(insn 157 155 159 (set (reg:QI 78)
         (const_int 128 [0x80])) -1 (nil)
     (nil))
gbkext1.h:852: Internal compiler error in extract_insn, at recog.c:2150
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html>; for instructions.
*** Error code 1

Stop in /usr/ports/converters/libiconv/work/libiconv-1.8/lib.
*** Error code 1


--------------090202040208040202030805
Content-Type: text/plain;
 name="libiconv.log"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="libiconv.log"

===>  Cleaning for libtool-1.3.4_4
===>  Cleaning for libiconv-1.8_1
===>  Extracting for libiconv-1.8_1
>> Checksum OK for libiconv-1.8.tar.gz.
===>   libiconv-1.8_1 depends on executable: libtool - found
===>  Patching for libiconv-1.8_1
===>  Applying FreeBSD patches for libiconv-1.8_1
===>  Configuring for libiconv-1.8_1
configure: WARNING: you should use --build, --host, --target
checking whether make sets ${MAKE}... yes
checking for i386-portbld-freebsd5.0-gcc... cc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix... 
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking how to run the C preprocessor... cc -E
checking whether cc needs -traditional... no
checking for ranlib... ranlib
checking for a BSD compatible install... /usr/bin/install -c -o root -g wheel
checking how to copy files... cp -p
checking how to make hard links... ln
checking whether ln -s works... yes
checking build system type... i386-portbld-freebsd5.0
checking host system type... i386-portbld-freebsd5.0
checking for AIX... no
checking for minix/config.h... no
checking for strerror in -lcposix... no
checking for ld used by GCC... /usr/libexec/elf/ld
checking if the linker (/usr/libexec/elf/ld) is GNU ld... yes
checking for /usr/libexec/elf/ld option to reload object files... -r
checking for BSD-compatible nm... nm
checking how to recognise dependant libraries... pass_all
checking command to parse nm output... ok
checking for dlfcn.h... yes
checking for i386-portbld-freebsd5.0-ranlib... (cached) ranlib
checking for i386-portbld-freebsd5.0-strip... no
checking for strip... strip
checking for objdir... .libs
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.lo... yes
checking if cc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/libexec/elf/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... freebsd5.0 ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether -lc should be explicitly linked in... yes
creating libtool
checking host system type... i386-unknown-freebsdelf5.0
checking for ranlib... ranlib
checking whether we are using GNU C... yes
checking for object suffix... o
checking for executable suffix... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.lo... yes
checking if cc supports -fno-rtti -fno-exceptions ... yes
checking if cc static flag -static works... -static
checking whether ln -s works... yes
checking for ld used by GCC... /usr/libexec/elf/ld
checking if the linker (/usr/libexec/elf/ld) is GNU ld... yes
checking whether the linker (/usr/libexec/elf/ld) supports shared libraries... yes
checking for BSD-compatible nm... /usr/bin/nm -B
checking command to parse /usr/bin/nm -B output... ok
checking how to hardcode library paths into programs... immediate
checking for /usr/libexec/elf/ld option to reload object files... -r
checking dynamic linker characteristics... freebsdelf5.0 ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
checking for ld used by GCC... /usr/libexec/elf/ld
checking if the linker (/usr/libexec/elf/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for iconv... no, consider installing GNU libiconv
checking for msgfmt... no
checking for gmsgfmt... :
checking for xgettext... no
checking for msgmerge... no
checking whether NLS is requested... yes
checking for GNU gettext in libc... no
checking for iconv... (cached) no, consider installing GNU libiconv
checking for GNU gettext in libintl... no
checking for locale.h... yes
checking for stdlib.h... yes
checking for mbstate_t... yes
checking for mbrtowc... yes
checking for wcrtomb... yes
checking for mbsinit... yes
checking for setlocale... yes
checking for wchar.h... yes
checking for EILSEQ... yes
checking byte ordering... little endian
configure: creating ./config.status
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating src/Makefile
config.status: creating po/Makefile.in
config.status: creating man/Makefile
config.status: creating tests/Makefile
config.status: creating include/iconv.h
config.status: creating lib/config.h
config.status: creating src/config.h
config.status: creating po/POTFILES
config.status: creating po/Makefile
configure: configuring in libcharset
configure: running /bin/sh './configure'  --enable-static --without-libintl-prefix --prefix=/usr/local i386-portbld-freebsd5.0 'CFLAGS=-O -pipe -march=pentium3' host_alias=i386-portbld-freebsd5.0 build_alias=i386-portbld-freebsd5.0 target_alias=i386-portbld-freebsd5.0 CC=cc --cache-file=/dev/null --srcdir=.
configure: WARNING: you should use --build, --host, --target
checking whether make sets ${MAKE}... yes
checking for i386-portbld-freebsd5.0-gcc... cc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix... 
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking how to run the C preprocessor... cc -E
checking whether cc needs -traditional... no
checking for a BSD compatible install... /usr/bin/install -c -o root -g wheel
checking build system type... i386-portbld-freebsd5.0
checking host system type... i386-portbld-freebsd5.0
checking for AIX... no
checking for minix/config.h... no
checking for POSIXized ISC... no
checking for ld used by GCC... /usr/libexec/elf/ld
checking if the linker (/usr/libexec/elf/ld) is GNU ld... yes
checking for /usr/libexec/elf/ld option to reload object files... -r
checking for BSD-compatible nm... nm
checking whether ln -s works... yes
checking how to recognise dependant libraries... pass_all
checking command to parse nm output... ok
checking for dlfcn.h... yes
checking for i386-portbld-freebsd5.0-ranlib... no
checking for ranlib... ranlib
checking for i386-portbld-freebsd5.0-strip... no
checking for strip... strip
checking for objdir... .libs
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.lo... yes
checking if cc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/libexec/elf/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... freebsd5.0 ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether -lc should be explicitly linked in... yes
creating libtool
checking host system type... i386-unknown-freebsdelf5.0
checking for ranlib... ranlib
checking whether we are using GNU C... yes
checking for object suffix... o
checking for executable suffix... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.lo... yes
checking if cc supports -fno-rtti -fno-exceptions ... yes
checking if cc static flag -static works... -static
checking whether ln -s works... yes
checking for ld used by GCC... /usr/libexec/elf/ld
checking if the linker (/usr/libexec/elf/ld) is GNU ld... yes
checking whether the linker (/usr/libexec/elf/ld) supports shared libraries... yes
checking for BSD-compatible nm... /usr/bin/nm -B
checking command to parse /usr/bin/nm -B output... ok
checking how to hardcode library paths into programs... immediate
checking for /usr/libexec/elf/ld option to reload object files... -r
checking dynamic linker characteristics... freebsdelf5.0 ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
checking for langinfo.h... yes
checking for nl_langinfo... yes
checking for nl_langinfo and CODESET... yes
checking whether we are using the GNU C Library 2.1 or newer... no
checking for stddef.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for setlocale... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating config.h
===>  Building for libiconv-1.8_1
builddir="`pwd`"; cd libcharset && make all && make install-lib libdir="$builddir/lib" includedir="$builddir/lib" sysconfdir="$builddir/lib"
if [ ! -d include ] ; then mkdir include ; fi
cp ./include/libcharset.h.in include/libcharset.h
cd lib && make all
/bin/sh ../libtool --mode=compile cc -I. -I. -I.. -I./.. -O -pipe -march=pentium3  -DHAVE_CONFIG_H -DLIBDIR=\"/usr/local/libdata\" -c ./localcharset.c
mkdir .libs
cc -I. -I. -I.. -I./.. -O -pipe -march=pentium3 -DHAVE_CONFIG_H -DLIBDIR=\"/usr/local/libdata\" -c ./localcharset.c  -fPIC -DPIC -o .libs/localcharset.lo
cc -I. -I. -I.. -I./.. -O -pipe -march=pentium3 -DHAVE_CONFIG_H -DLIBDIR=\"/usr/local/libdata\" -c ./localcharset.c -o localcharset.o >/dev/null 2>&1
mv -f .libs/localcharset.lo localcharset.lo
/bin/sh ../libtool --mode=link cc  -o libcharset.la -rpath /usr/local/lib -version-info 1 -no-undefined localcharset.lo
rm -fr .libs/libcharset.la .libs/libcharset.* .libs/libcharset.*
cc -shared  -Wl,--rpath -Wl,/usr/local/lib  localcharset.lo   -Wl,-soname -Wl,libcharset.so.1 -o .libs/libcharset.so.1
(cd .libs && rm -f libcharset.so && ln -sf libcharset.so.1 libcharset.so)
ar cru .libs/libcharset.a  localcharset.o 
ranlib .libs/libcharset.a
creating libcharset.la
(cd .libs && rm -f libcharset.la && ln -sf ../libcharset.la libcharset.la)
/bin/sh ./config.charset 'i386-portbld-freebsd5.0' > t-charset.alias
mv t-charset.alias charset.alias
sed -e '/^#/d' -e 's/@''PACKAGE''@//g' ./ref-add.sin > t-ref-add.sed
mv t-ref-add.sed ref-add.sed
sed -e '/^#/d' -e 's/@''PACKAGE''@//g' ./ref-del.sin > t-ref-del.sed
mv t-ref-del.sed ref-del.sed
cd lib && make all
cd lib && make install-lib libdir='/usr/ports/converters/libiconv/work/libiconv-1.8/lib' includedir='/usr/ports/converters/libiconv/work/libiconv-1.8/lib' sysconfdir='/usr/ports/converters/libiconv/work/libiconv-1.8/lib'
/bin/sh ./../autoconf/mkinstalldirs /usr/ports/converters/libiconv/work/libiconv-1.8/lib
/bin/sh ../libtool --mode=install install -C  -o root -g wheel -m 444 libcharset.la /usr/ports/converters/libiconv/work/libiconv-1.8/lib/libcharset.la
install -C -o root -g wheel -m 444 .libs/libcharset.so.1 /usr/ports/converters/libiconv/work/libiconv-1.8/lib/libcharset.so.1
(cd /usr/ports/converters/libiconv/work/libiconv-1.8/lib && rm -f libcharset.so && ln -sf libcharset.so.1 libcharset.so)
install -C -o root -g wheel -m 444 .libs/libcharset.a /usr/ports/converters/libiconv/work/libiconv-1.8/lib/libcharset.a
ranlib /usr/ports/converters/libiconv/work/libiconv-1.8/lib/libcharset.a
chmod 644 /usr/ports/converters/libiconv/work/libiconv-1.8/lib/libcharset.a
libtool: install: warning: remember to run `libtool --finish /usr/local/lib'
/bin/sh ./../autoconf/mkinstalldirs /usr/ports/converters/libiconv/work/libiconv-1.8/lib
test -f /usr/ports/converters/libiconv/work/libiconv-1.8/lib/charset.alias && orig=/usr/ports/converters/libiconv/work/libiconv-1.8/lib/charset.alias  || orig=charset.alias;  sed -f ref-add.sed $orig > /usr/ports/converters/libiconv/work/libiconv-1.8/lib/t-charset.alias;  install -C  -o root -g wheel -m 444 /usr/ports/converters/libiconv/work/libiconv-1.8/lib/t-charset.alias /usr/ports/converters/libiconv/work/libiconv-1.8/lib/charset.alias;  rm -f /usr/ports/converters/libiconv/work/libiconv-1.8/lib/t-charset.alias
/bin/sh ./autoconf/mkinstalldirs /usr/ports/converters/libiconv/work/libiconv-1.8/lib
install -C  -o root -g wheel -m 444 include/libcharset.h /usr/ports/converters/libiconv/work/libiconv-1.8/lib/libcharset.h
cd lib && make all
/bin/sh ../libtool --mode=compile cc -I. -I. -I../include -I./../include  -O -pipe -march=pentium3 -c ./iconv.c
mkdir .libs
cc -I. -I. -I../include -I./../include -O -pipe -march=pentium3 -c ./iconv.c  -fPIC -DPIC -o .libs/iconv.lo
In file included from gbk.h:64,
                 from converters.h:202,
                 from iconv.c:67:
gbkext1.h: In function `gbkext1_mbtowc':
gbkext1.h:852: unrecognizable insn:
(insn 157 155 159 (set (reg:QI 78)
        (const_int 128 [0x80])) -1 (nil)
    (nil))
gbkext1.h:852: Internal compiler error in extract_insn, at recog.c:2150
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html>; for instructions.
*** Error code 1

Stop in /usr/ports/converters/libiconv/work/libiconv-1.8/lib.
*** Error code 1

Stop in /usr/ports/converters/libiconv/work/libiconv-1.8.
*** Error code 1

Stop in /usr/ports/converters/libiconv.

--------------090202040208040202030805--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D7F9DF4.3000600>