<div dir="ltr">If you want the "entire system" then go ahead and build it. But you can't do that without "just the compiler" (a bootstrap compiler). That's what I'm trying to provide for every supported platform: the bare essentials.<div><br></div><div>If you say "that's not very useful," then I'd say that having no compiler at all is much less useful, since you can't have any system, complete or not, unless you go through the oneous task of building a cross compiler.</div><div><br></div><div>For example, we have a working ARM_LINUX platform, but no publically available bootstrap compiler. What's the point of that? How is being able to compile X programs on Darwin going to fix that? Asking potential users to first get a system that does have a compiler then build a cross compiler is not realistic.</div><div><br></div><div>(You can compile the m3core and libm3 libraries from source having just the bootstrap compiler. If you can't compile m3core/m3lib without an existing m3core/m3lib then I'd call that a bug. Surely the dependency is having the right version of the source, not having a compiled library included with your compiler.)<br><div class="gmail_extra"><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 16, 2015 at 6:24 PM, Jay <span dir="ltr"><<a href="mailto:jay.krell@cornell.edu" target="_blank">jay.krell@cornell.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>I meant like "the entire system" not "just the compiler". Right, to link it all.</div><div><br></div><div><br></div><div>The compiler has to come with a matching m3core/libm3, binary and/or source. The cm3cg binary can be built from source, but again it has to be matching -- or use C backend.</div><div><br></div><div><br></div><div>Python is convenient for cross-platform scripting, but optional.</div><span class="HOEnZb"><font color="#888888"><div><br> - Jay</div></font></span><div><div class="h5"><div><br>On Aug 16, 2015, at 5:04 PM, Darko Volaric <<a href="mailto:lists@darko.org" target="_blank">lists@darko.org</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">Minimal is cm3 + cm3cg + config file. I'm pretty sure everything else can be built from that, but someone might correct me.<div><br></div><div>The required tools issue is solved by only supporting one standard, minimal toolset (mostly just gcc), installed in a particular place. I'm not trying to support or test every configuration, just one. It's for people who are starting from scratch and also serves as a baseline for testing.</div><div><br></div><div>I don't understand what your "dependency on X" issue is. As far as I know there are no external source dependencies in the frontend and the backend depends only on the gcc source which is in the repository. The build server only builds the frontend and backend executables, nothing else, so there are no other dependencies.</div><div><br></div><div>If you're talking about building an X Windows application, I still don't get it. Why do I need to support someone wanting to write an X program? I'm not supporting people who want to do anything other than run the compiler on their platform. If they want to make X programs they can download and configure whatever is needed themselves. The CM3 compiler can compile (but not link) M3 interfaces and modules for X without having X installed. That's all I'm trying to support.</div><div><br></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 16, 2015 at 2:40 PM, Jay K <span dir="ltr"><<a href="mailto:jay.krell@cornell.edu" target="_blank">jay.krell@cornell.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">What is minimal? sh? gcc? make? python? perl? A large .tar.gz file? X?<br> <br> <br>What is minimal for a user of cm3 vs. a developer of cm3?<br> <br> <br>I bring up X because there are many programs/demos in the distribution, including gui ones.<br>On many systems, even X is just an "apt get whatever" away.<br>And, if we form our .deb correctly, it is fairly automatic.<br>On MacOSX current what happens is if you an X program, you automatically get a popup prompting you to install.<br>On MacOSX current what happens if you try to build an X program, and don't have X installed, it fails. We can make it do nothing. We can link to the stub -- but then you have to relink after installing X.<br> <br> <br>How to ease that apart? A sort of dependency on X?<br>Likely separate packages, like cm3 and cm3-gui?<br> <br> <br>I keep thinking, for a developer but not user of cm3, the bootstrap archives should produce autoconf/automake inputs.<br>This handles, for example, "how do I invoke the C compiler?" -- even if using the gcc backend, we need a C compiler/linker/assembler.<br>Imagine if, you know, our config files dropped away entirely.<br>Imagine if the config file was generated at install time by autoconf.<br>Imagine if we didn't have a small amount of litter in our system as to how to link on HP-UX. Or if AIX supported was "inherited" from libtool.<br>Basically, libtool supports more than us an overlaps with us. Maybe reuse it.<br> <br> <br>Again, I am somewhat positively and negatively obsessed with "the GNU build system"<br>It is slow and bad to author in, but produces easy to use somewhat slow idiomatic results.<br> <br> <br>Also, to reiterate, I believe the point here was the "build server" would be complicated, in order to produce easy to use outputs.<br> <br> <br>One also needs to keep in mind the somewhat opposing but common desires: install from source vs. install from binaries.<br>Install from binaries is faster.<br>Install from source is problematic for compilers written in themselves. Even gcc.<br> <br> <br> - Jay<br><br><br> <br><div><hr>Date: Sun, 16 Aug 2015 13:59:15 -0700<br>From: <a href="mailto:lists@darko.org" target="_blank">lists@darko.org</a><br>To: <a href="mailto:m3devel@elegosoft.com" target="_blank">m3devel@elegosoft.com</a>; <a href="mailto:microcode@zoho.com" target="_blank">microcode@zoho.com</a><span><br>Subject: Re: [M3devel] Build Server - Plan<br><br></span><div><div><div dir="ltr">Just like there are different views on how Linux should be set up and thus different distributions, there are different views on how CM3 should be setup or installed, or at least I have a different view.<div><br></div><div>I definitely believe in the "<span style="font-size:12.8px">effortlessly and mindlessly</span>" thing, and I want to take it further than the current installer. In particular I want to reduce the external, internal and environmental dependencies so that you can build anything, anywhere with just the minimal set of executables and a standard set of tools. Others want a more elaborate setup which gives them more flexibility; that can also be derived from that same minimal set.</div><div><br></div><div><br></div></div><div><br><div>On Sun, Aug 16, 2015 at 12:27 AM, <span dir="ltr"><<a href="mailto:microcode@zoho.com" target="_blank">microcode@zoho.com</a>></span> wrote:<br><blockquote style="padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><span>On Fri, Aug 14, 2015 at 09:22:08AM -0700, Darko Volaric wrote:<br>
> The solution for SPARC might be to create a cross-compiler. That's not<br>
> ideal but would be useful for verifying that things compile for the<br>
> platform at least, short of having the right hardware.<br>
<br>
</span>You should have access to opencsw as Jay mentioned. If not, I can offer<br>
machine time but I can't keep the machine running all the time. Hopefully<br>
the current setup (opencsw) is still viable.<br>
<span><br>
> I disagree with your "only for experts" assessment. The point of this<br>
> server is that you don't have to compiler the compiler and a backend just<br>
> to get the latest (or even a properly working) compiler. That's the very<br>
> "expert" work I'm trying to automate.<br>
<br>
</span>That is good to hear because from your list of deliverables it seemed to me<br>
there would still be a lot of tinkering to get a complete install. If you<br>
are scripting that and it can be built effortlessly and mindlessly from the<br>
deliverables then good. I think it would be ideal and very nice if people<br>
could download a turnkey tarball ready to run on their platform, or source<br>
code ready to build and an installer script that installs the final<br>
product. Jay mentioned autotools and they are usually far from optimal on<br>
Solaris because of autotools reliance on so much gnu stuff that is not<br>
always necessarily present on Solaris but that is the general idea- to be<br>
able to configure && make && make install with all the standard stuff<br>
happening like everything being installed in /usr/local/bin|lib|share and so<br>
forth.<br>
<span><br>
> What this system spits out is everything you need to compile anything you<br>
> want - a complete and working compiler. Not everyone wants or needs to use<br>
> all the packages. If you do, you can. Here are the instructions for doing<br>
> that: "cd <source dir>; cm3 <options>"<br>
<br>
</span>It was probably just my unfamiliarity with the build setup and terms. I'm<br>
sorry if I wasted anybody's time with this diversion. I have been following<br>
the mailing list and it looks like Jay and Rodney are mostly discussing<br>
things with a very small number of regulars. Coming from the outside as I do<br>
I think anybody new is going to have similar questions/misunderstandings of<br>
how cm3 is built and installed, etc.<br>
<span><br>
> I'll be opening up the server to anyone who wants to do something<br>
> different. If someone wants to produce tarballs they can setup their own<br>
> VMs and they will get built too.<br>
<br>
</span>Hopefully this can be integrated with what you already have running on<br>
opencsw.<br>
<br>
Thank you.<br>
<div><div><br>
<br>
_______________________________________________<br>
M3devel mailing list<br>
<a href="mailto:M3devel@elegosoft.com" target="_blank">M3devel@elegosoft.com</a><br>
<a href="https://mail.elegosoft.com/cgi-bin/mailman/listinfo/m3devel" rel="noreferrer" target="_blank">https://mail.elegosoft.com/cgi-bin/mailman/listinfo/m3devel</a><br>
</div></div></blockquote></div><br></div>
<br>_______________________________________________
M3devel mailing list
<a href="mailto:M3devel@elegosoft.com" target="_blank">M3devel@elegosoft.com</a>
<a href="https://mail.elegosoft.com/cgi-bin/mailman/listinfo/m3devel" target="_blank">https://mail.elegosoft.com/cgi-bin/mailman/listinfo/m3devel</a></div></div></div> </div></div>
</blockquote></div><br></div></div>
</div></blockquote></div></div></div></blockquote></div><br></div>