From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Thu, 14 Jan 2016 11:57:35 +0100 Subject: [Buildroot] argp-standalone broken when optimization is enabled In-Reply-To: References: <20160114101914.36da8560@free-electrons.com> Message-ID: <20160114115735.079123f4@free-electrons.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Vicen?, Please keep the Buildroot list in Cc, thanks! On Thu, 14 Jan 2016 11:26:45 +0100, Vicen? wrote: > On Thu, Jan 14, 2016 at 10:19 AM, Thomas Petazzoni > wrote: > > Vicen?, > > > > Thanks for your report. > > > > On Wed, 13 Jan 2016 18:15:37 +0100, Vicen? wrote: > >> Hello, > >> could this patch be added to buildroot to fix the issue: > >> > >> https://dev.openwrt.org/browser/trunk/package/libs/argp-standalone/patches/002-no_optimize.patch > > > > Could you describe more precisely what doesn't work ? The OpenWRT > > patch unfortunately doesn't give any details about what it is fixing. > > Hello Thomas, > In the OpenWRT page there is a link to the bug fixed by this patch: > https://dev.openwrt.org/ticket/20460 > The configuration that fails in my case is when this buildroot options > are enabled: > BR2_OPTIMIZE_3 > BR2_TOOLCHAIN_EXTERNAL_GCC_5 > BR2_TOOLCHAIN_EXTERNAL_CUSTOM_MUSL > BR2_PACKAGE_LIBV4L_UTILS > > The error reported is the same as in OpenWRT. > argp is provided with the glibc, but the standalone version is > automatically selected when building some packages with musl. > So, libc != glibc plus some other specific package triggers the issue. Thanks for the details. Then I think http://review.gluster.org/#/c/6034/ is a better solution than the one taken by OpenWRT. Can you try this change ? It originates from https://bugzilla.redhat.com/show_bug.cgi?id=1201898. Thanks, Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com