All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] issue to build elfutils due to libintl
@ 2019-03-08 12:56 Arthur LAMBERT
  2019-03-08 22:49 ` Peter Seiderer
  0 siblings, 1 reply; 5+ messages in thread
From: Arthur LAMBERT @ 2019-03-08 12:56 UTC (permalink / raw)
  To: buildroot

Hi,

I have one issue to build the package elfutils. Everything was working fine
and after updating my ubuntu from 16.04 to 18.04 I am not able to build
anymore the package with success.

My defconfig is for arm architecture with uclibc.

The error :

>>> elfutils 0.174 Building
PATH="/home/arthur/work/buildroot/master_buildroot_integration_dreem/output/host/bin:/home/arthur/work/buildroot/master_buildroot_integration_dreem/output/host/sbin:/home/arthur/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/gnat/bin:/home/g179168/middleware/tools/bin/:/usr/local/go/bin"  /usr/bin/make -j9  -C /home/arthur/work/buildroot/master_buildroot_integration_dreem/output/build/elfutils-0.174/
make[1]: Entering directory '/home/arthur/work/buildroot/master_buildroot_integration_dreem/output/build/elfutils-0.174'
/usr/bin/make --no-print-directory all-recursive
Making all in config
make[3]: Nothing to be done for 'all'.
Making all in m4
make[3]: Nothing to be done for 'all'.
Making all in lib
  CC       xstrdup.o
  CC       xstrndup.o
  CC       xmalloc.o
  CC       next_prime.o
  CC       crc32.o
  CC       crc32_file.o
  CC       color.o
  CC       printversion.o
xmalloc.c:33:10: fatal error: libintl.h: No such file or directory
 #include <libintl.h>
          ^~~~~~~~~~~
compilation terminated.
Makefile:418: recipe for target 'xmalloc.o' failed
make[3]: *** [xmalloc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
printversion.c:33:10: fatal error: libintl.h: No such file or directory
 #include <libintl.h>
          ^~~~~~~~~~~
compilation terminated.
Makefile:418: recipe for target 'printversion.o' failed
make[3]: *** [printversion.o] Error 1
color.c:35:10: fatal error: libintl.h: No such file or directory
 #include <libintl.h>
          ^~~~~~~~~~~
compilation terminated.
Makefile:418: recipe for target 'color.o' failed
make[3]: *** [color.o] Error 1
Makefile:487: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
Makefile:403: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/arthur/work/buildroot/master_buildroot_integration_dreem/output/build/elfutils-0.174'
package/pkg-generic.mk:238: recipe for target '/home/arthur/work/buildroot/master_buildroot_integration_dreem/output/build/elfutils-0.174/.stamp_built' failed
make: *** [/home/arthur/work/buildroot/master_buildroot_integration_dreem/output/build/elfutils-0.174/.stamp_built] Error 2

The issue was present with 2017.02.2 version of buildroot and I am always able to reproduce the issue with 2019.02 release.
Is it an error in my defconfig ? is it a real issue ?

In my opinion the issue is due to the update of my gcc version during the ubuntu upgrade. I am able to
compile elfutils on my archlinux with gcc 5.4.0. I have the issue with gcc 7.3.0 on my ubuntu.

This patch was not supposed to fixed this kind of issues ?
http://lists.busybox.net/pipermail/buildroot/2017-July/196484.html

Thanks,
Arthur.

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

* [Buildroot] issue to build elfutils due to libintl
  2019-03-08 12:56 [Buildroot] issue to build elfutils due to libintl Arthur LAMBERT
@ 2019-03-08 22:49 ` Peter Seiderer
  2019-03-09 16:34   ` Arthur LAMBERT
  2019-03-10 15:14   ` Arthur LAMBERT
  0 siblings, 2 replies; 5+ messages in thread
From: Peter Seiderer @ 2019-03-08 22:49 UTC (permalink / raw)
  To: buildroot

Hello Arthur,

On Fri, 8 Mar 2019 13:56:38 +0100, Arthur LAMBERT <lambertarthur22@gmail.com> wrote:

> Hi,
> 
> I have one issue to build the package elfutils. Everything was working fine
> and after updating my ubuntu from 16.04 to 18.04 I am not able to build
> anymore the package with success.
> 
> My defconfig is for arm architecture with uclibc.

Mind to share your complete .config/defconfig file?

Did your run an complete build (make clean; make), see [1]?

Regards,
Peter

[1] https://buildroot.org/downloads/manual/manual.html#full-rebuild

> 
> The error :
> 
> >>> elfutils 0.174 Building  
> PATH="/home/arthur/work/buildroot/master_buildroot_integration_dreem/output/host/bin:/home/arthur/work/buildroot/master_buildroot_integration_dreem/output/host/sbin:/home/arthur/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/gnat/bin:/home/g179168/middleware/tools/bin/:/usr/local/go/bin"  /usr/bin/make -j9  -C /home/arthur/work/buildroot/master_buildroot_integration_dreem/output/build/elfutils-0.174/
> make[1]: Entering directory '/home/arthur/work/buildroot/master_buildroot_integration_dreem/output/build/elfutils-0.174'
> /usr/bin/make --no-print-directory all-recursive
> Making all in config
> make[3]: Nothing to be done for 'all'.
> Making all in m4
> make[3]: Nothing to be done for 'all'.
> Making all in lib
>   CC       xstrdup.o
>   CC       xstrndup.o
>   CC       xmalloc.o
>   CC       next_prime.o
>   CC       crc32.o
>   CC       crc32_file.o
>   CC       color.o
>   CC       printversion.o
> xmalloc.c:33:10: fatal error: libintl.h: No such file or directory
>  #include <libintl.h>
>           ^~~~~~~~~~~
> compilation terminated.
> Makefile:418: recipe for target 'xmalloc.o' failed
> make[3]: *** [xmalloc.o] Error 1
> make[3]: *** Waiting for unfinished jobs....
> printversion.c:33:10: fatal error: libintl.h: No such file or directory
>  #include <libintl.h>
>           ^~~~~~~~~~~
> compilation terminated.
> Makefile:418: recipe for target 'printversion.o' failed
> make[3]: *** [printversion.o] Error 1
> color.c:35:10: fatal error: libintl.h: No such file or directory
>  #include <libintl.h>
>           ^~~~~~~~~~~
> compilation terminated.
> Makefile:418: recipe for target 'color.o' failed
> make[3]: *** [color.o] Error 1
> Makefile:487: recipe for target 'all-recursive' failed
> make[2]: *** [all-recursive] Error 1
> Makefile:403: recipe for target 'all' failed
> make[1]: *** [all] Error 2
> make[1]: Leaving directory '/home/arthur/work/buildroot/master_buildroot_integration_dreem/output/build/elfutils-0.174'
> package/pkg-generic.mk:238: recipe for target '/home/arthur/work/buildroot/master_buildroot_integration_dreem/output/build/elfutils-0.174/.stamp_built' failed
> make: *** [/home/arthur/work/buildroot/master_buildroot_integration_dreem/output/build/elfutils-0.174/.stamp_built] Error 2
> 
> The issue was present with 2017.02.2 version of buildroot and I am always able to reproduce the issue with 2019.02 release.
> Is it an error in my defconfig ? is it a real issue ?
> 
> In my opinion the issue is due to the update of my gcc version during the ubuntu upgrade. I am able to
> compile elfutils on my archlinux with gcc 5.4.0. I have the issue with gcc 7.3.0 on my ubuntu.
> 
> This patch was not supposed to fixed this kind of issues ?
> http://lists.busybox.net/pipermail/buildroot/2017-July/196484.html
> 
> Thanks,
> Arthur.
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

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

* [Buildroot] issue to build elfutils due to libintl
  2019-03-08 22:49 ` Peter Seiderer
@ 2019-03-09 16:34   ` Arthur LAMBERT
  2019-03-09 21:08     ` Peter Seiderer
  2019-03-10 15:14   ` Arthur LAMBERT
  1 sibling, 1 reply; 5+ messages in thread
From: Arthur LAMBERT @ 2019-03-09 16:34 UTC (permalink / raw)
  To: buildroot

> 
> Did your run an complete build (make clean; make), see [1]?
> 

Good suggestion. I did not try. I rerun the test with full clean and I have always the issue.


My defconfig :

BR2_arm=y
BR2_cortex_a7=y
BR2_ARM_FPU_NEON_VFPV4=y
BR2_KERNEL_HEADERS_4_9=y
BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
BR2_PTHREAD_DEBUG=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_TARGET_GENERIC_HOSTNAME="femto"
BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0"
BR2_ENABLE_LOCALE_WHITELIST="en_US"
BR2_TARGET_TZ_INFO=y
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_GIT=y
BR2_LINUX_KERNEL_CUSTOM_REPO_URL="XXX"
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="XXX"
BR2_LINUX_KERNEL_DEFCONFIG="XXX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IRELESS_TOOLS=y
BR2_PACKAGE_WPA_SUPPLICANT=y
BR2_PACKAGE_WPA_SUPPLICANT_AP_SUPPORT=y
BR2_PACKAGE_WPA_SUPPLICANT_EAP=y
BR2_PACKAGE_WPA_SUPPLICANT_HOTSPOT=y
BR2_PACKAGE_WPA_SUPPLICANT_DEBUG_SYSLOG=y
BR2_PACKAGE_WPA_SUPPLICANT_WPS=y
BR2_PACKAGE_WPA_SUPPLICANT_CLI=y
BR2_PACKAGE_WPA_SUPPLICANT_PASSPHRASE=y
BR2_PACKAGE_HTOP=y
BR2_TARGET_ROOTFS_TAR_GZIP=y
BR2_TARGET_UBOOT=y
BR2_TARGET_UBOOT_BOARDNAME="xxxxx"
BR2_TARGET_UBOOT_CUSTOM_GIT=y
BR2_TARGET_UBOOT_CUSTOM_REPO_URL="xxxxx"
BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="xxxxx"
BR2_TARGET_UBOOT_FORMAT_IMX=y

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

* [Buildroot] issue to build elfutils due to libintl
  2019-03-09 16:34   ` Arthur LAMBERT
@ 2019-03-09 21:08     ` Peter Seiderer
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Seiderer @ 2019-03-09 21:08 UTC (permalink / raw)
  To: buildroot

Hello Arthur,

On Sat, 9 Mar 2019 17:34:32 +0100, Arthur LAMBERT <lambertarthur22@gmail.com> wrote:

> > 
> > Did your run an complete build (make clean; make), see [1]?
> >   
> 
> Good suggestion. I did not try. I rerun the test with full clean and I have always the issue.
> 

Mhhh, your defconfig builds fine here (on openSUSE Tumbleweed), maybe
try to build with 'make V=1' to gain more info (which compiler is used, which flags etc.)...

Here:

	$ find . -name libintl.h
./build/uclibc-1.0.31/include/libintl.h
./build/uclibc-1.0.31/include/config/uclibc/has/libintl.h
./build/gettext-0.19.8.1/gettext-runtime/intl/libintl.h
./host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/libintl.h

So the missing libintl.h from your error message is available here...

Regards,
Peter

> 
> My defconfig :
> 
> BR2_arm=y
> BR2_cortex_a7=y
> BR2_ARM_FPU_NEON_VFPV4=y
> BR2_KERNEL_HEADERS_4_9=y
> BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
> BR2_PTHREAD_DEBUG=y
> BR2_TOOLCHAIN_BUILDROOT_CXX=y
> BR2_TARGET_GENERIC_HOSTNAME="femto"
> BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0"
> BR2_ENABLE_LOCALE_WHITELIST="en_US"
> BR2_TARGET_TZ_INFO=y
> BR2_LINUX_KERNEL=y
> BR2_LINUX_KERNEL_CUSTOM_GIT=y
> BR2_LINUX_KERNEL_CUSTOM_REPO_URL="XXX"
> BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="XXX"
> BR2_LINUX_KERNEL_DEFCONFIG="XXX"
> BR2_LINUX_KERNEL_DTS_SUPPORT=y
> BR2_LINUX_KERNEL_INTREE_DTS_NAME="XXX"
> BR2_PACKAGE_LINUX_TOOLS_PERF=y
> BR2_PACKAGE_BUSYBOX_WATCHDOG=y
> BR2_PACKAGE_ALSA_UTILS=y
> BR2_PACKAGE_ALSA_UTILS_AMIXER=y
> BR2_PACKAGE_ALSA_UTILS_APLAY=y
> BR2_PACKAGE_ALSA_UTILS_SPEAKER_TEST=y
> BR2_PACKAGE_BZIP2=y
> BR2_PACKAGE_GETTEXT=y
> BR2_PACKAGE_DOSFSTOOLS=y
> BR2_PACKAGE_DOSFSTOOLS_FSCK_FAT=y
> BR2_PACKAGE_DOSFSTOOLS_MKFS_FAT=y
> BR2_PACKAGE_E2FSPROGS=y
> BR2_PACKAGE_E2FSPROGS_RESIZE2FS=y
> BR2_PACKAGE_MEMTOOL=y
> BR2_PACKAGE_PYTHON3=y
> BR2_PACKAGE_LIBSNDFILE=y
> BR2_PACKAGE_LIBVORBIS=y
> BR2_PACKAGE_LIBARCHIVE=y
> BR2_PACKAGE_OPENSSL=y
> BR2_PACKAGE_LIBCONFIG=y
> BR2_PACKAGE_DTC=y
> BR2_PACKAGE_DTC_PROGRAMS=y
> BR2_PACKAGE_LIBCURL=y
> BR2_PACKAGE_PAHO_MQTT_C=y
> BR2_PACKAGE_ELFUTILS=y
> BR2_PACKAGE_LIBUNWIND=y
> BR2_PACKAGE_OPENBLAS=y
> BR2_PACKAGE_PROTOBUF=y
> BR2_PACKAGE_PROTOBUF_C=y
> BR2_PACKAGE_BLUEZ5_UTILS=y
> BR2_PACKAGE_BLUEZ5_UTILS_CLIENT=y
> BR2_PACKAGE_BLUEZ5_UTILS_DEPRECATED=y
> BR2_PACKAGE_BLUEZ5_UTILS_EXPERIMENTAL=y
> BR2_PACKAGE_DROPBEAR=y
> BR2_PACKAGE_GESFTPSERVER=y
> BR2_PACKAGE_IPTABLES=y
> BR2_PACKAGE_IPUTILS=y
> BR2_PACKAGE_IW=y
> BR2_PACKAGE_TCPDUMP=y
> BR2_PACKAGE_WIRELESS_TOOLS=y
> BR2_PACKAGE_WPA_SUPPLICANT=y
> BR2_PACKAGE_WPA_SUPPLICANT_AP_SUPPORT=y
> BR2_PACKAGE_WPA_SUPPLICANT_EAP=y
> BR2_PACKAGE_WPA_SUPPLICANT_HOTSPOT=y
> BR2_PACKAGE_WPA_SUPPLICANT_DEBUG_SYSLOG=y
> BR2_PACKAGE_WPA_SUPPLICANT_WPS=y
> BR2_PACKAGE_WPA_SUPPLICANT_CLI=y
> BR2_PACKAGE_WPA_SUPPLICANT_PASSPHRASE=y
> BR2_PACKAGE_HTOP=y
> BR2_TARGET_ROOTFS_TAR_GZIP=y
> BR2_TARGET_UBOOT=y
> BR2_TARGET_UBOOT_BOARDNAME="xxxxx"
> BR2_TARGET_UBOOT_CUSTOM_GIT=y
> BR2_TARGET_UBOOT_CUSTOM_REPO_URL="xxxxx"
> BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="xxxxx"
> BR2_TARGET_UBOOT_FORMAT_IMX=y

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

* [Buildroot] issue to build elfutils due to libintl
  2019-03-08 22:49 ` Peter Seiderer
  2019-03-09 16:34   ` Arthur LAMBERT
@ 2019-03-10 15:14   ` Arthur LAMBERT
  1 sibling, 0 replies; 5+ messages in thread
From: Arthur LAMBERT @ 2019-03-10 15:14 UTC (permalink / raw)
  To: buildroot

Thanks to you I was able to know that the libintl include was comming from the uclibc.
The header was partially missing in my output directory. After checking my uclibc
defconfig, I get it.
In fact I have one custom modification on my buildroot. My uclibc defconfig does not have :
UCLIBC_HAS_LIBINTL=y

But I cannot explain why the compilation is working on my arch linux and was working before the
upgrading in my ubuntu.

This is not a real bug right ? Its more like a mistake in my uclibc defconfig which seems not
to break the build for dark reason on some linux configuration ?

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

end of thread, other threads:[~2019-03-10 15:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-08 12:56 [Buildroot] issue to build elfutils due to libintl Arthur LAMBERT
2019-03-08 22:49 ` Peter Seiderer
2019-03-09 16:34   ` Arthur LAMBERT
2019-03-09 21:08     ` Peter Seiderer
2019-03-10 15:14   ` Arthur LAMBERT

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.