mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Gene Heskett <gene.heskett@verizon.net>
To: linux-kernel@vger.kernel.org
Subject: Re: Stupid question
Date: Mon, 22 Nov 2004 07:21:26 -0500	[thread overview]
Message-ID: <200411220721.26712.gene.heskett@verizon.net> (raw)
In-Reply-To: <Pine.LNX.4.53.0411220932370.12534@yvahk01.tjqt.qr>

On Monday 22 November 2004 03:33, Jan Engelhardt wrote:
>>Greetings;
>>
>>Silly Q of the day probably, but what do I set in a Makefile for
>> the -march=option for building on a 233 mhz Pentium 2?
>
>Now that's really stupid, but here's the answer:
>
>You run `make menuconfig` (or whichever you like) and choose
> Processor Type "Pentium II".
>
>
>Jan Engelhardt

If I was building a kernel, then yes my question was stupid.

Except I'm not building a kernel, I'm tryng to compile a module to 
drive some truely dumb hardware, reusing code that was last touched 
in 1999 when the Makefile could use the -mi486 syntax with gcc-2.95.  
Now we have gcc 3.3.3, even on a Brain Dead Install of emc 
(LinuxCNC), which has a 2.4 kernel with the rtai patch kit for real 
time.  I need to put this directly into the Makefile using the 
currently valid  -march= & -mcpu= syntax's.

So far, the closest I've come to getting it right on that box bails 
out because its being mis-interpreted as -march=mips on that box.  
Those includes aren't part of an x86 install.  Hence the 
question. :-)

It appears I've got more problems that this one though, lots of "hey 
you can't do that anymore" warnings when I try to build it on this 
box (bleeding edge kernel 2.6.10-rc2-bk4-kjt1 etc) and it eventually 
bails out or course.  It apparently plays mix-n-match with kernel vs 
glibc headers too.  As a loadable module, I'd assume it should be 
using kernel headers only?

Yeah, I'm stupid.  Virtually all of my original C coding has been done 
on much smaller architectures, and 15 to 20 years ago.  Terminal rust 
has set in on those skills I once had well honed when I was only 55.  
Now I'm 70, semi-retired, and I'd like to drive some stepper motors 
on a micromill.

While composing this, I also read the man page for gcc and while it 
has a bunch of options, it doesn't always list/define the valid ones, 
particularly for x86 stuffs.  Lots of other architectures are covered 
in much better detail. I guess they figure everyone knows x86 stuff.

Sadly, for those of us who came up thru the motorola ranks, such is 
not the case.  Heck, I'd do this in assembly IF I knew intel asm as 
well as I know 6x09 asm.

-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
99.29% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com attorneys please note, additions to this message
by Gene Heskett are:
Copyright 2004 by Maurice Eugene Heskett, all rights reserved.

  reply	other threads:[~2004-11-22 12:24 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-22  1:45 Gene Heskett
2004-11-22  8:33 ` Jan Engelhardt
2004-11-22 12:21   ` Gene Heskett [this message]
2004-11-22 19:02     ` Jan Engelhardt
2004-11-22 19:21       ` Gene Heskett
2004-11-22 19:32         ` Jan Engelhardt
2004-11-23  2:11           ` Gene Heskett
2004-11-22 14:32 ` P
2004-11-22 15:58   ` Gene Heskett
2004-11-23 12:08     ` Nix
2004-11-23 12:19       ` P
2004-11-23 12:48         ` Gene Heskett
2004-11-23 12:46       ` Gene Heskett

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200411220721.26712.gene.heskett@verizon.net \
    --to=gene.heskett@verizon.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®