Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Memory fault -- brain fried


devel / comp.lang.c / Re: Build Systems

SubjectAuthor
* Build SystemsBart
+* Re: Build SystemsBen Bacarisse
|+* Re: Build SystemsBart
||`* Re: Build SystemsBen Bacarisse
|| `* Re: Build SystemsScott Lurndal
||  +* Re: Build SystemsKenny McCormack
||  |+* Re: Build SystemsMalcolm McLean
||  ||`* Dev on Windoze (Was: Build Systems)Kenny McCormack
||  || +- Re: Dev on Windoze (Was: Build Systems)Malcolm McLean
||  || +* Re: Dev on Windoze (Was: Build Systems)Matthew Ernisse
||  || |+- Re: Dev on Windoze (Was: Build Systems)Michael S
||  || |+* Re: Dev on Windoze (Was: Build Systems)bart c
||  || ||`- Re: Dev on Windoze (Was: Build Systems)Matthew Ernisse
||  || |`* Re: Dev on WindozePhil Carmody
||  || | `- Re: Dev on WindozeChris M. Thomasson
||  || `- Re: Dev on Windoze (Was: Build Systems)Chris M. Thomasson
||  |`* Re: Build SystemsKaz Kylheku
||  | `* Re: Build SystemsKenny McCormack
||  |  `- Re: Build SystemsKarl Meyer
||  `- Re: Build SystemsBart
|`* Re: Build SystemsDavid Brown
| `* Re: Build SystemsBart
|  +* Re: Build SystemsScott Lurndal
|  |`* Re: Build SystemsBart
|  | `* Re: Build SystemsDavid Brown
|  |  +* Re: Build SystemsBart
|  |  |`* Re: Build SystemsDavid Brown
|  |  | `* Re: Build SystemsBart
|  |  |  +- Re: Build SystemsScott Lurndal
|  |  |  +* Re: Build SystemsMJ OS_EXAMINE
|  |  |  |+- Re: Build SystemsKenny McCormack
|  |  |  |`- Re: Build SystemsBart
|  |  |  +* Re: Build SystemsDavid Brown
|  |  |  |+* Re: Build SystemsScott Lurndal
|  |  |  ||+- Re: Build SystemsKenny McCormack
|  |  |  ||+- Re: Build SystemsPhil Carmody
|  |  |  ||`- Re: Build SystemsDavid Brown
|  |  |  |`* Re: Build SystemsBart
|  |  |  | +- Re: Build SystemsKeith Thompson
|  |  |  | `* Re: Build SystemsDavid Brown
|  |  |  |  `* Re: Build SystemsBart
|  |  |  |   +* Re: Build SystemsKeith Thompson
|  |  |  |   |`* Re: Build SystemsBart
|  |  |  |   | +- Re: Build SystemsKaz Kylheku
|  |  |  |   | `* Re: Build SystemsDavid Brown
|  |  |  |   |  `* Re: Build SystemsBart
|  |  |  |   |   `* Re: Build SystemsDavid Brown
|  |  |  |   |    +- Re: Build SystemsBart
|  |  |  |   |    +* Re: Build SystemsBart
|  |  |  |   |    |+* Re: Build SystemsScott Lurndal
|  |  |  |   |    ||`- Re: Build SystemsBart
|  |  |  |   |    |+* Re: Build SystemsBen Bacarisse
|  |  |  |   |    ||`* Re: Build SystemsBart
|  |  |  |   |    || +* Re: Build SystemsRichard Harnden
|  |  |  |   |    || |`- Re: Build SystemsBart
|  |  |  |   |    || `* Re: Build SystemsBen Bacarisse
|  |  |  |   |    ||  `* Re: Build SystemsBart
|  |  |  |   |    ||   `* Re: Build SystemsBen Bacarisse
|  |  |  |   |    ||    `* Re: Build SystemsBart
|  |  |  |   |    ||     `- Re: Build SystemsBen Bacarisse
|  |  |  |   |    |`* Re: Build SystemsDavid Brown
|  |  |  |   |    | `* Re: Build SystemsBart
|  |  |  |   |    |  +* Re: Build SystemsKeith Thompson
|  |  |  |   |    |  |`* Re: Build Systemsbart c
|  |  |  |   |    |  | `* Re: Build SystemsKeith Thompson
|  |  |  |   |    |  |  `* Re: Build SystemsDavid Brown
|  |  |  |   |    |  |   `* Re: Build SystemsChris M. Thomasson
|  |  |  |   |    |  |    +- Re: Build SystemsChris M. Thomasson
|  |  |  |   |    |  |    +* Re: Build SystemsKeith Thompson
|  |  |  |   |    |  |    |`- Re: Build SystemsChris M. Thomasson
|  |  |  |   |    |  |    `* Re: Build SystemsDavid Brown
|  |  |  |   |    |  |     +- Re: Build SystemsChris M. Thomasson
|  |  |  |   |    |  |     `* Re: Build SystemsChris M. Thomasson
|  |  |  |   |    |  |      +* Re: Build Systemsjames...@alumni.caltech.edu
|  |  |  |   |    |  |      |+- Re: Build Systemscandycane
|  |  |  |   |    |  |      |`* Re: Build SystemsKaz Kylheku
|  |  |  |   |    |  |      | `* Re: Build SystemsDavid Brown
|  |  |  |   |    |  |      |  `- Re: Build SystemsChris M. Thomasson
|  |  |  |   |    |  |      `* Re: Build SystemsDavid Brown
|  |  |  |   |    |  |       `- Re: Build SystemsChris M. Thomasson
|  |  |  |   |    |  +* Re: Build SystemsKaz Kylheku
|  |  |  |   |    |  |`* Re: Build Systemsbart c
|  |  |  |   |    |  | `* Re: Build SystemsBen Bacarisse
|  |  |  |   |    |  |  +* Re: Build Systemsbart c
|  |  |  |   |    |  |  |+* Re: Build SystemsDavid Brown
|  |  |  |   |    |  |  ||`- Re: Build Systemsbart c
|  |  |  |   |    |  |  |+* Re: Build SystemsKelsey Bjarnason
|  |  |  |   |    |  |  ||`* Re: Build Systemsbart c
|  |  |  |   |    |  |  || `* Re: Build SystemsKelsey Bjarnason
|  |  |  |   |    |  |  ||  `* Re: Build Systemsbart c
|  |  |  |   |    |  |  ||   `* Re: Build SystemsKelsey Bjarnason
|  |  |  |   |    |  |  ||    `* Re: Build SystemsBart
|  |  |  |   |    |  |  ||     `* Re: Build SystemsKelsey Bjarnason
|  |  |  |   |    |  |  ||      +* Re: Build SystemsBart
|  |  |  |   |    |  |  ||      |+* Re: Build SystemsBart
|  |  |  |   |    |  |  ||      ||`* Re: Build SystemsRichard Harnden
|  |  |  |   |    |  |  ||      || `- Re: Build SystemsBart
|  |  |  |   |    |  |  ||      |`* Re: Build SystemsScott Lurndal
|  |  |  |   |    |  |  ||      | `* Re: Build SystemsBart
|  |  |  |   |    |  |  ||      |  +* Re: Build SystemsMalcolm McLean
|  |  |  |   |    |  |  ||      |  |`- Re: Build SystemsBart
|  |  |  |   |    |  |  ||      |  +- Re: Build SystemsScott Lurndal
|  |  |  |   |    |  |  ||      |  +* Re: Build SystemsScott Lurndal
|  |  |  |   |    |  |  ||      |  +- Re: Build SystemsChris M. Thomasson
|  |  |  |   |    |  |  ||      |  `- Re: Build SystemsChris M. Thomasson
|  |  |  |   |    |  |  ||      `- Re: Build SystemsKaz Kylheku
|  |  |  |   |    |  |  |`* Re: Build SystemsBen Bacarisse
|  |  |  |   |    |  |  `* Re: Build SystemsScott Lurndal
|  |  |  |   |    |  `* Re: Build SystemsDavid Brown
|  |  |  |   |    `* Re: Build SystemsBart
|  |  |  |   `* Re: Build SystemsDavid Brown
|  |  |  `* Re: Build SystemsKeith Thompson
|  |  `- Really? (Was: Build Systems)Kenny McCormack
|  `* Re: Build SystemsDavid Brown
+* Re: Build SystemsDavid Brown
+- Re: Build SystemsThiago Adams
`- Re: Build SystemsMichael S

Pages:12345678910111213
Re: Build Systems

<ubgi01$2ug97$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=27716&group=comp.lang.c#27716

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (Bart)
Newsgroups: comp.lang.c
Subject: Re: Build Systems
Date: Tue, 15 Aug 2023 20:00:17 +0100
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <ubgi01$2ug97$1@dont-email.me>
References: <uban99$1rnpb$1@dont-email.me> <87ttt2isc8.fsf@bsb.me.uk>
<ubd8t6$2b62u$1@dont-email.me> <ubdbtc$2bl3l$1@dont-email.me>
<12sCM.59051$m8Ke.22097@fx08.iad> <ubdmk4$2dao7$1@dont-email.me>
<ubfeqj$2oop4$1@dont-email.me> <ubfknf$2plvs$1@dont-email.me>
<ubfu4d$2r98d$1@dont-email.me> <ubg4jr$2se4o$1@dont-email.me>
<1dcd9ed8-d345-45f1-8b9b-7ef1f2f4cb04n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 15 Aug 2023 19:00:17 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b2bb591c1712a7be1bb8b1a577f1cf0d";
logging-data="3096871"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19PGeQWCzphWEl4Vl5YqJ0ygNbOMhTWVFU="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:1PU5rRAf0kQPq6eeU52/94a9uYM=
In-Reply-To: <1dcd9ed8-d345-45f1-8b9b-7ef1f2f4cb04n@googlegroups.com>
 by: Bart - Tue, 15 Aug 2023 19:00 UTC

On 15/08/2023 16:58, MJ OS_EXAMINE wrote:
> On Tuesday, August 15, 2023 at 11:12:10 AM UTC-4, Bart wrote:
>> I usually avoid .tar.gz files since they are a pig to extract on
>> Windows. It involves using 7-Zip, but is still a trial-and-error
process.
>
> I don't think that's been necessary for a few Windows versions now.
> These days, Windows comes with its own built-in tar that allows you
to just:
> tar -xvf lua-5.4.6.tar.gz
> See:
>
https://learn.microsoft.com/en-us/virtualization/community/team-blog/2017/20171219-tar-and-curl-come-to-windows

Oh is it back? I remember 'tar' from long ago, but it only did .tar
files iirc.

But your link is dated 2023, it seems to be recent.

..tar.gz and like files I think were supposed to be handled directly by
Windows, but that never worked. I had to use a package called 7-Zip, and
it was dire.

You clicked Extract, and it did half the job; you had a .tar file. You
clicked extract on that, and nothing happened. Eventually it would deign
to extract files, but it was pot-luck where they would end up, or how
deeply nested, even if you gave a path.

It was confusing also because you could just click and go inside the
archive, but I think you'd need to be at the right location for Extract
to work.

So thanks.

Re: Build Systems

<b3987d85-8e76-42d8-b799-b9c02117744dn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=27717&group=comp.lang.c#27717

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:ac8:7e96:0:b0:40f:f22c:2a3b with SMTP id w22-20020ac87e96000000b0040ff22c2a3bmr36814qtj.3.1692126990482;
Tue, 15 Aug 2023 12:16:30 -0700 (PDT)
X-Received: by 2002:a17:90a:ba04:b0:269:2227:b290 with SMTP id
s4-20020a17090aba0400b002692227b290mr3012275pjr.7.1692126990112; Tue, 15 Aug
2023 12:16:30 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Tue, 15 Aug 2023 12:16:29 -0700 (PDT)
In-Reply-To: <uban99$1rnpb$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=170.231.44.126; posting-account=xFcAQAoAAAAoWlfpQ6Hz2n-MU9fthxbY
NNTP-Posting-Host: 170.231.44.126
References: <uban99$1rnpb$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b3987d85-8e76-42d8-b799-b9c02117744dn@googlegroups.com>
Subject: Re: Build Systems
From: thiago.a...@gmail.com (Thiago Adams)
Injection-Date: Tue, 15 Aug 2023 19:16:30 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1869
 by: Thiago Adams - Tue, 15 Aug 2023 19:16 UTC

On Sunday, August 13, 2023 at 10:53:59 AM UTC-3, Bart wrote:
> Bart:
> >> Suppose you dispensed with all that dependency stuff; how long would
> >> it take to build such a project? Say compared with just compiling one
> >> module.

I am still using and very satisfied with the solution we already had topics here that
is create a simple executable that does the build.

All I need for windows

cl build.c && build

All I need for Linux
gcc build.c -o build && ./build

When you have several files to be compiled, having one more file that is the build
itself does not make any difference. Usage of preprocessor is very handy.

I also have automatic unit tests . all I need to do is

cl -DTEST build.c && build

Re: Build Systems

<87350km6hh.fsf@nosuchdomain.example.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=27718&group=comp.lang.c#27718

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.lang.c
Subject: Re: Build Systems
Date: Tue, 15 Aug 2023 12:48:58 -0700
Organization: None to speak of
Lines: 30
Message-ID: <87350km6hh.fsf@nosuchdomain.example.com>
References: <uban99$1rnpb$1@dont-email.me> <87ttt2isc8.fsf@bsb.me.uk>
<ubd8t6$2b62u$1@dont-email.me> <ubdbtc$2bl3l$1@dont-email.me>
<12sCM.59051$m8Ke.22097@fx08.iad> <ubdmk4$2dao7$1@dont-email.me>
<ubfeqj$2oop4$1@dont-email.me> <ubfknf$2plvs$1@dont-email.me>
<ubfu4d$2r98d$1@dont-email.me> <ubg4jr$2se4o$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="09fbea63c7f3f6d2cf54fb60a378c312";
logging-data="3111657"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Dw6/NbEvuxek4dU093p/w"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:7ahEw3MWnWLvWB/jNw2ktKp8pqw=
sha1:I3xhSNSkjmdEAexmAkxabK3S9Yg=
 by: Keith Thompson - Tue, 15 Aug 2023 19:48 UTC

Bart <bc@freeuk.com> writes:
[...]
> My recent post goes into this in more detail. But, I've believe the
> ZIP files from the Github Lua repository are incorrect.

You're right.

The GitHub repo for Lua is
https://github.com/lua/lua
It includes (not as part of the repo itself) a number of releases,
including:
https://github.com/lua/lua/archive/refs/tags/v5.4.6.zip
https://github.com/lua/lua/archive/refs/tags/v5.4.6.tar.gz

The lua.org site provides a tarball:
https://www.lua.org/ftp/lua-5.4.6.tar.gz
I don't see any zip files on lua.org.

The zipfile and tarball from the GitHub release match each other, but do
not match the tarball from lua.org.

> So, whose fault is that?

I have no idea, but I hardly think comp.lang.c is the place to complain
about it.

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Will write code for food.
void Void(void) { Void(); } /* The recursive call of the void */

Re: Build Systems

<87y1ickqsk.fsf@nosuchdomain.example.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=27722&group=comp.lang.c#27722

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.lang.c
Subject: Re: Build Systems
Date: Tue, 15 Aug 2023 13:13:15 -0700
Organization: None to speak of
Lines: 61
Message-ID: <87y1ickqsk.fsf@nosuchdomain.example.com>
References: <uban99$1rnpb$1@dont-email.me> <87ttt2isc8.fsf@bsb.me.uk>
<ubd8t6$2b62u$1@dont-email.me> <ubdbtc$2bl3l$1@dont-email.me>
<12sCM.59051$m8Ke.22097@fx08.iad> <ubdmk4$2dao7$1@dont-email.me>
<ubfeqj$2oop4$1@dont-email.me> <ubfknf$2plvs$1@dont-email.me>
<ubfu4d$2r98d$1@dont-email.me> <ubg4jr$2se4o$1@dont-email.me>
<ubg7ku$2srfk$1@dont-email.me> <ubgdr5$2tro0$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="09fbea63c7f3f6d2cf54fb60a378c312";
logging-data="3118360"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/OWQGDdA0gI3jJvW1bfqi/"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:LGN7vsnNZ3cEUuEnZRDoZTFmhEE=
sha1:EBcfR8cxidZI1S5b0EagMFsE65o=
 by: Keith Thompson - Tue, 15 Aug 2023 20:13 UTC

Bart <bc@freeuk.com> writes:
[...]
> The releases page for Github Lua, for version 5.4.6, has these two assets:
>
> * Source code: v5.4.6.zip
>
> * Source code: v5.4.6.tar.gz
>
> TELL me where in the build instructions it says that the contents of
> these two files are incompatible.

It doesn't, because their contents are identical. I just checked.

They differ from the lua-5.4.6.tar.gz file on the lua.org website.

https://github.com/lua/lua/archive/refs/tags/v5.4.6.zip
https://github.com/lua/lua/archive/refs/tags/v5.4.6.tar.gz
https://www.lua.org/ftp/lua-5.4.6.tar.gz

The release files on github.com are copies of the git repo. The
lua-5.4.6.tar.gz was *generated* from the files in the git repo.
It's created by the Lua maintainers; I don't know how.

The tarball on the lua.org web site is the one you should use to build
Lua from source. (If you want to work on developing Lua itself, you
should clone the repo. I'm not convinced that the GitHub release files
are particularly useful.)

> THEN then tell me why they are incompatible, and what the point is of
> the .zip version since it has a missing outer makefile.
>
> NOW tell me why on earth someone would know, or even guess, that the
> source bundles contained in those files are anything other than the
> same data, packaged in different types of containers.

That's exactly what they are, but they differ from the tar.gz file from
lua.org.

People who want to build Lua from source (without necessarily wanting to
work on the Lua implementation) should build from the .tar.gz file from
lua.org.

[...]

> You know, one thing is going 100% certain in this thread: you are
> never for one minute going to admit that I'm right in there being
> something wrong with those Github ZIPs.
>
> You didn't see the problem because you either obtained the source
> bundle elsewhere, or would have used only the .tar.gz version.
>
> So, fuck you as well as Scott. This clearly is a personal vendetta.

Dude, calm down. Scott likely wasn't aware of the GitHub release files.
The presence of those files is genuinely confusing, but that's not
Scott's fault.

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Will write code for food.
void Void(void) { Void(); } /* The recursive call of the void */

Re: Build Systems

<87y1ic2h74.fsf@fatphil.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=27724&group=comp.lang.c#27724

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: pc+use...@asdf.org (Phil Carmody)
Newsgroups: comp.lang.c
Subject: Re: Build Systems
Date: Tue, 15 Aug 2023 23:17:51 +0300
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <87y1ic2h74.fsf@fatphil.org>
References: <uban99$1rnpb$1@dont-email.me> <87ttt2isc8.fsf@bsb.me.uk>
<ubd8t6$2b62u$1@dont-email.me> <ubdbtc$2bl3l$1@dont-email.me>
<12sCM.59051$m8Ke.22097@fx08.iad> <ubdmk4$2dao7$1@dont-email.me>
<ubfeqj$2oop4$1@dont-email.me> <ubfknf$2plvs$1@dont-email.me>
<ubfu4d$2r98d$1@dont-email.me> <ubg4jr$2se4o$1@dont-email.me>
<ubg7ku$2srfk$1@dont-email.me> <qbOCM.632529$TPw2.568059@fx17.iad>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="9176dbab4427e178b28c3a609a56f3cb";
logging-data="3113645"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18LI/IJp4VVGcz8HtZuxNxf"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Cancel-Lock: sha1:Nz+bME28q5Ku0wM4Rm4KDr1IlYw=
sha1:sQ6NWeRCBzrXuvLZiXCalQo6iPs=
 by: Phil Carmody - Tue, 15 Aug 2023 20:17 UTC

scott@slp53.sl.home (Scott Lurndal) writes:
> David Brown <david.brown@hesbynett.no> writes:
>>On 15/08/2023 17:11, Bart wrote:
>>> On 15/08/2023 14:21, David Brown wrote:
>>> I usually avoid .tar.gz files since they are a pig to extract on
>>> Windows. It involves using 7-Zip, but is still a trial-and-error process.
>>>
>>
>>Is there /nothing/ in this world that you don't find hard? How can you
>>possibly have trouble with a simple compressed archive? It's not as if
>>it contains filenames that Windows can't handle.
>
> IIRC, Windows filesystems are case insensitive. Would not that preclude
> successfully unpacking a tarball which contains two filenames which differ
> only in case?

Depends on whether "successfully" is viewed from the perspective of
the person trying to root your system, as in this git(hub) bug from
nearly a decade ago:
https://www.beyondtrust.com/blog/entry/dissecting-githubs-case-insensitive-discrepancies
TL;DF: create some ``.Git/hooks/*'' files or a ``.Git/config'' file

Phil
--
We are no longer hunters and nomads. No longer awed and frightened, as we have
gained some understanding of the world in which we live. As such, we can cast
aside childish remnants from the dawn of our civilization.
-- NotSanguine on SoylentNews, after Eugen Weber in /The Western Tradition/

Re: Build Systems

<ubgnl4$2v6ih$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=27726&group=comp.lang.c#27726

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (Bart)
Newsgroups: comp.lang.c
Subject: Re: Build Systems
Date: Tue, 15 Aug 2023 21:36:52 +0100
Organization: A noiseless patient Spider
Lines: 70
Message-ID: <ubgnl4$2v6ih$1@dont-email.me>
References: <uban99$1rnpb$1@dont-email.me> <87ttt2isc8.fsf@bsb.me.uk>
<ubd8t6$2b62u$1@dont-email.me> <ubdbtc$2bl3l$1@dont-email.me>
<12sCM.59051$m8Ke.22097@fx08.iad> <ubdmk4$2dao7$1@dont-email.me>
<ubfeqj$2oop4$1@dont-email.me> <ubfknf$2plvs$1@dont-email.me>
<ubfu4d$2r98d$1@dont-email.me> <ubg4jr$2se4o$1@dont-email.me>
<87350km6hh.fsf@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 15 Aug 2023 20:36:52 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b2bb591c1712a7be1bb8b1a577f1cf0d";
logging-data="3119697"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+6rVSUHr7Zjomj87BSSMILuG16rzkxucs="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:lgz5MgPk3kk0yiImebppIeL/ZZQ=
In-Reply-To: <87350km6hh.fsf@nosuchdomain.example.com>
 by: Bart - Tue, 15 Aug 2023 20:36 UTC

On 15/08/2023 20:48, Keith Thompson wrote:
> Bart <bc@freeuk.com> writes:
> [...]
>> My recent post goes into this in more detail. But, I've believe the
>> ZIP files from the Github Lua repository are incorrect.
>
> You're right.
>
> The GitHub repo for Lua is
> https://github.com/lua/lua
> It includes (not as part of the repo itself) a number of releases,
> including:
> https://github.com/lua/lua/archive/refs/tags/v5.4.6.zip
> https://github.com/lua/lua/archive/refs/tags/v5.4.6.tar.gz
>
> The lua.org site provides a tarball:
> https://www.lua.org/ftp/lua-5.4.6.tar.gz
> I don't see any zip files on lua.org.
>
> The zipfile and tarball from the GitHub release match each other, but do
> not match the tarball from lua.org.

OK, that one was my mistake then. But it means they're both wrong. And
if that Mr. DB had downloaded the source code from the Github, then the
make instructions he saw on lua.org would not have worked because of a
missing makefile.

>> So, whose fault is that?
>
> I have no idea, but I hardly think comp.lang.c is the place to complain
> about it.

What I'm complaining about is being falsely (and I believe maliciously)
accused of incompetence:

BC:
>> So, whose fault is that?
>
DB:
> Yours - you did not read the build instructions, but ploughed on with
> your own guesswork and got into trouble.

That doesn't bother you I guess. Although this won't stop DB, who will
claim that of course I should have known that different kinds of source
'tarballs' exist for the version of product, and only some of them will
work with the given build instructions.

Although I did mention Github regarding Lua two days ago; you'd think
someone would have told me that was the wrong site to download source
code from, if it's so bleeding obvious.

As for who is at fault; I'd suggest:

(1) The github site for not mentioning anything about it at all, like:
'download the proper tarball from lua.org' if you want to build it. (Why
isn't that top layer present anyway?)

(2) Even with the correct sources, you'd have to go on a scavenger hunt
through lua.org's Readme page to find the right instructions to run
'make' for plain Windows.

BTW the thread is about build systems. My contention was that 'make' on
Windows (actual Windows not Linux running under Windows) is generally
troublesome.

I haven't seen evidence to the contrary.

Re: Build Systems

<ubgo18$2v6ih$2@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=27727&group=comp.lang.c#27727

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (Bart)
Newsgroups: comp.lang.c
Subject: Re: Build Systems
Date: Tue, 15 Aug 2023 21:43:19 +0100
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <ubgo18$2v6ih$2@dont-email.me>
References: <uban99$1rnpb$1@dont-email.me> <87ttt2isc8.fsf@bsb.me.uk>
<ubd8t6$2b62u$1@dont-email.me> <ubdbtc$2bl3l$1@dont-email.me>
<12sCM.59051$m8Ke.22097@fx08.iad> <ubdmk4$2dao7$1@dont-email.me>
<ubfeqj$2oop4$1@dont-email.me> <ubfknf$2plvs$1@dont-email.me>
<ubfu4d$2r98d$1@dont-email.me> <ubg4jr$2se4o$1@dont-email.me>
<87350km6hh.fsf@nosuchdomain.example.com> <ubgnl4$2v6ih$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 15 Aug 2023 20:43:20 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b2bb591c1712a7be1bb8b1a577f1cf0d";
logging-data="3119697"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19hbME1cSroQnRP9RNbBSwiD2Hjwq5Vcgg="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:KTYFLOATO8hN6m47LvAidHX08q8=
In-Reply-To: <ubgnl4$2v6ih$1@dont-email.me>
 by: Bart - Tue, 15 Aug 2023 20:43 UTC

On 15/08/2023 21:36, Bart wrote:

> As for who is at fault; I'd suggest:
>
> (1) The github site for not mentioning anything about it at all, like:
> 'download the proper tarball from lua.org' if you want to build it. (Why
> isn't that top layer present anyway?)
>
> (2) Even with the correct sources, you'd have to go on a scavenger hunt
> through lua.org's Readme page to find the right instructions to run
> 'make' for plain Windows.

BTW, why does Github (on this project and I've seen it on others)
provide both .zip and .tar.gz sources?

According to DB, processing .tar.gz files is so utterly trivial that
there appears to be little point to using .zip.

People who prefer .zip will of course choose that if both are options.

Re: Build Systems

<ubgo71$2v3ia$4@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=27728&group=comp.lang.c#27728

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: vir.camp...@invalid.invalid (Vir Campestris)
Newsgroups: comp.lang.c
Subject: Re: Build Systems
Date: Tue, 15 Aug 2023 21:46:25 +0100
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <ubgo71$2v3ia$4@dont-email.me>
References: <uban99$1rnpb$1@dont-email.me> <ubd7tj$2b0dl$1@dont-email.me>
<ubdaqs$2bfi7$1@dont-email.me> <ubffa1$2oop4$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 15 Aug 2023 20:46:25 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="3e91a13fa6e45fe62613781a49852902";
logging-data="3116618"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18v2bDkjjpbjxtEZXAbLBfTcPsQ3tB+mik="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:n1DqKpUCbewSa1xv5IKX0ZzH3SE=
Content-Language: en-GB
In-Reply-To: <ubffa1$2oop4$2@dont-email.me>
 by: Vir Campestris - Tue, 15 Aug 2023 20:46 UTC

On 15/08/2023 10:08, David Brown wrote:
> "make" automates the process of figuring out which compilations are
> needed.  Of course it doesn't do anything that I could not do manually.
> And if I change "spi.c" then I know I need to re-compile that, and not
> "uart.c", and other files.  But that would mean that after editing
> "spi.c" I'd have to manually choose to re-compile "spi.c", including the
> perhaps 500 or more characters in the command line (lots of warning
> flags, carefully chosen options, pre-defined macros, directory paths for
> source code, object code, listing files, include paths, etc. - this is
> not a "hello.c" toy on a PC).  And if I changed the "clocks.h" header,
> I'd have to look through dozens of source files to see which ones
> included that header and needed re-compiling, and which ones do not.
>
> Or I can type "make".  (Or, more commonly, press "ctrl-B" and the IDE
> will do "make" and update the source windows with markers for any issues
> found.)
>
> Which do you think is a better choice for development?

When I was still being paid to do this stuff (and not just following the
group out of nostalgia) we used a tool called Ice Cream

<https://github.com/icecc/icecream>

which distributed the work around the pool of machines in the office.
OK, there was a _lot_ of C++ in it, but a clean compile still took an
hour or so. If you are finding that your compiles take a long time it's
worth looking into.

That page mentions distcc as one of the ancestors.

Andy

Re: Build Systems

<ubgosn$2vef0$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=27731&group=comp.lang.c#27731

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: Build Systems
Date: Tue, 15 Aug 2023 22:57:59 +0200
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <ubgosn$2vef0$1@dont-email.me>
References: <uban99$1rnpb$1@dont-email.me> <87ttt2isc8.fsf@bsb.me.uk>
<ubd8t6$2b62u$1@dont-email.me> <ubdbtc$2bl3l$1@dont-email.me>
<12sCM.59051$m8Ke.22097@fx08.iad> <ubdmk4$2dao7$1@dont-email.me>
<ubfeqj$2oop4$1@dont-email.me> <ubfknf$2plvs$1@dont-email.me>
<ubfu4d$2r98d$1@dont-email.me> <ubg4jr$2se4o$1@dont-email.me>
<ubg7ku$2srfk$1@dont-email.me> <qbOCM.632529$TPw2.568059@fx17.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 15 Aug 2023 20:57:59 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="86220e190b2480875444493e60b4b1bc";
logging-data="3127776"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19M26PYp34ddmxC2qZW5/Y1pqmAsdhG9L8="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:ZstEhtFmrTZvXm2/NRAvSlwzDKs=
In-Reply-To: <qbOCM.632529$TPw2.568059@fx17.iad>
Content-Language: en-GB
 by: David Brown - Tue, 15 Aug 2023 20:57 UTC

On 15/08/2023 19:01, Scott Lurndal wrote:
> David Brown <david.brown@hesbynett.no> writes:
>> On 15/08/2023 17:11, Bart wrote:
>>> On 15/08/2023 14:21, David Brown wrote:
>
>>>
>>> I usually avoid .tar.gz files since they are a pig to extract on
>>> Windows. It involves using 7-Zip, but is still a trial-and-error process.
>>>
>>
>> Is there /nothing/ in this world that you don't find hard? How can you
>> possibly have trouble with a simple compressed archive? It's not as if
>> it contains filenames that Windows can't handle.
>
> IIRC, Windows filesystems are case insensitive. Would not that preclude
> successfully unpacking a tarball which contains two filenames which differ
> only in case?
>

Yes - but the tarball in question does not have such files.

(NTFS supports having files whose names differ only in case, because it
was made to support POSIX semantics, from early plans for WinNT to be
more POSIX-like. It is possible to create filenames on an NTFS drive
that normal Windows programs can't handle, causing much fun as a prank.)

Re: Build Systems

<87ttt0koa5.fsf@nosuchdomain.example.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=27732&group=comp.lang.c#27732

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.lang.c
Subject: Re: Build Systems
Date: Tue, 15 Aug 2023 14:07:30 -0700
Organization: None to speak of
Lines: 82
Message-ID: <87ttt0koa5.fsf@nosuchdomain.example.com>
References: <uban99$1rnpb$1@dont-email.me> <87ttt2isc8.fsf@bsb.me.uk>
<ubd8t6$2b62u$1@dont-email.me> <ubdbtc$2bl3l$1@dont-email.me>
<12sCM.59051$m8Ke.22097@fx08.iad> <ubdmk4$2dao7$1@dont-email.me>
<ubfeqj$2oop4$1@dont-email.me> <ubfknf$2plvs$1@dont-email.me>
<ubfu4d$2r98d$1@dont-email.me> <ubg4jr$2se4o$1@dont-email.me>
<87350km6hh.fsf@nosuchdomain.example.com>
<ubgnl4$2v6ih$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="09fbea63c7f3f6d2cf54fb60a378c312";
logging-data="3132780"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX196cEWmmgN+ZkRkuNvlHZ4I"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:GoNWk9HSstz9a/tkI3xz9w/vkKg=
sha1:QyEgKiRSIW2j+dYzbAdneYLkh3c=
 by: Keith Thompson - Tue, 15 Aug 2023 21:07 UTC

Bart <bc@freeuk.com> writes:
> On 15/08/2023 20:48, Keith Thompson wrote:
>> Bart <bc@freeuk.com> writes:
>> [...]
>>> My recent post goes into this in more detail. But, I've believe the
>>> ZIP files from the Github Lua repository are incorrect.
>> You're right.
>> The GitHub repo for Lua is
>> https://github.com/lua/lua
>> It includes (not as part of the repo itself) a number of releases,
>> including:
>> https://github.com/lua/lua/archive/refs/tags/v5.4.6.zip
>> https://github.com/lua/lua/archive/refs/tags/v5.4.6.tar.gz
>> The lua.org site provides a tarball:
>> https://www.lua.org/ftp/lua-5.4.6.tar.gz
>> I don't see any zip files on lua.org.
>> The zipfile and tarball from the GitHub release match each other,
>> but do
>> not match the tarball from lua.org.
>
> OK, that one was my mistake then. But it means they're both wrong. And
> if that Mr. DB had downloaded the source code from the Github, then
> the make instructions he saw on lua.org would not have worked because
> of a missing makefile.
>
>>> So, whose fault is that?
>> I have no idea, but I hardly think comp.lang.c is the place to
>> complain
>> about it.
>
> What I'm complaining about is being falsely (and I believe
> maliciously) accused of incompetence:

You're far too quick to assume malice.

> BC:
>>> So, whose fault is that?
>>
> DB:
>> Yours - you did not read the build instructions, but ploughed on with
>> your own guesswork and got into trouble.

I won't attempt to speak for DB, but I doubt that it occurred to him
that the release files on GitHub differ so substantially from the
..tar.gz files on lua.org.

> That doesn't bother you I guess. Although this won't stop DB, who will
> claim that of course I should have known that different kinds of
> source 'tarballs' exist for the version of product, and only some of
> them will work with the given build instructions.
>
> Although I did mention Github regarding Lua two days ago; you'd think
> someone would have told me that was the wrong site to download source
> code from, if it's so bleeding obvious.

It's not obvious, and nobody has said that it is. I would have assumed
that the release .tar.gz file from GitHub was similar to the .tar.gz
file from lua.org until I checked.

> As for who is at fault; I'd suggest:
>
> (1) The github site for not mentioning anything about it at all, like:
> 'download the proper tarball from lua.org' if you want to build
> it. (Why isn't that top layer present anyway?)

GitHub release files are just packaged copies of the files in the repo.
The release tarball from lua.org is built from that. For example, the
GitHub repo includes documentation in what appears to be a
project-specific format; the lua.org release includes generated man
pages and html files.

The README.md file says: "Download official Lua releases from Lua.org.".

Yes, the presence of the "release" files on GitHub is misleading. Now
that we've established that, can we stop complaining about it here?

[...]

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Will write code for food.
void Void(void) { Void(); } /* The recursive call of the void */

Re: Build Systems

<ubgpip$2vk5e$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=27733&group=comp.lang.c#27733

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: Build Systems
Date: Tue, 15 Aug 2023 23:09:44 +0200
Organization: A noiseless patient Spider
Lines: 76
Message-ID: <ubgpip$2vk5e$1@dont-email.me>
References: <uban99$1rnpb$1@dont-email.me> <87ttt2isc8.fsf@bsb.me.uk>
<ubd8t6$2b62u$1@dont-email.me> <ubdbtc$2bl3l$1@dont-email.me>
<12sCM.59051$m8Ke.22097@fx08.iad> <ubdmk4$2dao7$1@dont-email.me>
<ubfeqj$2oop4$1@dont-email.me> <ubfknf$2plvs$1@dont-email.me>
<ubfu4d$2r98d$1@dont-email.me> <ubg4jr$2se4o$1@dont-email.me>
<ubg7ku$2srfk$1@dont-email.me> <ubgdr5$2tro0$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 15 Aug 2023 21:09:45 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="86220e190b2480875444493e60b4b1bc";
logging-data="3133614"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/h9fgP1qNkRXBHzzC2tbOrzEbvR3i9G2M="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:HHP0eDNsJMxH4P7NYaINGQqL6VA=
In-Reply-To: <ubgdr5$2tro0$1@dont-email.me>
Content-Language: en-GB
 by: David Brown - Tue, 15 Aug 2023 21:09 UTC

On 15/08/2023 19:49, Bart wrote:

> You know, one thing is going 100% certain in this thread: you are never
> for one minute going to admit that I'm right in there being something
> wrong with those Github ZIPs.
>
> You didn't see the problem because you either obtained the source bundle
> elsewhere, or would have used only the .tar.gz version.
>

Look, I have no idea if these are the same or different. I don't know,
and don't care. The only reason I was at the lua website at all was
because /you/ picked it as something that "proves" that make never works
on Windows. I went to the lua website, followed the instructions on how
to build lua on Windows, and it worked - using "make". /You/ did not
not follow the instructions, and you got in trouble. No doubt you'd
have got in trouble even if you did follow the instructions, because you
are always so determined to have everything fail.

I am not going to look at the zip files, or compare them, and I am
certainly not going to spend any more effort trying to help you figure
out what you did wrong.

> You hate me so much that whenever I find a problem anywhere, it
> automatically has to be my fault, even when it isn't!

I don't hate you at all - if I did, then I would not have been wasting
so much time trying to help you.

>
> And you're so intent on proving me wrong, that you even delude yourself
> that doing this:
>
>    curl -R -O http://www.lua.org/ftp/lua-5.4.6.tar.gz
>    tar zxf lua-5.4.6.tar.gz
>    cd lua-5.4.6
>    make all test
>
> is 'installing it on Windows'.

It /is/ installing it on Windows.

> And when challenged, you say that doing
> it under MSYS2 is also 'installing it on Windows'.

I have msys2 installed. On Windows. I used tools from that (including
make) to build Lua. On Windows. It resulted in Windows exe files for
Lua. They are on my Windows machine. I can now run lua on Windows.
(This is Windows 7, with no WSL in sight, no virtual machines, or
anything like that.) I can copy these exe files to another windows
machine, and they work there too. How is that /not/ "installing it on
windows" ? What is your criteria here - if it works for someone else,
then they must naturally have been cheating in some way, because it
could not possibly be that /you/ have the problem?

>
> You know, I don't believe you actually know how to do this under plain
> Windows! Otherwise you would have done so; you must know that's what I
> use.)
>

By /my/ ruling, any system with "bcc" or "tcc" is not plain Windows.
Therefore you failed.

Does that sound familiar? Any more goalposts you want to shuffle around
and move to completely different pitches in another feeble attempt to
look less pathetic?

>
> So, what have /you/ achieved?
>

I did exactly what you claimed was impossible - used "make" to build Lua
on windows.

Re: Build Systems

<ubgulr$3095n$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=27735&group=comp.lang.c#27735

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (Bart)
Newsgroups: comp.lang.c
Subject: Re: Build Systems
Date: Tue, 15 Aug 2023 23:36:43 +0100
Organization: A noiseless patient Spider
Lines: 76
Message-ID: <ubgulr$3095n$1@dont-email.me>
References: <uban99$1rnpb$1@dont-email.me> <87ttt2isc8.fsf@bsb.me.uk>
<ubd8t6$2b62u$1@dont-email.me> <ubdbtc$2bl3l$1@dont-email.me>
<12sCM.59051$m8Ke.22097@fx08.iad> <ubdmk4$2dao7$1@dont-email.me>
<ubfeqj$2oop4$1@dont-email.me> <ubfknf$2plvs$1@dont-email.me>
<ubfu4d$2r98d$1@dont-email.me> <ubg4jr$2se4o$1@dont-email.me>
<ubg7ku$2srfk$1@dont-email.me> <ubgdr5$2tro0$1@dont-email.me>
<ubgpip$2vk5e$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 15 Aug 2023 22:36:43 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="17f8aedb09110eed4ec1c7adfd187d70";
logging-data="3155127"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19bxl6Fmhwdvw92r39YfAz2WLCAVaOwVlc="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:7qxh/N8H/K9ZJqgyJcQs7YSohzY=
In-Reply-To: <ubgpip$2vk5e$1@dont-email.me>
 by: Bart - Tue, 15 Aug 2023 22:36 UTC

On 15/08/2023 22:09, David Brown wrote:
> On 15/08/2023 19:49, Bart wrote:
>
>> You know, one thing is going 100% certain in this thread: you are
>> never for one minute going to admit that I'm right in there being
>> something wrong with those Github ZIPs.
>>
>> You didn't see the problem because you either obtained the source
>> bundle elsewhere, or would have used only the .tar.gz version.
>>
>
> Look, I have no idea if these are the same or different. I don't know,
> and don't care. The only reason I was at the lua website at all was
> because /you/ picked it as something that "proves" that make never works
> on Windows. I went to the lua website, followed the instructions on how
> to build lua on Windows, and it worked - using "make". /You/ did not
> not follow the instructions,

I downloaded an open source project like I've done a hundred others:
from Github. It's usually expected to have everything needed to build
the project, except for the actual tools.

> and you got in trouble. No doubt you'd
> have got in trouble even if you did follow the instructions, because you
> are always so determined to have everything fail.

You don't see the failures because most open source software is
developed for Unix-like OSes, so build systems are well-tested because
so many will be using that and will have reported failures.

In addition, even for software that runs on Windows, you hide behind a
wall of Linux utilities; using MSYS2 or WSL.

So really, it's not surprising that everything works for you with hardly
needing to lift a finger.

>> You know, I don't believe you actually know how to do this under plain
>> Windows! Otherwise you would have done so; you must know that's what I
>> use.)
>>
>
> By /my/ ruling, any system with "bcc" or "tcc" is not plain Windows.
> Therefore you failed.

Huh? Those are compilers. You need a C compiler to turn .c files into
..exe files. You don't need that other crap.

>> So, what have /you/ achieved?
>>
>
> I did exactly what you claimed was impossible

I said when I tried it, it failed.

> - used "make" to build Lua on windows.

So did I in the end. But I'd long since done it anyway:

* Without even needing the 'proper' source file bundle: the Github
version was fine

* Without using 'make' or the right makefile

* Without using MSYS2 or CYGWIN

* Without using WSL

All in all I did better without using 'make'. I could even switch
instantly between GCC and TCC.

AND I built in with my BCC, which cannot be used from a makefile, not
the one here anyway, because it expects a C compiler to work in a
certain way.

Re: Build Systems

<87pm3nlxuu.fsf@nosuchdomain.example.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=27736&group=comp.lang.c#27736

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.lang.c
Subject: Re: Build Systems
Date: Tue, 15 Aug 2023 15:55:21 -0700
Organization: None to speak of
Lines: 39
Message-ID: <87pm3nlxuu.fsf@nosuchdomain.example.com>
References: <uban99$1rnpb$1@dont-email.me> <87ttt2isc8.fsf@bsb.me.uk>
<ubd8t6$2b62u$1@dont-email.me> <ubdbtc$2bl3l$1@dont-email.me>
<12sCM.59051$m8Ke.22097@fx08.iad> <ubdmk4$2dao7$1@dont-email.me>
<ubfeqj$2oop4$1@dont-email.me> <ubfknf$2plvs$1@dont-email.me>
<ubfu4d$2r98d$1@dont-email.me> <ubg4jr$2se4o$1@dont-email.me>
<ubg7ku$2srfk$1@dont-email.me> <ubgdr5$2tro0$1@dont-email.me>
<ubgpip$2vk5e$1@dont-email.me> <ubgulr$3095n$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="15135efa85b793336b66170ecb85b528";
logging-data="3160437"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19BWZeqBu/rH0kUTivlQJ2v"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:IzSZaFcM1+6rLpVLHPQVU891wZI=
sha1:OpRvPhm6FMWjse2pP3XKcYy2HzQ=
 by: Keith Thompson - Tue, 15 Aug 2023 22:55 UTC

Bart <bc@freeuk.com> writes:
> On 15/08/2023 22:09, David Brown wrote:
>> On 15/08/2023 19:49, Bart wrote:
>>> You know, one thing is going 100% certain in this thread: you are
>>> never for one minute going to admit that I'm right in there being
>>> something wrong with those Github ZIPs.
>>>
>>> You didn't see the problem because you either obtained the source
>>> bundle elsewhere, or would have used only the .tar.gz version.
>>>
>>
>> Look, I have no idea if these are the same or different. I don't know,
>> and don't care. The only reason I was at the lua website at all was
>> because /you/ picked it as something that "proves" that make never works
>> on Windows. I went to the lua website, followed the instructions on how
>> to build lua on Windows, and it worked - using "make". /You/ did not
>> not follow the instructions,
>
> I downloaded an open source project like I've done a hundred others:
> from Github. It's usually expected to have everything needed to build
> the project, except for the actual tools.

And now you've learned that the "release" .tar.gz and .zip files
provided by GitHub are just snapshots of the git repo. Official source
releases are often generated from the git repo, with things like
documentation and configure scripts generated by the maintainers of the
project. Whether you can easily build something from a GitHub release
file depends on the project.

I suspect you resorted to the GitHub "release" files because lua.org
doesn't provide a zip file.

It's an understandable error -- and it gave you an excuse to complain
and insult people.

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Will write code for food.
void Void(void) { Void(); } /* The recursive call of the void */

Re: Build Systems

<ubh3s8$30v7t$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=27737&group=comp.lang.c#27737

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (Bart)
Newsgroups: comp.lang.c
Subject: Re: Build Systems
Date: Wed, 16 Aug 2023 01:05:28 +0100
Organization: A noiseless patient Spider
Lines: 54
Message-ID: <ubh3s8$30v7t$1@dont-email.me>
References: <uban99$1rnpb$1@dont-email.me> <87ttt2isc8.fsf@bsb.me.uk>
<ubd8t6$2b62u$1@dont-email.me> <ubdbtc$2bl3l$1@dont-email.me>
<12sCM.59051$m8Ke.22097@fx08.iad> <ubdmk4$2dao7$1@dont-email.me>
<ubfeqj$2oop4$1@dont-email.me> <ubfknf$2plvs$1@dont-email.me>
<ubfu4d$2r98d$1@dont-email.me> <ubg4jr$2se4o$1@dont-email.me>
<ubg7ku$2srfk$1@dont-email.me> <ubgdr5$2tro0$1@dont-email.me>
<ubgpip$2vk5e$1@dont-email.me> <ubgulr$3095n$1@dont-email.me>
<87pm3nlxuu.fsf@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 16 Aug 2023 00:05:28 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="17f8aedb09110eed4ec1c7adfd187d70";
logging-data="3177725"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ye15beI3SMDfCuoKXZymIu7/XvVvhwWs="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:DtgrdDbNiixgk5qBWEn/uRBcX84=
In-Reply-To: <87pm3nlxuu.fsf@nosuchdomain.example.com>
 by: Bart - Wed, 16 Aug 2023 00:05 UTC

On 15/08/2023 23:55, Keith Thompson wrote:
> Bart <bc@freeuk.com> writes:
>> On 15/08/2023 22:09, David Brown wrote:
>>> On 15/08/2023 19:49, Bart wrote:
>>>> You know, one thing is going 100% certain in this thread: you are
>>>> never for one minute going to admit that I'm right in there being
>>>> something wrong with those Github ZIPs.
>>>>
>>>> You didn't see the problem because you either obtained the source
>>>> bundle elsewhere, or would have used only the .tar.gz version.
>>>>
>>>
>>> Look, I have no idea if these are the same or different. I don't know,
>>> and don't care. The only reason I was at the lua website at all was
>>> because /you/ picked it as something that "proves" that make never works
>>> on Windows. I went to the lua website, followed the instructions on how
>>> to build lua on Windows, and it worked - using "make". /You/ did not
>>> not follow the instructions,
>>
>> I downloaded an open source project like I've done a hundred others:
>> from Github. It's usually expected to have everything needed to build
>> the project, except for the actual tools.
>
> And now you've learned that the "release" .tar.gz and .zip files
> provided by GitHub are just snapshots of the git repo. Official source
> releases are often generated from the git repo, with things like
> documentation and configure scripts generated by the maintainers of the
> project. Whether you can easily build something from a GitHub release
> file depends on the project.
>
> I suspect you resorted to the GitHub "release" files because lua.org
> doesn't provide a zip file.
>
> It's an understandable error -- and it gave you an excuse to complain
> and insult people.

But it's not understood by David Brown, and it gave him an excuse to
insult /me/.

In his book, it's impossible for anything to go wrong, so if I can't get
something to work, it HAS to be my fault. It can NEVER be the extra
opportunities for error that complex makefiles provide, or even simple ones.

No docs are too obscure or misleading (like lumping the 'mingw'
parameter needed for Windows under Unix-like systems)

And if can't make something work under ordinary Windows, my mistake is
not using Linux-like layers to keep the build process happy.

If even he has trouble pinning something on me (maybe somebody else
encountered the problem!) then of course it's because Windows is rubbish.

So, basically, I cannot win.

Re: Build Systems

<ubh4ni$3124i$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=27738&group=comp.lang.c#27738

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!rocksolid2!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (Bart)
Newsgroups: comp.lang.c
Subject: Re: Build Systems
Date: Wed, 16 Aug 2023 01:20:02 +0100
Organization: A noiseless patient Spider
Lines: 43
Message-ID: <ubh4ni$3124i$1@dont-email.me>
References: <uban99$1rnpb$1@dont-email.me> <ubd7tj$2b0dl$1@dont-email.me>
<ubdaqs$2bfi7$1@dont-email.me> <ubffa1$2oop4$2@dont-email.me>
<ba275936-1cc8-4dc5-9816-00a26666cb97n@googlegroups.com>
<50d8a40c-d669-4a4a-b4f2-b955d4307543n@googlegroups.com>
<ubfl04$2plvs$2@dont-email.me>
<9fd8ad3b-91e5-4811-9dee-a3fc566aac98n@googlegroups.com>
<ubfq8q$2qj2l$1@dont-email.me>
<bf426999-6c27-465a-a7ff-4f383b8e926fn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 16 Aug 2023 00:20:02 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="17f8aedb09110eed4ec1c7adfd187d70";
logging-data="3180690"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX194ZxWlqeBpVCSPPunFd8IBz8ZC1TE1x4s="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:ZvC3p0HChN5ekG3BvVlqQqUqiKg=
In-Reply-To: <bf426999-6c27-465a-a7ff-4f383b8e926fn@googlegroups.com>
 by: Bart - Wed, 16 Aug 2023 00:20 UTC

On 15/08/2023 14:22, Malcolm McLean wrote:
> On Tuesday, 15 August 2023 at 13:15:38 UTC+1, Bart wrote:
>> On 15/08/2023 11:53, Malcolm McLean wrote:
>>> On Tuesday, 15 August 2023 at 11:45:39 UTC+1, Bart wrote:
>>
>>>> I downloaded CMake to build Malcolm's project. I followed the
>>>> instructions and it didn't work.
>>>>
>>>> So, what do you want ME to do about that? Say that it is great anyway? I
>>>> say what I see.
>>>>
>>>> This project can be built trivially using:
>>>>
>>>> gcc *.c freetype\*.c samplerate\*.c
>>>>
>>>> So What Is The Point of using a heavyweight product like CMake? Try
>>>> selling THAT to me!
>>>>
>>> Well I'm the person responsible for that failure.
>>> Thank you very much for finding out that the instructions didn't work. I'm very close
>>> to packaging everything up into a release, and I don't want to release it with
>>> instructions that don't work.
>> My comment was a compliment not a criticism!
>>
>> Yes, there was implied criticism of CMake, but it was only highlighting
>> that having a complex dependency brings extra ways to fail.
>>
> Of course. So what went wrong?

I posted the results. But can't find that post (it was in that very long
thread), and I no longer have CMake.

But the gist of the main error was that it couldn't open 'nmake'. (There
were other things about something being deprecated.)

I don't know whether it expects that utility to be present, or why it
needs it, since the cmakelists.txt file didn't mention it.

If it is that, try hiding/renaming 'nmake' on your system (check by
typing 'nmake') to try and force the error.

Re: Build Systems

<20230815181254.731@kylheku.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=27741&group=comp.lang.c#27741

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 864-117-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.c
Subject: Re: Build Systems
Date: Wed, 16 Aug 2023 01:39:38 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 83
Message-ID: <20230815181254.731@kylheku.com>
References: <uban99$1rnpb$1@dont-email.me> <87ttt2isc8.fsf@bsb.me.uk>
<ubd8t6$2b62u$1@dont-email.me> <ubdbtc$2bl3l$1@dont-email.me>
<12sCM.59051$m8Ke.22097@fx08.iad> <ubdmk4$2dao7$1@dont-email.me>
<ubfeqj$2oop4$1@dont-email.me> <ubfknf$2plvs$1@dont-email.me>
<ubfu4d$2r98d$1@dont-email.me> <ubg4jr$2se4o$1@dont-email.me>
<ubg7ku$2srfk$1@dont-email.me> <ubgdr5$2tro0$1@dont-email.me>
<ubgpip$2vk5e$1@dont-email.me> <ubgulr$3095n$1@dont-email.me>
<87pm3nlxuu.fsf@nosuchdomain.example.com> <ubh3s8$30v7t$1@dont-email.me>
Injection-Date: Wed, 16 Aug 2023 01:39:38 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d89b22cba778372e2da36441b02fe0e1";
logging-data="3253545"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ycfm+eOtNGh24AnBVvKA2TUiPDMzUB2k="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:wGFXCGQWGAUTH7o+IFWKE+AWxOg=
 by: Kaz Kylheku - Wed, 16 Aug 2023 01:39 UTC

On 2023-08-16, Bart <bc@freeuk.com> wrote:
> On 15/08/2023 23:55, Keith Thompson wrote:
>> Bart <bc@freeuk.com> writes:
>>> On 15/08/2023 22:09, David Brown wrote:
>>>> On 15/08/2023 19:49, Bart wrote:
>>>>> You know, one thing is going 100% certain in this thread: you are
>>>>> never for one minute going to admit that I'm right in there being
>>>>> something wrong with those Github ZIPs.
>>>>>
>>>>> You didn't see the problem because you either obtained the source
>>>>> bundle elsewhere, or would have used only the .tar.gz version.
>>>>>
>>>>
>>>> Look, I have no idea if these are the same or different. I don't know,
>>>> and don't care. The only reason I was at the lua website at all was
>>>> because /you/ picked it as something that "proves" that make never works
>>>> on Windows. I went to the lua website, followed the instructions on how
>>>> to build lua on Windows, and it worked - using "make". /You/ did not
>>>> not follow the instructions,
>>>
>>> I downloaded an open source project like I've done a hundred others:
>>> from Github. It's usually expected to have everything needed to build
>>> the project, except for the actual tools.
>>
>> And now you've learned that the "release" .tar.gz and .zip files
>> provided by GitHub are just snapshots of the git repo. Official source
>> releases are often generated from the git repo, with things like
>> documentation and configure scripts generated by the maintainers of the
>> project. Whether you can easily build something from a GitHub release
>> file depends on the project.
>>
>> I suspect you resorted to the GitHub "release" files because lua.org
>> doesn't provide a zip file.
>>
>> It's an understandable error -- and it gave you an excuse to complain
>> and insult people.
>
> But it's not understood by David Brown, and it gave him an excuse to
> insult /me/.
>
> In his book, it's impossible for anything to go wrong, so if I can't get
> something to work, it HAS to be my fault. It can NEVER be the extra
> opportunities for error that complex makefiles provide, or even simple ones.
>
> No docs are too obscure or misleading (like lumping the 'mingw'
> parameter needed for Windows under Unix-like systems)
>
> And if can't make something work under ordinary Windows, my mistake is
> not using Linux-like layers to keep the build process happy.

The main C cross-platform problem between POSIX and Windows isn't
building, but the platforms being vastly different.

One way to port POSIX programs to Windows is to have a run-time
environment that has the needed POSIX support.

The projects which provide that tend to have the build environment also,
and of course that also helps.

If the library functions were there, but no build environment with make and
shell, that would be inconvenient. But less inconvenient than the
reverse: having the build environment, but crap POSIX libraries (situation with
all versions of MinGW).

I use Cygwin for building the Windows version of the TXR language.

For the run-time, I created a project which forks the Cygwin run-time.
I made some key alterations in the CYGWIN1.DLL to claw back some
of the ways in which the middleware emulates POSIX a little bit too
far.

The project is here:

https://www.kylheku.com/cygnal/

Cygnal makes it as easy as "humanly possible" to port your
Unix and Linux programs to Windows, and ship them to the users
such that the programs exhibit native-like conventions.

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

Re: Build Systems

<ubi4id$38esc$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=27750&group=comp.lang.c#27750

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: Build Systems
Date: Wed, 16 Aug 2023 11:23:25 +0200
Organization: A noiseless patient Spider
Lines: 114
Message-ID: <ubi4id$38esc$1@dont-email.me>
References: <uban99$1rnpb$1@dont-email.me> <87ttt2isc8.fsf@bsb.me.uk>
<ubd8t6$2b62u$1@dont-email.me> <ubdbtc$2bl3l$1@dont-email.me>
<12sCM.59051$m8Ke.22097@fx08.iad> <ubdmk4$2dao7$1@dont-email.me>
<ubfeqj$2oop4$1@dont-email.me> <ubfknf$2plvs$1@dont-email.me>
<ubfu4d$2r98d$1@dont-email.me> <ubg4jr$2se4o$1@dont-email.me>
<ubg7ku$2srfk$1@dont-email.me> <ubgdr5$2tro0$1@dont-email.me>
<ubgpip$2vk5e$1@dont-email.me> <ubgulr$3095n$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 16 Aug 2023 09:23:25 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="31f88dcb6b6bb39d1a90cf8e0c2a62fe";
logging-data="3423116"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19TiaiwYkcObOrnbaf8TQo1gx8PXf4mnp0="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.9.0
Cancel-Lock: sha1:e6spvwEBpbWLxlSV3IkZwSGkqlU=
Content-Language: en-GB
In-Reply-To: <ubgulr$3095n$1@dont-email.me>
 by: David Brown - Wed, 16 Aug 2023 09:23 UTC

On 16/08/2023 00:36, Bart wrote:
>
> On 15/08/2023 22:09, David Brown wrote:
> > On 15/08/2023 19:49, Bart wrote:
> >
> >> You know, one thing is going 100% certain in this thread: you are
> >> never for one minute going to admit that I'm right in there being
> >> something wrong with those Github ZIPs.
> >>
> >> You didn't see the problem because you either obtained the source
> >> bundle elsewhere, or would have used only the .tar.gz version.
> >>
> >
> > Look, I have no idea if these are the same or different.  I don't know,
> > and don't care.  The only reason I was at the lua website at all was
> > because /you/ picked it as something that "proves" that make never works
> > on Windows.  I went to the lua website, followed the instructions on how
> > to build lua on Windows, and it worked - using "make".  /You/ did not
> > not follow the instructions,
>
> I downloaded an open source project like I've done a hundred others:
> from Github. It's usually expected to have everything needed to build
> the project, except for the actual tools.
>
> > and you got in trouble.  No doubt you'd
> > have got in trouble even if you did follow the instructions, because you
> > are always so determined to have everything fail.
>
> You don't see the failures because most open source software is
> developed for Unix-like OSes, so build systems are well-tested because
> so many will be using that and will have reported failures.
>

I use both Windows and Linux. I aim to use the system that is the best
choice for the task in hand, though of course many things can be done
equally on both. Like most people, I use the software I find most
convenient and most appropriate for the things I want to do and the way
I want to work. I have "msys2" on my Windows system - it is not
"cheating", or "not proper Windows", or "hiding" - it is a package made
for Windows that provides tools that some people find useful. Nothing
more, nothing less. Similarly, I have "wine" installed on my Linux
systems so that I can run Windows programs there - that is not cheating,
or "not proper Linux".

And when people want to install software to use on Windows or Linux, how
many want to compile the software from source in order to use the
software (as distinct from modify it or copy parts of it)? I'd guess
that for Linux, the figure is less than 0.1% of users - and for Windows,
0.01% or fewer. Virtually everyone wanting Lua on Windows will download
a binary installer. Virtually everyone wanting Lua on Linux will use
their package manager - "yum install lua", "apt-get install lua", or
whatever gui they like for their particular distribution. Even people
using source-based Linux distributions like Gentoo will not see that the
source code is downloaded and compiled on their system.

Building projects from source code is not always easy, and often does
not have detailed information about requirements, because it is not
something many people do, and those who do it, are usually experienced
developers. Github source code is for developers, not users, and it is
expected that people are seriously interested in the project and willing
to spend time reading documentation and learning about it. People go to
the lua github page because they are interested in lua development -
maybe adding extensions, or reporting issues, or looking at integrating
it as a scripting language in their own code. The contributors to the
github site are interested in enhancing and improving the lua compiler,
interpreter, runtime and libraries - they are not going to waste their
time writing idiot's guide to compiling on Windows. And they are not
interested in people who want to build the software just so that they
can say it compiled - they are interested in people who want to /use/
the software.

You appear to be under a misconception that the world revolves around
/you/, that everyone else should go out of their way to make life as
simple as possible for you and your peculiar and unique needs, and that
those who do not, are personally attacking you. I suspect you still
don't understand how unusual your position is - no matter how often you
find yourself at odds with everyone else in discussion threads.

> In addition, even for software that runs on Windows, you hide behind a
> wall of Linux utilities; using MSYS2 or WSL.
>
> So really, it's not surprising that everything works for you with hardly
> needing to lift a finger.

I try to make things work. /You/ try to make things fail. We both succeed.

>
> >> You know, I don't believe you actually know how to do this under plain
> >> Windows! Otherwise you would have done so; you must know that's what I
> >> use.)
> >>
> >
> > By /my/ ruling, any system with "bcc" or "tcc" is not plain Windows.
> > Therefore you failed.
>
> Huh? Those are compilers. You need a C compiler to turn .c files into
> .exe files. You don't need that other crap.
>

It's exactly the same - tools for the job.

>
> >> So, what have /you/ achieved?
> >>
> >
> > I did exactly what you claimed was impossible
>
> I said when I tried it, it failed.

No, /you/ failed to use "make". So really, you succeeded, since failure
was your goal. Well done.

Re: Build Systems

<7fb8d5b6-4172-4bf8-a3e9-858d02b5e193n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=27751&group=comp.lang.c#27751

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:ae9:df02:0:b0:767:2891:eb97 with SMTP id t2-20020ae9df02000000b007672891eb97mr10481qkf.6.1692178490769;
Wed, 16 Aug 2023 02:34:50 -0700 (PDT)
X-Received: by 2002:a17:902:d4c6:b0:1bc:8249:2547 with SMTP id
o6-20020a170902d4c600b001bc82492547mr443904plg.12.1692178490415; Wed, 16 Aug
2023 02:34:50 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Wed, 16 Aug 2023 02:34:49 -0700 (PDT)
In-Reply-To: <ubi4id$38esc$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23a8:400a:5601:a6:dd70:dbcb:58c;
posting-account=Dz2zqgkAAADlK5MFu78bw3ab-BRFV4Qn
NNTP-Posting-Host: 2a00:23a8:400a:5601:a6:dd70:dbcb:58c
References: <uban99$1rnpb$1@dont-email.me> <87ttt2isc8.fsf@bsb.me.uk>
<ubd8t6$2b62u$1@dont-email.me> <ubdbtc$2bl3l$1@dont-email.me>
<12sCM.59051$m8Ke.22097@fx08.iad> <ubdmk4$2dao7$1@dont-email.me>
<ubfeqj$2oop4$1@dont-email.me> <ubfknf$2plvs$1@dont-email.me>
<ubfu4d$2r98d$1@dont-email.me> <ubg4jr$2se4o$1@dont-email.me>
<ubg7ku$2srfk$1@dont-email.me> <ubgdr5$2tro0$1@dont-email.me>
<ubgpip$2vk5e$1@dont-email.me> <ubgulr$3095n$1@dont-email.me> <ubi4id$38esc$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <7fb8d5b6-4172-4bf8-a3e9-858d02b5e193n@googlegroups.com>
Subject: Re: Build Systems
From: malcolm....@gmail.com (Malcolm McLean)
Injection-Date: Wed, 16 Aug 2023 09:34:50 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 3956
 by: Malcolm McLean - Wed, 16 Aug 2023 09:34 UTC

On Wednesday, 16 August 2023 at 10:23:40 UTC+1, David Brown wrote:
>
> And when people want to install software to use on Windows or Linux, how
> many want to compile the software from source in order to use the
> software (as distinct from modify it or copy parts of it)? I'd guess
> that for Linux, the figure is less than 0.1% of users - and for Windows,
> 0.01% or fewer. Virtually everyone wanting Lua on Windows will download
> a binary installer. Virtually everyone wanting Lua on Linux will use
> their package manager - "yum install lua", "apt-get install lua", or
> whatever gui they like for their particular distribution. Even people
> using source-based Linux distributions like Gentoo will not see that the
> source code is downloaded and compiled on their system.
>
> Building projects from source code is not always easy, and often does
> not have detailed information about requirements, because it is not
> something many people do, and those who do it, are usually experienced
> developers. Github source code is for developers, not users, and it is
> expected that people are seriously interested in the project and willing
> to spend time reading documentation and learning about it. People go to
> the lua github page because they are interested in lua development -
> maybe adding extensions, or reporting issues, or looking at integrating
> it as a scripting language in their own code. The contributors to the
> github site are interested in enhancing and improving the lua compiler,
> interpreter, runtime and libraries - they are not going to waste their
> time writing idiot's guide to compiling on Windows. And they are not
> interested in people who want to build the software just so that they
> can say it compiled - they are interested in people who want to /use/
> the software.
>
My understanding of Lua is that, whilst it can be used as a standalone
language, it's really meant for adding scripting to applications. If you're
writing the game level editor then of course the programmer works
closely with the users, and it's acceptable to have the level editor
call a binary executable. But if you want scripting in the game itself then
you have to include the Lua source code.

S yes, users rather than developers of Lua itself have to be able to
incorporate it into a project and compile it easily.

Re: Build Systems

<ubi5do$38ii5$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=27752&group=comp.lang.c#27752

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: Build Systems
Date: Wed, 16 Aug 2023 11:37:59 +0200
Organization: A noiseless patient Spider
Lines: 92
Message-ID: <ubi5do$38ii5$1@dont-email.me>
References: <uban99$1rnpb$1@dont-email.me> <87ttt2isc8.fsf@bsb.me.uk>
<ubd8t6$2b62u$1@dont-email.me> <ubdbtc$2bl3l$1@dont-email.me>
<12sCM.59051$m8Ke.22097@fx08.iad> <ubdmk4$2dao7$1@dont-email.me>
<ubfeqj$2oop4$1@dont-email.me> <ubfknf$2plvs$1@dont-email.me>
<ubfu4d$2r98d$1@dont-email.me> <ubg4jr$2se4o$1@dont-email.me>
<ubg7ku$2srfk$1@dont-email.me> <ubgdr5$2tro0$1@dont-email.me>
<ubgpip$2vk5e$1@dont-email.me> <ubgulr$3095n$1@dont-email.me>
<87pm3nlxuu.fsf@nosuchdomain.example.com> <ubh3s8$30v7t$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 16 Aug 2023 09:38:00 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="31f88dcb6b6bb39d1a90cf8e0c2a62fe";
logging-data="3426885"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18mOmILV+zFpG/VUExbTWg3J7q5SeItpBU="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.9.0
Cancel-Lock: sha1:vJd9QHkyA9u2JB4RWzkQXkwSHd4=
In-Reply-To: <ubh3s8$30v7t$1@dont-email.me>
Content-Language: en-GB
 by: David Brown - Wed, 16 Aug 2023 09:37 UTC

On 16/08/2023 02:05, Bart wrote:
> On 15/08/2023 23:55, Keith Thompson wrote:
>> Bart <bc@freeuk.com> writes:
>>> On 15/08/2023 22:09, David Brown wrote:
>>>> On 15/08/2023 19:49, Bart wrote:
>>>>> You know, one thing is going 100% certain in this thread: you are
>>>>> never for one minute going to admit that I'm right in there being
>>>>> something wrong with those Github ZIPs.
>>>>>
>>>>> You didn't see the problem because you either obtained the source
>>>>> bundle elsewhere, or would have used only the .tar.gz version.
>>>>>
>>>>
>>>> Look, I have no idea if these are the same or different.  I don't know,
>>>> and don't care.  The only reason I was at the lua website at all was
>>>> because /you/ picked it as something that "proves" that make never
>>>> works
>>>> on Windows.  I went to the lua website, followed the instructions on
>>>> how
>>>> to build lua on Windows, and it worked - using "make".  /You/ did not
>>>> not follow the instructions,
>>>
>>> I downloaded an open source project like I've done a hundred others:
>>> from Github. It's usually expected to have everything needed to build
>>> the project, except for the actual tools.
>>
>> And now you've learned that the "release" .tar.gz and .zip files
>> provided by GitHub are just snapshots of the git repo.  Official source
>> releases are often generated from the git repo, with things like
>> documentation and configure scripts generated by the maintainers of the
>> project.  Whether you can easily build something from a GitHub release
>> file depends on the project.
>>
>> I suspect you resorted to the GitHub "release" files because lua.org
>> doesn't provide a zip file.
>>
>> It's an understandable error -- and it gave you an excuse to complain
>> and insult people.
>

Actually, I am not sure it is an understandable error for Bart. In one
sense, Bart does not understand his error. In another sense, he is
familiar with github - he most certainly should know that it is for
development, and that code found there is often in flux, while released
versions from the project website will be more tested and more
appropriate for general use. And it is not understandable that he is
scared of tarballs.

> But it's not understood by David Brown, and it gave him an excuse to
> insult /me/.
>
> In his book, it's impossible for anything to go wrong, so if I can't get
> something to work, it HAS to be my fault. It can NEVER be the extra
> opportunities for error that complex makefiles provide, or even simple
> ones.

Oh, many things can go wrong. And it is quite possible for things to go
wrong that are /not/ your fault. But when you claim you're giving
things a fair test, yet fail to follow the simplest and most basic
instructions (despite being helped with pointers), that's not a fair
test. That is a determined intention to fail. (You are far too smart
and experienced to use inability or ignorance as an excuse.)

>
> No docs are too obscure or misleading (like lumping the 'mingw'
> parameter needed for Windows under Unix-like systems)
>
> And if can't make something work under ordinary Windows, my mistake is
> not using Linux-like layers to keep the build process happy.
>
> If even he has trouble pinning something on me (maybe somebody else
> encountered the problem!) then of course it's because Windows is rubbish.
>
> So, basically, I cannot win.
>

You can't win until you decide to try to listen, learn, experiment, and
progress as a developer. As long as your goal is to convince yourself
that the entire software world, other than yourself, is wrong, and all
tools other than your home-made systems are useless, unworkable and
unnecessary, then no - you cannot win.

No one is asking you to like C, gcc, make, Linux, or any other of your
pet hates. But it would be nice if you stopped spreading shite about them.

Maybe try asking "How can I do XXX in C?" rather than "I can't/won't do
XXX in C, therefore it is an unusable disaster and my own language is
pure genius". Wouldn't that make a nice change, and make threads a bit
more friendly and useful?

Re: Build Systems

<ubi9da$394g8$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=27755&group=comp.lang.c#27755

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: Build Systems
Date: Wed, 16 Aug 2023 12:46:01 +0200
Organization: A noiseless patient Spider
Lines: 105
Message-ID: <ubi9da$394g8$1@dont-email.me>
References: <uban99$1rnpb$1@dont-email.me> <87ttt2isc8.fsf@bsb.me.uk>
<ubd8t6$2b62u$1@dont-email.me> <ubdbtc$2bl3l$1@dont-email.me>
<12sCM.59051$m8Ke.22097@fx08.iad> <ubdmk4$2dao7$1@dont-email.me>
<ubfeqj$2oop4$1@dont-email.me> <ubfknf$2plvs$1@dont-email.me>
<ubfu4d$2r98d$1@dont-email.me> <ubg4jr$2se4o$1@dont-email.me>
<87350km6hh.fsf@nosuchdomain.example.com> <ubgnl4$2v6ih$1@dont-email.me>
<87ttt0koa5.fsf@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 16 Aug 2023 10:46:02 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="31f88dcb6b6bb39d1a90cf8e0c2a62fe";
logging-data="3445256"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/7piMiNiIZblWxpDe+AJRXr8vt/ku9N/k="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.9.0
Cancel-Lock: sha1:/pjTE/2bc30GOOd7vATv9tI060w=
In-Reply-To: <87ttt0koa5.fsf@nosuchdomain.example.com>
Content-Language: en-GB
 by: David Brown - Wed, 16 Aug 2023 10:46 UTC

On 15/08/2023 23:07, Keith Thompson wrote:
> Bart <bc@freeuk.com> writes:
>> On 15/08/2023 20:48, Keith Thompson wrote:
>>> Bart <bc@freeuk.com> writes:
>>> [...]
>>>> My recent post goes into this in more detail. But, I've believe the
>>>> ZIP files from the Github Lua repository are incorrect.
>>> You're right.
>>> The GitHub repo for Lua is
>>> https://github.com/lua/lua
>>> It includes (not as part of the repo itself) a number of releases,
>>> including:
>>> https://github.com/lua/lua/archive/refs/tags/v5.4.6.zip
>>> https://github.com/lua/lua/archive/refs/tags/v5.4.6.tar.gz
>>> The lua.org site provides a tarball:
>>> https://www.lua.org/ftp/lua-5.4.6.tar.gz
>>> I don't see any zip files on lua.org.
>>> The zipfile and tarball from the GitHub release match each other,
>>> but do
>>> not match the tarball from lua.org.
>>
>> OK, that one was my mistake then. But it means they're both wrong. And
>> if that Mr. DB had downloaded the source code from the Github, then
>> the make instructions he saw on lua.org would not have worked because
>> of a missing makefile.
>>
>>>> So, whose fault is that?
>>> I have no idea, but I hardly think comp.lang.c is the place to
>>> complain
>>> about it.
>>
>> What I'm complaining about is being falsely (and I believe
>> maliciously) accused of incompetence:
>
> You're far too quick to assume malice.
>
>> BC:
>>>> So, whose fault is that?
>>>
>> DB:
>>> Yours - you did not read the build instructions, but ploughed on with
>>> your own guesswork and got into trouble.
>
> I won't attempt to speak for DB, but I doubt that it occurred to him
> that the release files on GitHub differ so substantially from the
> .tar.gz files on lua.org.

It did not surprise me at all that they are different - github is
primarily for development, not standard tested releases. If you want to
download a proper release for a project, you go to the project website,
and follow the pointers there. (For some projects, the github pages and
readme.md /is/ the main website - but that is clearly not the case here.)

However, it did surprise me that the GitHub repository is /so/ different
from the released tarballs from the main site. The directory structures
are different, and the makefiles are significantly different - in the
release tarballs, they are aimed at configuring and installing (thus
having things like platform selection options), while in the GitHub they
are aimed at development (so lots of warning flags). The actual source
files seem the same.

>
>> That doesn't bother you I guess. Although this won't stop DB, who will
>> claim that of course I should have known that different kinds of
>> source 'tarballs' exist for the version of product, and only some of
>> them will work with the given build instructions.
>>
>> Although I did mention Github regarding Lua two days ago; you'd think
>> someone would have told me that was the wrong site to download source
>> code from, if it's so bleeding obvious.
>
> It's not obvious, and nobody has said that it is. I would have assumed
> that the release .tar.gz file from GitHub was similar to the .tar.gz
> file from lua.org until I checked.

Note, however, that people /did/ tell Bart to look at the build
instructions on the Lua site (including suggesting looking at the
"Detailed instructions").

And in the GitHub page, there is an "About" that says "The Lua
development repository, as seen by the Lua team. Mirrored irregularly."
There's a link to the project site.

>
>> As for who is at fault; I'd suggest:
>>
>> (1) The github site for not mentioning anything about it at all, like:
>> 'download the proper tarball from lua.org' if you want to build
>> it. (Why isn't that top layer present anyway?)
>
> GitHub release files are just packaged copies of the files in the repo.
> The release tarball from lua.org is built from that. For example, the
> GitHub repo includes documentation in what appears to be a
> project-specific format; the lua.org release includes generated man
> pages and html files.
>
> The README.md file says: "Download official Lua releases from Lua.org.".
>
> Yes, the presence of the "release" files on GitHub is misleading. Now
> that we've established that, can we stop complaining about it here?
>
> [...]
>

Re: Build Systems

<ubi9pf$394g8$2@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=27756&group=comp.lang.c#27756

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: Build Systems
Date: Wed, 16 Aug 2023 12:52:31 +0200
Organization: A noiseless patient Spider
Lines: 62
Message-ID: <ubi9pf$394g8$2@dont-email.me>
References: <uban99$1rnpb$1@dont-email.me> <87ttt2isc8.fsf@bsb.me.uk>
<ubd8t6$2b62u$1@dont-email.me> <ubdbtc$2bl3l$1@dont-email.me>
<12sCM.59051$m8Ke.22097@fx08.iad> <ubdmk4$2dao7$1@dont-email.me>
<ubfeqj$2oop4$1@dont-email.me> <ubfknf$2plvs$1@dont-email.me>
<ubfu4d$2r98d$1@dont-email.me> <ubg4jr$2se4o$1@dont-email.me>
<ubg7ku$2srfk$1@dont-email.me> <ubgdr5$2tro0$1@dont-email.me>
<ubgpip$2vk5e$1@dont-email.me> <ubgulr$3095n$1@dont-email.me>
<ubi4id$38esc$1@dont-email.me>
<7fb8d5b6-4172-4bf8-a3e9-858d02b5e193n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 16 Aug 2023 10:52:31 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="31f88dcb6b6bb39d1a90cf8e0c2a62fe";
logging-data="3445256"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/+Nfdi6qZNbZSXLc0NpttF0HQ5wlwXxkc="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.9.0
Cancel-Lock: sha1:PvP/JXxbXH0FuI3Vv7ltNkT7Qpo=
In-Reply-To: <7fb8d5b6-4172-4bf8-a3e9-858d02b5e193n@googlegroups.com>
Content-Language: en-GB
 by: David Brown - Wed, 16 Aug 2023 10:52 UTC

On 16/08/2023 11:34, Malcolm McLean wrote:
> On Wednesday, 16 August 2023 at 10:23:40 UTC+1, David Brown wrote:
>>
>> And when people want to install software to use on Windows or Linux, how
>> many want to compile the software from source in order to use the
>> software (as distinct from modify it or copy parts of it)? I'd guess
>> that for Linux, the figure is less than 0.1% of users - and for Windows,
>> 0.01% or fewer. Virtually everyone wanting Lua on Windows will download
>> a binary installer. Virtually everyone wanting Lua on Linux will use
>> their package manager - "yum install lua", "apt-get install lua", or
>> whatever gui they like for their particular distribution. Even people
>> using source-based Linux distributions like Gentoo will not see that the
>> source code is downloaded and compiled on their system.
>>
>> Building projects from source code is not always easy, and often does
>> not have detailed information about requirements, because it is not
>> something many people do, and those who do it, are usually experienced
>> developers. Github source code is for developers, not users, and it is
>> expected that people are seriously interested in the project and willing
>> to spend time reading documentation and learning about it. People go to
>> the lua github page because they are interested in lua development -
>> maybe adding extensions, or reporting issues, or looking at integrating
>> it as a scripting language in their own code. The contributors to the
>> github site are interested in enhancing and improving the lua compiler,
>> interpreter, runtime and libraries - they are not going to waste their
>> time writing idiot's guide to compiling on Windows. And they are not
>> interested in people who want to build the software just so that they
>> can say it compiled - they are interested in people who want to /use/
>> the software.
>>
> My understanding of Lua is that, whilst it can be used as a standalone
> language, it's really meant for adding scripting to applications.

Certainly embedding it within other applications is a major purpose of
the language, yes. It is becoming more mature as a stand-alone
language, with more libraries, but it is very popular for adding to
other programs. As you say, Lua is a common choice for scripting in
games. I used it myself as a scripting language in an embedded program,
many moons ago.

> If you're
> writing the game level editor then of course the programmer works
> closely with the users, and it's acceptable to have the level editor
> call a binary executable. But if you want scripting in the game itself then
> you have to include the Lua source code.
>
> S yes, users rather than developers of Lua itself have to be able to
> incorporate it into a project and compile it easily.
>

Sure. But if you want to do that, you read the relevant sections of the
manual and see which files you need, which options you want, what
configuration you want, and how you should combine it with your own
code. You need to know how to integrate Lua with your code - how your
application will start the Lua runtime or call Lua code, how the Lua
code will call /your/ functions (in C or whatever), how to wrap your
functions, variables, classes, etc., into Lua tables and functions.
There is a lot involved here - it's not a "download and compile" task.
But then, you wouldn't be doing this unless you actually wanted to use
Lua in your program and are willing to invest the effort to do so.

Re: Build Systems

<84cdb234-a021-414c-b0eb-4dc6c3898153n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=27757&group=comp.lang.c#27757

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:ac8:7f8f:0:b0:3ff:3013:d2b0 with SMTP id z15-20020ac87f8f000000b003ff3013d2b0mr12894qtj.0.1692183367214;
Wed, 16 Aug 2023 03:56:07 -0700 (PDT)
X-Received: by 2002:a63:7f46:0:b0:564:2c32:360a with SMTP id
p6-20020a637f46000000b005642c32360amr331143pgn.12.1692183366733; Wed, 16 Aug
2023 03:56:06 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Wed, 16 Aug 2023 03:56:06 -0700 (PDT)
In-Reply-To: <ubi9pf$394g8$2@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23a8:400a:5601:a6:dd70:dbcb:58c;
posting-account=Dz2zqgkAAADlK5MFu78bw3ab-BRFV4Qn
NNTP-Posting-Host: 2a00:23a8:400a:5601:a6:dd70:dbcb:58c
References: <uban99$1rnpb$1@dont-email.me> <87ttt2isc8.fsf@bsb.me.uk>
<ubd8t6$2b62u$1@dont-email.me> <ubdbtc$2bl3l$1@dont-email.me>
<12sCM.59051$m8Ke.22097@fx08.iad> <ubdmk4$2dao7$1@dont-email.me>
<ubfeqj$2oop4$1@dont-email.me> <ubfknf$2plvs$1@dont-email.me>
<ubfu4d$2r98d$1@dont-email.me> <ubg4jr$2se4o$1@dont-email.me>
<ubg7ku$2srfk$1@dont-email.me> <ubgdr5$2tro0$1@dont-email.me>
<ubgpip$2vk5e$1@dont-email.me> <ubgulr$3095n$1@dont-email.me>
<ubi4id$38esc$1@dont-email.me> <7fb8d5b6-4172-4bf8-a3e9-858d02b5e193n@googlegroups.com>
<ubi9pf$394g8$2@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <84cdb234-a021-414c-b0eb-4dc6c3898153n@googlegroups.com>
Subject: Re: Build Systems
From: malcolm....@gmail.com (Malcolm McLean)
Injection-Date: Wed, 16 Aug 2023 10:56:07 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 5631
 by: Malcolm McLean - Wed, 16 Aug 2023 10:56 UTC

On Wednesday, 16 August 2023 at 11:52:46 UTC+1, David Brown wrote:
> On 16/08/2023 11:34, Malcolm McLean wrote:
> > On Wednesday, 16 August 2023 at 10:23:40 UTC+1, David Brown wrote:
> >>
> >> And when people want to install software to use on Windows or Linux, how
> >> many want to compile the software from source in order to use the
> >> software (as distinct from modify it or copy parts of it)? I'd guess
> >> that for Linux, the figure is less than 0.1% of users - and for Windows,
> >> 0.01% or fewer. Virtually everyone wanting Lua on Windows will download
> >> a binary installer. Virtually everyone wanting Lua on Linux will use
> >> their package manager - "yum install lua", "apt-get install lua", or
> >> whatever gui they like for their particular distribution. Even people
> >> using source-based Linux distributions like Gentoo will not see that the
> >> source code is downloaded and compiled on their system.
> >>
> >> Building projects from source code is not always easy, and often does
> >> not have detailed information about requirements, because it is not
> >> something many people do, and those who do it, are usually experienced
> >> developers. Github source code is for developers, not users, and it is
> >> expected that people are seriously interested in the project and willing
> >> to spend time reading documentation and learning about it. People go to
> >> the lua github page because they are interested in lua development -
> >> maybe adding extensions, or reporting issues, or looking at integrating
> >> it as a scripting language in their own code. The contributors to the
> >> github site are interested in enhancing and improving the lua compiler,
> >> interpreter, runtime and libraries - they are not going to waste their
> >> time writing idiot's guide to compiling on Windows. And they are not
> >> interested in people who want to build the software just so that they
> >> can say it compiled - they are interested in people who want to /use/
> >> the software.
> >>
> > My understanding of Lua is that, whilst it can be used as a standalone
> > language, it's really meant for adding scripting to applications.
> Certainly embedding it within other applications is a major purpose of
> the language, yes. It is becoming more mature as a stand-alone
> language, with more libraries, but it is very popular for adding to
> other programs. As you say, Lua is a common choice for scripting in
> games. I used it myself as a scripting language in an embedded program,
> many moons ago.
> > If you're
> > writing the game level editor then of course the programmer works
> > closely with the users, and it's acceptable to have the level editor
> > call a binary executable. But if you want scripting in the game itself then
> > you have to include the Lua source code.
> >
> > S yes, users rather than developers of Lua itself have to be able to
> > incorporate it into a project and compile it easily.
> >
> Sure. But if you want to do that, you read the relevant sections of the
> manual and see which files you need, which options you want, what
> configuration you want, and how you should combine it with your own
> code. You need to know how to integrate Lua with your code - how your
> application will start the Lua runtime or call Lua code, how the Lua
> code will call /your/ functions (in C or whatever), how to wrap your
> functions, variables, classes, etc., into Lua tables and functions.
> There is a lot involved here - it's not a "download and compile" task.
> But then, you wouldn't be doing this unless you actually wanted to use
> Lua in your program and are willing to invest the effort to do so.
>
I wonder if it's the answer for the problem of how to specify the output
format of pixels in the Baby X resource compiler?. It's a very heavy-weight
solution. But it would provide the necessary flexibility.

Re: Build Systems

<ubia2v$394g8$3@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=27758&group=comp.lang.c#27758

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: Build Systems
Date: Wed, 16 Aug 2023 12:57:35 +0200
Organization: A noiseless patient Spider
Lines: 56
Message-ID: <ubia2v$394g8$3@dont-email.me>
References: <uban99$1rnpb$1@dont-email.me> <ubd7tj$2b0dl$1@dont-email.me>
<ubdaqs$2bfi7$1@dont-email.me> <ubffa1$2oop4$2@dont-email.me>
<ba275936-1cc8-4dc5-9816-00a26666cb97n@googlegroups.com>
<50d8a40c-d669-4a4a-b4f2-b955d4307543n@googlegroups.com>
<ubfl04$2plvs$2@dont-email.me>
<9fd8ad3b-91e5-4811-9dee-a3fc566aac98n@googlegroups.com>
<ubfq8q$2qj2l$1@dont-email.me>
<bf426999-6c27-465a-a7ff-4f383b8e926fn@googlegroups.com>
<ubh4ni$3124i$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 16 Aug 2023 10:57:35 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="31f88dcb6b6bb39d1a90cf8e0c2a62fe";
logging-data="3445256"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/IQemHLBlu3OG6Bq6o3Fmkigyf2P9p4jI="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.9.0
Cancel-Lock: sha1:i/10WssAncmbwV+yAa2zlv1N1JA=
Content-Language: en-GB
In-Reply-To: <ubh4ni$3124i$1@dont-email.me>
 by: David Brown - Wed, 16 Aug 2023 10:57 UTC

On 16/08/2023 02:20, Bart wrote:
> On 15/08/2023 14:22, Malcolm McLean wrote:
>> On Tuesday, 15 August 2023 at 13:15:38 UTC+1, Bart wrote:
>>> On 15/08/2023 11:53, Malcolm McLean wrote:
>>>> On Tuesday, 15 August 2023 at 11:45:39 UTC+1, Bart wrote:
>>>
>>>>> I downloaded CMake to build Malcolm's project. I followed the
>>>>> instructions and it didn't work.
>>>>>
>>>>> So, what do you want ME to do about that? Say that it is great
>>>>> anyway? I
>>>>> say what I see.
>>>>>
>>>>> This project can be built trivially using:
>>>>>
>>>>> gcc *.c freetype\*.c samplerate\*.c
>>>>>
>>>>> So What Is The Point of using a heavyweight product like CMake? Try
>>>>> selling THAT to me!
>>>>>
>>>> Well I'm the person responsible for that failure.
>>>> Thank you very much for finding out that the instructions didn't
>>>> work. I'm very close
>>>> to packaging everything up into a release, and I don't want to
>>>> release it with
>>>> instructions that don't work.
>>> My comment was a compliment not a criticism!
>>>
>>> Yes, there was implied criticism of CMake, but it was only highlighting
>>> that having a complex dependency brings extra ways to fail.
>>>
>> Of course. So what went wrong?
>
> I posted the results. But can't find that post (it was in that very long
> thread), and I no longer have CMake.
>
> But the gist of the main error was that it couldn't open 'nmake'. (There
> were other things about something being deprecated.)
>
> I don't know whether it expects that utility to be present, or why it
> needs it, since the cmakelists.txt file didn't mention it.
>
> If it is that, try hiding/renaming 'nmake' on your system (check by
> typing 'nmake') to try and force the error.
>

I can't remember the details of your post either (there's been a lot of
activity here recently). But were you attempting to install CMake on
Windows, or to /build/ CMake on Windows? Requiring "nmake" suggests you
were trying to build it - and the CMake website says you need an
existing binary of CMake in order to build CMake on Windows. (Yes, you
read that correctly. Please do not shoot the messenger.) The normal
way to get CMake on Windows, as on any platform, is to download a
pre-built binary.

Re: Build Systems

<ubib54$39aqa$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=27761&group=comp.lang.c#27761

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (Bart)
Newsgroups: comp.lang.c
Subject: Re: Build Systems
Date: Wed, 16 Aug 2023 12:15:49 +0100
Organization: A noiseless patient Spider
Lines: 469
Message-ID: <ubib54$39aqa$1@dont-email.me>
References: <uban99$1rnpb$1@dont-email.me> <87ttt2isc8.fsf@bsb.me.uk>
<ubd8t6$2b62u$1@dont-email.me> <ubdbtc$2bl3l$1@dont-email.me>
<12sCM.59051$m8Ke.22097@fx08.iad> <ubdmk4$2dao7$1@dont-email.me>
<ubfeqj$2oop4$1@dont-email.me> <ubfknf$2plvs$1@dont-email.me>
<ubfu4d$2r98d$1@dont-email.me> <ubg4jr$2se4o$1@dont-email.me>
<ubg7ku$2srfk$1@dont-email.me> <ubgdr5$2tro0$1@dont-email.me>
<ubgpip$2vk5e$1@dont-email.me> <ubgulr$3095n$1@dont-email.me>
<87pm3nlxuu.fsf@nosuchdomain.example.com> <ubh3s8$30v7t$1@dont-email.me>
<ubi5do$38ii5$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 16 Aug 2023 11:15:48 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="17f8aedb09110eed4ec1c7adfd187d70";
logging-data="3451722"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+b/pY/tLy2luu15bHJlnCyRYnMTmAScN4="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:/DbM3KTw+PUl45Y1UBxk5aKZE3A=
In-Reply-To: <ubi5do$38ii5$1@dont-email.me>
 by: Bart - Wed, 16 Aug 2023 11:15 UTC

On 16/08/2023 10:37, David Brown wrote:
> On 16/08/2023 02:05, Bart wrote:
>> But it's not understood by David Brown, and it gave him an excuse to
>> insult /me/.
>>
>> In his book, it's impossible for anything to go wrong, so if I can't
>> get something to work, it HAS to be my fault. It can NEVER be the
>> extra opportunities for error that complex makefiles provide, or even
>> simple ones.
>
> Oh, many things can go wrong. And it is quite possible for things to go
> wrong that are /not/ your fault. But when you claim you're giving
> things a fair test, yet fail to follow the simplest and most basic
> instructions (despite being helped with pointers), that's not a fair
> test.

I like how you tried desperately to make it all my fault. Oh, you should
have known this, should have known that. I bet you were surprised that
that Github repository was incomplete too!

> That is a determined intention to fail. (You are far too smart
> and experienced to use inability or ignorance as an excuse.)

You know, it really doesn't help when every makefile is called
'makefile'. Having specific names would have picked up my issue
instantly, since that particular project used two separate makefiles
both called 'makefile'.

You also know that that is a jolly good idea, but of course will never
admit it in a million years.

> You can't win until you decide to try to listen, learn, experiment, and
> progress as a developer.

You need to work a little more on being patronising.

> As long as your goal is to convince yourself
> that the entire software world, other than yourself, is wrong, and all
> tools other than your home-made systems are useless, unworkable and
> unnecessary, then no - you cannot win.

My battle is against unnecessary complex and bloat.

I like elegance and consistency in a programming language. I also like
that lessons are learned and things are improved.

I don't like elaborate solutions when simpler ones are far better.

I don't like clumsy, slow, error prone processes.

You're right that no one uses my stuff, but so what? You can think of it
as proof of concept that simpler, more elegant and more fool-proof
solutions can work.

Lua as a project is about the same size as many of mine. If written in
my language, the build process to creating lua.exe would be:

mm lua

The same on Linux if mm was ported there. (I have done that, the process
was ./mm lua). To create separate .exe and .dll, it might instead be 'mm
luac && mm -dll lualib'.

You can still use makefiles if you wish; they'd be rather short!

So my solutions are far advanced that the ones you use for C. You're
asking me, a developer, to step back a couple of decades to use obsolete
tools that people have been stuck with the same reasons that they have
to use -lm and get around a.out.

These days I'm more of a developer of languages than apps. And I
concentrate on aspects of language implementations that many ignore,
such as size, compactness, self-containment, speed, usability and
simplicity of the tool itself.

In short, I'm not a conformist.

> No one is asking you to like C, gcc, make, Linux, or any other of your
> pet hates. But it would be nice if you stopped spreading shite about
them.
>
> Maybe try asking "How can I do XXX in C?" rather than "I can't/won't do
> XXX in C, therefore it is an unusable disaster and my own language is
> pure genius". Wouldn't that make a nice change, and make threads a bit
> more friendly and useful?

You can't change the language C. But most of this discussion has been on
aspects that are peripheral to the language, like those I touched on
above. And there things could be done differently.

Of course, you are NEVER going to admit that doing:

mm lua

might be a touch sweeter than those 330 lines of makefile crap below.

You can't do that in C, so there I used a solution what was 33 lines,
exactly 1/10th the size of the combined makefiles.

So, I'm on a hiding to nothing. You will always be convinced that I'm
some deviant that needs to brainwashed into taking the correct path and
having the right subservient attitudes, a bit like the protagonist at
the end of /1984/.

In any case, I'm done. I've deleted all my C compilers and all my C
related projects.

Including mine. But I'm keeping a ZIP in case I want to maintain it as a
test program; it's one of the best I have for my own language. Although
since it is for a C subset, I may develop that aspect, change it some
more, and give that language a different name.

Thank you for making 'C' and its development methods (and the attitudes
of its adherents) so unpalatable that I'm finally able to take that break.

(I'm still available for testing build systems, since I have a knack for
finding problems that seem to slip by everyone else!)

--------------------------------------------------------

# Makefile for installing Lua
# See doc/readme.html for installation and customization instructions.

# == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT
=======================

# Your platform. See PLATS for possible values.
PLAT= guess

# Where to install. The installation starts in the src and doc directories,
# so take care if INSTALL_TOP is not an absolute path. See the local target.
# You may want to make INSTALL_LMOD and INSTALL_CMOD consistent with
# LUA_ROOT, LUA_LDIR, and LUA_CDIR in luaconf.h.
INSTALL_TOP= /usr/local
INSTALL_BIN= $(INSTALL_TOP)/bin
INSTALL_INC= $(INSTALL_TOP)/include
INSTALL_LIB= $(INSTALL_TOP)/lib
INSTALL_MAN= $(INSTALL_TOP)/man/man1
INSTALL_LMOD= $(INSTALL_TOP)/share/lua/$V
INSTALL_CMOD= $(INSTALL_TOP)/lib/lua/$V

# How to install. If your install program does not support "-p", then
# you may have to run ranlib on the installed liblua.a.
INSTALL= install -p
INSTALL_EXEC= $(INSTALL) -m 0755
INSTALL_DATA= $(INSTALL) -m 0644
# # If you don't have "install" you can use "cp" instead.
# INSTALL= cp -p
# INSTALL_EXEC= $(INSTALL)
# INSTALL_DATA= $(INSTALL)

# Other utilities.
MKDIR= mkdir -p
RM= rm -f

# == END OF USER SETTINGS -- NO NEED TO CHANGE ANYTHING BELOW THIS LINE
=======

# Convenience platforms targets.
PLATS= guess aix bsd c89 freebsd generic ios linux linux-readline macosx
mingw posix solaris

# What to install.
TO_BIN= lua luac
TO_INC= lua.h luaconf.h lualib.h lauxlib.h lua.hpp
TO_LIB= liblua.a
TO_MAN= lua.1 luac.1

# Lua version and release.
V= 5.4
R= $V.6

# Targets start here.
all: $(PLAT)

$(PLATS) help test clean:
@cd src && $(MAKE) $@

install: dummy
cd src && $(MKDIR) $(INSTALL_BIN) $(INSTALL_INC) $(INSTALL_LIB)
$(INSTALL_MAN) $(INSTALL_LMOD) $(INSTALL_CMOD)
cd src && $(INSTALL_EXEC) $(TO_BIN) $(INSTALL_BIN)
cd src && $(INSTALL_DATA) $(TO_INC) $(INSTALL_INC)
cd src && $(INSTALL_DATA) $(TO_LIB) $(INSTALL_LIB)
cd doc && $(INSTALL_DATA) $(TO_MAN) $(INSTALL_MAN)

uninstall:
cd src && cd $(INSTALL_BIN) && $(RM) $(TO_BIN)
cd src && cd $(INSTALL_INC) && $(RM) $(TO_INC)
cd src && cd $(INSTALL_LIB) && $(RM) $(TO_LIB)
cd doc && cd $(INSTALL_MAN) && $(RM) $(TO_MAN)

local:
$(MAKE) install INSTALL_TOP=../install

# make may get confused with install/ if it does not support .PHONY.
dummy:

# Echo config parameters.
echo:
@cd src && $(MAKE) -s echo
@echo "PLAT= $(PLAT)"
@echo "V= $V"
@echo "R= $R"
@echo "TO_BIN= $(TO_BIN)"
@echo "TO_INC= $(TO_INC)"
@echo "TO_LIB= $(TO_LIB)"
@echo "TO_MAN= $(TO_MAN)"
@echo "INSTALL_TOP= $(INSTALL_TOP)"
@echo "INSTALL_BIN= $(INSTALL_BIN)"
@echo "INSTALL_INC= $(INSTALL_INC)"
@echo "INSTALL_LIB= $(INSTALL_LIB)"
@echo "INSTALL_MAN= $(INSTALL_MAN)"
@echo "INSTALL_LMOD= $(INSTALL_LMOD)"
@echo "INSTALL_CMOD= $(INSTALL_CMOD)"
@echo "INSTALL_EXEC= $(INSTALL_EXEC)"
@echo "INSTALL_DATA= $(INSTALL_DATA)"

# Echo pkg-config data.
pc:
@echo "version=$R"
@echo "prefix=$(INSTALL_TOP)"
@echo "libdir=$(INSTALL_LIB)"
@echo "includedir=$(INSTALL_INC)"

# Targets that do not create files (not all makes understand .PHONY).
..PHONY: all $(PLATS) help test clean install uninstall local dummy echo pc

# (end of Makefile)
# Makefile for building Lua
# See ../doc/readme.html for installation and customization instructions.

# == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT
=======================

# Your platform. See PLATS for possible values.
PLAT= guess

CC= gcc -std=gnu99
CFLAGS= -O2 -Wall -Wextra -DLUA_COMPAT_5_3 $(SYSCFLAGS) $(MYCFLAGS)
LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS)
LIBS= -lm $(SYSLIBS) $(MYLIBS)


Click here to read the complete article
Re: Build Systems

<ubibbq$39aqa$2@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=27762&group=comp.lang.c#27762

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (Bart)
Newsgroups: comp.lang.c
Subject: Re: Build Systems
Date: Wed, 16 Aug 2023 12:19:23 +0100
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <ubibbq$39aqa$2@dont-email.me>
References: <uban99$1rnpb$1@dont-email.me> <ubd7tj$2b0dl$1@dont-email.me>
<ubdaqs$2bfi7$1@dont-email.me> <ubffa1$2oop4$2@dont-email.me>
<ba275936-1cc8-4dc5-9816-00a26666cb97n@googlegroups.com>
<50d8a40c-d669-4a4a-b4f2-b955d4307543n@googlegroups.com>
<ubfl04$2plvs$2@dont-email.me>
<9fd8ad3b-91e5-4811-9dee-a3fc566aac98n@googlegroups.com>
<ubfq8q$2qj2l$1@dont-email.me>
<bf426999-6c27-465a-a7ff-4f383b8e926fn@googlegroups.com>
<ubh4ni$3124i$1@dont-email.me> <ubia2v$394g8$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 16 Aug 2023 11:19:22 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="17f8aedb09110eed4ec1c7adfd187d70";
logging-data="3451722"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/yyEZ2l51k6LjQD9IzHXNhJfhfewQN1ic="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:NG+wsS6yvh6ICSx5FV/LVDYaWKE=
In-Reply-To: <ubia2v$394g8$3@dont-email.me>
 by: Bart - Wed, 16 Aug 2023 11:19 UTC

On 16/08/2023 11:57, David Brown wrote:
> On 16/08/2023 02:20, Bart wrote:

>> If it is that, try hiding/renaming 'nmake' on your system (check by
>> typing 'nmake') to try and force the error.
>>
>
> I can't remember the details of your post either (there's been a lot of
> activity here recently).  But were you attempting to install CMake on
> Windows, or to /build/ CMake on Windows?  Requiring "nmake" suggests you
> were trying to build it - and the CMake website says you need an
> existing binary of CMake in order to build CMake on Windows.  (Yes, you
> read that correctly.  Please do not shoot the messenger.)  The normal
> way to get CMake on Windows, as on any platform, is to download a
> pre-built binary.
>

CMake was installed, and the path to its main .exe file was in the PATH
variable.

I used Malcolm's instructions to build his project using CMake.


devel / comp.lang.c / Re: Build Systems

Pages:12345678910111213
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor