Skip to contentSkip to conversation

Build results for 2017-01-24

Buildroot Thomas Petazzoni 4 participants 29 messages Jan 25, 2017 – Feb 9, 2017

lore
Share & tools
lore
#0 lore raw

Hello,

Build statistics for 2017-01-24
================================

successes : 101
failures : 44
timeouts : 1
TOTAL : 146

Classification of failures by reason
====================================

          mediastreamer-2.12.1 | 12
                    ruby-2.4.0 | 6 
               sdl2_ttf-2.0.14 | 6 
                  samba4-4.5.4 | 4 
               openswan-2.6.46 | 2 
               bctoolbox-0.4.0 | 1 
                    cups-2.2.2 | 1 
glmark2-fa71af2dfab711fac87... | 1 
                ipmiutil-2.9.9 | 1 
                log4cxx-0.10.0 | 1 
            lttng-libust-2.9.0 | 1 
make: *** wait: No child pr... | 1 
            netsniff-ng-v0.6.2 | 1 
                openvpn-2.3.14 | 1 
python-libconfig-b271c3d9da... | 1 
               upmpdcli-1.2.10 | 1 
vpnc-b1243d29e0c00312ead038... | 1 
                     xen-4.7.1 | 1 
                 xorriso-1.4.2 | 1 
    xserver_xorg-server-1.19.1 | 1 

Detail of failures
===================

        i586 |                bctoolbox-0.4.0 | NOK | http://autobuild.buildroot.net/results/4b4b00ad3b95ddacc9d5cc31c34e457ee55c9364
        i586 |                     cups-2.2.2 | NOK | http://autobuild.buildroot.net/results/61cf6659357795f3de69bb00c4000f049e946424
         arm | glmark2-fa71af2dfab711fac87... | NOK | http://autobuild.buildroot.net/results/8dc9400505b9087ce290981d95486598df0beb56
        i586 |                 ipmiutil-2.9.9 | NOK | http://autobuild.buildroot.net/results/cd1569596ce610a3c8c7747e7b31807f8c6abbf8
       nios2 |                 log4cxx-0.10.0 | NOK | http://autobuild.buildroot.net/results/d9825870993f47e3850d3e3a95ae4f494dceaf0e
      x86_64 |             lttng-libust-2.9.0 | NOK | http://autobuild.buildroot.net/results/57adda12f17593ac1e79e7e472a93162cc693463
    mips64el | make: *** wait: No child pr... | TIM | http://autobuild.buildroot.net/results/ff5723f7ef4d5bb191d125b1881542f482f5b390
        m68k |           mediastreamer-2.12.1 | NOK | http://autobuild.buildroot.net/results/9aa3cdad6e22ad1656eec59fc92fb7cb79afc4cd
    mips64el |           mediastreamer-2.12.1 | NOK | http://autobuild.buildroot.net/results/09e8fabb72cafa284419f096da95299c51c03899
       nios2 |           mediastreamer-2.12.1 | NOK | http://autobuild.buildroot.net/results/29c8ddd25c76f4c5b74f31a576c7ace9f76677db
      xtensa |           mediastreamer-2.12.1 | NOK | http://autobuild.buildroot.net/results/ccb6a981b5df303939dcd78b4517bfb44498bdd0
     powerpc |           mediastreamer-2.12.1 | NOK | http://autobuild.buildroot.net/results/96f6aab9b5b81e2e6654789704eb89abc36cacdf
      x86_64 |           mediastreamer-2.12.1 | NOK | http://autobuild.buildroot.net/results/a0c37fd7f3ae541c29dcd1a092383712ef3363e4
         arc |           mediastreamer-2.12.1 | NOK | http://autobuild.buildroot.net/results/f98685aee3dcfb21c1fd86654bed0f96784a6c6d
     powerpc |           mediastreamer-2.12.1 | NOK | http://autobuild.buildroot.net/results/20744d0b8b6833baabb53af93c471c427a1455f5
     aarch64 |           mediastreamer-2.12.1 | NOK | http://autobuild.buildroot.net/results/a888482327a6cdb45ac929d07d67315b241a2d73
         arc |           mediastreamer-2.12.1 | NOK | http://autobuild.buildroot.net/results/9aacaefd9cf995b692b34ff8f6cc19f4d918c9bf
      x86_64 |           mediastreamer-2.12.1 | NOK | http://autobuild.buildroot.net/results/7be5c3adbc22a41a069b66f7a1870f8e519d05b8
      mipsel |           mediastreamer-2.12.1 | NOK | http://autobuild.buildroot.net/results/15c6a841f37efb8dfd23e7e3db33e01375351ae2
        i586 |             netsniff-ng-v0.6.2 | NOK | http://autobuild.buildroot.net/results/6eb77ab3c31267b2d314b4eff12d1581e2441e85
         arm |                openswan-2.6.46 | NOK | http://autobuild.buildroot.net/results/ab6e68a03d2e3687e67a959b02afd613d468eaef
     powerpc |                openswan-2.6.46 | NOK | http://autobuild.buildroot.net/results/ace4906237590f0d6eb3bf051951f77c2f8acbfd
         arm |                 openvpn-2.3.14 | NOK | http://autobuild.buildroot.net/results/25be1c34b542a44e5c685e4d672ce52ba8c7f1b0
      x86_64 | python-libconfig-b271c3d9da... | NOK | http://autobuild.buildroot.net/results/166ab6ed51daf6da3d4dfcb908704a68d9527a3b
        i686 |                     ruby-2.4.0 | NOK | http://autobuild.buildroot.net/results/4af4df1645d43afb161e404e437b4dd5dc323c42
    mips64el |                     ruby-2.4.0 | NOK | http://autobuild.buildroot.net/results/443242707275dc72070e0772b9f148558b63fb3a
      x86_64 |                     ruby-2.4.0 | NOK | http://autobuild.buildroot.net/results/f04ce59f277f33a399e7e88868dc05ac3df2a95c
        bfin |                     ruby-2.4.0 | NOK | http://autobuild.buildroot.net/results/c8b5f368e8180baf10e002fdf096f363a67a350b
        m68k |                     ruby-2.4.0 | NOK | http://autobuild.buildroot.net/results/2dd63b904456bcfb8317559d9adb4bdde340aafb
         arc |                     ruby-2.4.0 | NOK | http://autobuild.buildroot.net/results/f28039fa9b370c77d6be9518ec8dd3055c50a14d
         sh4 |                   samba4-4.5.4 | NOK | http://autobuild.buildroot.net/results/27440387caa35b0225aeda5dec43a1bf914c68aa
      x86_64 |                   samba4-4.5.4 | NOK | http://autobuild.buildroot.net/results/320725ccb206f2f2388c032f21e6b862756f0827
        sh4a |                   samba4-4.5.4 | NOK | http://autobuild.buildroot.net/results/8c8e6b8cd2e15df97063673da9a58e66ad51ad74
     aarch64 |                   samba4-4.5.4 | NOK | http://autobuild.buildroot.net/results/9306fd82a532c6a22092e4ec7fcd6bda873c2269
         sh4 |                sdl2_ttf-2.0.14 | NOK | http://autobuild.buildroot.net/results/ba70748271c16664bcf9a0b353c52e1a784426a2
         arc |                sdl2_ttf-2.0.14 | NOK | http://autobuild.buildroot.net/results/0b355b8c08fdcedb0c7267d133dcadfe5093a7d9
         arm |                sdl2_ttf-2.0.14 | NOK | http://autobuild.buildroot.net/results/ba5ec1e2a5821cd3d234df06d5486b0484629b26
       sparc |                sdl2_ttf-2.0.14 | NOK | http://autobuild.buildroot.net/results/175d9644516c71764247fad47a36b2acc42fa142
         arm |                sdl2_ttf-2.0.14 | NOK | http://autobuild.buildroot.net/results/6c0eb6cd9887c28859ecadc9404d67f58b8717b0
     sparc64 |                sdl2_ttf-2.0.14 | NOK | http://autobuild.buildroot.net/results/cbeca644e9924eb44a9e914fc4e956a51ca8c1f9
         arm |                upmpdcli-1.2.10 | NOK | http://autobuild.buildroot.net/results/4aa075b61ea012f41e808587c675fbff1ea641df
    mips64el | vpnc-b1243d29e0c00312ead038... | NOK | http://autobuild.buildroot.net/results/25b2e19ad82c1dfefaa00b541d23b265e07fe0c6
         arm |                      xen-4.7.1 | NOK | http://autobuild.buildroot.net/results/53421acb92eddba2c37b3ef6d44b05070a90bdfc
    mips64el |                  xorriso-1.4.2 | NOK | http://autobuild.buildroot.net/results/14581a3257eedc2c325fe454dda1e4532ab98002
    mips64el |     xserver_xorg-server-1.19.1 | NOK | http://autobuild.buildroot.net/results/fb56794b4b5c206d260d1aa221c929b142712990
Signature · 1 line
http://autobuild.buildroot.net
#1 lore raw
Quoted 1 line · Thomas Petazzoni

Hello,

[snip]

Quoted 5 lines

Detail of failures
===================

????????i586 |????????????????bctoolbox-0.4.0 | NOK | http://autobuil
d.buildroot.net/results/4b4b00ad3b95ddacc9d5cc31c34e457ee55c9364

Unfortunately I cannot reproduce this issue. Is it a rpath issue? cmake links a test program with host zlib:

[..]/i586-buildroot-linux-musl/bin/ld: warning: libc.so.6, needed by /usr/lib32/libz.so.1, not found (try using -rpath or -rpath-link) /usr/lib32/libz.so.1: undefined reference to `strcpy at GLIBC_2.0'

I have no idea how to fix it. bctoolbox' cmakelists.txt does set CMAKE_INSTALL_RPATH=/usr/lib. Is this a problem?

Best regards,
J?rg Krause

#2 lore raw

Hi J?rg,

Quoted 9 lines · J?rg Krause

On Wed, 2017-01-25 at 08:30 +0100, Thomas Petazzoni wrote:
[snip]

Quoted 5 lines

Detail of failures
===================

????????i586 |????????????????bctoolbox-0.4.0 | NOK | http://autobuil
d.buildroot.net/results/4b4b00ad3b95ddacc9d5cc31c34e457ee55c9364

Quoted 6 lines

Unfortunately I cannot reproduce this issue. Is it a rpath issue? cmake links a test program with host zlib:

[..]/i586-buildroot-linux-musl/bin/ld: warning: libc.so.6, needed by /usr/lib32/libz.so.1, not found (try using -rpath or -rpath-link) /usr/lib32/libz.so.1: undefined reference to `strcpy at GLIBC_2.0'

This is your host library.

Quoted 2 lines

I have no idea how to fix it. bctoolbox' cmakelists.txt does set CMAKE_INSTALL_RPATH=/usr/lib. Is this a problem?

That is definitely not compatible with cross compilation.

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
#3 lore raw

Hi all,

Quoted 11 lines · Baruch Siach

Hi J?rg,

Quoted 8 lines · J?rg Krause

On Wed, 2017-01-25 at 08:30 +0100, Thomas Petazzoni wrote:
[snip]

Quoted 5 lines

Detail of failures
===================

i586 | bctoolbox-0.4.0 | NOK | http://autobuil
d.buildroot.net/results/4b4b00ad3b95ddacc9d5cc31c34e457ee55c9364

Regarding this package, apologies I missed it during the initial review :s

This build failure occurs because it goes in a path it should not. In the Config.in: it is mentionned that mbedtls is prefered to polarssl [1], hence the select [1] and the dependency in the *.mk [2]. However, the cmake configure flags are not set accordingly to this, and the defaults may play against us [3].

I would suggest to set the ENABLE_{MBEDTLS,POLARSSL} flags in the *.mk first. This should prevent from following this case [4], as displayed in the build log [5].

After this, if the CheckSymbolExists still causes error, we may need to patch the bctoolbox
cmake code to set/fix the variables used by CheckSymbolExists [6].

Quoted 3 lines
Quoted 3 lines

Unfortunately I cannot reproduce this issue. Is it a rpath issue? cmake links a test program with host zlib:

Note: I'm not able to reproduce the error either.

Quoted 14 lines
Quoted 4 lines

[..]/i586-buildroot-linux-musl/bin/ld: warning: libc.so.6, needed by /usr/lib32/libz.so.1, not found (try using -rpath or -rpath-link) /usr/lib32/libz.so.1: undefined reference to `strcpy at GLIBC_2.0'

This is your host library.

Quoted 2 lines

I have no idea how to fix it. bctoolbox' cmakelists.txt does set CMAKE_INSTALL_RPATH=/usr/lib. Is this a problem?

That is definitely not compatible with cross compilation.

baruch

Quoted 8 lines

--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

Regards,

[1] https://git.buildroot.net/buildroot/tree/package/bctoolbox/Config.in#n5
[2] https://git.buildroot.net/buildroot/tree/package/bctoolbox/bctoolbox.mk#n11
[3] https://github.com/BelledonneCommunications/bctoolbox/blob/master/CMakeLists.txt#L44
[4] https://github.com/BelledonneCommunications/bctoolbox/blob/master/CMakeLists.txt#L88
[5] http://autobuild.buildroot.net/results/4b4/4b4b00ad3b95ddacc9d5cc31c34e457ee55c9364/build-end.log
[6] https://cmake.org/cmake/help/v3.0/module/CheckSymbolExists.html

Signature · 1 line
Samuel
#4 lore raw

Hi Samuel,

Quoted 28 lines · Samuel Martin
Quoted 9 lines · Baruch Siach
Quoted 8 lines · J?rg Krause

On Wed, 2017-01-25 at 08:30 +0100, Thomas Petazzoni wrote:
[snip]

Quoted 5 lines

Detail of failures
===================

i586 | bctoolbox-0.4.0 | NOK | http://autobuil
d.buildroot.net/results/4b4b00ad3b95ddacc9d5cc31c34e457ee55c9364

Regarding this package, apologies I missed it during the initial review :s

This build failure occurs because it goes in a path it should not. In the Config.in: it is mentionned that mbedtls is prefered to polarssl [1], hence the select [1] and the dependency in the *.mk [2]. However, the cmake configure flags are not set accordingly to this, and the defaults may play against us [3].

I would suggest to set the ENABLE_{MBEDTLS,POLARSSL} flags in the *.mk first. This should prevent from following this case [4], as displayed in the build log [5].

After this, if the CheckSymbolExists still causes error, we may need to patch the bctoolbox
cmake code to set/fix the variables used by CheckSymbolExists [6].

Quoted 1 line
Quoted 1 line
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines

Unfortunately I cannot reproduce this issue. Is it a rpath issue? cmake links a test program with host zlib:

Note: I'm not able to reproduce the error either.

Do you have a 32bit libz.so.1 in /usr/lib on your host machine?

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

[..]/i586-buildroot-linux-musl/bin/ld: warning: libc.so.6, needed by /usr/lib32/libz.so.1, not found (try using -rpath or -rpath-link) /usr/lib32/libz.so.1: undefined reference to `strcpy at GLIBC_2.0'

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
#5 lore raw

Hi Baruch,

Quoted 39 lines · Baruch Siach

Hi Samuel,

Quoted 36 lines · Samuel Martin
Quoted 11 lines · Baruch Siach
Quoted 10 lines · J?rg Krause

On Wed, 2017-01-25 at 08:30 +0100, Thomas Petazzoni wrote:
[snip]

Quoted 7 lines

Detail of failures
===================

????????i586 |????????????????bctoolbox-0.4.0 | NOK | http://
autobuil d.buildroot.net/results/4b4b00ad3b95ddacc9d5cc31c34e457ee55c9 364

Regarding this package, apologies I missed it during the initial review :s

This build failure occurs because it goes in a path it should not. In the Config.in: it is mentionned that mbedtls is prefered to polarssl [1], hence the select [1] and the dependency in the *.mk [2].
However, the cmake configure flags are not set accordingly to this, and the defaults may play against us [3].

I would suggest to set the ENABLE_{MBEDTLS,POLARSSL} flags in the *.mk first.
This should prevent from following this case [4], as displayed in the
build log [5].

After this, if the CheckSymbolExists still causes error, we may need
to patch the bctoolbox
cmake code to set/fix the variables used by CheckSymbolExists [6].

Quoted 1 line
Quoted 1 line
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Quoted 3 lines

Unfortunately I cannot reproduce this issue. Is it a rpath issue? cmake
links a test program with host zlib:

Note: I'm not able to reproduce the error either.

Do you have a 32bit libz.so.1 in /usr/lib on your host machine?

I do have:

ls -l /usr/lib??/libz.so.1
lrwxrwxrwx 1 root root 14 15. Jan 20:46 /usr/lib32/libz.so.1 -> libz.so.1.2.11*
lrwxrwxrwx 1 root root 14 15. Jan 20:43 /usr/lib64/libz.so.1 -> libz.so.1.2.11*

J?rg

#6 lore raw

Hi J?rg,

Quoted 13 lines · J?rg Krause
Quoted 11 lines · Baruch Siach
Quoted 8 lines · Samuel Martin
Quoted 4 lines · Baruch Siach
Quoted 3 lines · J?rg Krause

Unfortunately I cannot reproduce this issue. Is it a rpath issue? cmake
links a test program with host zlib:

Note: I'm not able to reproduce the error either.

Do you have a 32bit libz.so.1 in /usr/lib on your host machine?

Quoted 7 lines

I do have:

ls -l /usr/lib??/libz.so.1
lrwxrwxrwx 1 root root 14 15. Jan 20:46 /usr/lib32/libz.so.1 -> libz.so.1.2.11*
lrwxrwxrwx 1 root root 14 15. Jan 20:43 /usr/lib64/libz.so.1 -> libz.so.1.2.11*

On a recent Debian Testing I have lib32z1 installed and:

ls -l /usr/lib32/libz.so.1
lrwxrwxrwx 1 root root 13 Dec 7 17:43 /usr/lib32/libz.so.1 -> libz.so.1.2.8

I can reproduce this failure here.

The failed gcc invocation in CMakeError.log includes -Wl,-rpath,/usr/lib32, which is clearly incompatible with cross compiling.

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
#7 lore raw
In reply to Samuel Martin

Hi Samuel,

Quoted 13 lines · Samuel Martin

Hi all,

Quoted 9 lines · Baruch Siach

Hi J?rg,

Quoted 6 lines · J?rg Krause

On Wed, 2017-01-25 at 08:30 +0100, Thomas Petazzoni wrote:
[snip]

Quoted 3 lines

Detail of failures
===================

Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

????????i586 |????????????????bctoolbox-0.4.0 | NOK | http://au
tobuil d.buildroot.net/results/4b4b00ad3b95ddacc9d5cc31c34e457ee55c936 4

Regarding this package, apologies I missed it during the initial review :s

Never mind! That's the autobuilder are there for, right?

Quoted 11 lines

This build failure occurs because it goes in a path it should not. In the Config.in: it is mentionned that mbedtls is prefered to polarssl [1], hence the select [1] and the dependency in the *.mk [2].
However, the cmake configure flags are not set accordingly to this, and the defaults may play against us [3].

I would suggest to set the ENABLE_{MBEDTLS,POLARSSL} flags in the *.mk first.
This should prevent from following this case [4], as displayed in the build log [5].

Support for PolarSSL is only enabled if mbedTLS is not found, but I agree, it's better to disable it explicitly.

Quoted 3 lines

After this, if the CheckSymbolExists still causes error, we may need to patch the bctoolbox
cmake code to set/fix the variables used by CheckSymbolExists [6].

I prepared a patch of FindMbedTLS.cmake which checks if mbedtls was build with libz support and if so, add libz to MBEDTLS_LIBRARIES. This way, CMake should take care of linking against the libz in sysroot.

Quoted 6 lines
Quoted 4 lines
Quoted 4 lines

Unfortunately I cannot reproduce this issue. Is it a rpath issue? cmake
links a test program with host zlib:

Note: I'm not able to reproduce the error either.

I wonder, what makes the difference to be able to reproduce the issue.

Quoted 42 lines
Quoted 15 lines
Quoted 5 lines

[..]/i586-buildroot-linux-musl/bin/ld: warning: libc.so.6, needed by
/usr/lib32/libz.so.1, not found (try using -rpath or -rpath-link) /usr/lib32/libz.so.1: undefined reference to `strcpy at GLIBC_2.0'

This is your host library.

Quoted 2 lines

I have no idea how to fix it. bctoolbox' cmakelists.txt does set CMAKE_INSTALL_RPATH=/usr/lib. Is this a problem?

That is definitely not compatible with cross compilation.

baruch

Quoted 11 lines

--
?????http://baruch.siach.name/blog/??????????????????~. .~???Tk Open Systems =}------------------------------------------------ooO--U--Ooo---- --------{=
???- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.
il -
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

Regards,

[1] https://git.buildroot.net/buildroot/tree/package/bctoolbox/Config
.in#n5
[2] https://git.buildroot.net/buildroot/tree/package/bctoolbox/bctool
box.mk#n11
[3] https://github.com/BelledonneCommunications/bctoolbox/blob/master
/CMakeLists.txt#L44
[4] https://github.com/BelledonneCommunications/bctoolbox/blob/master
/CMakeLists.txt#L88
[5] http://autobuild.buildroot.net/results/4b4/4b4b00ad3b95ddacc9d5cc
31c34e457ee55c9364/build-end.log
[6] https://cmake.org/cmake/help/v3.0/module/CheckSymbolExists.html

#8 lore raw

Hi J?rg,

Quoted 10 lines · J?rg Krause
Quoted 7 lines · Samuel Martin
Quoted 3 lines · Baruch Siach
Quoted 2 lines · J?rg Krause

Unfortunately I cannot reproduce this issue. Is it a rpath issue? cmake links a test program with host zlib:

Note: I'm not able to reproduce the error either.

I wonder, what makes the difference to be able to reproduce the issue.

See http://lists.busybox.net/pipermail/buildroot/2017-January/182237.html.

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
#9 lore raw

Hi Baruch,

Quoted 12 lines · Baruch Siach

Hi J?rg,

Quoted 9 lines · J?rg Krause
Quoted 8 lines · Samuel Martin

On Wed, Jan 25, 2017 at 10:15 PM, Baruch Siach <[email protected]

Quoted 1 line
Quoted 4 lines · wrote:
Quoted 3 lines · J?rg Krause

Unfortunately I cannot reproduce this issue. Is it a rpath issue?
cmake links a test program with host zlib:

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

Note: I'm not able to reproduce the error either.

I wonder, what makes the difference to be able to reproduce the issue.

See http://lists.busybox.net/pipermail/buildroot/2017-January/182237.
html.

I setup a Debian and Scientific Linux system yesterday, but I still cannot reproduce the build issue. However, I've found out that mbedlts is never build with zlib support in Buildroot [1].

[1] http://patchwork.ozlabs.org/patch/721218/

#10 lore raw

Hi J?rg,

Quoted 14 lines · J?rg Krause
Quoted 13 lines · Baruch Siach

Hi J?rg,

Quoted 10 lines · J?rg Krause
Quoted 8 lines · Samuel Martin
Quoted 4 lines · On Wed, Jan 25, 2017 at 10:15 PM, Baruch Siach <[email protected] wrote:
Quoted 3 lines · J?rg Krause

Unfortunately I cannot reproduce this issue. Is it a rpath issue?
cmake links a test program with host zlib:

Note: I'm not able to reproduce the error either.

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

I wonder, what makes the difference to be able to reproduce the issue.

See http://lists.busybox.net/pipermail/buildroot/2017-January/182237.html.

I setup a Debian and Scientific Linux system yesterday, but I still cannot reproduce the build issue.

Do you have lib32z1 installed?

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
#11 lore raw
Quoted 23 lines · Baruch Siach

Hi J?rg,

Quoted 20 lines · J?rg Krause
Quoted 19 lines · Baruch Siach

Hi J?rg,

Quoted 15 lines · J?rg Krause
Quoted 11 lines · Samuel Martin
Quoted 6 lines · On Wed, Jan 25, 2017 at 10:15 PM, Baruch Siach <[email protected] o.il wrote:
Quoted 4 lines · J?rg Krause

Unfortunately I cannot reproduce this issue. Is it a rpath
issue?
cmake links a test program with host zlib:

Note: I'm not able to reproduce the error either.

I wonder, what makes the difference to be able to reproduce the issue.

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

See http://lists.busybox.net/pipermail/buildroot/2017-January/182
237.html.

I setup a Debian and Scientific Linux system yesterday, but I still cannot reproduce the build issue.

Do you have lib32z1 installed?

yes:

# pacman -Qi lib32-zlib
Name????????????: lib32-zlib
Version?????????: 1.2.11-1
#12 lore raw

Hi J?rg,

Quoted 26 lines · J?rg Krause
Quoted 25 lines · Baruch Siach
Quoted 23 lines · J?rg Krause
Quoted 12 lines · Baruch Siach
Quoted 11 lines · J?rg Krause
Quoted 10 lines · Samuel Martin
Quoted 6 lines · On Wed, Jan 25, 2017 at 10:15 PM, Baruch Siach <[email protected] o.il wrote:
Quoted 4 lines · J?rg Krause

Unfortunately I cannot reproduce this issue. Is it a rpath
issue?
cmake links a test program with host zlib:

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

Note: I'm not able to reproduce the error either.

I wonder, what makes the difference to be able to reproduce the issue.

See http://lists.busybox.net/pipermail/buildroot/2017-January/182
237.html.

I setup a Debian and Scientific Linux system yesterday, but I still cannot reproduce the build issue.

Quoted 7 lines
Quoted 1 line

Do you have lib32z1 installed?

yes:

# pacman -Qi lib32-zlib
Name????????????: lib32-zlib
Version?????????: 1.2.11-1

I meant to ask about Debian and the lib32z1 package specifically (not zlib1g:i386). This package installs 32bit libz.so.1 in /usr/lib32.

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
#13 lore raw

Hi Baruch,

Quoted 37 lines · Baruch Siach

Hi J?rg,

Quoted 34 lines · J?rg Krause
Quoted 25 lines · Baruch Siach
Quoted 24 lines · J?rg Krause
Quoted 22 lines · Baruch Siach
Quoted 12 lines · J?rg Krause
Quoted 11 lines · Samuel Martin

On Wed, Jan 25, 2017 at 10:15 PM, Baruch Siach <baruch@tk os.c
o.il

Quoted 6 lines · wrote:
Quoted 4 lines · J?rg Krause

Unfortunately I cannot reproduce this issue. Is it a rpath
issue?
cmake links a test program with host zlib:

Quoted 5 lines
Quoted 1 line

Note: I'm not able to reproduce the error either.

I wonder, what makes the difference to be able to reproduce the
issue.

See http://lists.busybox.net/pipermail/buildroot/2017-January
/182
237.html.

Quoted 5 lines
Quoted 3 lines

I setup a Debian and Scientific Linux system yesterday, but I still
cannot reproduce the build issue.

Do you have lib32z1 installed?

yes:

Quoted 8 lines
Quoted 3 lines
# pacman -Qi lib32-zlib
Name????????????: lib32-zlib
Version?????????: 1.2.11-1

I meant to ask about Debian and the lib32z1 package specifically (not?
zlib1g:i386). This package installs 32bit libz.so.1 in /usr/lib32.

No, lib32z1 was not installed on my fresh Debian system. Thanks for this! Now I am able to reproduce the issue.

J?rg

#14 lore raw
In reply to Baruch Siach

Hi,

Quoted 2 lines · Baruch Siach

Hi J?rg,

[snip]

Quoted 4 lines

I meant to ask about Debian and the lib32z1 package specifically (not?
zlib1g:i386). This package installs 32bit libz.so.1 in /usr/lib32.

I reported the issue on the CMake mailing list [1]. The issue is that the host rpath is used when cross-compiling a simple test program generated by the check_symbol_exists() macro. I had no success in disabling the rpath for any of the check_*_macros().

As I am not a CMake expert, it's quite possible that I missed something. Has anyone an idea how to fix this issue?

[1] https://cmake.org/pipermail/cmake/2017-February/064970.html

#15 lore raw

Hello,

Quoted 9 lines · J?rg Krause
Quoted 3 lines

I meant to ask about Debian and the lib32z1 package specifically (not?
zlib1g:i386). This package installs 32bit libz.so.1 in /usr/lib32.

I reported the issue on the CMake mailing list [1]. The issue is that the host rpath is used when cross-compiling a simple test program generated by the check_symbol_exists() macro. I had no success in disabling the rpath for any of the check_*_macros().

Quoted 4 lines

As I am not a CMake expert, it's quite possible that I missed something. Has anyone an idea how to fix this issue?

[1] https://cmake.org/pipermail/cmake/2017-February/064970.html

I've added Samuel in Cc. He is our CMake guy :)

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#16 lore raw

Hi Jorg, all,

Quoted 13 lines · Thomas Petazzoni

Hello,

Quoted 9 lines · J?rg Krause
Quoted 3 lines

I meant to ask about Debian and the lib32z1 package specifically (not
zlib1g:i386). This package installs 32bit libz.so.1 in /usr/lib32.

I reported the issue on the CMake mailing list [1]. The issue is that the host rpath is used when cross-compiling a simple test program generated by the check_symbol_exists() macro. I had no success in disabling the rpath for any of the check_*_macros().

Quoted 6 lines
Quoted 4 lines

As I am not a CMake expert, it's quite possible that I missed something. Has anyone an idea how to fix this issue?

[1] https://cmake.org/pipermail/cmake/2017-February/064970.html

I've added Samuel in Cc. He is our CMake guy :)

I had a look at mbedtls cmake code.
It's definitely not really the usual way to use cmake.

They do not use cmake primitives to generate the config.h file [1] or check for pthread [2]... :(
So, this forces us to either workaround this in buildroot's *.mk files (like you did), or rework the mbedtls cmake code.
I submitted few patches to improve the situation (see PR [3]), and hopefully get rid the hooks sooner or later.

[1] https://cmake.org/cmake/help/v3.7/command/configure_file.html
[2] https://cmake.org/cmake/help/v3.7/module/FindThreads.html
[3] https://github.com/ARMmbed/mbedtls/pull/791

Regards,

Signature · 1 line
Samuel
#17 lore raw

Am 6. Februar 2017 17:52:33 MEZ schrieb Samuel Martin <[email protected]>:

Quoted 28 lines

Hi Jorg, all,

Quoted 9 lines · Thomas Petazzoni

Hello,

Quoted 5 lines · J?rg Krause
Quoted 3 lines

I meant to ask about Debian and the lib32z1 package specifically (not
zlib1g:i386). This package installs 32bit libz.so.1 in /usr/lib32.

I reported the issue on the CMake mailing list [1]. The issue is

that

Quoted 10 lines
Quoted 8 lines

the host rpath is used when cross-compiling a simple test program generated by the check_symbol_exists() macro. I had no success in disabling the rpath for any of the check_*_macros().

As I am not a CMake expert, it's quite possible that I missed something. Has anyone an idea how to fix this issue?

[1] https://cmake.org/pipermail/cmake/2017-February/064970.html

I've added Samuel in Cc. He is our CMake guy :)

I had a look at mbedtls cmake code.
It's definitely not really the usual way to use cmake.

Quoted 6 lines

They do not use cmake primitives to generate the config.h file [1] or check for pthread [2]... :(
So, this forces us to either workaround this in buildroot's *.mk files (like you did), or rework the mbedtls cmake code.
I submitted few patches to improve the situation (see PR [3]), and hopefully get rid the hooks sooner or later.

I see! Many thanks for the investigativ work!

Maybe I am wrong, but this has no affect on the bctoolbox build issue, right?

Quoted 3 lines

[1] https://cmake.org/cmake/help/v3.7/command/configure_file.html
[2] https://cmake.org/cmake/help/v3.7/module/FindThreads.html
[3] https://github.com/ARMmbed/mbedtls/pull/791

Signature · 1 line
J?rg
#18 lore raw
Quoted 38 lines · J?rg Krause

Am 6. Februar 2017 17:52:33 MEZ schrieb Samuel Martin <[email protected]>:

Quoted 28 lines

Hi Jorg, all,

Quoted 9 lines · Thomas Petazzoni

Hello,

Quoted 5 lines · J?rg Krause
Quoted 3 lines

I meant to ask about Debian and the lib32z1 package specifically (not
zlib1g:i386). This package installs 32bit libz.so.1 in /usr/lib32.

I reported the issue on the CMake mailing list [1]. The issue is

that

Quoted 10 lines
Quoted 8 lines

the host rpath is used when cross-compiling a simple test program generated by the check_symbol_exists() macro. I had no success in disabling the rpath for any of the check_*_macros().

As I am not a CMake expert, it's quite possible that I missed something. Has anyone an idea how to fix this issue?

[1] https://cmake.org/pipermail/cmake/2017-February/064970.html

I've added Samuel in Cc. He is our CMake guy :)

I had a look at mbedtls cmake code.
It's definitely not really the usual way to use cmake.

Quoted 6 lines

They do not use cmake primitives to generate the config.h file [1] or check for pthread [2]... :(
So, this forces us to either workaround this in buildroot's *.mk files (like you did), or rework the mbedtls cmake code.
I submitted few patches to improve the situation (see PR [3]), and hopefully get rid the hooks sooner or later.

Quoted 3 lines

I see! Many thanks for the investigativ work!

Maybe I am wrong, but this has no affect on the bctoolbox build issue, right?

Right, to improve the bctoolbox case, mbedtls should generate and install its own mbedtls-config.cmake according to its configuration; so that bctoolbox can leverage it in its own cmake code. This is the next step on mbedtls code ;-)

Quoted 8 lines
Quoted 4 lines

[1] https://cmake.org/cmake/help/v3.7/command/configure_file.html
[2] https://cmake.org/cmake/help/v3.7/module/FindThreads.html
[3] https://github.com/ARMmbed/mbedtls/pull/791

--
J?rg

Signature · 1 line
Samuel
#19 lore raw

Am 6. Februar 2017 18:53:56 MEZ schrieb Samuel Martin <[email protected]>:

Quoted 45 lines
Quoted 3 lines · J?rg Krause

Am 6. Februar 2017 17:52:33 MEZ schrieb Samuel Martin

<[email protected]>:

Quoted 11 lines
Quoted 11 lines

Hi Jorg, all,

Quoted 7 lines · Thomas Petazzoni

Hello,

Quoted 3 lines · J?rg Krause
Quoted 3 lines

I meant to ask about Debian and the lib32z1 package specifically (not
zlib1g:i386). This package installs 32bit libz.so.1 in

/usr/lib32.

Quoted 12 lines
Quoted 12 lines
Quoted 2 lines
Quoted 2 lines

I reported the issue on the CMake mailing list [1]. The issue is

that

Quoted 9 lines
Quoted 8 lines

the host rpath is used when cross-compiling a simple test program generated by the check_symbol_exists() macro. I had no success in disabling the rpath for any of the check_*_macros().

As I am not a CMake expert, it's quite possible that I missed something. Has anyone an idea how to fix this issue?

[1] https://cmake.org/pipermail/cmake/2017-February/064970.html

Quoted 8 lines
Quoted 8 lines
Quoted 1 line

I've added Samuel in Cc. He is our CMake guy :)

I had a look at mbedtls cmake code.
It's definitely not really the usual way to use cmake.

They do not use cmake primitives to generate the config.h file [1] or check for pthread [2]... :(
So, this forces us to either workaround this in buildroot's *.mk

files

Quoted 6 lines
Quoted 3 lines

(like you did), or rework the mbedtls cmake code.
I submitted few patches to improve the situation (see PR [3]), and hopefully get rid the hooks sooner or later.

I see! Many thanks for the investigativ work!

Quoted 7 lines
Quoted 1 line

Maybe I am wrong, but this has no affect on the bctoolbox build

issue, right?

Right, to improve the bctoolbox case, mbedtls should generate and install its own mbedtls-config.cmake according to its configuration; so that bctoolbox can leverage it in its own cmake code. This is the next step on mbedtls code ;-)

Thanks!

Do you have any idea why CMake adds the rpath when using check_symbol_exists() in a cross-compilation environment? I reported the issue on the CMake mailing list...

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

[1] https://cmake.org/cmake/help/v3.7/command/configure_file.html
[2] https://cmake.org/cmake/help/v3.7/module/FindThreads.html
[3] https://github.com/ARMmbed/mbedtls/pull/791

#20 lore raw
Quoted 35 lines · J?rg Krause

Am 6. Februar 2017 18:53:56 MEZ schrieb Samuel Martin <[email protected]>:

Quoted 32 lines
Quoted 3 lines · J?rg Krause

Am 6. Februar 2017 17:52:33 MEZ schrieb Samuel Martin

<[email protected]>:

Quoted 11 lines
Quoted 11 lines

Hi Jorg, all,

Quoted 7 lines · Thomas Petazzoni

Hello,

Quoted 3 lines · J?rg Krause
Quoted 3 lines

I meant to ask about Debian and the lib32z1 package specifically (not
zlib1g:i386). This package installs 32bit libz.so.1 in

/usr/lib32.

Quoted 14 lines
Quoted 14 lines
Quoted 2 lines
Quoted 2 lines

I reported the issue on the CMake mailing list [1]. The issue is

that

Quoted 10 lines
Quoted 8 lines

the host rpath is used when cross-compiling a simple test program generated by the check_symbol_exists() macro. I had no success in disabling the rpath for any of the check_*_macros().

As I am not a CMake expert, it's quite possible that I missed something. Has anyone an idea how to fix this issue?

[1] https://cmake.org/pipermail/cmake/2017-February/064970.html

I've added Samuel in Cc. He is our CMake guy :)

[...]

Quoted 1 line

Do you have any idea why CMake adds the rpath when using check_symbol_exists() in a cross-compilation environment? I reported the issue on the CMake mailing list...

I saw your report.
Not a clue so far.
I do have /usr/lib32/libz.so.1 (/usr/lib32/libz.so.1 -> libz.so.1.2.11) on my system as well, but I'm not able to reproduce the error (the cmake-3.7.2 from my host archlinux picks the right lib from the sysroot :-/).

Signature · 1 line
Samuel
#21 lore raw
Quoted 53 lines · Samuel Martin
Quoted 44 lines · J?rg Krause

Am 6. Februar 2017 18:53:56 MEZ schrieb Samuel Martin <s.martin49@g mail.com>:

Quoted 40 lines
Quoted 3 lines · J?rg Krause

Am 6. Februar 2017 17:52:33 MEZ schrieb Samuel Martin

<[email protected]>:

Quoted 4 lines
Quoted 4 lines

Hi Jorg, all,

On Mon, Feb 6, 2017 at 12:06 PM, Thomas Petazzoni
<[email protected]> wrote:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

Hello,

Quoted 4 lines · J?rg Krause
Quoted 4 lines

I meant to ask about Debian and the lib32z1 package specifically
(not
zlib1g:i386). This package installs 32bit libz.so.1 in

/usr/lib32.

Quoted 19 lines
Quoted 19 lines
Quoted 3 lines
Quoted 3 lines

I reported the issue on the CMake mailing list [1]. The issue is

that

Quoted 14 lines
Quoted 6 lines

the host rpath is used when cross-compiling a simple test program
generated by the check_symbol_exists() macro. I had no success in
disabling the rpath for any of the check_*_macros().

Quoted 6 lines

As I am not a CMake expert, it's quite possible that I missed
something. Has anyone an idea how to fix this issue?

[1] https://cmake.org/pipermail/cmake/2017-February/06497
0.html

I've added Samuel in Cc. He is our CMake guy :)

[...]

Quoted 3 lines

Do you have any idea why CMake adds the rpath when using check_symbol_exists() in a cross-compilation environment? I reported the issue on the CMake mailing list...

Quoted 6 lines

I saw your report.
Not a clue so far.
I do have /usr/lib32/libz.so.1 (/usr/lib32/libz.so.1 -> libz.so.1.2.11) on my system as well, but I'm not able to reproduce the error (the cmake-3.7.2 from my host archlinux picks the right lib from the sysroot :-/).

I am not able to reproduce the issue on my Arch Linux host, too. But, I am able to reproduce it on a Debian host.

Despite the reproducability, am I right that rpath should not be passed to the cross-linker by CMake when compiling and linking a test program as it is done when using check_symbol_exists()? Only the sysroot flag should be passed to the cross-linker, right?

J?rg

#22 lore raw
In reply to Samuel Martin
Quoted 53 lines · Samuel Martin
Quoted 44 lines · J?rg Krause

Am 6. Februar 2017 18:53:56 MEZ schrieb Samuel Martin <s.martin49@g mail.com>:

Quoted 40 lines
Quoted 3 lines · J?rg Krause

Am 6. Februar 2017 17:52:33 MEZ schrieb Samuel Martin

<[email protected]>:

Quoted 4 lines
Quoted 4 lines

Hi Jorg, all,

On Mon, Feb 6, 2017 at 12:06 PM, Thomas Petazzoni
<[email protected]> wrote:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

Hello,

Quoted 4 lines · J?rg Krause
Quoted 4 lines

I meant to ask about Debian and the lib32z1 package specifically
(not
zlib1g:i386). This package installs 32bit libz.so.1 in

/usr/lib32.

Quoted 19 lines
Quoted 19 lines
Quoted 3 lines
Quoted 3 lines

I reported the issue on the CMake mailing list [1]. The issue is

that

Quoted 14 lines
Quoted 6 lines

the host rpath is used when cross-compiling a simple test program
generated by the check_symbol_exists() macro. I had no success in
disabling the rpath for any of the check_*_macros().

Quoted 6 lines

As I am not a CMake expert, it's quite possible that I missed
something. Has anyone an idea how to fix this issue?

[1] https://cmake.org/pipermail/cmake/2017-February/06497
0.html

I've added Samuel in Cc. He is our CMake guy :)

[...]

Quoted 3 lines

Do you have any idea why CMake adds the rpath when using check_symbol_exists() in a cross-compilation environment? I reported the issue on the CMake mailing list...

Quoted 6 lines

I saw your report.
Not a clue so far.
I do have /usr/lib32/libz.so.1 (/usr/lib32/libz.so.1 -> libz.so.1.2.11) on my system as well, but I'm not able to reproduce the error (the cmake-3.7.2 from my host archlinux picks the right lib from the sysroot :-/).

I tested with CMake 3.0.2 on the Debian host and CMake does not pass rpath to the cross-linker in this version.

J?rg

#23 lore raw
In reply to Samuel Martin

Hi Samuel,

Quoted 53 lines · Samuel Martin
Quoted 44 lines · J?rg Krause

Am 6. Februar 2017 18:53:56 MEZ schrieb Samuel Martin <s.martin49@g mail.com>:

Quoted 40 lines
Quoted 3 lines · J?rg Krause

Am 6. Februar 2017 17:52:33 MEZ schrieb Samuel Martin

<[email protected]>:

Quoted 4 lines
Quoted 4 lines

Hi Jorg, all,

On Mon, Feb 6, 2017 at 12:06 PM, Thomas Petazzoni
<[email protected]> wrote:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

Hello,

Quoted 4 lines · J?rg Krause
Quoted 4 lines

I meant to ask about Debian and the lib32z1 package specifically
(not
zlib1g:i386). This package installs 32bit libz.so.1 in

/usr/lib32.

Quoted 19 lines
Quoted 19 lines
Quoted 3 lines
Quoted 3 lines

I reported the issue on the CMake mailing list [1]. The issue is

that

Quoted 14 lines
Quoted 6 lines

the host rpath is used when cross-compiling a simple test program
generated by the check_symbol_exists() macro. I had no success in
disabling the rpath for any of the check_*_macros().

Quoted 6 lines

As I am not a CMake expert, it's quite possible that I missed
something. Has anyone an idea how to fix this issue?

[1] https://cmake.org/pipermail/cmake/2017-February/06497
0.html

I've added Samuel in Cc. He is our CMake guy :)

[...]

Quoted 3 lines

Do you have any idea why CMake adds the rpath when using check_symbol_exists() in a cross-compilation environment? I reported the issue on the CMake mailing list...

Quoted 6 lines

I saw your report.
Not a clue so far.
I do have /usr/lib32/libz.so.1 (/usr/lib32/libz.so.1 -> libz.so.1.2.11) on my system as well, but I'm not able to reproduce the error (the cmake-3.7.2 from my host archlinux picks the right lib from the sysroot :-/).

Version 3.6.3 works, too. So, I did a git bisect. The rpath issue was introduced in "Teach find_library and find_package to search lib32 paths" [1].

Any ideas how to fix this?

[1] https://gitlab.kitware.com/cmake/cmake/commit/896ad251de49f167f4ce3
cbbcf9a6cce85a16681

J?rg

#24 lore raw

J?rg, all,

Quoted 63 lines · J?rg Krause

Hi Samuel,

Quoted 53 lines · Samuel Martin
Quoted 44 lines · J?rg Krause

Am 6. Februar 2017 18:53:56 MEZ schrieb Samuel Martin <s.martin49@g mail.com>:

Quoted 40 lines
Quoted 3 lines · J?rg Krause

Am 6. Februar 2017 17:52:33 MEZ schrieb Samuel Martin

<[email protected]>:

Quoted 4 lines
Quoted 4 lines

Hi Jorg, all,

On Mon, Feb 6, 2017 at 12:06 PM, Thomas Petazzoni
<[email protected]> wrote:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

Hello,

Quoted 4 lines · J?rg Krause
Quoted 4 lines

I meant to ask about Debian and the lib32z1 package specifically
(not
zlib1g:i386). This package installs 32bit libz.so.1 in

/usr/lib32.

Quoted 19 lines
Quoted 19 lines
Quoted 3 lines
Quoted 3 lines

I reported the issue on the CMake mailing list [1]. The issue is

that

Quoted 14 lines
Quoted 6 lines

the host rpath is used when cross-compiling a simple test program
generated by the check_symbol_exists() macro. I had no success in
disabling the rpath for any of the check_*_macros().

Quoted 6 lines

As I am not a CMake expert, it's quite possible that I missed
something. Has anyone an idea how to fix this issue?

[1] https://cmake.org/pipermail/cmake/2017-February/06497
0.html

I've added Samuel in Cc. He is our CMake guy :)

[...]

Quoted 3 lines

Do you have any idea why CMake adds the rpath when using check_symbol_exists() in a cross-compilation environment? I reported the issue on the CMake mailing list...

Quoted 6 lines

I saw your report.
Not a clue so far.
I do have /usr/lib32/libz.so.1 (/usr/lib32/libz.so.1 -> libz.so.1.2.11) on my system as well, but I'm not able to reproduce the error (the cmake-3.7.2 from my host archlinux picks the right lib from the sysroot :-/).

Quoted 3 lines

Version 3.6.3 works, too. So, I did a git bisect. The rpath issue was introduced in "Teach find_library and find_package to search lib32 paths" [1].

Thanks for the investigation!

Quoted 2 lines

Any ideas how to fix this?

Not so far :-/

Could you apply this change, run (from an already populated build tree, no need to restart the build from scratch):

  $ make mbedtls-dirclean mbedtls-configure 2>&1 | tee mbedtls-configure.log

and pastebin/share the mbedtls-configure.log file?

Quoted 5 lines

[1] https://gitlab.kitware.com/cmake/cmake/commit/896ad251de49f167f4ce3
cbbcf9a6cce85a16681

J?rg

TIA,

Signature · 1 line
Samuel
#25 lore raw

Hi Samuel,

Quoted 6 lines · Samuel Martin

J?rg, all,

Quoted 2 lines · J?rg Krause

Hi Samuel,

[snip]

Quoted 6 lines
Quoted 5 lines

Version 3.6.3 works, too. So, I did a git bisect. The rpath issue was
introduced in "Teach find_library and find_package to search lib32 paths" [1].

Quoted 6 lines

Thanks for the investigation!

Quoted 2 lines

Any ideas how to fix this?

Not so far :-/

Ray Donnely proposed a potential fix for this issue [1] on the CMake mailing list. I have not tried the patch so far.

Quoted 6 lines

Could you apply this change, run (from an already populated build tree, no need to restart the build from scratch):
? $ make mbedtls-dirclean mbedtls-configure 2>&1 | tee mbedtls- configure.log

and pastebin/share the mbedtls-configure.log file?

Sorry, but I don't understand. Which change do you mean? Should I run this on the Debian (bctoolbox build error is reproducable) or the Arch (bctoolbox build error is not reproducable) host? Which CMake version should I use?

[1] https://gitlab.kitware.com/mingwandroid/cmake/commit/b937ff949d8fda
ab7d8b812d503f67f8cef69532

J?rg

#26 lore raw
Quoted 21 lines · J?rg Krause

Hi Samuel,

Quoted 6 lines · Samuel Martin

J?rg, all,

Quoted 2 lines · J?rg Krause

Hi Samuel,

[snip]

Quoted 9 lines
Quoted 5 lines

Version 3.6.3 works, too. So, I did a git bisect. The rpath issue was
introduced in "Teach find_library and find_package to search lib32 paths" [1].

Thanks for the investigation!

Quoted 1 line
Quoted 6 lines
Quoted 3 lines
Quoted 1 line

Any ideas how to fix this?

Not so far :-/

Ray Donnely proposed a potential fix for this issue [1] on the CMake mailing list. I have not tried the patch so far.

Good to know CMake folks are already on this issue.

Quoted 6 lines
Quoted 6 lines

Could you apply this change, run (from an already populated build tree, no need to restart the build from scratch):

  $ make mbedtls-dirclean mbedtls-configure 2>&1 | tee mbedtls-
configure.log
Quoted 6 lines
Quoted 1 line

and pastebin/share the mbedtls-configure.log file?

Sorry, but I don't understand. Which change do you mean? Should I run this on the Debian (bctoolbox build error is reproducable) or the Arch (bctoolbox build error is not reproducable) host? Which CMake version should I use?

Sorry, I forgot the url :s this one:
http://code.bulix.org/pkabso-113323

Quoted 5 lines

[1] https://gitlab.kitware.com/mingwandroid/cmake/commit/b937ff949d8fda
ab7d8b812d503f67f8cef69532

J?rg

Signature · 1 line
Samuel
#27 lore raw

Hi Samuel,

Quoted 51 lines · Samuel Martin
Quoted 23 lines · J?rg Krause

Hi Samuel,

Quoted 6 lines · Samuel Martin

J?rg, all,

Quoted 2 lines · J?rg Krause

Hi Samuel,

[snip]

Quoted 11 lines
Quoted 7 lines

Version 3.6.3 works, too. So, I did a git bisect. The rpath issue
was
introduced in "Teach find_library and find_package to search lib32
paths" [1].

Thanks for the investigation!

Quoted 1 line
Quoted 7 lines
Quoted 3 lines
Quoted 1 line

Any ideas how to fix this?

Not so far :-/

Ray Donnely proposed a potential fix for this issue [1] on the CMake
mailing list. I have not tried the patch so far.

Good to know CMake folks are already on this issue.

Quoted 8 lines
Quoted 7 lines

Could you apply this change, run (from an already populated build tree, no need to restart the build from scratch):
? $ make mbedtls-dirclean mbedtls-configure 2>&1 | tee mbedtls- configure.log

and pastebin/share the mbedtls-configure.log file?

Quoted 7 lines

Sorry, but I don't understand. Which change do you mean? Should I run
this on the Debian (bctoolbox build error is reproducable) or the Arch
(bctoolbox build error is not reproducable) host? Which CMake version
should I use?

Quoted 2 lines

Sorry, I forgot the url :s this one:
http://code.bulix.org/pkabso-113323

This is the link to the output:
http://code.bulix.org/gu6jeh-113374

#28 lore raw
In reply to Samuel Martin

Hi,

Quoted 27 lines · Samuel Martin
Quoted 25 lines · J?rg Krause

Hi Samuel,

Quoted 6 lines · Samuel Martin

J?rg, all,

Quoted 2 lines · J?rg Krause

Hi Samuel,

[snip]

Quoted 13 lines
Quoted 7 lines

Version 3.6.3 works, too. So, I did a git bisect. The rpath issue
was
introduced in "Teach find_library and find_package to search lib32
paths" [1].

Thanks for the investigation!

Quoted 2 lines

Any ideas how to fix this?

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

Not so far :-/

Ray Donnely proposed a potential fix for this issue [1] on the CMake
mailing list. I have not tried the patch so far.

Good to know CMake folks are already on this issue.

I had a closer look on why the rpath '/usr/lib32' is used in CMake 3.7. This upstream commit [1] adds a property FIND_LIBRARY_USE_LIB32_PATHS which is set to TRUE for the Linux platform [2]. This changes the behavior of find_library(). Before the commit /sysroot/usr/lib was found as library path, but now it's /sysroot/usr/lib32.

When determining the runtime search path, CMake compares the pathes found by find_library() with a list of implicit runtime pathes. This list contains /sysroot/usr/lib but not /sysroot/usr/lib32.

If the library path found by find_library() matches a search path from the list of implicit runtime pathes it is dropped, otherwise it is added to rpath after removing the /sysroot path.

As the implicit runtime search pathes does not contain /sysroot/usr/lib32 the rpath is set to /usr/lib32.

Note, that this is true not only for bctoolbox but for all CMake packages!

The behavior of determining the runtime path is controlled by the property FIND_LIBRARY_USE_LIB32_PATHS. As already mentioned, the value is set to TRUE for the Linux platfrom. I tried to overwrite the property in the toolchain file, without any luck.

Another possibility might be to add /sysroot/usr/lib32 to the list of implicit link directories, but using CMAKE_C_IMPLICIT_LINK_DIRECTORIES in the toolchain file did not work for me.

An approach which worked for me was to remove the CMAKE_SYSTEM_NAME setting from the toolchain file. This way, I was able to set the FIND_LIBRARY_USE_LIB32_PATHS property to FALSE and /usr/lib32 was not set as rpath anymore.

Samuel, do you have any idea how to set the property FIND_LIBRARY_USE_LIB32_PATHS without removing CMAKE_SYSTEM_NAME from the toolchain file?

Or is there any other solution?

[1] https://gitlab.kitware.com/cmake/cmake/commit/896ad251de49f167f4ce3
cbbcf9a6cce85a16681
[2] https://gitlab.kitware.com/cmake/cmake/blob/896ad251de49f167f4ce3cb
bcf9a6cce85a16681/Modules/Platform/Linux.cmake#L56

J?rg