public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* build 32bit php an 64bit linux fails with error in gcc
@ 2020-08-10 19:13 aotto
  2020-08-10 19:28 ` Jonathan Wakely
  0 siblings, 1 reply; 5+ messages in thread
From: aotto @ 2020-08-10 19:13 UTC (permalink / raw)
  To: gcc-help

hi,

the configure of php fails on XML with:

configure:17656: gcc-8 -m32 -o conftest -O2 -Wall -Wcast-align 
-fvisibility=hidden -pthread -DNDEBUG -D_REENTRANT conftest.c
        -lrt -lm -ldl  -lpthread -lxml2 -lz -llzma -lm -ldl >&5
/usr/lib64/gcc/x86_64-suse-linux/8/../../../../x86_64-suse-linux/bin/ld: 
skipping incompatible 
/usr/lib64/gcc/x86_64-suse-linux/8/../../../liblzma.so when searching 
for -llzma
/usr/lib64/gcc/x86_64-suse-linux/8/../../../../x86_64-suse-linux/bin/ld: 
cannot find -llzma
collect2: error: ld returned 1 exit status
configure:17656: $? = 1
configure: program exited with status 1
configure: failed program was:

64bit gcc using
/usr/lib64/gcc/x86_64-suse-linux/8/../../../../x86_64-suse-linux/bin/ld 
to resolve 32bit libraries - this works but NOT for "-llzma"

the 32bit "lzma" library is installed at:

# rpm -ql liblzma5-32bit
/usr/lib/liblzma.so.5
/usr/lib/liblzma.so.5.2.3

with:

# file /usr/lib/liblzma.so.5.2.3
/usr/lib/liblzma.so.5.2.3: ELF 32-bit LSB shared object, Intel 80386, 
version 1 (SYSV), dynamically linked, 
BuildID[sha1]=7298ac6623b0e1b897bc0df313b197e8f903b45b, stripped

PROBLEM: the 32bit "gcc-8 -m32" using a 64bit path 
"/usr/lib64/gcc/x86_64-suse-linux/8/../../../liblzma.so" to resolve the 
32bit "lzma"

./configure --with-tsrm-pthreads --enable-maintainer-zts 
--prefix=/some/path/ext/i686-suse-linux-gnu/release 
--host=i686-suse-linux-gnu 
--libdir=/some/path/ext/i686-suse-linux-gnu/release/lib


without "libxml" the following php-packages are not working:

         buildConf+=(--disable-libxml)
         buildConf+=(--disable-dom)
         buildConf+=(--disable-simplexml)
         buildConf+=(--disable-xml)
         buildConf+=(--disable-xmlreader)
         buildConf+=(--disable-xmlwriter)
         buildConf+=(--without-pear)
         ...


any help available?

mfg



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: build 32bit php an 64bit linux fails with error in gcc
  2020-08-10 19:13 build 32bit php an 64bit linux fails with error in gcc aotto
@ 2020-08-10 19:28 ` Jonathan Wakely
  2020-08-10 19:29   ` Jonathan Wakely
  0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Wakely @ 2020-08-10 19:28 UTC (permalink / raw)
  To: aotto; +Cc: gcc-help

On Mon, 10 Aug 2020 at 20:15, aotto <aotto1968@t-online.de> wrote:
>
> hi,
>
> the configure of php fails on XML with:
>
> configure:17656: gcc-8 -m32 -o conftest -O2 -Wall -Wcast-align
> -fvisibility=hidden -pthread -DNDEBUG -D_REENTRANT conftest.c
>         -lrt -lm -ldl  -lpthread -lxml2 -lz -llzma -lm -ldl >&5
> /usr/lib64/gcc/x86_64-suse-linux/8/../../../../x86_64-suse-linux/bin/ld:
> skipping incompatible
> /usr/lib64/gcc/x86_64-suse-linux/8/../../../liblzma.so when searching
> for -llzma
> /usr/lib64/gcc/x86_64-suse-linux/8/../../../../x86_64-suse-linux/bin/ld:
> cannot find -llzma
> collect2: error: ld returned 1 exit status
> configure:17656: $? = 1
> configure: program exited with status 1
> configure: failed program was:
>
> 64bit gcc using
> /usr/lib64/gcc/x86_64-suse-linux/8/../../../../x86_64-suse-linux/bin/ld
> to resolve 32bit libraries - this works but NOT for "-llzma"
>
> the 32bit "lzma" library is installed at:
>
> # rpm -ql liblzma5-32bit
> /usr/lib/liblzma.so.5
> /usr/lib/liblzma.so.5.2.3

The linker looks for liblzma.so or liblzma.so, neither of those files matches.

You have the dynamic library that is used at runtime by programs that
have already been linked. But to link new programs against them, you
need the liblzma.so symlink. That is probably installed by a package
named something like lzma-devel.i686 (I don't know how Suse names
these things)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: build 32bit php an 64bit linux fails with error in gcc
  2020-08-10 19:28 ` Jonathan Wakely
@ 2020-08-10 19:29   ` Jonathan Wakely
  2020-08-10 22:15     ` aotto
  0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Wakely @ 2020-08-10 19:29 UTC (permalink / raw)
  To: aotto; +Cc: gcc-help

On Mon, 10 Aug 2020 at 20:28, Jonathan Wakely wrote:
>
> On Mon, 10 Aug 2020 at 20:15, aotto <aotto1968@t-online.de> wrote:
> >
> > hi,
> >
> > the configure of php fails on XML with:
> >
> > configure:17656: gcc-8 -m32 -o conftest -O2 -Wall -Wcast-align
> > -fvisibility=hidden -pthread -DNDEBUG -D_REENTRANT conftest.c
> >         -lrt -lm -ldl  -lpthread -lxml2 -lz -llzma -lm -ldl >&5
> > /usr/lib64/gcc/x86_64-suse-linux/8/../../../../x86_64-suse-linux/bin/ld:
> > skipping incompatible
> > /usr/lib64/gcc/x86_64-suse-linux/8/../../../liblzma.so when searching
> > for -llzma
> > /usr/lib64/gcc/x86_64-suse-linux/8/../../../../x86_64-suse-linux/bin/ld:
> > cannot find -llzma
> > collect2: error: ld returned 1 exit status
> > configure:17656: $? = 1
> > configure: program exited with status 1
> > configure: failed program was:
> >
> > 64bit gcc using
> > /usr/lib64/gcc/x86_64-suse-linux/8/../../../../x86_64-suse-linux/bin/ld
> > to resolve 32bit libraries - this works but NOT for "-llzma"
> >
> > the 32bit "lzma" library is installed at:
> >
> > # rpm -ql liblzma5-32bit
> > /usr/lib/liblzma.so.5
> > /usr/lib/liblzma.so.5.2.3
>
> The linker looks for liblzma.so or liblzma.so, neither of those files matches.

Oops, sorry, I typed the same thing twice. I meant liblzma.a or liblzma.so

>
> You have the dynamic library that is used at runtime by programs that
> have already been linked. But to link new programs against them, you
> need the liblzma.so symlink. That is probably installed by a package
> named something like lzma-devel.i686 (I don't know how Suse names
> these things)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: build 32bit php an 64bit linux fails with error in gcc
  2020-08-10 19:29   ` Jonathan Wakely
@ 2020-08-10 22:15     ` aotto
  2020-08-11  7:29       ` Jonathan Wakely
  0 siblings, 1 reply; 5+ messages in thread
From: aotto @ 2020-08-10 22:15 UTC (permalink / raw)
  To: Jonathan Wakely; +Cc: gcc-help, opensuse-de

On 10.08.20 21:29, Jonathan Wakely wrote:
> rpm -ql liblzma5

thanks… I think that opensuse is broken…

step 1)

 > rpm -ql libxml2-devel-32bit
/usr/lib/baselibs-32bit
/usr/lib/baselibs-32bit/bin
/usr/lib/baselibs-32bit/bin/xml2-config
/usr/lib/libxml2.la
/usr/lib/libxml2.so

 > /usr/lib/baselibs-32bit/bin/xml2-config --libs
-lxml2 -lz -llzma -lm -ldl

step 2)

but opensuse has

 > rpm -ql liblzma5
/usr/lib64/liblzma.so.5
/usr/lib64/liblzma.so.5.2.3

 > rpm -ql liblzma5-32bit
/usr/lib/liblzma.so.5
/usr/lib/liblzma.so.5.2.3

step 3)

-> there is "only" a "liblzma5" and nothing else.

 > zypper se liblzma

S  | Name                         | 
Zusammenfassung                                       | Typ
---+------------------------------+-------------------------------------------------------+------
i+ | liblzma5                     | Lempel–Ziv–Markov chain algorithm 
compression library | Paket
i+ | liblzma5-32bit               | Lempel–Ziv–Markov chain algorithm 
compression library | Paket
    | liblzma5-32bit-debuginfo     | Debug information for package 
liblzma5                | Paket
    | liblzma5-debuginfo           | Debug information for package 
liblzma5                | Paket
    | python-pyliblzma             | Python bindings for 
liblzma                           | Paket
    | python-pyliblzma-debuginfo   | Debug information for package 
python-pyliblzma        | Paket
    | python-pyliblzma-debugsource | Debug sources for package 
python-pyliblzma            | Paket

    | python-pyliblzma-doc         | Documentation for the 
python-pyliblzma                | Paket


solution there is only a "liblzma5" and opensuse means that "5" is the 
min required package nmber…
BUT libxml has an other "opinion"


mfg


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: build 32bit php an 64bit linux fails with error in gcc
  2020-08-10 22:15     ` aotto
@ 2020-08-11  7:29       ` Jonathan Wakely
  0 siblings, 0 replies; 5+ messages in thread
From: Jonathan Wakely @ 2020-08-11  7:29 UTC (permalink / raw)
  To: aotto; +Cc: gcc-help, opensuse-de

On Mon, 10 Aug 2020 at 23:15, aotto <aotto1968@t-online.de> wrote:
>
> On 10.08.20 21:29, Jonathan Wakely wrote:
> > rpm -ql liblzma5
>
> thanks… I think that opensuse is broken…

I doubt it.

> step 1)
>
>  > rpm -ql libxml2-devel-32bit
> /usr/lib/baselibs-32bit
> /usr/lib/baselibs-32bit/bin
> /usr/lib/baselibs-32bit/bin/xml2-config
> /usr/lib/libxml2.la
> /usr/lib/libxml2.so
>
>  > /usr/lib/baselibs-32bit/bin/xml2-config --libs
> -lxml2 -lz -llzma -lm -ldl

This script just tells you the flags needed to link to libxml2, it
doesn't guarantee those libraries are actually installed.

> step 2)
>
> but opensuse has
>
>  > rpm -ql liblzma5
> /usr/lib64/liblzma.so.5
> /usr/lib64/liblzma.so.5.2.3
>
>  > rpm -ql liblzma5-32bit
> /usr/lib/liblzma.so.5
> /usr/lib/liblzma.so.5.2.3
>
> step 3)
>
> -> there is "only" a "liblzma5" and nothing else.
>
>  > zypper se liblzma
>
> S  | Name                         |
> Zusammenfassung                                       | Typ
> ---+------------------------------+-------------------------------------------------------+------
> i+ | liblzma5                     | Lempel–Ziv–Markov chain algorithm
> compression library | Paket
> i+ | liblzma5-32bit               | Lempel–Ziv–Markov chain algorithm
> compression library | Paket
>     | liblzma5-32bit-debuginfo     | Debug information for package
> liblzma5                | Paket
>     | liblzma5-debuginfo           | Debug information for package
> liblzma5                | Paket
>     | python-pyliblzma             | Python bindings for
> liblzma                           | Paket
>     | python-pyliblzma-debuginfo   | Debug information for package
> python-pyliblzma        | Paket
>     | python-pyliblzma-debugsource | Debug sources for package
> python-pyliblzma            | Paket
>
>     | python-pyliblzma-doc         | Documentation for the
> python-pyliblzma                | Paket
>
>
> solution there is only a "liblzma5" and opensuse means that "5" is the
> min required package nmber…
> BUT libxml has an other "opinion"

It looks like the package you need is xz-devel.i586 so try installing that.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-08-11  7:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-10 19:13 build 32bit php an 64bit linux fails with error in gcc aotto
2020-08-10 19:28 ` Jonathan Wakely
2020-08-10 19:29   ` Jonathan Wakely
2020-08-10 22:15     ` aotto
2020-08-11  7:29       ` Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).