Building GCC?

34 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 ---
Reply all
Reply to author
Forward
0 new messages