can't install gcc43 or gcc44

Rob Mahurin rob at jlab.org
Tue Sep 1 00:11:23 PDT 2009


On Mon, Aug 31, 2009 at 04:01:28PM -0500, Adam Mercer wrote:
> On Mon, Aug 31, 2009 at 13:07, Rob Mahurin<rob at jlab.org> wrote:
> 
> > I'm trying to use MacPorts to install Octave and its dependencies on a
> > new Mac running 10.5.8.  The install fails during the build of gcc.
> > (I have tried gcc43 and gcc44.)  Attached is the output of
> >
> >        sudo port install octave +gcc44
> >
> > It looks like last error is
> >
> >        ../../../../gcc-4.4.1/libgcc/../gcc/config/soft-fp/fixtfti.c:34:
> >        error: expected '=', ',', ';', 'asm' or '__attribute__' before
> >        '__fixtfti'
> >
> > which refers to a sensible-looking function declaration in that file.
> > So I am out of my depth.  Help?
> 
> Looks the same as:
> 
> <http://trac.macports.org/ticket/20635>

So it does, thanks.  I was able to compile gcc44 after changing the
Portfile as attached.  It's not obvious to me how to add new
information to the bug tracker.

Cheers,
Rob
-------------- next part --------------
--- Portfile	2009-08-29 08:19:02.000000000 -0400
+++ /tmp/Portfile	2009-09-01 01:24:06.000000000 -0400
@@ -46,15 +46,7 @@
 
 # the generated compiler doesn't accept -arch
 if {[info exists build_arch] && ${os.platform} == "darwin"} {
-    if {(${os.arch} == "i386" && $build_arch == "i386") || (${os.arch} == "powerpc" && $build_arch == "ppc")} {
-        configure.env-append CFLAGS_FOR_TARGET="-m32 ${configure.cflags}"
-    } elseif {(${os.arch} == "i386" && $build_arch == "x86_64") || (${os.arch} == "powerpc" && $build_arch == "ppc64")} {
-        configure.env-append CFLAGS_FOR_TARGET="-m64 ${configure.cflags}"
-    } else {
-        pre-fetch {
-            return -code error "Cannot build $name for $build_arch"
-        }
-    }
+    configure.env-append CFLAGS_FOR_TARGET="${configure.cflags}"
     configure.env-append CFLAGS_FOR_BUILD="${configure.cc_archflags} ${configure.cflags}"
     configure.cc_archflags
     configure.cxx_archflags


More information about the macports-users mailing list