Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
Subject: Re: Difficulties in compiling by nonprogrammer
Date: Mon, 1 Dec 1997 19:09:13 -0700 (MST)	[thread overview]
Message-ID: <199712020209.TAA14789@ellpspace.math.ualberta.ca> (raw)
In-Reply-To: <Pine.SUN.3.95.971201190247.5180A-100000@katie.vnet.net>

> 
> The first difficulty I think I finessed by getting a copy of
> Project.tmpl which was required for the xmkmf process.

Hm, Imake.tmpl should be enough and is present.  Did you try
to type 'xmkmf -a' and this failed?  Where?

> I lifted the file from an
> intel copy of RH 4.2, after which xmkmf appeared to run correctly.

It may be ok, but you have to be careful.  It may define some
things which make sense on Intel but not on Alpha.  Blind copy
may not bring a desired results.

> Like
> how to capture the output from the make just to locate the first errors.

The best way to run such things is from within emacs.  The reason is
that if you will get any errors/warnings then C-x ` (i.e. next-error)
will walk you through all this spots without a need for a manual search.
A command is "M-x compile" and you can define your own key for that.

Another possibility is to use 'script' command.  'man script' for
details.  You will have to hunt for errors yourself.

Last, but not least, you can redirect an ouutput to a file or a pipe but
you need to capture both stderr and stdout.  As you still likely want
to see what is going on you should use 'tee', so things are getting a
bit involved.  That is a reason for the first two suggestions.

How to redirect is described in docs for a shell you happen to use.
'make 2>&1 >capture' or 'make 2>&1 | less' will work with Bourne
derived shells (like bash).

Depending how sources are writte these may be, unfortunately,
the smallest of your worries.

  Michal

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

       reply	other threads:[~1997-12-02  2:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.SUN.3.95.971201190247.5180A-100000@katie.vnet.net>
1997-12-02  2:09 ` Michal Jaegermann [this message]
1997-12-03 16:21   ` Difficulties in compiling by nonprogrammer tfreeman
     [not found] <Pine.SUN.3.95.971203110656.27811B-100000@katie.vnet.net>
1997-12-03 17:13 ` Michal Jaegermann
1997-12-02  0:06 tfreeman
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox