[M3devel] AMD64_DARWIN with OSX Mavericks

Jay jay.krell at cornell.edu
Wed Nov 13 18:11:22 CET 2013


I do repeatedly wonder if we should be a thin layer over automake/autoconf/pkg-config/libtool. I look into them every so often. What bugs me, maybe not pkg-config, is that they seem slow and have to generate files. I want something that usually makes fast decisions for every run. Optionally recording them in a file for bootstrapping or overridability. Cm3 was ahead of its time, kinda, but those tools solve much of the same problem, with other people maintaining them and more "dynamism"/"manifestation" -- I can't think of the word, but throw together a random posixish platform and autoconf can probe it and piece it together. There is no need to record static platform definitions and local configuration details are inferred/deduced at build-time, and there is good cross build support.


I've considered coding up similar in M3/Python/C/C++. 


I do put some runtime tests in the config files. I suppose pkg-config is what we miss most, and we could read its files in cm3??? I.e. this is the part of the config files that are the most site-specific, and worse, need to change as surrounding packages are installed/uninstalled?


What autoconf is "really" for, we get very far with light dependencies ("the functions are assumed all present"), light ifdefing (m3core's preemptive suspend), and light "practicality" (I.e. picking out integer types).


Automake we basically have our own.


Libtool I believe works through static knowledge, like us.


And pkg-config, we miss out on largely.


 - Jay

On Nov 13, 2013, at 2:25 AM, Dragiša Durić <dragisha at m3w.org> wrote:

> Site is https://developer.apple.com/downloads, 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.
> 
> Xcode I have installed is version 4.6.x, and cm3 works as always.
> --
> Dragiša Durić
> dragisha at m3w.org
> 
> 
> 
> On 13 Nov 2013, at 11:08, Dragiša Durić <dragisha at m3w.org> wrote:
> 
>> There is probably easier solution, I am installing command line devel tools right now and then I will try to simplify this.
>> --
>> Dragiša Durić
>> dragisha at m3w.org
>> 
>> 
>> 
>> On 13 Nov 2013, at 10:53, Jay K <jay.krell at cornell.edu> wrote:
>> 
>>> Is that really needed?
>>> 
>>> Doesn't this work?
>>> 
>>> hello.c:
>>> #include <stdio.h>
>>> int main() { return !!printf("hello\n"); }
>>> 
>>> cc hello.c
>>> 
>>> 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)
>>> 
>>>  - Jay
>>> 
>>> 
>>> 
>>> 
>>> Subject: Re: [M3devel] AMD64_DARWIN with OSX Mavericks
>>> From: dragisha at m3w.org
>>> Date: Wed, 13 Nov 2013 10:03:15 +0100
>>> CC: m3devel at elegosoft.com
>>> To: jay.krell at cornell.edu
>>> 
>>> I will bootstrap new version(s) as per your instructions ASAP, but until then, this is a change I made to config/Darwin.common
>>> 
>>> SYSTEM_LIBS = {
>>>   "LIBC"       : [ "-L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/lib",
>>>                    "-L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/lib/system"
>>>                  ],
>>>   "LEX-YACC"   : [ "-ll" ],
>>>   "FLEX-BISON" : [ "-lfl" ],
>>>   "OPENGL"     : [ "-Wl,-dylib_file," & LIBGL_DYLIB & ":" & LIBGL_DYLIB,
>>>                    "-L/usr/X11R6/lib", "-lGLU", "-lGL", "-lXext" ],
>>>   "TCP"        : [ ]
>>> % below: X11, ODBC, POSTGRES95, MOTIF
>>> }
>>> 
>>> My current AMD64_DARWIN configuration continues to work.
>>> --
>>> Dragiša Durić
>>> dragisha at m3w.org
>>> 
>>> 
>>> 
>>> On 11 Nov 2013, at 08:09, Jay K <jay.krell at cornell.edu> wrote:
>>> 
>>> I'm still hanging back on a version that supports PowerPC/Rosetta.  :) 
>>> 
>>>  Our system is very portable. 
>>>   Consider helloWorld. And users of pthreads (or Win32 threads).  
>>> 
>>>  And we hope/trust Apple and co. to maintain a certain level of compatibility. 
>>> 
>>>  For example. the HPUX man pages decree that get/set/make/swapcontext may 
>>>   not be compatible across releases. We use them, sometimes, for user threads only. 
>>> 
>>> 
>>> If you find there is any problem, please let us know.
>>> Anything you find is likely surmountable by a cross build.
>>> 
>>> 
>>>  - Jay
>>> 
>>> ________________________________
>>> From: dragisha at m3w.org 
>>> Date: Sun, 10 Nov 2013 18:48:22 +0100 
>>> To: m3devel at elegosoft.com 
>>> Subject: [M3devel] AMD64_DARWIN with OSX Mavericks 
>>> 
>>> Anybody doing it? 
>>> 
>>> TIA, 
>>> -- 
>>> Dragiša Durić 
>>> dragisha at m3w.org<mailto:dragisha at m3w.org>
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20131113/744299ac/attachment-0001.html>


More information about the M3devel mailing list