This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: Error building 64 bit gcc in sparcv9-sun-solaris2.8
- From: "Karthikeyan M. D" <dkarthik at wilco-int dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 3 Apr 2002 19:24:02 +0530
- Subject: RE: Error building 64 bit gcc in sparcv9-sun-solaris2.8
Hi,
The error was because gnu ranlib appear before /usr/ccs/bin/ranlib,
once I set the PATH properly it proceeded further but stuck in some other
place because of below error.
Thanks,
Karthik
stage1/xgcc -Bstage1/ -B/tmp/fs/gcc64/sparcv9-sun-solaris2.8/bin/ -DIN_GCC
-DSVR4 -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H
-o cc1 \
c-parse.o c-lang.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-dump.o
libcpp.a toplev.o libbackend.a obstack.o alloca.o
../libiberty/libiberty.a
ld: elf error: file ../libiberty/libiberty.a(obstack.o): elf_getshdr:
Request error: class file/memory mismatch
ld: warning: file ../libiberty/libiberty.a(getpwd.o): wrong ELF class:
ELFCLASS32
ld: fatal: File processing errors. No output written to cc1
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `cc1'
Current working directory /tmp/fs/gcc-sparc-64bit-obj/gcc
*** Error code 1
make: Fatal error: Command failed for target `stage2_build'
Current working directory /tmp/fs/gcc-sparc-64bit-obj/gcc
*** Error code 1
make: Fatal error: Command failed for target `bootstrap'
> -----Original Message-----
> From: Karthikeyan M. D
> Sent: Wednesday, April 03, 2002 18:08
> To: 'gcc-help@gcc.gnu.org'
> Subject: Error building 64 bit gcc in sparcv9-sun-solaris2.8
>
> Hi,
> I've read few people's mail who has built 64 bit gcc in sparc
> platform successfully and I tried building 64 bit gcc with both 3.0 source
> and 3.0.4 source in sparcv9-sun-solaris2.8 and got the below error in both
> the cases. I tried building with both gcc-3.0 (32 bit) and gcc-2.95.3 and
> got the the same error. I have all the latest GNU tools (make-3.79.1,
> autoconf, automake, autogen, flex, bison, etc.) The error says libgcc.a is
> an unknown file type, but when I do file command on that it says it is a
> library archive. I used the following commands to configure and build.
>
> ../gcc-3.0/configure --prefix=/tmp/fs/gcc64 \
> --enable-shared \
> --enable-languages="c,c++" \
> --with-as=/usr/ccs/bin/as \
> --with-ld=/usr/ccs/bin/ld \
> sparcv9-sun-solaris2.8
>
> make bootstrap
>
> Any help is highly appreciated.
>
> Thanks,
> Karthik
>
> *******Error************
>
> make CC="stage1/xgcc -Bstage1/
> -B/tmp/fs/gcc64/sparcv9-sun-solaris2.8/bin/" \
> STAGE_PREFIX=stage1/ \
> CFLAGS="-g -O2" LDFLAGS="" WARN_CFLAGS="\$(GCC_WARN_CFLAGS)"
> STRICT_WARN="-Wtraditional -pedantic -Wno-long-long"
> libdir=/tmp/fs/gcc64/lib LANGUAGES="c gcov c++" MAKEOVERRIDES=
> OUTPUT_OPTION="-o \$@"
> make[1]: Entering directory `/tmp/fs/gcc-sparc-64bit-obj2/gcc'
> stage1/xgcc -Bstage1/ -B/tmp/fs/gcc64/sparcv9-sun-solaris2.8/bin/
> -DIN_GCC -DSVR4 -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
> -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long
> -DHAVE_CONFIG_H -DGENERATOR_FILE -o gengenrtl \
> gengenrtl.o ` case "obstack.o" in ?*) echo obstack.o ;; esac ` ` case
> "alloca.o" in ?*) echo alloca.o ;; esac ` ` case "" in ?*) echo ;; esac `
> ` case "" in ?*) echo ;; esac ` ` case "" in ?*) echo ;; esac ` ` case
> "" in ?*) echo ;; esac `
> ld: fatal: file stage1/libgcc.a: unknown file type
> ld: fatal: library -lgcc: not found
> ld: fatal: file stage1/libgcc.a: unknown file type
> ld: fatal: library -lgcc: not found
> ld: fatal: File processing errors. No output written to gengenrtl
> collect2: ld returned 1 exit status
> make[1]: *** [gengenrtl] Error 1
> make[1]: Leaving directory `/tmp/fs/gcc-sparc-64bit-obj2/gcc'
> make: *** [stage2_build] Error 2
>
> ______________________________________________________
> Karthikeyan M D
> Wilco International Systems (P) Ltd
> Email: dkarthik@wilco-int.com Web: www.wilco-int.com
> Phone: +91 40 340 8600 Extn.: 8422 Fax: +91 40 340 6980
>
>
>
This message is confidential and may also be legally privileged. If you are not the intended recipient, please notify us immediately. You should not copy it or use it for any purpose, nor disclose it's contents to any other person. The views and opinions expressed in this e-mail message are the author's own and may not reflect the views and opinions of Wilco International.