Subject: gcc34 from pkgsrc won't build?
To: None <port-amd64@netbsd.org>
From: Andy Ruhl <acruhl@gmail.com>
List: port-amd64
Date: 12/27/2004 08:22:15
I tried to build gcc34 a few times, because another program I was
looking at had examples that were using gcc34 to compile.
Here's what I got:
stage1/xgcc -Bstage1/ -B/usr/pkg/gcc34/x86_64--netbsd2.0/bin/ -g -O2
-DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition
-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
libcpp.a(cppcharset.o)(.text+0xb7e): In function `convert_using_iconv':
/usr/pkgsrc/lang/gcc34/work/gcc-3.4.3/gcc/cppcharset.c:559: undefined
referenceto `libiconv'
libcpp.a(cppcharset.o)(.text+0xbc7):/usr/pkgsrc/lang/gcc34/work/gcc-3.4.3/gcc/cppcharset.c:569:
undefined reference to `libiconv'
libcpp.a(cppcharset.o)(.text+0xd43): In function `init_iconv_desc':
/usr/pkgsrc/lang/gcc34/work/gcc-3.4.3/gcc/cppcharset.c:647: undefined
referenceto `libiconv_open'
libcpp.a(cppcharset.o)(.text+0xeb8): In function `_cpp_destroy_iconv':
/usr/pkgsrc/lang/gcc34/work/gcc-3.4.3/gcc/cppcharset.c:710: undefined
referenceto `libiconv_close'
libcpp.a(cppcharset.o)(.text+0x1f36): In function `_cpp_convert_input':
/usr/pkgsrc/lang/gcc34/work/gcc-3.4.3/gcc/cppcharset.c:1386: undefined
reference to `libiconv_close'
libcpp.a(cppcharset.o)(.text+0xea9): In function `_cpp_destroy_iconv':
/usr/pkgsrc/lang/gcc34/work/gcc-3.4.3/gcc/cppcharset.c:712: undefined
referenceto `libiconv_close'
collect2: ld returned 1 exit status
gmake[2]: *** [cc1] Error 1
gmake[2]: Leaving directory `/usr/pkgsrc/lang/gcc34/work/obj/gcc'
gmake[1]: *** [stage2_build] Error 2
gmake[1]: Leaving directory `/usr/pkgsrc/lang/gcc34/work/obj/gcc'
gmake: *** [bootstrap] Error 2
*** Error code 2
Stop.
make: stopped in /usr/pkgsrc/lang/gcc34
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/lang/gcc34
Is this worth a pr? I do have libiconv installed...
Andy