Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Building GCC?

47 views
Skip to first unread message

Aharon Robbins

unread,
Dec 29, 2020, 1:46:29 PM12/29/20
to
Back in the day, did anyone manage to bootstrap GCC on a Unix PC / 3B1?
I know that I did it, but I don't remember which version I used.

Under the emulator, I am trying to bootstrap GCC 2.95.3 but it fails
at configure time, apparently because there is no gettimeofday function.

I suppose I could cobble one up and fake it into libc, but if there's
a sure-fire recipe that anyone remembers, I'd appreciate hearing it.

Thanks,

Arnold
--
Aharon (Arnold) Robbins arnold AT skeeve DOT com

Peter Schmidt

unread,
Dec 30, 2020, 11:30:46 AM12/30/20
to
There’s a pertinent thread from 1992 that pops up if you search the group for “3B1 gettimeofday gcc”. Short answer is you need your own local copy, and you can swipe it from some widely ported program.

Cheers— Peter

DoN. Nichols

unread,
Dec 31, 2020, 4:34:23 PM12/31/20
to
On 2020-12-29, Aharon Robbins <arn...@skeeve.com> wrote:
> Back in the day, did anyone manage to bootstrap GCC on a Unix PC / 3B1?
> I know that I did it, but I don't remember which version I used.
>
> Under the emulator, I am trying to bootstrap GCC 2.95.3 but it fails
> at configure time, apparently because there is no gettimeofday function.
>
> I suppose I could cobble one up and fake it into libc, but if there's
> a sure-fire recipe that anyone remembers, I'd appreciate hearing it.

Hmmm .... how about the localtime3 library? It is the
implementation of the time zones and DST start/end from 1989.

I have it in the form of seven shar files, ranging in size from
28k to 58k. (Of course, the database part of it needs to be tweaked for
current DST start/stop dates, but it is more likely to compile on the
3B1's standard compiler. I used it for any programs which I compiled on
the 3B1 which cared about time.

Anyway -- it includes a localtime.c as part of it.

I just extracted all the SHAR files, and then made a compressed tar of
it, which is 78K in size.

I can try to e-mail it to you, if you wish. Not sure whether it
will reach you -- a lot of ISPs don't accept e-mail from my server.

Good Luck,
DoN.

--
Remove oil spill source from e-mail
Email: <BPdnic...@d-and-d.com> | (KV4PH) Voice (all times): (703) 938-4564
(too) near Washington D.C. | http://www.d-and-d.com/dnichols/DoN.html
--- Black Holes are where God is dividing by zero ---

dbr...@gmail.com

unread,
Aug 18, 2022, 11:42:17 PM8/18/22
to
Yes, back in the day I did, folding it all back into GCC 1.x something. It was painful, and it was big enough that it was of very questionable usability on the real machine.

There were definitely library problems, and the tool chain was still stuck in shortnames land.
-dB

Aharon Robbins

unread,
Aug 19, 2022, 6:55:23 AM8/19/22
to
In article <37f3d45d-3a0b-483f...@googlegroups.com>,
Oh, once it was available it was usable, I used it a lot. Of course,
I had a machine with full memory and a 67 meg disk.

In any case, I am not working on it now. Note my recent post
about Mike Haertel's work to make a cross-GCC that runs on Linux.
That seems like the way to go for future Freebee work.

Arnol
0 new messages