[Bug fortran/49738] New: Compile errors on OSX darwin 11 (Lion)

2011-07-13 Thread bosephus61 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49738

   Summary: Compile errors on OSX darwin 11 (Lion)
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: fortran
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: bosephu...@gmail.com


checking dynamic linker characteristics... darwin11 dyld
checking how to hardcode library paths into programs... immediate
checking whether the GNU Fortran compiler is working... no
configure: error: GNU Fortran is not working; please report a bug in
http://gcc.gnu.org/bugzilla, attaching
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc44/work/build/x86_64-apple-darwin11/libgfortran/config.log


[Bug fortran/49738] Compile errors on OSX darwin 11 (Lion)

2011-07-13 Thread bosephus61 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49738

--- Comment #3 from bosephus61 at gmail dot com 2011-07-13 21:53:19 UTC ---
I'll have to check as that's likely the case since I have apple Xcode 4.1
installed. 

On Jul 13, 2011, at 2:46 PM, howarth at nitro dot med.uc.edu wrote:

> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49738
> 
> Jack Howarth  changed:
> 
>   What|Removed |Added
> 
> CC||howarth at nitro dot
>   ||med.uc.edu
> 
> --- Comment #2 from Jack Howarth  2011-07-13 
> 21:45:23 UTC ---
> If you built stock gmp 5.0.2 under llvm-gcc, you have a broken gmp (which a
> make check will show you). The fix is to apply...
> 
> 
> -- gmp-5.0.2/acinclude.m4.orig 2011-05-17 19:03:09.0 -0400
> +++ gmp-5.0.2/acinclude.m4  2011-05-17 19:03:43.0 -0400
> @@ -1941,8 +1941,8 @@
> esac
> 
> cat >conftest.c < -extern const int foo[];/* Suppresses C++'s suppression of foo
> */
> -const int foo[] = {1,2,3};
> +extern const int foo[[]];  /* Suppresses C++'s suppression of foo
> */
> +const int foo[[]] = {1,2,3};
> EOF
> echo "Test program:" >&AC_FD_CC
> cat conftest.c >&AC_FD_CC
> --- gmp-5.0.2/configure.orig2011-05-17 19:15:41.0 -0400
> +++ gmp-5.0.2/configure 2011-05-17 19:16:00.0 -0400
> @@ -26446,8 +26446,8 @@
> esac
> 
> cat >conftest.c < -extern const int foo;  /* Suppresses C++'s suppression of foo */
> -const int foo = {1,2,3};
> +extern const int foo[];/* Suppresses C++'s suppression of foo */
> +const int foo[] = {1,2,3};
> EOF
> echo "Test program:" >&5
> cat conftest.c >&5
> 
> http://gmplib.org/list-archives/gmp-bugs/2011-April/002236.html
> http://gmplib.org/list-archives/gmp-bugs/2011-May/002255.html
> http://gmplib.org/list-archives/gmp-bugs/2011-May/002256.html
> 
> -- 
> Configure bugmail: http://gcc.gnu.org/bugzilla/userprefs.cgi?tab=email
> --- You are receiving this mail because: ---
> You reported the bug.