gcc 3.2: make bootstrap failed on Solaris 8 (2.8)

Paul Lew remove-this-part-paullew@cisco.com
Thu Oct 10 13:01:00 GMT 2002

Background Information:

    We have been using gcc-2.95.3 built on solaris 2.6 for our project
    on Solaris 2.[678].  There were no problems.

    Now we would like to upgrade to gcc-3.2.  We have a successfully
    built gcc-3.2 (built on solaris 2.6) which exhibits problem when
    running under solaris 2.8.  So we're trying to build gcc-3.2 on
    solaris 2.8 instead.

Problem Description:

    The 'make bootstrap' failed when linking cc1, some of the symbols
    are undefined:

	* libintl_bindtextdomain
	* libintl_gettext
	* libintl_textdomain

    We issued the same commands when build on solaris 2.6 but there
    were no such problem.

    If we added '--disable-nls' then this problem went away.  Later
    we also added '--with-libiconv-prefix=/auto/insbu-cnstools' in
    order to have gcc build to completion.

    So what's wrong with the nls part on solaris 2.8?

Commands Used:

    > mkdir ../gcc-3.2-solaris28
    > cd ../gcc-3.2-solaris28
    > ../gcc-3.2/configure --prefix=/auto/insbu-cnstools \
			   --with-local-prefix=/auto/insbu-cnstools \
			   --enable-version-specific-runtime-libs \
    > export CONFIG_SHELL=/bin/ksh
    > make bootstrap
    gcc-2.95.3 -DIN_GCC -g -W -Wall -Wwrite-strings
			-Wstrict-prototypes -Wmissing-prototypes
			-Wtraditional -pedantic -Wno-long-long
			-DHAVE_CONFIG_H  -o cc1 
			c-parse.o c-lang.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-format.o c-semantics.o c-objc-common.o
			libcpp.a  main.o libbackend.a ./intl/libintl.a
    Undefined                       first referenced
     symbol                             in file
    libintl_bindtextdomain              libbackend.a(intl.o)
    libintl_gettext                     c-parse.o
    libintl_textdomain                  libbackend.a(intl.o)
    ld: fatal: Symbol referencing errors. No output written to cc1

Environment Description:

    > uname -a
    SunOS cns-build4 5.8 Generic_108528-07 sun4u sparc

    > which ld

    > gcc-2.95.3 -v
    Reading specs from
    gcc version 2.95.3 20010315 (release)

More information about the Gcc-help mailing list