[Buildroot] Compilation error in version: 2016.11, package util-linux

Anand Sivaram aspnair at gmail.com
Fri Dec 9 16:46:46 UTC 2016


Thanks Thomas for the clarification.

Anand


On 9 December 2016 at 20:29, Thomas Petazzoni <
thomas.petazzoni at free-electrons.com> wrote:

> Hello,
>
> On Fri, 9 Dec 2016 20:10:30 +0530, Anand Sivaram wrote:
>
> > I tried to upgrade my buildroot to 2016.11 from 2016.05.  Now I am
> getting
> > a compilation error in util-linux because BR2_PACKAGE_UTIL_LINUX_
> LIBMOUNT
> > is enabled and it got enabled automatically because of the newer version
> of
> > libglib2. (For me libglib2 has to be enabled in my system).
> >
> > In 2016.05 version, neither I enabled libmount directly not it got
> enabled
> > as a dependency of glib2.0
> >
> > Target Details:
> > Toolchain: External gcc-4.7.3, uClibc-0.9.33.2 on MIPS 24Kc.
> > Build Machine: Debian Testing/Stretch
> >
> > Compilation Error: Because of have_scanf_alloc_modifier
> >
> > checking for tgetent in -ltinfo... no
> > configure: error: libmount selected, but required scanf string alloc
> > modifier not available
> > package/pkg-generic.mk:206: recipe for target
> > '/media/build/buildroot/output/build/util-linux-2.28.
> 2/.stamp_configured'
> > failed
> > make[1]: ***
> > [/media/build/buildroot/output/build/util-linux-2.28.
> 2/.stamp_configured]
> > Error 1
> > make[1]: Leaving directory '/media/build/buildroot'
> > Makefile:292: recipe for target 'buildroot' failed
> > make: *** [buildroot] Error 2
> >
> > While searching I found the following patch, but for an older version of
> > util-linux.
> > http://repository.timesys.com/buildsources/u/util-linux/
> util-linux-2.27.1/util-linux-2.27.1-sscanf-no-ms-as.patch
> >
> > I do not require libmount directly. I could remove dependency of libmount
> > and disable it from glib2.0 and try to disable the LIBMOUNT flag
> > altogether.  But, that is a workaround.
> >
> > Any help would be really appreciated.
>
> We used to have 0001-build-sys-fix-uClibc-ng-scanf-check.patch, which
> we dropped when bumping to util-linux 2.28.1.
>
> But uClibc 0.9.33.2 is very old, and Buildroot no longer support or
> tests such old C library. You should really upgrade your toolchain to
> have a more recent uClibc version (using uClibc-ng).
>
> Best regards,
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux and Kernel engineering
> http://free-electrons.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20161209/9e40fc13/attachment-0002.html>


More information about the buildroot mailing list