[comp.os.minix] HELP!! I can't build w/ ST-MINIX.

med@druwy.ATT.COM (Myron Drapal) (12/02/88)

I really need someone to help me out.  I'm having trouble building
(any) program with ST-MINIX.  I tried to port ARC 5.12 with no
luck (/usr/lib/cv, during the link step, gets a segmentation
violation, always at the same place, regardless of what is to
be loaded).  I suspected that it was my problem, so I tried to
build the test programs under /usr/src/test, and guess what?  Same
problem.  I really don't know where to look next (I have the kernel
dump, but really don't know where to go from here).

On a similar note, would it be possible to post at least a shortened
version of the manual page entries for the ACK stuff.  It's really
difficult to isolate problems like this one without knowing what
the flags to ld mean, for instance:

ld -o test0 -c -a0:2 -a1:2 -a2:2 -a3:2 ....

What are the meanings for the flags here?  I tried the UNIX-like ld
command line:

ld -o test0 crtso.o test0.o libc.a end.o

And ld seemed to work fine, but what I got didn't seem to be an executable.

Anyway, I'd *really* appreciate any help, especially from those of
you who have been able to build (any) program under ST-MINIX.

						Myron Drapal
						att!druhi!druwy!med

hyc@math.lsa.umich.edu (Howard Chu) (12/06/88)

In article <3708@druwy.ATT.COM> med@druwy.ATT.COM (Myron Drapal) writes:
%I really need someone to help me out.  I'm having trouble building
%(any) program with ST-MINIX.  I tried to port ARC 5.12 with no
%luck (/usr/lib/cv, during the link step, gets a segmentation
%violation, always at the same place, regardless of what is to
%be loaded).  I suspected that it was my problem, so I tried to
%build the test programs under /usr/src/test, and guess what?  Same
%problem.  I really don't know where to look next (I have the kernel
%dump, but really don't know where to go from here).
%
You probably need the new version of cv, which was posted November 17.
The original version couldn't handle more than 32K of relocation info.
Unless ACK is smart enough to use PC relative branching instructions,
it's probably getting too much reloc info for ARC. 

As a side note, ARC 5.21 is already running on ST-Minix, so you
probably shouldn't be wasting your time with 5.12.

%On a similar note, would it be possible to post at least a shortened
%version of the manual page entries for the ACK stuff.  It's really
%difficult to isolate problems like this one without knowing what
%the flags to ld mean, for instance:
%
Good point. Not having full docs is one reason I really dislike using
the ACK stuff...

%And ld seemed to work fine, but what I got didn't seem to be an executable.
%
If you read thru the ST docs, you'll note that the linker produces
object files for a different system. You need cv to ConVert the object
files to Minix a.out files before you'll get anything executable.

If you have the memory to spare, you're better off with gcc. It
produces better code, and it comes with full source and documentation...
--
  /
 /_ , ,_.                      Howard Chu
/ /(_/(__                University of Michigan
    /           Computing Center          College of LS&A
   '              Unix Project          Information Systems

med@druwy.ATT.COM (Myron Drapal) (12/08/88)

First off, I'd like to thank those people who helped my out.  As it turns out,
all I needed was the new version of CV that was posted to the NET sometime ago
(sure hurts to take a weeks vacation and then have to come back and look through
all of the stuff in this group ;-)).

In article <504@stag.math.lsa.umich.edu>, hyc@math.lsa.umich.edu (Howard Chu) writes:
> In article <3708@druwy.ATT.COM> med@druwy.ATT.COM (Myron Drapal) writes:
> 
> As a side note, ARC 5.21 is already running on ST-Minix, so you
> probably shouldn't be wasting your time with 5.12.
> 

Where can I get such a thing.  I *REALLY* need this.  Does lakesys have a minix
archive too (or could we maybe convince them to keep one ;-))?

> If you have the memory to spare, you're better off with gcc. It
> produces better code, and it comes with full source and documentation...
> 

Again, same question as above.  I really don't have loads of ram to spare (1 meg
520ST), but I might be convinced to upgrade if this is really available.  I think
that I recall that Bammi had this ready for the ST.  If so, I would really like to
work out a way for him to send it to me (others here are interested in this as well).

						Myron Drapal
						att!druhi!druwy!med