RE: lsb-si build problem

"Wichmann, Mats D" <[email protected]>
Newsgroups gmane.linux.lsb.implementation
Message-ID <[email protected]>
> I'm trying to compile the lsb-si implementation on a s390 system. The
> system is currently running SLES8.
> 
> The following is what I'm seeing when I try to compile the 
> implementation.
> I'm hoping that someone here can tell me how to get around 
> the problem.
> 
> I ran ./Configure with the -p and -d parameters. However, the 
> Makefile got
> build some how wrong. When it called extras/entitycheck.py it 
> was still
> assuming '/usr/src/si/packages' for package_path and patch_path. I got
> around that by updating entitycheck.py with my settings.

This is a known issue, which I've forgotten to address
due to not filing a bug on it:  entitycheck.py is not
Configure'd.  I hestitated because creating an unlocalized
entitycheck.py.in and removing entitycheck.py would
obscure the revision history, but it's definitely needed.

> Then the compilation failed with the following error:
> 
>          : Executing in
>   /mnt/93b0/usr/src/si/lsbsi-bootstrap/usr/src/gcc-build:
>           :     make BOOT_LDFLAGS=-static bootstrap
>       Build stage ended        : Tue Apr 22 18:23:31 2003
>       Build stage took         : 00:29:51
> 
>       Post build stage started : Tue Apr 22 18:23:31 2003
>           : Executing in
>   /mnt/93b0/usr/src/si/lsbsi-bootstrap/usr/src/gcc-build:
>           :     make prefix=/mnt/93b0/usr/src/si/lsbsi-bootstrap/usr
>   install
>           : Creating symbolic link in
>   /mnt/93b0/usr/src/si/lsbsi-bootstrap/lib (force):
>           :     cpp -> ../usr/bin/cpp
>           : Creating symbolic link in
>   /mnt/93b0/usr/src/si/lsbsi-bootstrap/usr/lib (force):
>           :     cpp -> ../bin/cpp
>           : Creating symbolic link in
>   /mnt/93b0/usr/src/si/lsbsi-bootstrap/usr/bin (force):
>           :     cc -> gcc
>           : Changing current directory to
>   
> /mnt/93b0/usr/src/si/lsbsi-bootstrap/usr/lib/gcc-lib/i686-pc-l
> inux-gnu/3.2.2
>  failed.
>           :     No such file or directory

The build files need to have conditionals for new architectures
put into them to deal with the few instances of this. Looks
like the current setup uses x86 as a default, which is probably
not right.

Anyway, there are quite a few places a new architecture
needs to be added to start building.

bootstrap/packages/gcc.xml is the one you're seeing.

entities/general.in needs a pair of defines for the
dynamic linker, one for what it's called in the
native Linux for that architecture, the second for
the one it should be called for LSB binaries.

Generally any .xml file that has anything about ia64
and ppc in it will also have to have similar stuff
put in for s390.

I'll be happy to put these in if you send some proposed
changes.

-- mats
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.