[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon, 29 Mar 2004 02:31:54 +0000 (UTC) 
Subject:Re: Installation problems: Gentoo Linux 
From:A . Sloman 
Volume-ID: 

Greetings Antonis

> I am wondering whether you could help me. I am a gentoo linux user and
> recently tried to install POPLOG.

Hmm, you may be the first to try poplog with gentoo

It looks like a linker problem.

I know nothing about gentoo so tried to get some information.
Google pointed me at this:
    http://lists.ethernal.org/cantlug-0212/msg00185.html

Not very helpful. Then this:
    http://www.gentoo.org/

The only thing I learnt from this is that gentoo allows users to
configure the system to meet their needs. This could mean that
sometimes it is configured in such a way as to stop something
working!

So I assume you chose gentoo because you are an expert user with
specific requirements. Do you know whether there is any way the
gentoo linker differs from the linker on redhat.

(I have not yet tried poplog on the most recent kernels, e.g. 2.6,
which I think is used in Redhat's fedora now, so if you have
something like that kernel, the problem may be more general
than gentoo).

> The installation fails while the script is trying to relink newpop11
>
> Linking newpop11 ...
> === Running: ./pglink -xm -map
> *** Interrupted

The log file you supplied (thanks) shows that it was able to run the
corepop file provided to rebuild the three system saved images.

 > -rw-r--r--    1 root     root       113460 Mar 27
 >        13:57 /usr/local/poplog/v15.53e/pop/pop/newpop.psv
 > -rw-r--r--    1 root     root       478272 Mar 27
 >        13:57 /usr/local/poplog/v15.53e/pop/pop/popc.psv
 > -rw-r--r--    1 root     root       134208 Mar 27
 >        13:57 /usr/local/poplog/v15.53e/pop/pop/poplibr.psv
 > -rw-r--r--    1 root     root       199744 Mar 27
 >        13:57 /usr/local/poplog/v15.53e/pop/pop/poplink.psv

That suggests that if you can get poplog linked OK it will run.

However the inital attempt to link poplog failed:

> relinking -- using /usr/local/poplog/v15.53e/pop/pop/poplink_cmnd
> checking for newpop11
> COULD NOT LINK NEWPOP11:

This may be because

    (a) you don't have tcsh installed

    (b) the linker on gentoo is special.

At present the automatically generated poplink_cmnd file starts with
    #!/bin/tcsh -f

so if you don't have tcsh it will fail. We need to change the system to
generate scripts that use only 'sh' or 'bash'. This will require
some effort. It may be easier to install tcsh for now, if you don't have it.

If you do have it the problem lies elsewhere.

(I should change the installation script to check for tcsh!)

Several things you can do.

Try starting again using
    ./INSTALL_EVERYTHING_WITHOUT_MOTIF

If that works, it will show that the problem has something to do
with using motif, which I doubt.

If it fails again (as I expect it will) that will prove that the
problem has nothing to do with using motif.

You'll then have to find out why the link command fails.

One of the files in the linux_poplog sub-directory where you
un-tarred the main poplog tar file, should be

    linux-pc-1553.tar.gz

That's the core linux poplog system, with minimal pre-built stuff in
it. The script you ran should have un-tarred it into
    /usr/local/poplog/v15.53e

So try this:
    cd /usr/local/poplog/v15.53e/pop/pop

    ls -l poplink*

That should give you
    lrwxrwxrwx    1 axs      axs             7 Mar 29 02:42 poplink -> corepop
    -rw-r--r--    1 axs      axs         28376 Mar 15 22:44 poplink_1.o
    -rw-r--r--    1 axs      axs          6732 Mar 15 22:44 poplink_2.o
    -rw-r--r--    1 axs      axs        368600 Mar 15 22:44 poplink_3.o
    -rw-r--r--    1 axs      axs           640 Mar 15 22:44 poplink_4.o
    -rwxr-xr-x    1 axs      axs           425 Mar 15 23:11 poplink_cmnd
    -rwxr-xr-x    1 axs      axs           425 Mar 15 23:18 poplink_cmnd.motif
    -rwxr-xr-x    1 axs      axs           419 Mar 15 23:21 poplink_cmnd.nomotif
    -rw-r--r--    1 axs      axs           692 Mar 15 22:44 poplink_dat.o

If they are not there, simply untar the core file, replacing ..... (below)
with the appropriate path name:

    cd /usr/local/poplog/v15.53e

    tar xfz ...../linux_poplog/linux-pc-1553.tar.gz

    cd pop/pop
    ls -l poplink

That should now show the above files.

Set up environment variables:

If using bash

    usepop=/usr/local/poplog/v15.53e
    export usepop

    . $usepop/pop/com/poplog.sh

If using tcsh
    setenv usepop /usr/local/poplog/v15.53e
    source $usepop/pop/com/poplog

Now try one of the linker scripts:

    ./poplink_cmnd.nomotif

That should create an executable file newpop11

But I expect it will fail because it failed when the
installation script tried to do the same.

At that point you'll have to record any error messages
printed out. It's possible that they came out previously
but went to the screen instead of the log file.

If there is no message and it merely fails you'll need a
gentoo expert to look at the script to see whether there's
some way in which it conflicts with the linker syntax
required on gentoo.

Another possibility is that there's some missing library required
by poplog.

If it does create a newpop11 file, then you should be able
to use it to overwrite the basepop11 and continue:

    cp newpop11 basepop11

(NB: do not use 'mv' as that will destroy links)

Then try creating the default 'startup.psv' image
    $usepop/pop/com/mkstartup

If that creates
    $usepop/pop/lib/psv/startup.psv

You'll be OK.

make sure that the directory
    /usr/local/poplog/local

has been created and contains directories com/ auto/ lib/ help/ teach/
and others.

In that case do:

    mkdir $poplocalbin

cd
    /usr/local/poplog/local/com/

    ./mkstartup.local
    ./mkxved.local

That will create startup.psv and xved.psv in $poplocalbin

Run any others you may need, e.g. for prolog, common lisp. ml, eliza.

At that point you should have a usable copy of poplog with the
Birmingham facilities. You can test the examples in the startup/
subdirectory created where your original tar file is.

FINAL NOTE:

As a last resort you can try using the 'basepop11 executable that came
with the package. I.e. if linking fails to produce newpop11, then
use the basepop11 that is already there and try  the mkstartup.local
mkxved.local commands.

You may then have a system that works. But there may also be problems
because it was linked with different libraries.

[I am about to go away for a few days, so will not be able to
respond to any followups till the weekend probably. If you post
to pop-forum again without subscribing to the list it
will not be forwarded till I return. You can subscribe by sending a
message to majordomo AT cs.bham.ac.uk containing one line
    subscribe pop-forum
Unsubscribing later is similar.

You can post to comp.lang.pop without subscribing and that will go to
many people but not the ones who read messages only if they get to the
pop-forum list -- until I return and 'approve' them.]

Aaron
==
http://www.cs.bham.ac.uk/~axs/