Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 554 - mosix-user package miscompiles but still installs
Summary: mosix-user package miscompiles but still installs
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Daniel Robbins (RETIRED)
Depends on:
Reported: 2002-02-05 17:16 UTC by Dan Armak (RETIRED)
Modified: 2002-02-06 00:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Dan Armak (RETIRED) gentoo-dev 2002-02-05 17:16:48 UTC
If the kernel currently in /usr/src/linux doesn't have mosix extensions 
(mosix.h etc.), the package will miscompile. However it doesn't add || die to 
make, so it goes on to merge what must be a partial list of files (the install 
section complains about not being able to find some files).
The ebuild should detect this and abort, or at least run make || die. 
However I don't know what the intention in levaing out the || die might have 
been, so I haven't made any changes to the ebuild myself.
Comment 1 Dan Armak (RETIRED) gentoo-dev 2002-02-05 17:20:30 UTC
I forgot to mention, it doesn't confirm to sandbox either:
--------------------------- ACCESS VIOLATION SUMMARY---------------------------
LOG FILE = "/tmp/sandbox-mosix-user-1.5.2-15118.log"

chmod:     //lib
chmod:     //sbin

Example output from miscompile:
>>> Unpacking source...
>>> Source unpacked.
gcc -Wall -I/m/include -I./ -I/usr/include -I/usr/src/linux/include -I//usr/include 
-O2 -Wall -fPIC   -c -o libmosix.o libmosix.c
In file included from mos.h:21,
                 from libmosix.c:19:
libmosix.h:31: linux/mosctl.h: No such file or directory
libmosix.h:32: linux/mosix.h: No such file or directory
make: *** [libmosix.o] Error 1
gcc -Wall -I/m/include -I./ -I/usr/include -I/usr/src/linux/include -I//usr/include 
-O2 -Wall -O   -c -o setpe.o setpe.c
setpe.c:36: linux/mosctl.h: No such file or directory
make: *** [setpe.o] Error 1
gcc -Wall -I/m/include -I./ -I/usr/include -I/usr/src/linux/include -I//usr/include 
-O2 -Wall -O   -c -o tune.o tune.c
as   -o testloop.o testloop.s
<several more mising mosix header errors, several more make targets fail>
>>> Install mosix-user-1.5.2 into /var/tmp/portage/mosix-user-1.5.2/image/ 
category sys-apps
make[1]: Entering directory 
gcc -Wall -I/m/include -I./ -I/usr/include -I/usr/src/linux/include 
-I/var/tmp/portage/mosix-user-1.5.2/image//usr/include -O2 -Wall -fPIC   -c 
-o fixvfork.o fixvfork.c
gcc -shared -rdynamic fixvfork.o -o
rm -f
echo "#!/bin/sh" >>
echo "export LD_PRELOAD=//lib/" >>
echo "$""*" >>
/usr/bin/install  -d -m 0755 //lib
ACCESS DENIED  chmod:     //lib
/usr/bin/install: cannot change permissions of `//lib': Permission denied
make[1]: *** [install] Error 1
And then it tries to compile some things again and fail again.

No need for more, as you can reproduce this easily.
Comment 2 Daniel Robbins (RETIRED) gentoo-dev 2002-02-06 00:23:24 UTC
mosix-user-1.5.2-r1 should fix both these problems.  Thanks!