<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">-m32 should work.<br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div><span class="Apple-style-span" style="font-size: medium;"><font class="Apple-style-span" color="#0000FF" face="'Gill Sans'"><br></font></span></div></span></span></span></span></span></span></span></span></div></span></div></span></div><div><div>On 27 Jul 2009, at 00:09, Jay K wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br>I kind of throw in that everywhere until/unless shown that it hurts and isn't needed.<br>Indeed it doesn't always work, not always on gcc, not always on cm3cg.<br><br><br>I have this probe in Darwin.common now, since I was using an AMD64_DARWIN machine the other day:<br><br><br>if not defined("SYSTEM_CC")<br>not this part<br> if equal(WORD_SIZE, "32BITS")<br> SYSTEM_CC = "32"<br> else<br> SYSTEM_CC = "64"<br> end<br>%<br>% fPIC is not usually needed here.<br>% It is the default for Apple gcc and left<br>% here in case user is using a self-built FSF gcc.<br>%<br> SYSTEM_CC = "gcc -fPIC -m" & SYSTEM_CC<br> local a = SYSTEM_CC & " -arch " & GccArch<br>this part, with -arch or not <br> local b = try_exec("@" & a & " -v 2>/dev/null")<br> if equal(b, 0)<br> SYSTEM_CC = a<br> end<br> %write("SYSTEM_CC is " & SYSTEM_CC & "\n")<br>end<br>if not defined("SYSTEM_LIBTOOL")<br> readonly SYSTEM_LIBTOOL = "libtool"<br>end<br><br><br>which should be redundant with the -m32/64 stuff, so try just:<br><br><br>if not defined("SYSTEM_CC")<br>%<br>% fPIC is not usually needed here.<br>% It is the default for Apple gcc and left<br>% here in case user is using a self-built FSF gcc.<br>%<br> SYSTEM_CC = "gcc -fPIC"<br> local a = SYSTEM_CC & " -arch " & GccArch<br> local b = try_exec("@" & a & " -v 2>/dev/null")<br> if equal(b, 0)<br> SYSTEM_CC = a<br> end<br> %write("SYSTEM_CC is " & SYSTEM_CC & "\n")<br>end<br>if not defined("SYSTEM_LIBTOOL")<br> readonly SYSTEM_LIBTOOL = "libtool"<br>end<br><br>I know this kind of probing is inefficient -- we do it every invocation of cm3.<br> 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).<br>The alternative is to let users edit or have cminstall do the probe -- and have it go stale when the tools change..<br><br> - Jay<br><br><br><br><br>----------------------------------------<br><blockquote type="cite">Date: Mon, 27 Jul 2009 00:22:58 +0200<br></blockquote><blockquote type="cite">From: <a href="mailto:wagner@elegosoft.com">wagner@elegosoft.com</a><br></blockquote><blockquote type="cite">To: <a href="mailto:m3devel@elegosoft.com">m3devel@elegosoft.com</a><br></blockquote><blockquote type="cite">Subject: [M3devel] gcc error on PPC_DARWIN<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">compiler bootstrap on PPC_DARWIN failed with `invalid option 32':<br></blockquote><blockquote type="cite"><a href="http://hudson.modula3.com:8080/job/cm3-release-build-PPC_DARWIN/3/console">http://hudson.modula3.com:8080/job/cm3-release-build-PPC_DARWIN/3/console</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Do we really require 64-bit capable tools now on all systems?<br></blockquote><blockquote type="cite">Or did I make some stupid error again?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Olaf<br></blockquote><blockquote type="cite">--<br></blockquote><blockquote type="cite">Olaf Wagner -- elego Software Solutions GmbH<br></blockquote><blockquote type="cite">Gustav-Meyer-Allee 25 / Gebäude 12, 13355 Berlin, Germany<br></blockquote><blockquote type="cite">phone: +49 30 23 45 86 96 mobile: +49 177 2345 869 fax: +49 30 23 45 86 95<br></blockquote><blockquote type="cite"><a href="http://www.elegosoft.com">http://www.elegosoft.com</a> | Geschäftsführer: Olaf Wagner | Sitz: Berlin<br></blockquote><blockquote type="cite">Handelregister: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194<br></blockquote><blockquote type="cite"><br></blockquote></div></blockquote></div><br></body></html>