All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v3 1/1] package/softether: Fix iconv-related compile error
@ 2015-03-15  8:29 Bernd Kuhls
  2015-03-15 11:53 ` Thomas Petazzoni
  2015-04-04 17:56 ` Thomas Petazzoni
  0 siblings, 2 replies; 7+ messages in thread
From: Bernd Kuhls @ 2015-03-15  8:29 UTC (permalink / raw)
  To: buildroot

Fixes
http://autobuild.buildroot.net/results/72e/72eab3a6f162e3c5eac380f88b54d4f314d52445/
http://autobuild.buildroot.net/results/f47/f473882cd35445cbe5b3b15635d555340183951a/
http://autobuild.buildroot.net/results/45b/45b54b59935c3994c526593836ad433b82148f12/
http://autobuild.buildroot.net/results/1e4/1e4af4642691ea9681b39eb1ce4f8107e8c3ff5f/
http://autobuild.buildroot.net/results/182/182e658723d654d45c683dc2bc0b959c82c37826/
http://autobuild.buildroot.net/results/446/4467fd6aad86bf176625fdc74f5802f35519f157/
http://autobuild.buildroot.net/results/4a2/4a2cafabe048c5255b21cf25f149542561f60935/
http://autobuild.buildroot.net/results/12a/12a9de3d946b1379ed8bc772e556f163af758e6b/
http://autobuild.buildroot.net/results/795/795b02b656e3a6f265a5182140f4be62cf22ae7f/

To reproduce the build error I used this defconfig

BR2_arm=y
BR2_arm1176jzf_s=y
BR2_COMPILER_PARANOID_UNSAFE_PATH=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y
BR2_TOOLCHAIN_EXTERNAL_URL="http://autobuild.buildroot.org/toolchains/tarballs/armv6-ctng-linux-uclibcgnueabi.tar.xz"
BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="armv6-ctng-linux-uclibcgnueabi"
BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_9=y
BR2_TOOLCHAIN_EXTERNAL_LARGEFILE=y
BR2_TOOLCHAIN_EXTERNAL_WCHAR=y
BR2_TOOLCHAIN_EXTERNAL_HAS_SSP=y
BR2_TOOLCHAIN_EXTERNAL_CXX=y
BR2_PACKAGE_SOFTETHER=y

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
v3: The real problem seemed to be LIBS+= (Peter)
v2: Simplify libiconv check (Thomas)

 package/softether/softether.mk |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/package/softether/softether.mk b/package/softether/softether.mk
index 8f8734d..1c219b8 100644
--- a/package/softether/softether.mk
+++ b/package/softether/softether.mk
@@ -16,12 +16,12 @@ SOFTETHER_AUTORECONF = YES
 
 ifeq ($(BR2_ENABLE_LOCALE),)
 SOFTETHER_DEPENDENCIES += libiconv
-SOFTETHER_CONF_ENV = LIBS+=" -liconv"
+SOFTETHER_LIBS += -liconv
 endif
 
 ifeq ($(BR2_STATIC_LIBS),y)
 # openssl needs zlib
-SOFTETHER_CONF_ENV += LIBS+=" -lz"
+SOFTETHER_LIBS += -lz
 endif
 
 SOFTETHER_CONF_OPTS = \
@@ -31,7 +31,9 @@ SOFTETHER_CONF_OPTS = \
 # softether uses clock_gettime but forgets to link against -lrt
 # breaking the build against older libc's that don't provide this
 # symbol in libc
-SOFTETHER_CONF_ENV += LIBS+=" -lrt"
+SOFTETHER_LIBS += -lrt
+
+SOFTETHER_CONF_ENV += LIBS="$(SOFTETHER_LIBS)"
 HOST_SOFTETHER_CONF_ENV += LIBS+=" -lrt"
 
 # host-libiconv does not exist, therefore we need this extra line
-- 
1.7.10.4

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

* [Buildroot] [PATCH v3 1/1] package/softether: Fix iconv-related compile error
  2015-03-15  8:29 [Buildroot] [PATCH v3 1/1] package/softether: Fix iconv-related compile error Bernd Kuhls
@ 2015-03-15 11:53 ` Thomas Petazzoni
  2015-03-15 22:54   ` Peter Korsgaard
  2015-04-04 17:56 ` Thomas Petazzoni
  1 sibling, 1 reply; 7+ messages in thread
From: Thomas Petazzoni @ 2015-03-15 11:53 UTC (permalink / raw)
  To: buildroot

Dear Bernd Kuhls,

On Sun, 15 Mar 2015 09:29:19 +0100, Bernd Kuhls wrote:

> BR2_arm=y
> BR2_arm1176jzf_s=y
> BR2_COMPILER_PARANOID_UNSAFE_PATH=y
> BR2_TOOLCHAIN_EXTERNAL=y
> BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
> BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y
> BR2_TOOLCHAIN_EXTERNAL_URL="http://autobuild.buildroot.org/toolchains/tarballs/armv6-ctng-linux-uclibcgnueabi.tar.xz"
> BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="armv6-ctng-linux-uclibcgnueabi"
> BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_9=y
> BR2_TOOLCHAIN_EXTERNAL_LARGEFILE=y
> BR2_TOOLCHAIN_EXTERNAL_WCHAR=y
> BR2_TOOLCHAIN_EXTERNAL_HAS_SSP=y
> BR2_TOOLCHAIN_EXTERNAL_CXX=y
> BR2_PACKAGE_SOFTETHER=y

I tried to build this defconfig, and the build went fine here. Tested
at commit d4f7cfe1855cefa35322891e887636c3b82a6aea, full config at
http://code.bulix.org/u9uhwi-88083?raw, log file at
http://code.bulix.org/5wyyws-88084?raw.

Indeed, the LIBS += handling is fixed by your patch, but I'm wondering
why I'm not seeing the problem.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

* [Buildroot] [PATCH v3 1/1] package/softether: Fix iconv-related compile error
  2015-03-15 11:53 ` Thomas Petazzoni
@ 2015-03-15 22:54   ` Peter Korsgaard
  2015-03-16  8:12     ` Thomas Petazzoni
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Korsgaard @ 2015-03-15 22:54 UTC (permalink / raw)
  To: buildroot

>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

 > Dear Bernd Kuhls,
 > On Sun, 15 Mar 2015 09:29:19 +0100, Bernd Kuhls wrote:

 >> BR2_arm=y
 >> BR2_arm1176jzf_s=y
 >> BR2_COMPILER_PARANOID_UNSAFE_PATH=y
 >> BR2_TOOLCHAIN_EXTERNAL=y
 >> BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
 >> BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y
 >> BR2_TOOLCHAIN_EXTERNAL_URL="http://autobuild.buildroot.org/toolchains/tarballs/armv6-ctng-linux-uclibcgnueabi.tar.xz"
 >> BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="armv6-ctng-linux-uclibcgnueabi"
 >> BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_9=y
 >> BR2_TOOLCHAIN_EXTERNAL_LARGEFILE=y
 >> BR2_TOOLCHAIN_EXTERNAL_WCHAR=y
 >> BR2_TOOLCHAIN_EXTERNAL_HAS_SSP=y
 >> BR2_TOOLCHAIN_EXTERNAL_CXX=y
 >> BR2_PACKAGE_SOFTETHER=y

 > I tried to build this defconfig, and the build went fine here. Tested
 > at commit d4f7cfe1855cefa35322891e887636c3b82a6aea, full config at
 > http://code.bulix.org/u9uhwi-88083?raw, log file at
 > http://code.bulix.org/5wyyws-88084?raw.

 > Indeed, the LIBS += handling is fixed by your patch, but I'm wondering
 > why I'm not seeing the problem.

I'm not sure either. As I mentioned earlier, I am also not able to
reproduce the issue.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH v3 1/1] package/softether: Fix iconv-related compile error
  2015-03-15 22:54   ` Peter Korsgaard
@ 2015-03-16  8:12     ` Thomas Petazzoni
  2015-03-16 17:34       ` Bernd Kuhls
  0 siblings, 1 reply; 7+ messages in thread
From: Thomas Petazzoni @ 2015-03-16  8:12 UTC (permalink / raw)
  To: buildroot

Dear Peter Korsgaard,

On Sun, 15 Mar 2015 23:54:56 +0100, Peter Korsgaard wrote:

>  > Indeed, the LIBS += handling is fixed by your patch, but I'm wondering
>  > why I'm not seeing the problem.
> 
> I'm not sure either. As I mentioned earlier, I am also not able to
> reproduce the issue.

Yann suggested it might be a dash vs. bash issue where bash would
accept multiple LIBS += on the command line, but not dash. But I
changed /bin/sh to point to /bin/dash on my system, and I still
couldn't reproduce the problem.

Still the problem is real as it appears on the autobuilders, but it'd
be great to understand fully what's going on.

I'll try to run Bernd's minimal failing config in one of the
autobuilders.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

* [Buildroot] [PATCH v3 1/1] package/softether: Fix iconv-related compile error
  2015-03-16  8:12     ` Thomas Petazzoni
@ 2015-03-16 17:34       ` Bernd Kuhls
  2015-03-17 22:38         ` Peter Korsgaard
  0 siblings, 1 reply; 7+ messages in thread
From: Bernd Kuhls @ 2015-03-16 17:34 UTC (permalink / raw)
  To: buildroot

Thomas Petazzoni <thomas.petazzoni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8
@public.gmane.org> wrote in news:20150316091235.7c77634c at free-electrons.com:

> Yann suggested it might be a dash vs. bash issue where bash would
> accept multiple LIBS += on the command line, but not dash. But I
> changed /bin/sh to point to /bin/dash on my system, and I still
> couldn't reproduce the problem.

Hi,

FYI

$ dpkg -l | grep dash
ii  dash        0.5.7-3              amd64        POSIX-compliant shell

$ ls -la /bin/sh
lrwxrwxrwx 1 root root 4 M?r  1  2012 /bin/sh -> dash

$ cat /etc/debian_version
7.8

Regards, Bernd

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

* [Buildroot] [PATCH v3 1/1] package/softether: Fix iconv-related compile error
  2015-03-16 17:34       ` Bernd Kuhls
@ 2015-03-17 22:38         ` Peter Korsgaard
  0 siblings, 0 replies; 7+ messages in thread
From: Peter Korsgaard @ 2015-03-17 22:38 UTC (permalink / raw)
  To: buildroot

>>>>> "Bernd" == Bernd Kuhls <bernd.kuhls@t-online.de> writes:

 > Thomas Petazzoni <thomas.petazzoni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8
 > @public.gmane.org> wrote in news:20150316091235.7c77634c at free-electrons.com:

 >> Yann suggested it might be a dash vs. bash issue where bash would
 >> accept multiple LIBS += on the command line, but not dash. But I
 >> changed /bin/sh to point to /bin/dash on my system, and I still
 >> couldn't reproduce the problem.

 > Hi,

 > FYI

 > $ dpkg -l | grep dash
 > ii  dash        0.5.7-3              amd64        POSIX-compliant shell

 > $ ls -la /bin/sh
 > lrwxrwxrwx 1 root root 4 Mr  1  2012 /bin/sh -> dash

My setup is almost the same, except:

dpkg -l dash | grep ii
ii  dash           0.5.7-4+b1   amd64        POSIX-compliant shell

So I don't think that is the reason.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH v3 1/1] package/softether: Fix iconv-related compile error
  2015-03-15  8:29 [Buildroot] [PATCH v3 1/1] package/softether: Fix iconv-related compile error Bernd Kuhls
  2015-03-15 11:53 ` Thomas Petazzoni
@ 2015-04-04 17:56 ` Thomas Petazzoni
  1 sibling, 0 replies; 7+ messages in thread
From: Thomas Petazzoni @ 2015-04-04 17:56 UTC (permalink / raw)
  To: buildroot

Dear Bernd Kuhls,

On Sun, 15 Mar 2015 09:29:19 +0100, Bernd Kuhls wrote:
> Fixes
> http://autobuild.buildroot.net/results/72e/72eab3a6f162e3c5eac380f88b54d4f314d52445/
> http://autobuild.buildroot.net/results/f47/f473882cd35445cbe5b3b15635d555340183951a/
> http://autobuild.buildroot.net/results/45b/45b54b59935c3994c526593836ad433b82148f12/
> http://autobuild.buildroot.net/results/1e4/1e4af4642691ea9681b39eb1ce4f8107e8c3ff5f/
> http://autobuild.buildroot.net/results/182/182e658723d654d45c683dc2bc0b959c82c37826/
> http://autobuild.buildroot.net/results/446/4467fd6aad86bf176625fdc74f5802f35519f157/
> http://autobuild.buildroot.net/results/4a2/4a2cafabe048c5255b21cf25f149542561f60935/
> http://autobuild.buildroot.net/results/12a/12a9de3d946b1379ed8bc772e556f163af758e6b/
> http://autobuild.buildroot.net/results/795/795b02b656e3a6f265a5182140f4be62cf22ae7f/
> 
> To reproduce the build error I used this defconfig
> 
> BR2_arm=y
> BR2_arm1176jzf_s=y
> BR2_COMPILER_PARANOID_UNSAFE_PATH=y
> BR2_TOOLCHAIN_EXTERNAL=y
> BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
> BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y
> BR2_TOOLCHAIN_EXTERNAL_URL="http://autobuild.buildroot.org/toolchains/tarballs/armv6-ctng-linux-uclibcgnueabi.tar.xz"
> BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="armv6-ctng-linux-uclibcgnueabi"
> BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_9=y
> BR2_TOOLCHAIN_EXTERNAL_LARGEFILE=y
> BR2_TOOLCHAIN_EXTERNAL_WCHAR=y
> BR2_TOOLCHAIN_EXTERNAL_HAS_SSP=y
> BR2_TOOLCHAIN_EXTERNAL_CXX=y
> BR2_PACKAGE_SOFTETHER=y
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>

Nor Peter nor I were able to reproduce the issue, and since then the
softether version has been bumped, and the issue hasn't appeared again
on the autobuilders. So let's assume the issue has been fixed. I'll
mark the patch as Rejected in patchwork.

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

end of thread, other threads:[~2015-04-04 17:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-15  8:29 [Buildroot] [PATCH v3 1/1] package/softether: Fix iconv-related compile error Bernd Kuhls
2015-03-15 11:53 ` Thomas Petazzoni
2015-03-15 22:54   ` Peter Korsgaard
2015-03-16  8:12     ` Thomas Petazzoni
2015-03-16 17:34       ` Bernd Kuhls
2015-03-17 22:38         ` Peter Korsgaard
2015-04-04 17:56 ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.