[Lsb-infrastructure] Build problems on s390

Stew Benedict stewb at linux-foundation.org
Mon Sep 15 06:44:38 PDT 2008


On Mon, 15 Sep 2008, Eugene Shatokhin wrote:

> Hi,
> 
> There are probably some problems in s390 environment that result in building invalid executables (l005026.zseriespenguins.ihost.com, chrooted environment /home/s390chroot). 
> 
> Wnen the following primitive program 
> 
> ==== build_err.c =============
> #include <stdio.h>
> 
> int
> main()
> {
>     printf("Hi!\n");
>     return 0;
> }
> ==============================
> 
> is built with "lsbcc -o build_err build_err.c", the following warnings appear:
> 
> ------------------------------
> /usr/bin/ld.REAL: skipping incompatible /opt/lsb/lib-4.0/libpthread.so when searching for -lpthread
> /usr/bin/ld.REAL: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
> /usr/bin/ld.REAL: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
> /usr/bin/ld.REAL: skipping incompatible /usr/lib/libpthread_nonshared.a when searching for -lpthread_nonshared
> /usr/bin/ld.REAL: skipping incompatible /opt/lsb/lib-4.0/libm.so when searching for -lm
> /usr/bin/ld.REAL: skipping incompatible /usr/lib/libm.so when searching for -lm
> /usr/bin/ld.REAL: skipping incompatible /usr/lib/libm.a when searching for -lm
> /usr/bin/ld.REAL: skipping incompatible /opt/lsb/lib-4.0/libc.so when searching for -lc
> /usr/bin/ld.REAL: skipping incompatible /usr/lib/libc.so when searching for -lc
> /usr/bin/ld.REAL: skipping incompatible /usr/lib/libc.a when searching for -lc
> /usr/bin/ld.REAL: skipping incompatible /usr/lib/libc_nonshared.a when searching for -lc_nonshared
> ------------------------------
> 
> If I try to execute the program built this way, the shell complains: 
> "bash: ./build_err: Accessing a corrupted shared library"
> 
> The program was built and run by user "moscow".
> 
> Any ideas what is going on there?
> 
> This very problem prevents, for example, t2c-harness and t2c-desktop-test suite from building. However, it seems, autobuilds of t2c-desktop-test suite work somehow in s390 environment.
> 
> With best regards,
> Eugene
> 
> 

Think you need to run '/usr/bin/s390 /usr/bin/chroot /home/s390chroot' 
before building. At least that's what I see in the autobuild cron jobs.

-- 
Stew Benedict
The Linux Foundation


More information about the lsb-infrastructure mailing list