Visit Our UNIX and Linux User Community


Need help in building gcc on solaris.


 
Thread Tools Search this Thread
Operating Systems Solaris Need help in building gcc on solaris.
# 1  
Old 04-16-2008
Need help in building gcc on solaris.

We are moving from old solaris to new version of solaris. I have copied the gcc compiler installed on old server to new solaris server. But just copying didn't work. So I am trying to build it on the new server. The server version is
Code:
sailfish@st-kvar02 -> uname -a
SunOS st-kvar02 5.10 Generic_127111-08 sun4u sparc

I created 2 directories, /prog/gcc/build_test and /prog/gcc/install_test.

Then I run Configure as follows.
Code:
sailfish@st-kvar02 -> pwd
/exp/prog01/gcc/build_test
sailfish@st-kvar02 -> ../gcc-3.2/configure --prefix=/prog/gcc/install_test
Configuring for a sparc-sun-solaris2.10 host.
Created "Makefile" in /exp/prog01/gcc/build_test using "mh-frag"
Configuring libiberty...
creating cache ../config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... makeinfo
configure: warning: 
*** Makeinfo is too old. Info documentation will not be built.
checking for perl... perl
checking host system type... sparc-sun-solaris2.10
checking build system type... sparc-sun-solaris2.10
checking for ar... ar
checking for ranlib... ranlib
checking for gcc... gcc
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for POSIXized ISC... no
checking for working const... yes
checking for inline... inline
checking for a BSD compatible install... /prog/gnu/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for sys/file.h... yes
checking for sys/param.h... yes
checking for limits.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for unistd.h... yes
checking for strings.h... yes
checking for sys/time.h... yes
checking for time.h... yes
checking for sys/resource.h... yes
checking for sys/stat.h... yes
checking for sys/mman.h... yes
checking for fcntl.h... yes
checking for alloca.h... yes
checking for sys/wait.h that is POSIX.1 compatible... no
checking whether time.h and sys/time.h may both be included... yes
checking whether errno must be declared... no
checking for ANSI C header files... yes
checking for uintptr_t... yes
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking for asprintf... no
checking for atexit... yes
checking for basename... yes
checking for bcmp... yes
checking for bcopy... yes
checking for bsearch... yes
checking for bzero... yes
checking for calloc... yes
checking for clock... yes
checking for ffs... yes
checking for getcwd... yes
checking for getpagesize... yes
checking for index... yes
checking for insque... yes
checking for memchr... yes
checking for memcmp... yes
checking for memcpy... yes
checking for memmove... yes
checking for memset... yes
checking for mkstemps... no
checking for putenv... yes
checking for random... yes
checking for rename... yes
checking for rindex... yes
checking for setenv... yes
checking for sigsetmask... no
checking for strcasecmp... yes
checking for strchr... yes
checking for strdup... yes
checking for strncasecmp... yes
checking for strrchr... yes
checking for strstr... yes
checking for strtod... yes
checking for strtol... yes
checking for strtoul... yes
checking for tmpnam... yes
checking for vasprintf... no
checking for vfprintf... yes
checking for vprintf... yes
checking for vsprintf... yes
checking for waitpid... yes
checking whether alloca needs Cray hooks... no
checking stack direction for C alloca... -1
checking for pid_t... yes
checking for vfork.h... no
checking for working vfork... no
checking for _doprnt... yes
checking for sys_errlist... yes
checking for sys_nerr... yes
checking for sys_siglist... no
checking for getrusage... yes
checking for on_exit... no
checking for psignal... yes
checking for strerror... yes
checking for strsignal... yes
checking for sysconf... yes
checking for times... yes
checking for sbrk... yes
checking for gettimeofday... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for sys/types.h... yes
checking for getpagesize... (cached) yes
checking for working mmap... no
checking for working strncmp... yes
updating cache ../config.cache
creating ./config.status
creating Makefile
creating testsuite/Makefile
creating config.h
Configuring zlib...
loading cache ../config.cache
checking host system type... sparc-sun-solaris2.10
checking target system type... sparc-sun-solaris2.10
checking build system type... sparc-sun-solaris2.10
checking for a BSD compatible install... (cached) /prog/gnu/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... found
checking for working automake... missing
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... (cached) gcc
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for ld used by GCC... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking for /usr/ccs/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /prog/gnu/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependant libraries... pass_all
checking for object suffix... o
checking for ranlib... (cached) ranlib
checking for strip... strip
updating cache ../config.cache
loading cache ../config.cache within ltconfig
checking whether -lc should be explicitly linked in... yes
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
finding the maximum length of command line arguments... 393217
checking if gcc supports -c -o file.o... yes
checking if gcc supports -fno-rtti -fno-exceptions ... yes
checking whether the linker (/usr/ccs/bin/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... solaris2.10 ld.so
checking command to parse /prog/gnu/bin/nm -B output... ok
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
creating libtool
updating cache ../config.cache
loading cache ../config.cache
checking how to run the C preprocessor... (cached) gcc -E
checking for unistd.h... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap... (cached) no
checking for memcpy... (cached) yes
checking for strerror... (cached) yes
checking for unistd.h... (cached) yes
creating ./config.status
creating Makefile
Configuring gcc...
loading cache ../config.cache
checking LIBRARY_PATH variable... ok
checking GCC_EXEC_PREFIX variable... ok
checking host system type... sparc-sun-solaris2.10
checking target system type... sparc-sun-solaris2.10
checking build system type... sparc-sun-solaris2.10
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking whether gcc and cc understand -c and -o together... yes
checking for gnatbind... no
checking for compiler driver that understands Ada... no
checking whether gcc accepts -Wno-long-long... yes
checking how to run the C preprocessor... (cached) gcc -E
checking for inline... (cached) inline
checking for volatile... yes
checking for long double... yes
checking for long long int... yes
checking for __int64... no
checking for built-in _Bool... yes
checking size of short... 2
checking size of int... 4
checking size of long... 4
checking size of long long... 8
checking execution character set... ASCII
checking whether make sets ${MAKE}... (cached) yes
checking whether a default assembler was specified... no
checking whether a default linker was specified... no
checking for GNU C library... no
checking for mawk... no
checking for gawk... gawk
checking whether ln works... yes
checking whether ln -s works... yes
checking for ranlib... (cached) ranlib
checking for a BSD compatible install... (cached) /prog/gnu/bin/install -c
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached) yes
checking for working stdbool.h... yes
checking whether string.h and strings.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... (cached) no
checking for limits.h... (cached) yes
checking for stddef.h... yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for time.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/file.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for sys/resource.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for sys/times.h... yes
checking for sys/stat.h... (cached) yes
checking for direct.h... no
checking for malloc.h... yes
checking for langinfo.h... yes
checking for thread.h... yes
checking for pthread.h... yes
checking for CHAR_BIT... yes
checking byte ordering... big-endian
checking floating point format... IEEE (big-endian)
checking for mktemp... yes
checking for makeinfo... (cached) makeinfo
checking for modern makeinfo... no
configure: warning: 
*** Makeinfo is missing or too old.
*** Info documentation will not be built.
checking for recent Pod::Man... yes
checking for flex... false
checking for bison... bison
checking for collect2 libraries... none required
checking for library containing exc_resume... no
checking for preprocessor stringizing operator... yes
checking for inttypes.h... yes
checking for times... (cached) yes
checking for clock... (cached) yes
checking for dup2... yes
checking for kill... yes
checking for getrlimit... yes
checking for setrlimit... yes
checking for atoll... yes
checking for atoq... no
checking for sysconf... (cached) yes
checking for strsignal... (cached) yes
checking for putc_unlocked... yes
checking for fputc_unlocked... no
checking for fputs_unlocked... no
checking for fwrite_unlocked... no
checking for fprintf_unlocked... no
checking for getrusage... (cached) yes
checking for nl_langinfo... yes
checking for lstat... yes
checking for ssize_t... yes
checking for uid_t in sys/types.h... yes
checking type of array argument to getgroups... gid_t
checking whether the printf functions support %p... yes
checking for pid_t... (cached) yes
checking for vfork.h... (cached) no
checking for working vfork... (cached) no
checking for getpagesize... (cached) yes
checking for working mmap from /dev/zero... no
checking for working mmap with MAP_ANON(YMOUS)... no
checking for working mmap of a file... no
checking for iconv... yes
checking for iconv declaration... 
         extern size_t iconv (iconv_t cd, const char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking whether getenv is declared... no
checking whether atol is declared... no
checking whether sbrk is declared... no
checking whether abort is declared... no
checking whether atof is declared... no
checking whether getcwd is declared... no
checking whether getwd is declared... no
checking whether strsignal is declared... no
checking whether putc_unlocked is declared... no
checking whether fputs_unlocked is declared... no
checking whether fwrite_unlocked is declared... no
checking whether fprintf_unlocked is declared... no
checking whether strstr is declared... no
checking whether errno is declared... no
checking whether malloc is declared... no
checking whether realloc is declared... no
checking whether calloc is declared... no
checking whether free is declared... no
checking whether basename is declared... no
checking whether getopt is declared... no
checking whether clock is declared... no
checking whether getrlimit is declared... no
checking whether setrlimit is declared... no
checking whether getrusage is declared... no
checking whether times is declared... no
checking for struct tms... no
checking for clock_t... no
checking if mkdir takes one argument... yes
Using `../../gcc-3.2/gcc/config/sparc/sparc.c' for machine-specific logic.
Using `../../gcc-3.2/gcc/config/sparc/sparc.md' as machine description file.
Using the following target machine macro files:
        ../../gcc-3.2/gcc/config/sparc/sparc.h
        ../../gcc-3.2/gcc/config/dbxelf.h
        ../../gcc-3.2/gcc/config/elfos.h
        ../../gcc-3.2/gcc/config/svr4.h
        ../../gcc-3.2/gcc/config/sparc/sysv4.h
        ../../gcc-3.2/gcc/config/sparc/sol2.h
checking for library containing strerror... none required
checking for working const... (cached) yes
checking for off_t... yes
checking for size_t... yes
checking for working alloca.h... (cached) yes
checking for alloca... yes
checking whether we are using the GNU C Library 2.1 or newer... no
checking for argz.h... no
checking for limits.h... (cached) yes
checking for locale.h... yes
checking for nl_types.h... yes
checking for malloc.h... (cached) yes
checking for stddef.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for feof_unlocked... no
checking for fgets_unlocked... no
checking for getcwd... (cached) yes
checking for getegid... yes
checking for geteuid... yes
checking for getgid... yes
checking for getuid... yes
checking for mempcpy... no
checking for munmap... yes
checking for putenv... (cached) yes
checking for setenv... (cached) yes
checking for setlocale... yes
checking for stpcpy... no
checking for strchr... (cached) yes
checking for strcasecmp... (cached) yes
checking for strdup... (cached) yes
checking for strtoul... (cached) yes
checking for tsearch... yes
checking for __argz_count... no
checking for __argz_stringify... no
checking for __argz_next... no
checking for iconv... (cached) yes
checking for iconv declaration... (cached) 
         extern size_t iconv (iconv_t cd, const char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for nl_langinfo and CODESET... yes
checking for LC_MESSAGES... yes
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for libintl.h... yes
checking for GNU gettext in libc... no
checking for GNU gettext in libintl... no
checking for msgfmt... no
checking for gmsgfmt... :
checking for xgettext... no
checking for bison... bison
checking version of bison... 1.25, bad
checking for catalogs to be installed...  da el es fr ja nl sv tr da el es fr ja nl sv tr
checking what assembler to use... /usr/ccs/bin/as
checking what linker to use... /usr/ccs/bin/ld
checking what nm to use... nm
checking what objdump to use... objdump
checking assembler alignment features... none
checking assembler subsection support... no
checking assembler weak support... yes
checking assembler hidden support... yes
checking assembler leb128 support... no
checking assembler eh_frame optimization... no
checking assembler section merging support... no
checking assembler .register pseudo-op support... yes
checking assembler supports -relax... no
checking assembler and linker support unaligned pc related relocs... no
checking assembler and linker support unaligned pc related relocs against hidden symbols... no
checking for assembler offsetable %lo() support... no
checking assembler dwarf2 debug_line support... no
checking assembler --gdwarf2 support... no
checking assembler --gstabs support... no
checking linker PT_GNU_EH_FRAME support... no
Using ggc-page for garbage collection.
checking whether to enable maintainer-specific portions of Makefiles... no
Links are now set up to build a native compiler for sparc-sun-solaris2.10
updating cache ../config.cache
creating ./config.status
creating Makefile
creating intl/Makefile
creating fixinc/Makefile
creating gccbug
creating mklibgcc
creating auto-host.h
Configuring fastjar...
loading cache ../config.cache
checking for a BSD compatible install... (cached) /prog/gnu/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... missing
checking for working autoconf... found
checking for working automake... missing
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for a BSD compatible install... /prog/gnu/bin/install -c
checking for rm... /bin/rm
checking for cp... /prog/gnu/bin/cp
checking for strip... /prog/gnu/bin/strip
checking for chmod... /prog/gnu/bin/chmod
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for executable suffix... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking how to run the C preprocessor... (cached) gcc -E
checking for ANSI C header files... (cached) yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for fcntl.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for off_t... (cached) yes
checking whether struct tm is in sys/time.h or time.h... (cached) time.h
checking size of char... 1
checking size of short... (cached) 2
checking size of int... (cached) 4
checking size of long... (cached) 4
checking size of long long... (cached) 8
checking whether byte ordering is bigendian... yes
updating cache ../config.cache
creating ./config.status
creating Makefile
creating install-defs.sh
creating config.h
sailfish@st-kvar02 ->


Then tried to build it
Code:
sailfish@st-kvar02 -> make bootstrap
make[1]: Entering directory `/exp/prog01/gcc/build_test/libiberty'
if [ x"" != x ] && [ ! -d pic ]; then \
  mkdir pic; \
else true; fi
touch stamp-picdir
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic  ../../gcc-3.2/libiberty/regex.c -o pic/regex.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/regex.c
In file included from ../../gcc-3.2/include/xregex.h:26,
                 from ../../gcc-3.2/libiberty/regex.c:195:
../../gcc-3.2/include/xregex2.h:551: warning: ISO C89 does not support `static' or type qualifiers in parameter array declarators
In file included from ../../gcc-3.2/libiberty/regex.c:649:
../../gcc-3.2/libiberty/regex.c: In function `byte_compile_range':
../../gcc-3.2/libiberty/regex.c:4602: warning: signed and unsigned type in conditional expression
../../gcc-3.2/libiberty/regex.c:4612: warning: signed and unsigned type in conditional expression
../../gcc-3.2/libiberty/regex.c:4612: warning: signed and unsigned type in conditional expression
../../gcc-3.2/libiberty/regex.c: At top level:
../../gcc-3.2/libiberty/regex.c:1380: warning: traditional C rejects string concatenation
../../gcc-3.2/libiberty/regex.c:1382: warning: traditional C rejects string concatenation
../../gcc-3.2/libiberty/regex.c:1383: warning: traditional C rejects string concatenation
../../gcc-3.2/libiberty/regex.c:1385: warning: traditional C rejects string concatenation
../../gcc-3.2/libiberty/regex.c:1386: warning: traditional C rejects string concatenation
../../gcc-3.2/libiberty/regex.c:1388: warning: traditional C rejects string concatenation
../../gcc-3.2/libiberty/regex.c:1389: warning: traditional C rejects string concatenation
../../gcc-3.2/libiberty/regex.c:1391: warning: traditional C rejects string concatenation
../../gcc-3.2/libiberty/regex.c:1392: warning: traditional C rejects string concatenation
../../gcc-3.2/libiberty/regex.c:1394: warning: traditional C rejects string concatenation
../../gcc-3.2/libiberty/regex.c:1395: warning: traditional C rejects string concatenation
../../gcc-3.2/libiberty/regex.c:1397: warning: traditional C rejects string concatenation
../../gcc-3.2/libiberty/regex.c:1398: warning: traditional C rejects string concatenation
../../gcc-3.2/libiberty/regex.c:1400: warning: traditional C rejects string concatenation
../../gcc-3.2/libiberty/regex.c:1401: warning: traditional C rejects string concatenation
../../gcc-3.2/libiberty/regex.c:1403: warning: traditional C rejects string concatenation
../../gcc-3.2/libiberty/regex.c:1404: warning: traditional C rejects string concatenation
../../gcc-3.2/libiberty/regex.c:1406: warning: traditional C rejects string concatenation
../../gcc-3.2/libiberty/regex.c:1407: warning: traditional C rejects string concatenation
../../gcc-3.2/libiberty/regex.c:1409: warning: traditional C rejects string concatenation
../../gcc-3.2/libiberty/regex.c:1410: warning: traditional C rejects string concatenation
../../gcc-3.2/libiberty/regex.c:1412: warning: traditional C rejects string concatenation
../../gcc-3.2/libiberty/regex.c:1413: warning: traditional C rejects string concatenation
../../gcc-3.2/libiberty/regex.c:1415: warning: traditional C rejects string concatenation
../../gcc-3.2/libiberty/regex.c:1416: warning: traditional C rejects string concatenation
../../gcc-3.2/libiberty/regex.c:1418: warning: traditional C rejects string concatenation
../../gcc-3.2/libiberty/regex.c:1419: warning: traditional C rejects string concatenation
../../gcc-3.2/libiberty/regex.c:1421: warning: traditional C rejects string concatenation
../../gcc-3.2/libiberty/regex.c:1422: warning: traditional C rejects string concatenation
../../gcc-3.2/libiberty/regex.c:1424: warning: traditional C rejects string concatenation
../../gcc-3.2/libiberty/regex.c:1425: warning: traditional C rejects string concatenation
../../gcc-3.2/libiberty/regex.c:1427: warning: traditional C rejects string concatenation
../../gcc-3.2/libiberty/regex.c: In function `xregerror':
../../gcc-3.2/libiberty/regex.c:8234: warning: unused parameter `preg'
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic  ../../gcc-3.2/libiberty/cplus-dem.c -o pic/cplus-dem.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/cplus-dem.c
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic  ../../gcc-3.2/libiberty/cp-demangle.c -o pic/cp-demangle.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/cp-demangle.c
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic  ../../gcc-3.2/libiberty/md5.c -o pic/md5.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/md5.c
../../gcc-3.2/libiberty/md5.c:356:58: warning: function-like macro "FG" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:357:58: warning: function-like macro "FG" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:358:58: warning: function-like macro "FG" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:359:58: warning: function-like macro "FG" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:360:58: warning: function-like macro "FG" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:361:58: warning: function-like macro "FG" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:362:58: warning: function-like macro "FG" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:363:58: warning: function-like macro "FG" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:364:58: warning: function-like macro "FG" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:365:58: warning: function-like macro "FG" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:366:58: warning: function-like macro "FG" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:367:58: warning: function-like macro "FG" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:368:58: warning: function-like macro "FG" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:369:58: warning: function-like macro "FG" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:370:58: warning: function-like macro "FG" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:371:58: warning: function-like macro "FG" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:374:58: warning: function-like macro "FH" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:375:58: warning: function-like macro "FH" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:376:58: warning: function-like macro "FH" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:377:58: warning: function-like macro "FH" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:378:58: warning: function-like macro "FH" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:379:58: warning: function-like macro "FH" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:380:58: warning: function-like macro "FH" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:381:58: warning: function-like macro "FH" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:382:58: warning: function-like macro "FH" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:383:58: warning: function-like macro "FH" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:384:58: warning: function-like macro "FH" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:385:58: warning: function-like macro "FH" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:386:58: warning: function-like macro "FH" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:387:58: warning: function-like macro "FH" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:388:58: warning: function-like macro "FH" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:389:58: warning: function-like macro "FH" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:392:58: warning: function-like macro "FI" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:393:58: warning: function-like macro "FI" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:394:58: warning: function-like macro "FI" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:395:58: warning: function-like macro "FI" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:396:58: warning: function-like macro "FI" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:397:58: warning: function-like macro "FI" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:398:58: warning: function-like macro "FI" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:399:58: warning: function-like macro "FI" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:400:58: warning: function-like macro "FI" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:401:58: warning: function-like macro "FI" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:402:58: warning: function-like macro "FI" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:403:58: warning: function-like macro "FI" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:404:58: warning: function-like macro "FI" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:405:58: warning: function-like macro "FI" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:406:58: warning: function-like macro "FI" must be used with arguments in traditional C
../../gcc-3.2/libiberty/md5.c:407:58: warning: function-like macro "FI" must be used with arguments in traditional C
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic  ../../gcc-3.2/libiberty/alloca.c -o pic/alloca.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/alloca.c
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic  ../../gcc-3.2/libiberty/argv.c -o pic/argv.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/argv.c
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic  ../../gcc-3.2/libiberty/choose-temp.c -o pic/choose-temp.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/choose-temp.c
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic  ../../gcc-3.2/libiberty/concat.c -o pic/concat.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/concat.c
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic  ../../gcc-3.2/libiberty/dyn-string.c -o pic/dyn-string.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/dyn-string.c
if [ x"" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic  ../../gcc-3.2/libiberty/fdmatch.c -o pic/fdmatch.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../gcc-3.2/libiberty/../include  -W -Wall -Wtraditional -pedantic ../../gcc-3.2/libiberty/fdmatch.c
In file included from ../../gcc-3.2/libiberty/fdmatch.c:47:
/usr/include/sys/stat.h:251: parse error before "blksize_t"
/usr/include/sys/stat.h:255: parse error before '}' token
/usr/include/sys/stat.h:309: parse error before "blksize_t"
/usr/include/sys/stat.h:310: conflicting types for `st_blocks'
/usr/include/sys/stat.h:252: previous declaration of `st_blocks'
/usr/include/sys/stat.h:313: parse error before '}' token
../../gcc-3.2/libiberty/fdmatch.c: In function `fdmatch':
../../gcc-3.2/libiberty/fdmatch.c:53: storage size of `sbuf1' isn't known
../../gcc-3.2/libiberty/fdmatch.c:54: storage size of `sbuf2' isn't known
../../gcc-3.2/libiberty/fdmatch.c:53: warning: unused variable `sbuf1'
../../gcc-3.2/libiberty/fdmatch.c:54: warning: unused variable `sbuf2'
make[1]: *** [fdmatch.o] Error 1
make[1]: Leaving directory `/exp/prog01/gcc/build_test/libiberty'
make: *** [all-libiberty] Error 2
sailfish@st-kvar02 ->

And my Path variable says
Code:
sailfish@st-kvar02 -> echo $PATH
/prog/sybase/current/OCS-12_5/bin:/prog/sybase/current/RPL-12_5/bin:/prog/sybase/current/EFTS-12_5_2/bin:/prog/sybase/current/JS-12_5/bin:/prog/sybase/current/ASE-12_5/bin:/prog/sybase/current/ASE-12_5/install:/local/bin:/prog/gcc/curr_inst/bin:/prog/gnu/bin:/local/perl/bin:/local/script:/bin:/usr/bin:/usr/ccs/bin:/prog/sybase/current/OCS_12-5/bin:/usr/ucb:/usr/sbin:/etc:/usr/java/bin:/prog/sailfish/current:/prog/sailfish/current/KVARserv:/prog/sailfish/current/KVARserv/bin:/prog/sailfish/current/KVARclnt:.

I don't understand what has gone wrong and why it is not getting built. Sitting on this since many weeks. Any suggestions or quick clues will be of great help.
Thanks in advance

Last edited by Yogesh Sawant; 04-16-2008 at 01:24 PM.. Reason: added code tags
# 2  
Old 04-17-2008
Why are you rebuilding gcc when there is already one installed ?
# 3  
Old 04-17-2008
As I have already mentioned in my first post, gcc is not installed on the new server. I have only copied all files from old server to new server. But just copying it didn't work. I couldn't build any perl packages with this copied one. So I need to install it. Please help.
# 4  
Old 04-17-2008
# 5  
Old 04-17-2008
Quote:
Originally Posted by nalina.hv
As I have already mentioned in my first post, gcc is not installed on the new server.
There is no mention of that statement on your first post.
Moreover, unless I misunderstand where you are running these commands, there is evidence of the opposite given the fact configure finds gcc on your Solaris 10 machine.
Quote:
I have only copied all files from old server to new server. But just copying it didn't work.
Yes, this is to be expected as these are different OS releases.
Quote:
I couldn't build any perl packages with this copied one. So I need to install it. Please help.
I believe gcc is already installed.
What says "pkginfo -l SUNWgcc" ?
# 6  
Old 04-17-2008
it says
sailfish@st-kvar02 -> pkginfo -l SUNWgcc
PKGINST: SUNWgcc
NAME: gcc - The GNU C compiler
CATEGORY: system
ARCH: sparc
VERSION: 11.10.0,REV=2005.01.08.05.16
BASEDIR: /
VENDOR: Sun Microsystems, Inc.
DESC: GNU C - The GNU C compiler 3.4.3
PSTAMP: sfw10-patch20070620072835
INSTDATE: Jan 25 2008 11:48
HOTLINE: Please contact your local service provider
STATUS: completely installed
FILES: 296 installed pathnames
6 shared pathnames
5 linked files
25 directories
33 executables
104325 blocks used (approx)


But when I try to build perl package with this gcc, I get error saying
sailfish@st-kvar02 -> make
gcc -c -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS
+=64 -O -DVERSION=\"1.604\" -DXS_VERSION=\"1.604\" -fPIC "-I/prog/
+perl/curr_inst/lib/5.8.0/sun4-solaris/CORE" -W -Wall -Wpointer-arith
+ -Wbad-function-cast -Wno-comment -Wno-sign-compare -Wno-cast-qual -W
+missing-noreturn -Wno-unused-parameter -DDBI_NO_THREADS Perl.c
In file included from /usr/include/sys/stream.h:22,
from /usr/include/netinet/in.h:66,
from /prog/perl/curr_inst/lib/5.8.0/sun4-solaris/CORE
+/perl.h:612,
from DBIXS.h:19,
from Perl.xs:6:
/usr/include/sys/vnode.h:259: parse error before "pgcnt_t"
/usr/include/sys/vnode.h:281: parse error before '}' token
/usr/include/sys/vnode.h:567: parse error before '*' token
/usr/include/sys/vnode.h:568: parse error before '*' token
/usr/include/sys/vnode.h:569: parse error before '*' token
/usr/include/sys/vnode.h:571: parse error before '*' token
/usr/include/sys/vnode.h:573: parse error before '*' token
/usr/include/sys/vnode.h:574: parse error before '*' token
/usr/include/sys/vnode.h:575: parse error before '*' token
/usr/include/sys/vnode.h:576: parse error before '*' token
/usr/include/sys/vnode.h:578: parse error before '*' token
/usr/include/sys/vnode.h:579: parse error before '*' token
/usr/include/sys/vnode.h:581: parse error before '*' token
/usr/include/sys/vnode.h:583: parse error before '*' token
/usr/include/sys/vnode.h:584: parse error before '*' token
/usr/include/sys/vnode.h:585: parse error before '*' token
/usr/include/sys/vnode.h:586: parse error before '*' token
/usr/include/sys/vnode.h:588: parse error before '*' token
/usr/include/sys/vnode.h:589: parse error before '*' token
/usr/include/sys/vnode.h:590: parse error before '*' token
/usr/include/sys/vnode.h:591: parse error before '*' token
/usr/include/sys/vnode.h:592: parse error before '*' token
/usr/include/sys/vnode.h:593: parse error before '*' token
/usr/include/sys/vnode.h:594: parse error before '*' token
/usr/include/sys/vnode.h:595: parse error before '*' token
/usr/include/sys/vnode.h:596: parse error before '*' token
/usr/include/sys/vnode.h:597: parse error before '*' token
/usr/include/sys/vnode.h:598: parse error before '*' token
/usr/include/sys/vnode.h:599: parse error before '*' token
/usr/include/sys/vnode.h:601: parse error before '*' token
/usr/include/sys/vnode.h:603: parse error before '*' token
/usr/include/sys/vnode.h:604: parse error before '*' token
/usr/include/sys/vnode.h:607: parse error before '*' token
/usr/include/sys/vnode.h:608: parse error before '*' token
/usr/include/sys/vnode.h:610: parse error before '*' token
/usr/include/sys/vnode.h:612: parse error before '*' token
/usr/include/sys/vnode.h:614: parse error before '*' token
/usr/include/sys/vnode.h:615: parse error before '*' token
/usr/include/sys/vnode.h:616: parse error before '*' token
/usr/include/sys/vnode.h:617: parse error before '*' token
/usr/include/sys/vnode.h:619: parse error before '*' token
/usr/include/sys/vnode.h:620: parse error before '*' token
/usr/include/sys/vnode.h:621: parse error before '*' token
/usr/include/sys/vnode.h:622: parse error before '*' token
/usr/include/sys/vnode.h:623: parse error before '*' token
/usr/include/sys/vnode.h:624: parse error before '*' token
In file included from /prog/perl/curr_inst/lib/5.8.0/sun4-solaris/CORE
+/perl.h:626,
from DBIXS.h:19,
from Perl.xs:6:
/usr/include/sys/stat.h:251: parse error before "blksize_t"
/usr/include/sys/stat.h:255: parse error before '}' token
/usr/include/sys/stat.h:309: parse error before "blksize_t"
/usr/include/sys/stat.h:313: parse error before '}' token
In file included from /usr/include/sys/signal.h:34,
from /usr/include/signal.h:26,
from /prog/perl/curr_inst/lib/5.8.0/sun4-solaris/CORE
+/unixish.h:106,
from /prog/perl/curr_inst/lib/5.8.0/sun4-solaris/CORE
+/perl.h:1877,
from DBIXS.h:19,
from Perl.xs:6:
/usr/include/sys/siginfo.h:259: parse error before "ctid_t"
/usr/include/sys/siginfo.h:292: parse error before '}' token
/usr/include/sys/siginfo.h:294: parse error before '}' token
/usr/include/sys/siginfo.h:390: parse error before "ctid_t"
/usr/include/sys/siginfo.h:398: conflicting types for `__fault'
/usr/include/sys/siginfo.h:267: previous declaration of `__fault'
/usr/include/sys/siginfo.h:404: conflicting types for `__file'
/usr/include/sys/siginfo.h:273: previous declaration of `__file'
/usr/include/sys/siginfo.h:420: conflicting types for `__prof'
/usr/include/sys/siginfo.h:287: previous declaration of `__prof'
/usr/include/sys/siginfo.h:424: conflicting types for `__rctl'
/usr/include/sys/siginfo.h:291: previous declaration of `__rctl'
/usr/include/sys/siginfo.h:426: parse error before '}' token
/usr/include/sys/siginfo.h:428: parse error before '}' token
/usr/include/sys/siginfo.h:432: parse error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: parse error before '}' token
In file included from /usr/include/signal.h:26,
from /prog/perl/curr_inst/lib/5.8.0/sun4-solaris/CORE
+/unixish.h:106,
from /prog/perl/curr_inst/lib/5.8.0/sun4-solaris/CORE
+/perl.h:1877,
from DBIXS.h:19,
from Perl.xs:6:
/usr/include/sys/signal.h:85: parse error before "siginfo_t"
In file included from /prog/perl/curr_inst/lib/5.8.0/sun4-solaris/CORE
+/unixish.h:106,
from /prog/perl/curr_inst/lib/5.8.0/sun4-solaris/CORE
+/perl.h:1877,
from DBIXS.h:19,
from Perl.xs:6:
/usr/include/signal.h:111: parse error before "siginfo_t"
/usr/include/signal.h:113: parse error before "siginfo_t"
*** Error code 1
make: Fatal error: Command failed for target `Perl.o'
[download]

I got to know from google that this error means my gcc installation is broken. So what could I do now?

I also got a suggestion as to
Compile gcc with itself, to get a 64 bit version tuned for the hardware of st-kvar02.
Use that gcc to compile Perl
Then add the Sybase modules etc as needed

But how can I compile gcc with itself to get a64 bit version? What does this mean?

Also found from internet that gcc 3.2 will not work on solaris 10. Is that right?

Last edited by nalina.hv; 04-17-2008 at 11:56 AM..
# 7  
Old 04-17-2008
how could the install of gcc be broken on a fresh install of solaris 10? also, is your ld_lib_path pointing to the correct libraries?

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Make error while building perl on Solaris 10

Hi, I am trying to build per 5.20.1 on solaris 10 and getting below compilation error. Creating Makefile.PL in cpan/Archive-Tar for Archive::Tar Running Makefile.PL in cpan/Archive-Tar ../../miniperl -I../../lib Makefile.PL INSTALLDIRS=perl INSTALLMAN1DIR=none INSTALLMAN3DIR=none... (1 Reply)
Discussion started by: vikrambhimbar
1 Replies

2. Solaris

Building X11 applications on Solaris 10

Hi all, I'm trying to verify that I can build x applications on Solaris 10 and am using xcalc & xeyes as my test applications: git://anongit.freedesktop.org/xorg/app/xcalc git://anongit.freedesktop.org/xorg/app/xeyes Running autogen.sh on this fails with: error: must install xorg-macros... (7 Replies)
Discussion started by: testers1717
7 Replies

3. Solaris

Advanced Sysconfig use when building non-global zones in Solaris 11

I'm in an LDOM. I'm building non-global IP exclusive zones. I am using manifests and profiles to configure the system after install so I don't have to tab through the sysconfig startup dialog everytime I boot a system the first time for settings that never change (DNS, regional data, NTP etc). I... (0 Replies)
Discussion started by: os2mac
0 Replies

4. Solaris

Troubles building on solaris 9 and executing on solaris 10

Hi, I have to build an application on solaris 9 which is supposed to run on solaris 10 computers. I heard that solaris 9 builds should run on solaris 10 without any troubles. However, there is some trouble. Calling ldd on the programm reveals that "libgcc_s.so.1" and "libstdc++.so.6" are... (4 Replies)
Discussion started by: mikehammer80
4 Replies

5. Linux

Building a ppc476 enabled GCC cross compiler and tool chain

Building a ppc476 enabled GCC cross compiler and tool chain Hello, I am trying to build a cross GCC compiler for PPC476. I applied all the relevant patches. Cross compiler build was successful. When i try to compile the source code using the cross compiler i am getting the below error... (1 Reply)
Discussion started by: raghuhb
1 Replies

6. UNIX for Advanced & Expert Users

Building a ppc476 enabled GCC cross compiler and tool chain

Building a ppc476 enabled GCC cross compiler and tool chain Hello, I am trying to build a cross GCC compiler for PPC476. I applied all the relevant patches. Cross compiler build was successful. When i try to compile the source code using the cross compiler i am getting the below error... (1 Reply)
Discussion started by: raghuhb
1 Replies

7. Red Hat

Building a ppc476 enabled GCC cross compiler and toolchain

Building a ppc476 enabled GCC cross compiler and tool chain Hello, I am trying to build a cross GCC compiler for PPC476. I applied all the relevant patches. Cross compiler build was successful. When i try to compile the source code using the cross compiler i am getting the below error... (0 Replies)
Discussion started by: raghuhb
0 Replies

8. UNIX for Advanced & Expert Users

Difficulty building gcc 4.4.0 -- builds but fails abi_check

I'm trying to build gcc 4.4.0 in 64-bit (x86_64) Ubuntu 9.04, but make check fails. Specifically, make -k check-target gives (after many other pages of output): Running /home/charles/Desktop/gccsrc/libstdc++-v3/testsuite/libstdc++-abi/abi.exp ... FAIL: abi_check Running... (10 Replies)
Discussion started by: CRGreathouse
10 Replies

9. Solaris

Building cdrkit on Solaris 8 generates a linker problem

I'm trying to build cdrkit-1.1.9 but have the same problem with 1.1.6 as well. The reason I need cdrkit is that it has an extended Joilet that mkisofs doesn't have but if anyone has another program that can provide this that might be a work around I can use. The problem I'm having is when I... (1 Reply)
Discussion started by: dxk3355
1 Replies

Featured Tech Videos