1752647 Members
5666 Online
108788 Solutions
New Discussion

upgrade gcc error

 
jackie_siu
Advisor

upgrade gcc error

Hi all:
When I want to upgrade the gcc from 3.4.2 to 4.0.4 on my hp-ux 11.23,I encountered the following problem. anybody can help me? I really appreciate for your help!!

Following is the steps and the problem:


1) checking current gcc version

SRBZ-1#[/]swlist -v |grep gcc
WARNING: Incomplete definition for the fileset "STM-SHLIBS", beginning
at line 71763. The following attributes are not defined:
state the current state (status) of the fileset
WARNING: Incomplete definition for the fileset "STM-UUT-RUN", beginning
at line 71788. The following attributes are not defined:
state the current state (status) of the fileset
gcc
tag gcc
software_spec gcc,l=/usr/local,r=3.4.2
control_directory gcc
install_source SRBZ-1:/opt/INCHARGEUTILS/utils/gcc_3.4.2_ia64-hp-hpux11.23_depot
all_filesets gcc

2) login as root

SRBZ-1#[/]whoami
root

3) show the gcc source file at /home/incharg2/xujl/gcc-4.0.4
SRBZ-1#[/]cd /home/incharg2/xujl
SRBZ-1#[/home/incharg2/xujl]ls
.ICEauthority .dt/ .sh_history binutils-2.18.tar diff/ filelist/ objdir/ result/
.TTauthority .dtprofile* @LongLink broadcast/ doc/ gcc-4.0.4/ orig/ test*
.Xauthority .exrc bak/ cfg/ error/ gcc-4.0.4.tar public/ test.c
.cshrc .login bin/ comp/ etc/ log/ r_hplmn2 test.cpp
.cvspass .profile binutils-2.18/ data/ fileend/ netstatinresult.txt repository/ work/


SRBZ-1#[/home/incharg2/xujl]cd gcc-4.0.4
SRBZ-1#[/home/incharg2/xujl/gcc-4.0.4]ls
ABOUT-NLS INSTALL/ NEWS config/ configure* gcc/ libgfortran/ ltcf-c.sh mkdep*
BUGS LAST_UPDATED README config-ml.in configure.in include/ libiberty/ ltcf-cxx.sh mkinstalldirs*
COPYING MAINTAINERS README.SCO config.cache contrib/ install-sh* libjava/ ltcf-gcj.sh move-if-change*
COPYING.LIB MD5SUMS boehm-gc/ config.guess* depcomp* intl/ libmudflap/ ltconfig* symlink-tree*
ChangeLog Makefile.def bugs.html config.log faq.html libada/ libobjc/ ltmain.sh ylwrap*
ChangeLog.tree-ssa Makefile.in compile config.rpath* fastjar/ libcpp/ libstdc++-v3/ maintainer-scripts/ zlib/
FAQ Makefile.tpl confdefs.h config.sub* fixincludes/ libffi/ libtool.m4 missing*

4) change to the specified tmp objdir
cd ../objdir

5) configure gcc only for languages c,c++
/home/incharg2/xujl/gcc-4.0.4/configure --prefix=/usr/local/bin/gcc-4.0.4 --enable-threads=posix --disable-checking --enable-long-long --enable-languages=c,c++

loading cache ./config.cache
checking host system type... ia64-hp-hpux11.23
checking target system type... ia64-hp-hpux11.23
checking build system type... ia64-hp-hpux11.23
checking for a BSD compatible install... /home/incharg2/xujl/gcc-4.0.4/install-sh -c
checking whether ln works... (cached) yes
checking whether ln -s works... (cached) yes
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gnatbind... no
checking whether compiler driver understands Ada... (cached) no
checking how to compare bootstrapped objects... (cached) cmp $$f1 $$f2 16 16
checking for correct version of gmp.h... no
*** This configuration is not supported in the following subdirectories:
target-libmudflap target-libffi target-boehm-gc target-zlib target-libjava target-libada target-libgfortran zlib fastjar target-libobjc
(Any other directories should still work fine.)
checking for bison... no
checking for bison... (cached) yacc
checking for gm4... (cached) m4
checking for flex... no
checking for flex... (cached) lex
checking for makeinfo... no
*** removing libiberty/Makefile to force reconfigure
*** removing fixincludes/Makefile to force reconfigure
checking for ia64-hp-hpux11.23-ar... no
checking for ar... (cached) ar
checking for ia64-hp-hpux11.23-as... no
checking for as... (cached) as
checking for ia64-hp-hpux11.23-dlltool... no
checking for dlltool... (cached) dlltool
checking for ia64-hp-hpux11.23-ld... (cached) /usr/ccs/bin/ld
checking for ia64-hp-hpux11.23-nm... no
checking for nm... (cached) nm
checking for ia64-hp-hpux11.23-ranlib... no
checking for ranlib... (cached) ranlib
checking for ia64-hp-hpux11.23-windres... no
checking for windres... (cached) windres
checking for ia64-hp-hpux11.23-objcopy... no
checking for objcopy... (cached) objcopy
checking for ia64-hp-hpux11.23-objdump... no
checking for objdump... (cached) objdump
checking for ia64-hp-hpux11.23-ar... no
checking for ar... (cached) ar
checking for ia64-hp-hpux11.23-as... no
checking for as... (cached) as
checking for ia64-hp-hpux11.23-dlltool... no
checking for dlltool... (cached) dlltool
checking for ia64-hp-hpux11.23-ld... no
checking for ld... (cached) ld
checking for ia64-hp-hpux11.23-nm... no
checking for nm... (cached) nm
checking for ia64-hp-hpux11.23-ranlib... no
checking for ranlib... (cached) ranlib
checking for ia64-hp-hpux11.23-windres... no
checking for windres... (cached) windres
checking whether to enable maintainer-specific portions of Makefiles... no
checking if symbolic links between directories work... (cached) yes
creating ./config.status
creating Makefile

6) make

SRBZ-1#[/home/incharg2/xujl/objdir]make
Configuring in fixincludes
configure: loading cache ./config.cache
checking build system type... (cached) ia64-hp-hpux11.23
checking host system type... (cached) ia64-hp-hpux11.23
checking target system type... (cached) ia64-hp-hpux11.23
checking for ia64-hp-hpux11.23-gcc... (cached) gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking how to run the C preprocessor... (cached) gcc -E
checking for egrep... (cached) grep -E
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for stddef.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for strings.h... (cached) yes
checking for unistd.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for sys/file.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for clearerr_unlocked... (cached) no
checking for feof_unlocked... (cached) no
checking for ferror_unlocked... (cached) no
checking for fflush_unlocked... (cached) no
checking for fgetc_unlocked... (cached) no
checking for fgets_unlocked... (cached) no
checking for fileno_unlocked... (cached) no
checking for fprintf_unlocked... (cached) no
checking for fputc_unlocked... (cached) no
checking for fputs_unlocked... (cached) no
checking for fread_unlocked... (cached) no
checking for fwrite_unlocked... (cached) no
checking for getchar_unlocked... (cached) yes
checking for getc_unlocked... (cached) yes
checking for putchar_unlocked... (cached) yes
checking for putc_unlocked... (cached) yes
checking whether abort is declared... (cached) yes
checking whether errno is declared... (cached) yes
checking whether clearerr_unlocked is declared... (cached) no
checking whether feof_unlocked is declared... (cached) no
checking whether ferror_unlocked is declared... (cached) no
checking whether fflush_unlocked is declared... (cached) no
checking whether fgetc_unlocked is declared... (cached) no
checking whether fgets_unlocked is declared... (cached) no
checking whether fileno_unlocked is declared... (cached) no
checking whether fprintf_unlocked is declared... (cached) no
checking whether fputc_unlocked is declared... (cached) no
checking whether fputs_unlocked is declared... (cached) no
checking whether fread_unlocked is declared... (cached) no
checking whether fwrite_unlocked is declared... (cached) no
checking whether getchar_unlocked is declared... (cached) no
checking whether getc_unlocked is declared... (cached) no
checking whether putchar_unlocked is declared... (cached) no
checking whether putc_unlocked is declared... (cached) no
checking for an ANSI C-conforming const... (cached) yes
checking for sys/mman.h... (cached) yes
checking for mmap... (cached) yes
checking whether read-only mmap of a plain file works... (cached) yes
checking whether mmap from /dev/zero works... (cached) yes
checking for MAP_ANON(YMOUS)... (cached) yes
checking whether mmap with MAP_ANON(YMOUS) works... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mkheaders
config.status: creating config.h
config.status: config.h is unchanged
Configuring in libiberty
configure: loading cache ./config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... (cached) /home/incharg2/xujl/gcc-4.0.4/missing makeinfo
configure: WARNING:
*** Makeinfo is missing. Info documentation will not be built.
checking for perl... (cached) perl
checking build system type... (cached) ia64-hp-hpux11.23
checking host system type... (cached) ia64-hp-hpux11.23
checking for ia64-hp-hpux11.23-ar... (cached) ar
checking for ia64-hp-hpux11.23-ranlib... (cached) ranlib
checking for ia64-hp-hpux11.23-gcc... (cached) gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking how to run the C preprocessor... (cached) gcc -E
checking whether gcc and cc understand -c and -o together... (cached) yes
checking for an ANSI C-conforming const... (cached) yes
checking for inline... (cached) inline
checking whether byte ordering is bigendian... (cached) yes
checking for a BSD-compatible install... /home/incharg2/xujl/gcc-4.0.4/libiberty/../install-sh -c
xhost-mkfrag is unchanged
checking for sys/file.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for limits.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for malloc.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for strings.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for time.h... (cached) yes
checking for sys/resource.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for sys/mman.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for alloca.h... (cached) yes
checking for sys/pstat.h... (cached) yes
checking for sys/sysmp.h... (cached) no
checking for sys/sysinfo.h... (cached) yes
checking for machine/hal_sysinfo.h... (cached) no
checking for sys/table.h... (cached) no
checking for sys/sysctl.h... (cached) no
checking for sys/systemcfg.h... (cached) no
checking for stdint.h... (cached) yes
checking for stdio_ext.h... (cached) no
checking for sys/wait.h that is POSIX.1 compatible... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached) yes
checking whether errno must be declared... (cached) no
checking for egrep... (cached) grep -E
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for int... (cached) yes
checking size of int... (cached) 4
checking for uintptr_t... (cached) yes
checking for a 64-bit type... (cached) unsigned long long
checking for pid_t... (cached) yes
checking for library containing strerror... (cached) none required
checking for asprintf... (cached) no
checking for atexit... (cached) yes
checking for basename... (cached) yes
checking for bcmp... (cached) yes
checking for bcopy... (cached) yes
checking for bsearch... (cached) yes
checking for bzero... (cached) yes
checking for calloc... (cached) yes
checking for clock... (cached) yes
checking for ffs... (cached) yes
checking for getcwd... (cached) yes
checking for getpagesize... (cached) yes
checking for index... (cached) yes
checking for insque... (cached) yes
checking for memchr... (cached) yes
checking for memcmp... (cached) yes
checking for memcpy... (cached) yes
checking for memmove... (cached) yes
checking for mempcpy... (cached) no
checking for memset... (cached) yes
checking for mkstemps... (cached) no
checking for putenv... (cached) yes
checking for random... (cached) yes
checking for rename... (cached) yes
checking for rindex... (cached) yes
checking for setenv... (cached) no
checking for snprintf... (cached) yes
checking for sigsetmask... (cached) yes
checking for stpcpy... (cached) no
checking for stpncpy... (cached) no
checking for strcasecmp... (cached) yes
checking for strchr... (cached) yes
checking for strdup... (cached) yes
checking for strncasecmp... (cached) yes
checking for strrchr... (cached) yes
checking for strstr... (cached) yes
checking for strtod... (cached) yes
checking for strtol... (cached) yes
checking for strtoul... (cached) yes
checking for tmpnam... (cached) yes
checking for vasprintf... (cached) no
checking for vfprintf... (cached) yes
checking for vprintf... (cached) yes
checking for vsnprintf... (cached) yes
checking for vsprintf... (cached) yes
checking for waitpid... (cached) yes
checking whether alloca needs Cray hooks... (cached) no
checking stack direction for C alloca... (cached) -1
checking for unistd.h... (cached) yes
checking for vfork.h... (cached) no
checking for fork... (cached) yes
checking for vfork... (cached) yes
checking for working fork... (cached) yes
checking for working vfork... (cached) yes
checking for _doprnt... (cached) yes
checking for sys_errlist... (cached) yes
checking for sys_nerr... (cached) yes
checking for sys_siglist... (cached) no
checking for external symbol _system_configuration... no
checking for getrusage... (cached) yes
checking for on_exit... (cached) no
checking for psignal... (cached) no
checking for strerror... (cached) yes
checking for strsignal... (cached) no
checking for sysconf... (cached) yes
checking for times... (cached) yes
checking for sbrk... (cached) yes
checking for gettimeofday... (cached) yes
checking for realpath... (cached) yes
checking for canonicalize_file_name... (cached) no
checking for pstat_getstatic... (cached) yes
checking for pstat_getdynamic... (cached) yes
checking for sysmp... (cached) no
checking for getsysinfo... (cached) no
checking for table... (cached) no
checking for sysctl... (cached) no
checking for __fsetlocking... (cached) no
checking whether canonicalize_file_name must be declared... (cached) yes
checking for working strncmp... (cached) yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating testsuite/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default commands
CONFIG_FILES=Makefile CONFIG_HEADERS= /bin/sh ./config.status
config.status: creating Makefile
config.status: executing default commands
CONFIG_FILES= CONFIG_HEADERS=config.h:/home/incharg2/xujl/gcc-4.0.4/libiberty/config.in /bin/sh ./config.status
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default commands
rm -f needed-list; touch needed-list; \
for f in atexit calloc memchr memcmp memcpy memmove memset rename strchr strerror strncmp strrchr strstr strtol strtoul tmpnam vfprintf vprintf vfork waitpid bcmp bcopy bzero; do \
for g in ./asprintf.o ./mempcpy.o ./mkstemps.o ./setenv.o ./stpcpy.o ./stpncpy.o ./vasprintf.o ; do \
case "$g" in \
*$f*) echo $g >> needed-list ;; \
esac; \
done; \
done
echo ./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o ./alloca.o ./argv.o ./choose-temp.o ./concat.o ./cp-demint.o ./dyn-string.o ./fdmatch.o ./fibheap.o ./floatformat.o ./fnmatch.o ./fopen_unlocked.o ./getopt.o ./getopt1.o ./getpwd.o ./getruntime.o ./hashtab.o ./hex.o ./lbasename.o ./lrealpath.o ./make-relative-prefix.o ./make-temp-file.o ./objalloc.o ./obstack.o ./partition.o ./physmem.o ./pex-unix.o ./safe-ctype.o ./sort.o ./spaces.o ./splay-tree.o ./strerror.o ./strsignal.o ./ternary.o ./xatexit.o ./xexit.o ./xmalloc.o ./xmemdup.o ./xstrdup.o ./xstrerror.o > required-list
Make: line 50: syntax error. Stop.
*** Error exit code 1

Stop.

2 REPLIES 2
Steven Schweda
Honored Contributor

Re: upgrade gcc error

> [...] I want to upgrade the gcc from 3.4.2
to 4.0.4 [...]

Why 4.0.4?

http://gcc.gnu.org/releases.html

[...]
GCC 4.3.1 June 6, 2008
[...]
GCC 4.0.4 January 31, 2007
[...]

Why not any of the newer/better versions?

I believe that I had some success building
4.2.2 on my 11.31 system:

dyi # uname -a
HP-UX dyi B.11.31 U ia64 4235313755 unlimited-user license

dyi # gcc --version
gcc (GCC) 4.2.2
[...]
jackie_siu
Advisor

Re: upgrade gcc error

Thanks for your attention, Steven!
We have four hp rx-4640 servers now,and for history reason,the gcc version of he other threes is 4.0.4. So we have to install 4.0.4 to keep same enviroment for our applications.