<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>  > AFAIK, automake/autoconf is big pain. of C world.<br>  > Whole build systems were devised/built, just to bypass autowhatever. <br><br><br> Yes but my research suggests nobody has matched it, <br> in particular for cross builds and in particular autoconf's ability  <br> to work with brand new systems, as long as they can be composed <br> from preexisting variables -- which are probed for.  <br> But I don't like layers and layers of generated files, Bourne shell, and m4. <br><br><br><br> C and C++ aren't so bad.<br> They do have positive and negatives.<br> Lack of a good module system is one of their negatives. <br> And therefore build speed and incremental builds. <br> <br><br><br> cm3 resembles the ideal user interface of automake, but without generating files.<br><br><br> Where I most want autoX/libtool/pkg-config is to determine<br> how to run the C compiler/assembler/linker for given packages. <br><br> <br> I think pkg-config addresses one of our weakest point.<br> The point in the config files that list "ODBC" or "POSTGRES" and such. <br> That part has never seemed great, not even with cminstall. <br> The problem with cminstall is that packages can be installed and uninstalled<br> in any order. <br><br><br> I kinda think we could support it within cm3, easily enough, in one of a few ways:<br>  meta-syntax in the config file to indicate we should run pkg-config --libs and add that to the link command<br>  or we could try it unconditionally<br>  or we could find the .pc files ourselves, conditionally or unconditionally. <br><br><br>  see http://linux.die.net/man/1/pkg-config   <br><br><br> Someday maybe we'll generate .h files to interfacing with Modula-3, and then<br> we could create .pc files also..<br><br><br> libtool I also want, because we duplicate a lot of it. Better to punt to another project. <br> Though the wide availability of gcc combined with convergence to not that many OSes <br> makes it not too difficult to do it yourself, which is what we do... <br> <br><br> - Jay<br><br><div><hr id="stopSpelling">From: jay.krell@cornell.edu<br>Date: Wed, 13 Nov 2013 19:04:34 -0800<br>To: dragisha@m3w.org<br>CC: m3devel@elegosoft.com; jay.krell@cornell.edu<br>Subject: Re: [M3devel] AMD64_DARWIN with OSX Mavericks<br><br><div>Try the C backed?</div><div><br></div><div><br></div><div>Edit the g/stabs flag in the config file?</div><div><br></div><div><br> - Jay</div><div><br>On Nov 13, 2013, at 10:27 AM, Dragiša Durić <<a href="mailto:dragisha@m3w.org">dragisha@m3w.org</a>> wrote:<br><br></div><blockquote><div>After Xcode 5.0.2 install, it works no more :)<div><br></div><div><div style="font-size:13px;font-family:Monaco;color:rgb(245, 245, 245);background-color:rgb(0, 0, 0);">new source -> compiling Main.m3</div><div style="font-size:13px;font-family:Monaco;color:rgb(245, 245, 245);background-color:rgb(0, 0, 0);">clang: warning: argument unused during compilation: '-fPIC'</div><div style="font-size:13px;font-family:Monaco;color:rgb(255, 255, 255);background-color:rgb(0, 0, 0);">Main.ms:1:9: <span style="color:#c33720;">error: </span>unsupported directive '.stabs'</div><div style="font-size:13px;font-family:Monaco;color:rgb(245, 245, 245);background-color:rgb(0, 0, 0);">        .stabs  "/Users/dragisha/m3/eratosthenes/AMD64_DARWIN/",100,0,0,Ltext0</div><div style="font-size:13px;font-family:Monaco;color:rgb(52, 189, 38);background-color:rgb(0, 0, 0);">                ^</div><div><br></div><div>
<span class="ecxApple-style-span" style="border-collapse:separate;font-family:Candara;border-spacing:0px;"><span class="ecxApple-style-span" style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;"><div style="word-wrap:break-word;"><span class="ecxApple-style-span" style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;"><div style="word-wrap:break-word;">--</div></span></div></span><span class="ecxApple-style-span" style="font-family:Helvetica;">Dragiša Durić</span><span class="ecxApple-style-span" style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;"><div style="word-wrap:break-word;"><span class="ecxApple-style-span" style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;"><div style="word-wrap:break-word;"><div><a href="mailto:dragisha@m3w.org">dragisha@m3w.org</a></div><div><br></div></div></span></div></span></span><br class="ecxApple-interchange-newline">
</div>
<br><div style=""><div>On 13 Nov 2013, at 11:25, Dragiša Durić <<a href="mailto:dragisha@m3w.org">dragisha@m3w.org</a>> wrote:</div><br class="ecxApple-interchange-newline"><blockquote><div style="word-wrap:break-word;">Site is <a href="https://developer.apple.com/downloads" target="_blank">https://developer.apple.com/downloads</a>, package is named "Command Line Tools (OS X Mavericks) for Xcode - Late October Oct 22, 2013"  and cm3 I've used since Snow Leopard, all through Lion. works again without previous hack.<div><br></div><div>Xcode I have installed is version 4.6.x, and cm3 works as always.<br><div>
<span class="ecxApple-style-span" style="border-collapse:separate;font-family:Candara;border-spacing:0px;"><span class="ecxApple-style-span" style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;border-spacing:0px;"><div style="word-wrap:break-word;"><span class="ecxApple-style-span" style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;border-spacing:0px;"><div style="word-wrap:break-word;">--</div></span></div></span><span class="ecxApple-style-span" style="font-family:Helvetica;">Dragiša Durić</span><span class="ecxApple-style-span" style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;border-spacing:0px;"><div style="word-wrap:break-word;"><span class="ecxApple-style-span" style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;border-spacing:0px;"><div style="word-wrap:break-word;"><div><a href="mailto:dragisha@m3w.org">dragisha@m3w.org</a></div><div><br></div></div></span></div></span></span><br class="ecxApple-interchange-newline">
</div>
<br><div><div>On 13 Nov 2013, at 11:08, Dragiša Durić <<a href="mailto:dragisha@m3w.org">dragisha@m3w.org</a>> wrote:</div><br class="ecxApple-interchange-newline"><blockquote><div style="word-wrap:break-word;">There is probably easier solution, I am installing command line devel tools right now and then I will try to simplify this.<br><div>
<span class="ecxApple-style-span" style="border-collapse:separate;font-family:Candara;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;border-spacing:0px;"><span class="ecxApple-style-span" style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;border-spacing:0px;"><div style="word-wrap:break-word;"><span class="ecxApple-style-span" style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;border-spacing:0px;"><div style="word-wrap:break-word;">--</div></span></div></span><span class="ecxApple-style-span" style="font-family:Helvetica;">Dragiša Durić</span><span class="ecxApple-style-span" style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;border-spacing:0px;"><div style="word-wrap:break-word;"><span class="ecxApple-style-span" style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;border-spacing:0px;"><div style="word-wrap:break-word;"><div><a href="mailto:dragisha@m3w.org">dragisha@m3w.org</a></div><div><br></div></div></span></div></span></span><br class="ecxApple-interchange-newline">
</div>
<br><div style=""><div>On 13 Nov 2013, at 10:53, Jay K <<a href="mailto:jay.krell@cornell.edu">jay.krell@cornell.edu</a>> wrote:</div><br class="ecxApple-interchange-newline"><blockquote><div class="ecxhmmessage" style="font-size:12pt;font-family:Calibri;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;"><div dir="ltr">Is that really needed?<br><br>Doesn't this work?<br><br>hello.c:<br>#include <stdio.h><br>int main() { return !!printf("hello\n"); }<br><br>cc hello.c<br><br>If that works, gradually expand it to reference more symbols, i.e. pthreads, the mach suspend/resume/getcontext functions (see m3-libs/m3core/src/thread/PTHREAD/ThreadApple.c or such)<br><br> - Jay<br><br><br><br><br><div><hr id="ecxstopSpelling">Subject: Re: [M3devel] AMD64_DARWIN with OSX Mavericks<br>From: <a href="mailto:dragisha@m3w.org">dragisha@m3w.org</a><br>Date: Wed, 13 Nov 2013 10:03:15 +0100<br>CC: <a href="mailto:m3devel@elegosoft.com">m3devel@elegosoft.com</a><br>To: <a href="mailto:jay.krell@cornell.edu">jay.krell@cornell.edu</a><br><br>I will bootstrap new version(s) as per your instructions ASAP, but until then, this is a change I made to config/Darwin.common<div><br></div><div><div style="font-size:13px;font-family:Monaco;color:rgb(245, 245, 245);background-color:rgb(0, 0, 0);">SYSTEM_LIBS = {</div><div style="font-size:13px;font-family:Monaco;color:rgb(245, 245, 245);background-color:rgb(0, 0, 0);">  "LIBC"       : [ "-L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/lib",</div><div style="font-size:13px;font-family:Monaco;color:rgb(245, 245, 245);background-color:rgb(0, 0, 0);">                   "-L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/lib/system"</div><div style="font-size:13px;font-family:Monaco;color:rgb(245, 245, 245);background-color:rgb(0, 0, 0);">                 ],</div><div style="font-size:13px;font-family:Monaco;color:rgb(245, 245, 245);background-color:rgb(0, 0, 0);">  "LEX-YACC"   : [ "-ll" ],</div><div style="font-size:13px;font-family:Monaco;color:rgb(245, 245, 245);background-color:rgb(0, 0, 0);">  "FLEX-BISON" : [ "-lfl" ],</div><div style="font-size:13px;font-family:Monaco;color:rgb(245, 245, 245);background-color:rgb(0, 0, 0);">  "OPENGL"     : [ "-Wl,-dylib_file," & LIBGL_DYLIB & ":" & LIBGL_DYLIB,</div><div style="font-size:13px;font-family:Monaco;color:rgb(245, 245, 245);background-color:rgb(0, 0, 0);">                   "-L/usr/X11R6/lib", "-lGLU", "-lGL", "-lXext" ],</div><div style="font-size:13px;font-family:Monaco;color:rgb(245, 245, 245);background-color:rgb(0, 0, 0);">  "TCP"        : [ ]</div><div style="font-size:13px;font-family:Monaco;color:rgb(245, 245, 245);background-color:rgb(0, 0, 0);">% below: X11, ODBC, POSTGRES95, MOTIF</div><div style="font-size:13px;font-family:Monaco;color:rgb(245, 245, 245);background-color:rgb(0, 0, 0);">}</div><div><span class="ecxApple-style-span" style="border-collapse:separate;font-family:Candara;border-spacing:0px;"><span class="ecxApple-style-span" style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;"><div style="word-wrap:break-word;"><span class="ecxApple-style-span" style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;"><div style="word-wrap:break-word;"><br></div><div style="word-wrap:break-word;">My current AMD64_DARWIN configuration continues to work.</div><div style="word-wrap:break-word;">--</div></span></div></span><span class="ecxApple-style-span" style="font-family:Helvetica;">Dragiša Durić</span><span class="ecxApple-style-span" style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;"><div style="word-wrap:break-word;"><span class="ecxApple-style-span" style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;"><div style="word-wrap:break-word;"><div><a href="mailto:dragisha@m3w.org">dragisha@m3w.org</a></div><div><br></div></div></span></div></span></span><br class="ecxApple-interchange-newline"></div><br><div><div>On 11 Nov 2013, at 08:09, Jay K <<a href="mailto:jay.krell@cornell.edu">jay.krell@cornell.edu</a>> wrote:</div><br class="ecxApple-interchange-newline"><blockquote>I'm still hanging back on a version that supports PowerPC/Rosetta.  :) <br><br> Our system is very portable. <br>  Consider helloWorld. And users of pthreads (or Win32 threads).  <br><br> And we hope/trust Apple and co. to maintain a certain level of compatibility. <br><br> For example. the HPUX man pages decree that get/set/make/swapcontext may <br>  not be compatible across releases. We use them, sometimes, for user threads only. <br><br><br>If you find there is any problem, please let us know.<br>Anything you find is likely surmountable by a cross build.<br><br><br> - Jay<br><br>________________________________<br><blockquote>From:<span class="ecxApple-converted-space"> </span><a href="mailto:dragisha@m3w.org">dragisha@m3w.org</a><span class="ecxApple-converted-space"> </span><br>Date: Sun, 10 Nov 2013 18:48:22 +0100<span class="ecxApple-converted-space"> </span><br>To:<span class="ecxApple-converted-space"> </span><a href="mailto:m3devel@elegosoft.com">m3devel@elegosoft.com</a><span class="ecxApple-converted-space"> </span><br>Subject: [M3devel] AMD64_DARWIN with OSX Mavericks<span class="ecxApple-converted-space"> </span><br><br>Anybody doing it?<span class="ecxApple-converted-space"> </span><br><br>TIA,<span class="ecxApple-converted-space"> </span><br>--<span class="ecxApple-converted-space"> </span><br>Dragiša Durić<span class="ecxApple-converted-space"> </span><br><a href="mailto:dragisha@m3w.org">dragisha@m3w.org</a><<a href="mailto:dragisha@m3w.org">mailto:dragisha@m3w.org</a>></blockquote></blockquote></div></div></div></div></div></blockquote></div><br></div></blockquote></div><br></div></div></blockquote></div><br></div></div></blockquote></div>                                    </div></body>
</html>