[Bug other/40034] New: make clean fails with /bin/bash: -d: invalid option

2009-05-05 Thread bill at cse dot ucdavis dot edu
Ubuntu 9.04 (Jaunty) x86-64 system builds gcc-4.4.0 just fine.  Just used
../gcc-4.4.0/configure --prefix=/opt/pkg/gcc-4.4.0 to build.

Make clean results in:

true "AR_FLAGS=" "CC_FOR_BUILD=" "CFLAGS=-g -O2" "CXXFLAGS="
"CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET=" "INSTALL=/usr/bin/install -c"
"INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c"
"INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS=" "LIBCFLAGS="
"LIBCFLAGS_FOR_TARGET=" "MAKE=make" "MAKEINFO=/home/bill/src/gcc-4.4.0/missing
makeinfo --split-size=500 --split-size=500 " "PICFLAG="
"PICFLAG_FOR_TARGET=" "SHELL=/bin/bash" "EXPECT=" "RUNTEST=" "RUNTESTFLAGS="
"exec_prefix=/opt/pkg/gcc-4.4.0" "infodir=/opt/pkg/gcc-4.4.0/info"
"libdir=/opt/pkg/gcc-4.4.0/lib" "prefix=/opt/pkg/gcc-4.4.0" "tooldir=" "AR=ar"
"AS=as" "CC=" "CXX=g++" "LD=ld" "LIBCFLAGS=" "NM=nm" "PICFLAG=" "RANLIB=ranlib"
"DESTDIR=" DO=clean multi-clean # make
make[1]: Leaving directory `/home/bill/src/gccobj/zlib'
/bin/bash: -d: invalid option
Usage:  /bin/bash [GNU long option] [option] ...
/bin/bash [GNU long option] [option] script-file ...
GNU long options:
--debug
--debugger
--dump-po-strings
--dump-strings
--help
--init-file
--login
--noediting
--noprofile
--norc
--posix
--protected
--rcfile
--restricted
--verbose
--version
--wordexp
Shell options:
-irsD or -c command or -O shopt_option  (invocation only)
-abefhkmnptuvxBCHP or -o option
/bin/bash: --: invalid option
Usage:  /bin/bash [GNU long option] [option] ...
/bin/bash [GNU long option] [option] script-file ...
GNU long options:
...


-- 
   Summary: make clean fails with /bin/bash: -d: invalid option
   Product: gcc
   Version: 4.4.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: other
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bill at cse dot ucdavis dot edu
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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



[Bug fortran/35619] New: gcc-4.3.0 build fails in gfortran section centos-4.6

2008-03-17 Thread bill at cse dot ucdavis dot edu
Attempting to build gcc-4.3.0 with a centos-4.6 (fully patched) using the
centos
compiler:


Exact version of gcc used to build gcc-4.3.0:
gcc version 4.1.2 20070626 (Red Hat 4.1.2-14)

Options when GCC was configured/built:
export CC=gcc4
 ./configure --prefix=/opt/pkg/gcc-4.3.0 --with-gmp=/opt/pkg/gmp-4.2.2 --with
-mpfr=/opt/pkg/mpfr-2.3.1

Options when building gmp-4.2.2:
export CC=gcc4
./configure --prefix=/opt/pkg/gmp-4.2.2

Options when building mpfr-2.3.1:
export CC=gcc4
./configure --prefix=/opt/pkg/mpfr-2.3.1 --with-gmp=/opt/pkg/gmp-4.2.2/
--with-gmp-build=/opt/src/gmp-4.2.2/

result from make (after an hour or so on a dual opteron):
make[3]: Entering directory
`/opt/src/gcc-4.3.0/x86_64-unknown-linux-gnu/libgfortran'
/bin/sh ./libtool --tag=CC --mode=link
/opt/src/gcc-4.3.0/host-x86_64-unknown-linux-gnu/gcc/xgcc
-B/opt/src/gcc-4.3.0/host-x86_64-unknow
n-linux-gnu/gcc/ -B/opt/pkg/gcc-4.3.0/x86_64-unknown-linux-gnu/bin/
-B/opt/pkg/gcc-4.3.0/x86_64-unknown-linux-gnu/lib/ -isystem /opt/pkg
/gcc-4.3.0/x86_64-unknown-linux-gnu/include -isystem
/opt/pkg/gcc-4.3.0/x86_64-unknown-linux-gnu/sys-include -std=gnu99 -Wall
-Wstrict-p
rototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings
-O2 -g -g -O2 -o libgfortran.la -rpath /opt/pkg/gcc-4.
3.0/lib/../lib64 -version-info `grep -v '^#'
../.././libgfortran/libtool-version` -lm 
-Wl,--version-script=../.././libgfortran/gfortran
.map backtrace.lo compile_options.lo environ.lo error.lo fpu.lo main.lo
memory.lo pause.lo stop.lo string.lo select.lo all_l1.lo ..
libtool: link: /opt/src/gcc-4.3.0/host-x86_64-unknown-linux-gnu/gcc/xgcc
-B/opt/src/gcc-4.3.0/host-x86_64-unknown-linux-gnu/gcc/ -B/opt/
pkg/gcc-4.3.0/x86_64-unknown-linux-gnu/bin/
-B/opt/pkg/gcc-4.3.0/x86_64-unknown-linux-gnu/lib/ -isystem
/opt/pkg/gcc-4.3.0/x86_64-unknow
n-linux-gnu/include -isystem
/opt/pkg/gcc-4.3.0/x86_64-unknown-linux-gnu/sys-include -shared 
.libs/backtrace.o .libs/compile_options.o 
.libs/environ.o .libs/error.o .libs/fpu.o .libs/main.o . 
s/_dim_r4.o .libs/_dim_r8.o .libs/_dim_r10.o .libs/_dim_r16.o .libs/_atan2_r4.o
.libs/_atan2_r8.o .libs/_atan2_r10.o .libs/_atan2_r16.o 
.libs/_mod_i4.o .libs/_mod_i8.o .libs/_mod_i16.o .libs/_mod_r4.o
.libs/_mod_r8.o .libs/_mod_r10.o .libs/_mod_r16.o .libs/misc_specifics.
o .libs/dprod_r8.o .libs/f2c_specifics.o   -lm 
-Wl,--version-script=../.././libgfortran/gfortran.map -Wl,-soname
-Wl,libgfortran.so.3 -
o .libs/libgfortran.so.3.0.0
.libs/compile_options.o(.text+0x0): In function `feof_unlocked':
/usr/include/bits/stdio.h:113: multiple definition of `feof_unlocked'
.libs/backtrace.o(.text+0x0):/usr/include/bits/stdio.h:113: first defined here


-- 
   Summary: gcc-4.3.0 build fails in gfortran section centos-4.6
   Product: gcc
   Version: 4.3.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bill at cse dot ucdavis dot edu
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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



[Bug target/35619] gcc-4.3.0 build fails in gfortran section centos-4.6

2008-03-17 Thread bill at cse dot ucdavis dot edu


--- Comment #2 from bill at cse dot ucdavis dot edu  2008-03-17 22:05 
---
Created an attachment (id=15339)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15339&action=view)
stdio.h as requested.


-- 


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



[Bug target/35619] gcc-4.3.0 build fails in gfortran section centos-4.6

2008-03-17 Thread bill at cse dot ucdavis dot edu


--- Comment #3 from bill at cse dot ucdavis dot edu  2008-03-17 22:06 
---
rpm claims:
glibc-2.3.4-2.39
glibc-headers-2.3.4-2.39
glibc-devel-2.3.4-2.39
compat-glibc-headers-2.3.2-95.30

ls -al  /lib/libc-2.3.4.so 
-rwxr-xr-x  1 root root 1516768 Nov 16 08:37 /lib/libc-2.3.4.so


-- 


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



[Bug target/35619] gcc-4.3.0 build fails in gfortran section centos-4.6

2008-03-17 Thread bill at cse dot ucdavis dot edu


--- Comment #5 from bill at cse dot ucdavis dot edu  2008-03-17 22:13 
---
Created an attachment (id=15340)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15340&action=view)
bits/stdio.h

This is the correct file as requested, I'll attempt to delete the previous
wrong version.


-- 


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



[Bug target/35619] gcc-4.3.0 build fails in gfortran section centos-4.6

2008-03-17 Thread bill at cse dot ucdavis dot edu


--- Comment #7 from bill at cse dot ucdavis dot edu  2008-03-17 23:44 
---
(In reply to comment #6)
> Looks like the reason why it was not being fixed because of:
> __NTH (feof_unlocked (FILE *__stream))
> 

So how would I fix it?


-- 


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



[Bug target/35619] gcc-4.3.0 build fails in gfortran section centos-4.6

2008-03-17 Thread bill at cse dot ucdavis dot edu


--- Comment #8 from bill at cse dot ucdavis dot edu  2008-03-18 00:02 
---
(In reply to comment #6)
> Looks like the reason why it was not being fixed because of:
> __NTH (feof_unlocked (FILE *__stream))
> 

So how would I fix it?(In reply to comment #6)
> Looks like the reason why it was not being fixed because of:
> __NTH (feof_unlocked (FILE *__stream))
> 

BTW, this seems pretty common, I looked at Ubuntu Gutsy 7.10 system and it has
the same definition:
cat /usr/include/bits/stdio.h | grep feof_unlocked | head -1
__NTH (feof_unlocked (FILE *__stream))


-- 


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



[Bug bootstrap/35628] New: gcc-4.3.0 fails to build, mpfr problem, libmpfr.dylib, file is not of required architecture

2008-03-18 Thread bill at cse dot ucdavis dot edu
I built gmp-4.2.2:
./configure --prefix=/opt/pkg/gmp-4.2.2
make
make install

And mpfr-2.3.1:
./configure --prefix=/opt/pkg/mpfr-2.3.1 --with-gmp=/opt/pkg/gmp-4.2.2/
--with-gmp-build=/opt/src/gmp-4.2.2/
make
make install

Oh the compiler I'm trying to install 4.3.0 (as well as gmp and mpfr) with:
Target: powerpc-apple-darwin9
gcc version 4.0.1 (Apple Inc. build 5465)

Then gcc:
./configure --prefix=/opt/pkg/gcc-4.3.0 --with-gmp=/opt/pkg/gmp-4.2.2
--with-mpfr=/opt/pkg/mpfr-2.3.1

And get:
checking for correct version of gmp.h... yes
checking for correct version of mpfr.h... no
configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.

gcc-4.3.0 root# ls -al /opt/pkg/mpfr-2.3.1/include/mpfr.h 
-rw-r--r--  1 root  admin  37381 Mar 18 11:53
/opt/pkg/mpfr-2.3.1/include/mpfr.h

config.log has additional info:
configure:4573: gcc -o conftest -g -O2 -I/opt/pkg/gmp-4.2.2/include
-I/opt/pkg/mpfr-2.3.1/include   conftest.c  -L/opt/pkg/gmp-
4.2.2/lib -L/opt/pkg/mpfr-2.3.1/lib -lmpfr -lgmp >&5
ld: warning in /opt/pkg/mpfr-2.3.1/lib/libmpfr.dylib, file is not of required
architecture
ld: warning in /opt/pkg/gmp-4.2.2/lib/libgmp.dylib, file is not of required
architecture

I searched the bug database and found some mention of an unintentional --target
being supplied to gmp/mpfr, presumably it's the wrong --target.  I didn't
however find a fix, nor was I sure it was exactly the same problem.

The closest bug I found was #35250


-- 
   Summary: gcc-4.3.0 fails to build, mpfr problem, libmpfr.dylib,
file is not of required architecture
   Product: gcc
   Version: 4.3.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bill at cse dot ucdavis dot edu
 GCC build triplet: powerpc-apple-darwin9.2.0
  GCC host triplet: powerpc-apple-darwin9.2.0
GCC target triplet: powerpc-apple-darwin9.2.0


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



[Bug target/35619] gcc-4.3.0 build fails in gfortran section centos-4.6

2008-03-19 Thread bill at cse dot ucdavis dot edu


--- Comment #9 from bill at cse dot ucdavis dot edu  2008-03-19 20:38 
---
(In reply to comment #8)
> (In reply to comment #6)
> > Looks like the reason why it was not being fixed because of:
> > __NTH (feof_unlocked (FILE *__stream))
> > 
> 
> So how would I fix it?(In reply to comment #6)
> > Looks like the reason why it was not being fixed because of:
> > __NTH (feof_unlocked (FILE *__stream))
> > 
> 
> BTW, this seems pretty common, I looked at Ubuntu Gutsy 7.10 system and it has
> the same definition:
> cat /usr/include/bits/stdio.h | grep feof_unlocked | head -1
> __NTH (feof_unlocked (FILE *__stream))
> 

I reproduced this error on Centos-5.1 as well.


-- 


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



[Bug bootstrap/35628] gcc-4.3.0 fails to build, mpfr problem, libmpfr.dylib, file is not of required architecture

2008-03-21 Thread bill at cse dot ucdavis dot edu


--- Comment #2 from bill at cse dot ucdavis dot edu  2008-03-21 18:00 
---
(In reply to comment #1)
> This is a bug in how GMP and MPFR tries to figure out the target platform, it
> tries to always build a 64bit 
> library on a 64bit machine even when the default is 32bits.
> 
> Configure both GMP and MPFR with --host=powerpc-darwin .
> 
> -- Pinski

Seems strange to have GMP, MPFR, and GCC have different default --host
settings, but in any case that worked.  Many thanks.
> 


-- 


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



[Bug target/35619] gcc-4.3.0 build fails in gfortran section centos-4.6

2008-03-22 Thread bill at cse dot ucdavis dot edu


--- Comment #10 from bill at cse dot ucdavis dot edu  2008-03-22 21:58 
---
Created an attachment (id=15361)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15361&action=view)
Ubuntu 7.10 (fully patched) glibc-2.6.1 features.h

As requested.


-- 


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



[Bug target/35619] gcc-4.3.0 build fails in gfortran section centos-4.6

2008-03-22 Thread bill at cse dot ucdavis dot edu


--- Comment #11 from bill at cse dot ucdavis dot edu  2008-03-22 22:00 
---
Created an attachment (id=15362)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15362&action=view)
Centos-5.1, glibc-2.5, features.h

as requested.


-- 


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



[Bug target/35619] gcc-4.3.0 build fails in gfortran section centos-4.6

2008-03-22 Thread bill at cse dot ucdavis dot edu


--- Comment #12 from bill at cse dot ucdavis dot edu  2008-03-22 22:02 
---
Created an attachment (id=15363)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15363&action=view)
centos-4.6, glibc-2.3.4, features.h

as requested, from a patched system.


-- 


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



[Bug target/35619] gcc-4.3.0 build fails in gfortran section centos-4.6

2008-03-22 Thread bill at cse dot ucdavis dot edu


--- Comment #14 from bill at cse dot ucdavis dot edu  2008-03-23 00:38 
---
(In reply to comment #13)
> The Ubuntu 7.10 features should have been matched.
> 
> Maybe this is a problem with building in the src dir.
> 
> Can you try building GCC in an object directory?
> 

That fixed it on all 3 platforms (centos-4.6, 5.1, and ubuntu 7.10).

Thanks.


-- 


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