This looks to be the same as reported in bug 15095. 

I have followed the suggested workaround of adding REGPARM (1) to the files
that would fail to compile, and that parameter is already in those files.

I am running Fedora Core 4 on a Dell SC1425. Kernel is 2.6.14-1.1637_FC4smp.
The package I am attempting to install is the JUNOScript API. It has an
automated build package that is attempting to install gmp 4.1.1. This is the
only module that is failing out of the 48 loaded. The log from the failure is
below.

[EMAIL PROTECTED] output]# cat gmp-4.1.1.log
Installing gmp on Linux
=====================================================
Invoking: tar -C tmp -zxf
/var/www/html/JUNOScript/junoscript-perl-7.1R3.3/prereqs/gmp-4.1.1.tar.gz
=====================================================
=====================================================
Invoking: cd tmp/gmp-4.1.1 && ./configure
=====================================================
checking build system type... pentium4-pc-linux-gnu
checking host system type... pentium4-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for mawk... no
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking compiler gcc -g -O2 -fomit-frame-pointer ... yes
checking compiler gcc -g -O2 -fomit-frame-pointer  -mcpu=pentium4... yes
checking compiler gcc -g -O2 -fomit-frame-pointer -mcpu=pentium4 
-march=pentium4... yes
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
using ABI="standard"
      CC="gcc"
      CFLAGS="-g -O2 -fomit-frame-pointer -mcpu=pentium4 -march=pentium4"
      CPPFLAGS=""
      MPN_PATH=" x86/pentium4/sse2 x86/pentium4/mmx x86/pentium4 x86 generic"
checking for gcc option to accept ANSI C... none needed
checking for function prototypes... yes
checking for ANSI C header files... yes
checking for string.h... yes
checking for ar... ar
checking for BSD-compatible nm... /usr/bin/nm -B
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking whether ln -s works... yes
checking how to recognise dependant libraries... file_magic ELF [0-9][0-9]*-bit
[LM]SB (shared object|dynamic lib )
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 49153
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ranlib... ranlib
checking for strip... strip
checking for file... /usr/bin/file
checking if gcc static flag  works... no
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... no
checking if we can lock with hard links... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
checking if the assembler knows about MMX instructions... yes
checking if the assembler knows about SSE2 instructions... yes
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking for fcntl.h... yes
checking for locale.h... yes
checking for sys/mman.h... yes
checking for sys/param.h... yes
checking for sys/processor.h... no
checking for sys/resource.h... yes
checking for sys/sysctl.h... yes
checking for sys/syssgi.h... no
checking for sys/systemcfg.h... no
checking for sys/time.h... yes
checking for sys/times.h... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... (cached) yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether fgetc is declared... yes
checking whether fscanf is declared... yes
checking whether optarg is declared... yes
checking whether ungetc is declared... yes
checking whether vfprintf is declared... yes
checking return type of signal handlers... void
checking for intmax_t... yes
checking for long double... yes
checking for long long... yes
checking for ptrdiff_t... yes
checking for quad_t... yes
checking for preprocessor stringizing operator... yes
checking for working volatile... yes
checking whether <stdarg.h> exists and works... yes
checking whether gcc __attribute__ ((const)) works... yes
checking whether gcc __attribute__ ((malloc)) works... yes
checking whether gcc __attribute__ ((mode (XX))) works... yes
checking whether gcc __attribute__ ((noreturn)) works... yes
checking for inline... yes
checking for main in -lm... yes
checking for working alloca.h... yes
checking for alloca (via gmp-impl.h)... yes
checking how to allocate temporary memory... alloca
checking whether byte ordering is bigendian... no
checking format of `double' floating point... IEEE little endian
checking for alarm... yes
checking for clock... yes
checking for clock_gettime... no
checking for cputime... no
checking for getpagesize... yes
checking for getrusage... yes
checking for gettimeofday... yes
checking for localeconv... yes
checking for memset... yes
checking for mmap... yes
checking for mprotect... yes
checking for obstack_vprintf... yes
checking for popen... yes
checking for processor_info... no
checking for read_real_time... no
checking for sigaction... yes
checking for sigaltstack... yes
checking for sigstack... yes
checking for syssgi... no
checking for strchr... yes
checking for strnlen... yes
checking for strtoul... yes
checking for sysconf... yes
checking for sysctl... yes
checking for sysctlbyname... no
checking for times... yes
checking for vsnprintf... yes
checking whether vsnprintf works... yes
checking whether sscanf needs writable input... no
checking for suitable m4... m4
checking if m4wrap produces spurious output... no
checking how to switch to text section... .text
checking how to switch to data section... .data
checking what assembly label suffix to use... :
checking how to export a symbol... .globl
checking if globals are prefixed by underscore... no
checking how to switch to read-only data section...     .section        .rodata
checking if the export directive needs an attribute...
checking for assembler .type directive... .type $1,@$2
checking for assembler .size directive... .size $1,$2
checking what prefix to use for a local label... .L
checking how to define a 32-bit word... .long
checking if .align assembly directive is logarithmic... no
checking if the .align directive accepts an 0x90 fill in .text... yes
checking if the assembler takes cl with shldl... yes
checking for stack_t... yes
checking for readline in -lreadline... no
checking for bison... bison -y
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
creating config.m4
configure: creating ./config.status
config.status: creating demos/pexpr-config.h
config.status: creating demos/calc/calc-config.h
config.status: creating demos/expr/expr-config.h
config.status: creating Makefile
config.status: creating mpbsd/Makefile
config.status: creating mpf/Makefile
config.status: creating mpn/Makefile
config.status: creating mpq/Makefile
config.status: creating mpz/Makefile
config.status: creating printf/Makefile
config.status: creating scanf/Makefile
config.status: creating cxx/Makefile
config.status: creating tests/Makefile
config.status: creating tests/devel/Makefile
config.status: creating tests/mpbsd/Makefile
config.status: creating tests/mpf/Makefile
config.status: creating tests/mpn/Makefile
config.status: creating tests/mpq/Makefile
config.status: creating tests/mpz/Makefile
config.status: creating tests/rand/Makefile
config.status: creating tests/misc/Makefile
config.status: creating tests/cxx/Makefile
config.status: creating mpfr/Makefile
config.status: creating mpfr/tests/Makefile
config.status: creating tune/Makefile
config.status: creating demos/Makefile
config.status: creating demos/calc/Makefile
config.status: creating demos/expr/Makefile
config.status: creating gmp.h
config.status: creating mp.h
config.status: creating config.h
config.status: config.h is unchanged
config.status: linking ./mpn/x86/udiv.asm to mpn/udiv.asm
config.status: linking ./mpn/x86/umul.asm to mpn/umul.asm
config.status: linking ./mpn/generic/add.c to mpn/add.c
config.status: linking ./mpn/generic/add_1.c to mpn/add_1.c
config.status: linking ./mpn/x86/pentium4/sse2/add_n.asm to mpn/add_n.asm
config.status: linking ./mpn/generic/sub.c to mpn/sub.c
config.status: linking ./mpn/generic/sub_1.c to mpn/sub_1.c
config.status: linking ./mpn/x86/pentium4/sse2/sub_n.asm to mpn/sub_n.asm
config.status: linking ./mpn/x86/pentium4/sse2/mul_1.asm to mpn/mul_1.asm
config.status: linking ./mpn/x86/pentium4/sse2/addmul_1.asm to mpn/addmul_1.asm
config.status: linking ./mpn/x86/pentium4/sse2/submul_1.asm to mpn/submul_1.asm
config.status: linking ./mpn/x86/pentium4/mmx/lshift.asm to mpn/lshift.asm
config.status: linking ./mpn/x86/pentium4/mmx/rshift.asm to mpn/rshift.asm
config.status: linking ./mpn/x86/pentium4/sse2/dive_1.asm to mpn/dive_1.asm
config.status: linking ./mpn/x86/pentium4/sse2/diveby3.asm to mpn/diveby3.asm
config.status: linking ./mpn/generic/divis.c to mpn/divis.c
config.status: linking ./mpn/generic/divrem.c to mpn/divrem.c
config.status: linking ./mpn/x86/divrem_1.asm to mpn/divrem_1.asm
config.status: linking ./mpn/generic/divrem_2.c to mpn/divrem_2.c
config.status: linking ./mpn/generic/fib2_ui.c to mpn/fib2_ui.c
config.status: linking ./mpn/x86/mod_1.asm to mpn/mod_1.asm
config.status: linking ./mpn/x86/pentium4/sse2/mod_34lsub1.asm to
mpn/mod_34lsub1.asm
config.status: linking ./mpn/x86/pentium4/sse2/mode1o.asm to mpn/mode1o.asm
config.status: linking ./mpn/generic/pre_divrem_1.c to mpn/pre_divrem_1.c
config.status: linking ./mpn/generic/pre_mod_1.c to mpn/pre_mod_1.c
config.status: linking ./mpn/generic/dump.c to mpn/dump.c
config.status: linking ./mpn/generic/mul.c to mpn/mul.c
config.status: linking ./mpn/generic/mul_fft.c to mpn/mul_fft.c
config.status: linking ./mpn/generic/mul_n.c to mpn/mul_n.c
config.status: linking ./mpn/x86/pentium4/sse2/mul_basecase.asm to
mpn/mul_basecase.asm
config.status: linking ./mpn/x86/pentium4/sse2/sqr_basecase.asm to
mpn/sqr_basecase.asm
config.status: linking ./mpn/generic/random.c to mpn/random.c
config.status: linking ./mpn/generic/random2.c to mpn/random2.c
config.status: linking ./mpn/generic/pow_1.c to mpn/pow_1.c
config.status: linking ./mpn/generic/rootrem.c to mpn/rootrem.c
config.status: linking ./mpn/generic/sqrtrem.c to mpn/sqrtrem.c
config.status: linking ./mpn/generic/get_str.c to mpn/get_str.c
config.status: linking ./mpn/generic/set_str.c to mpn/set_str.c
config.status: linking ./mpn/generic/scan0.c to mpn/scan0.c
config.status: linking ./mpn/generic/scan1.c to mpn/scan1.c
config.status: linking ./mpn/x86/pentium4/mmx/popham.asm to mpn/popcount.asm
config.status: linking ./mpn/x86/pentium4/mmx/popham.asm to mpn/hamdist.asm
config.status: linking ./mpn/generic/cmp.c to mpn/cmp.c
config.status: linking ./mpn/generic/perfsqr.c to mpn/perfsqr.c
config.status: linking ./mpn/generic/bdivmod.c to mpn/bdivmod.c
config.status: linking ./mpn/generic/gcd_1.c to mpn/gcd_1.c
config.status: linking ./mpn/generic/gcd.c to mpn/gcd.c
config.status: linking ./mpn/generic/gcdext.c to mpn/gcdext.c
config.status: linking ./mpn/generic/tdiv_qr.c to mpn/tdiv_qr.c
config.status: linking ./mpn/generic/dc_divrem_n.c to mpn/dc_divrem_n.c
config.status: linking ./mpn/generic/sb_divrem_mn.c to mpn/sb_divrem_mn.c
config.status: linking ./mpn/generic/jacbase.c to mpn/jacbase.c
config.status: linking ./mpn/x86/pentium4/copyi.asm to mpn/copyi.asm
config.status: linking ./mpn/x86/pentium4/copyd.asm to mpn/copyd.asm
config.status: linking ./mpn/x86/pentium4/sse2/gmp-mparam.h to gmp-mparam.h
Modifying gmp with
=====================================================
Invoking: cd tmp/gmp-4.1.1 && make
=====================================================
make  all-recursive
make[1]: Entering directory
`/var/www/html/JUNOScript/junoscript-perl-7.1R3.3/tmp/gmp-4.1.1'
Making all in tests
make[2]: Entering directory
`/var/www/html/JUNOScript/junoscript-perl-7.1R3.3/tmp/gmp-4.1.1/tests'
Making all in .
make[3]: Entering directory
`/var/www/html/JUNOScript/junoscript-perl-7.1R3.3/tmp/gmp-4.1.1/tests'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory
`/var/www/html/JUNOScript/junoscript-perl-7.1R3.3/tmp/gmp-4.1.1/tests'
Making all in devel
make[3]: Entering directory
`/var/www/html/JUNOScript/junoscript-perl-7.1R3.3/tmp/gmp-4.1.1/tests/devel'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/var/www/html/JUNOScript/junoscript-perl-7.1R3.3/tmp/gmp-4.1.1/tests/devel'
Making all in mpn
make[3]: Entering directory
`/var/www/html/JUNOScript/junoscript-perl-7.1R3.3/tmp/gmp-4.1.1/tests/mpn'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/var/www/html/JUNOScript/junoscript-perl-7.1R3.3/tmp/gmp-4.1.1/tests/mpn'
Making all in mpz
make[3]: Entering directory
`/var/www/html/JUNOScript/junoscript-perl-7.1R3.3/tmp/gmp-4.1.1/tests/mpz'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/var/www/html/JUNOScript/junoscript-perl-7.1R3.3/tmp/gmp-4.1.1/tests/mpz'
Making all in mpq
make[3]: Entering directory
`/var/www/html/JUNOScript/junoscript-perl-7.1R3.3/tmp/gmp-4.1.1/tests/mpq'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/var/www/html/JUNOScript/junoscript-perl-7.1R3.3/tmp/gmp-4.1.1/tests/mpq'
Making all in mpf
make[3]: Entering directory
`/var/www/html/JUNOScript/junoscript-perl-7.1R3.3/tmp/gmp-4.1.1/tests/mpf'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/var/www/html/JUNOScript/junoscript-perl-7.1R3.3/tmp/gmp-4.1.1/tests/mpf'
Making all in rand
make[3]: Entering directory
`/var/www/html/JUNOScript/junoscript-perl-7.1R3.3/tmp/gmp-4.1.1/tests/rand'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/var/www/html/JUNOScript/junoscript-perl-7.1R3.3/tmp/gmp-4.1.1/tests/rand'
Making all in misc
make[3]: Entering directory
`/var/www/html/JUNOScript/junoscript-perl-7.1R3.3/tmp/gmp-4.1.1/tests/misc'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/var/www/html/JUNOScript/junoscript-perl-7.1R3.3/tmp/gmp-4.1.1/tests/misc'
Making all in cxx
make[3]: Entering directory
`/var/www/html/JUNOScript/junoscript-perl-7.1R3.3/tmp/gmp-4.1.1/tests/cxx'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/var/www/html/JUNOScript/junoscript-perl-7.1R3.3/tmp/gmp-4.1.1/tests/cxx'
Making all in mpbsd
make[3]: Entering directory
`/var/www/html/JUNOScript/junoscript-perl-7.1R3.3/tmp/gmp-4.1.1/tests/mpbsd'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/var/www/html/JUNOScript/junoscript-perl-7.1R3.3/tmp/gmp-4.1.1/tests/mpbsd'
make[2]: Leaving directory
`/var/www/html/JUNOScript/junoscript-perl-7.1R3.3/tmp/gmp-4.1.1/tests'
Making all in mpn
make[2]: Entering directory
`/var/www/html/JUNOScript/junoscript-perl-7.1R3.3/tmp/gmp-4.1.1/mpn'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/var/www/html/JUNOScript/junoscript-perl-7.1R3.3/tmp/gmp-4.1.1/mpn'
Making all in mpz
make[2]: Entering directory
`/var/www/html/JUNOScript/junoscript-perl-7.1R3.3/tmp/gmp-4.1.1/mpz'
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..
-D__GMP_WITHIN_GMP -I..    -g -O2 -fomit-frame-pointer -mcpu=pentium4
-march=pentium4 -c -o aorsmul.lo `test -f aorsmul.c || echo './'`aorsmul.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. -g -O2
-fomit-frame-pointer -mcpu=pentium4 -march=pentium4 -c aorsmul.c  -fPIC -DPIC
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
aorsmul.c:44: error: conflicting types for '__gmpz_aorsmul'
aorsmul.c:39: error: previous declaration of '__gmpz_aorsmul' was here
make[2]: *** [aorsmul.lo] Error 1
make[2]: Leaving directory
`/var/www/html/JUNOScript/junoscript-perl-7.1R3.3/tmp/gmp-4.1.1/mpz'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/www/html/JUNOScript/junoscript-perl-7.1R3.3/tmp/gmp-4.1.1'
make: *** [all] Error 2
cd tmp/gmp-4.1.1 && make Failed
[EMAIL PROTECTED] output]#


-- 
           Summary: gcc 4.0.2 fails to compile gmp 4.1.1
           Product: gcc
           Version: 4.0.2
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tachapman at ucdavis dot edu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25415

Reply via email to