Mail Archives: pgcc/1999/05/06/17:40:55
Marc Lehmann writes:
> > I compiled a program with the -mk6 flag (why was that changed from
> > -mamdk6, by the way?),
>
> Because egcs added these switches as -mk6. The rationale was that no -m
> option includes the vendor name (-mintelpentium?).
Oh, I didn't know that. It makes sense. Thanks for the clarification.
> > Then I compiled it with -mk6 -march=i486, and it didn't degfault
>
> Interesting. Are you sure? I ask because you seem to infer from your
> example that the amdk6 is counted as a i486 architecture, which you can't
> (since then there shouldn't be a difference between both options).
I'm sure. I'll tell you the exact flow of events. I compiled it with
-mk6. It segfaulted. I compiled it with -mk6 -march=i486. It worked. I
inferred that -mk6 uses -march=pentium by default. So I compiled with
-mk6 -march=pentium and it segfaulted again, which I took as a proof
to my assumption.
Am I misunderstanding something?
> > Why does the K6 qualify as i486 architecture? It's supposed to be
> > totally Pentium-compatible, isn't it?
>
> The pentium, the i486 and the amdk6 share the same instruction set
> architecture (with regards to a compiler). Both pentium and amdk6 use the
> same instructions (i.e. -march=i486)
So what uses -march=pentium?
> > The program I was trying to compile is he L.A.M.E. MP3 encoder. I don't
> > know what else to attach to you; do you want an strace log, or ltrace
> > log, or anything else? Maybe someone had this problem already?
>
> an url where I can fetch that program (and te version numebr you used)
> would be perfect unless you know the file that is responsible.
You have to download a source archive and a patch (a patched source
can't be distributed because of patents on mp3 encoding). The source
archive (the ISO sample code) is at http://geek.rcc.se/mp3encoder/ ,
there are many links to mirrors there. The patch (and patching
instructions) are at http://www.uq.net.au/~zzmcheng/lame/download.html .
Thanks for the quick response!
--
Alex Shnitman | http://www.debian.org
alexsh AT hectic DOT net, alexsh AT linux DOT org DOT il +-----------------------
http://alexsh.hectic.net UIN 188956 PGP key on web page
E1 F2 7B 6C A0 31 80 28 63 B8 02 BA 65 C7 8B BA
- Raw text -