[M3devel] gcc error on PPC_DARWIN

Tony Hosking hosking at cs.purdue.edu
Mon Jul 27 15:56:44 CEST 2009


-m32 should work.

On 27 Jul 2009, at 00:09, Jay K wrote:

>
> I kind of throw in that everywhere until/unless shown that it hurts  
> and isn't needed.
> Indeed it doesn't always work, not always on gcc, not always on cm3cg.
>
>
> I have this probe in Darwin.common now, since I was using an  
> AMD64_DARWIN machine the other day:
>
>
> if not defined("SYSTEM_CC")
> not this part
>    if equal(WORD_SIZE, "32BITS")
>        SYSTEM_CC = "32"
>    else
>        SYSTEM_CC = "64"
>    end
> %
> % fPIC is not usually needed here.
> % It is the default for Apple gcc and left
> % here in case user is using a self-built FSF gcc.
> %
>    SYSTEM_CC = "gcc -fPIC -m" & SYSTEM_CC
>    local a = SYSTEM_CC & " -arch " & GccArch
> this part, with -arch or not
>    local b = try_exec("@" & a & " -v 2>/dev/null")
>    if equal(b, 0)
>        SYSTEM_CC = a
>    end
>    %write("SYSTEM_CC is " & SYSTEM_CC & "\n")
> end
> if not defined("SYSTEM_LIBTOOL")
>    readonly SYSTEM_LIBTOOL = "libtool"
> end
>
>
> which should be redundant with the -m32/64 stuff, so try just:
>
>
> if not defined("SYSTEM_CC")
> %
> % fPIC is not usually needed here.
> % It is the default for Apple gcc and left
> % here in case user is using a self-built FSF gcc.
> %
>    SYSTEM_CC = "gcc -fPIC"
>    local a = SYSTEM_CC & " -arch " & GccArch
>    local b = try_exec("@" & a & " -v 2>/dev/null")
>    if equal(b, 0)
>        SYSTEM_CC = a
>    end
>    %write("SYSTEM_CC is " & SYSTEM_CC & "\n")
> end
> if not defined("SYSTEM_LIBTOOL")
>    readonly SYSTEM_LIBTOOL = "libtool"
> end
>
> I know this kind of probing is inefficient -- we do it every  
> invocation of cm3.
>  We could at least limit it to if there is a need to compile C or  
> link -- like how GetM3BackFlags works now (sort of -- not probe  
> related, but just related to bootstrapping or not).
> The alternative is to let users edit or have cminstall do the probe  
> -- and have it go stale when the tools change..
>
> - Jay
>
>
>
>
> ----------------------------------------
>> Date: Mon, 27 Jul 2009 00:22:58 +0200
>> From: wagner at elegosoft.com
>> To: m3devel at elegosoft.com
>> Subject: [M3devel] gcc error on PPC_DARWIN
>>
>> compiler bootstrap on PPC_DARWIN failed with `invalid option 32':
>> http://hudson.modula3.com:8080/job/cm3-release-build-PPC_DARWIN/3/console
>>
>> Do we really require 64-bit capable tools now on all systems?
>> Or did I make some stupid error again?
>>
>> Olaf
>> --
>> Olaf Wagner -- elego Software Solutions GmbH
>> Gustav-Meyer-Allee 25 / Gebäude 12, 13355 Berlin, Germany
>> phone: +49 30 23 45 86 96 mobile: +49 177 2345 869 fax: +49 30 23  
>> 45 86 95
>> http://www.elegosoft.com | Geschäftsführer: Olaf Wagner | Sitz:  
>> Berlin
>> Handelregister: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr:  
>> DE163214194
>>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20090727/a683ee1d/attachment-0002.html>


More information about the M3devel mailing list