All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Cannot build C++ internal toolchain using uclibc-ng
@ 2018-06-06 15:41 Michele Bucca
  2018-06-06 18:49 ` Thomas Petazzoni
  0 siblings, 1 reply; 6+ messages in thread
From: Michele Bucca @ 2018-06-06 15:41 UTC (permalink / raw)
  To: buildroot

Hello world, this is my first time using this project after a long
time. I'm trying to build a tiny system with a GUI (Minimal Xorg).
I'm using this as a reference
(https://agentoss.wordpress.com/2011/03/06/building-a-tiny-x-org-linux-system-using-buildroot/)
The problem regards the internal toolchain build: I enabled C++, Wide
Character support and Locale support
When I give the make command it gets stuck tryng to build
hotst-gcc-final-6.4.0: the error is the following:

/usr/bin/g++    -O2
-I/home/michele/buildroot/buildroot-2018.02.2/output/host/include
-DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE   -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-DHAVE_CONFIG_H -static-libstdc++ -static-libgcc
-L/home/michele/buildroot/buildroot-2018.02.2/output/host/lib
-Wl,-rpath,/home/michele/buildroot/buildroot-2018.02.2/output/host/lib
gcov-dump.o \
    hash-table.o ggc-none.o\
    libcommon.a ../libcpp/libcpp.a
../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a
../libdecnumber/libdecnumber.a  -o gcov-dump
gcov-dump.o: nella funzione "main":
gcov-dump.c:(.text.startup+0x51): riferimento non definito a
"gcc_init_libintl()"
libcommon.a(intl.o): nella funzione "get_spaces(char const*)":
intl.c:(.text+0x12): riferimento non definito a "gcc_gettext_width(char const*)"
collect2: error: ld returned 1 exit status
Makefile:2757: set di istruzioni per l'obiettivo "gcov-dump" non riuscito
make[3]: *** [gcov-dump] Errore 1
make[3]: *** Attesa per i processi non terminati....
gcov.o: nella funzione "main":
gcov.c:(.text.startup+0x51): riferimento non definito a "gcc_init_libintl()"
libcommon.a(intl.o): nella funzione "get_spaces(char const*)":
intl.c:(.text+0x12): riferimento non definito a "gcc_gettext_width(char const*)"
collect2: error: ld returned 1 exit status
Makefile:2753: set di istruzioni per l'obiettivo "gcov" non riuscito
make[3]: *** [gcov] Errore 1
/usr/bin/ranlib  libbackend.a
make[3]: uscita dalla directory
"/home/michele/buildroot/buildroot-2018.02.2/output/build/host-gcc-final-6.4.0/build/gcc"
Makefile:4134: set di istruzioni per l'obiettivo "all-gcc" non riuscito
make[2]: *** [all-gcc] Errore 2
make[2]: uscita dalla directory
"/home/michele/buildroot/buildroot-2018.02.2/output/build/host-gcc-final-6.4.0/build"
Makefile:878: set di istruzioni per l'obiettivo "all" non riuscito
make[1]: *** [all] Errore 2
make[1]: uscita dalla directory
"/home/michele/buildroot/buildroot-2018.02.2/output/build/host-gcc-final-6.4.0/build"
package/pkg-generic.mk:223: set di istruzioni per l'obiettivo
"/home/michele/buildroot/buildroot-2018.02.2/output/build/host-gcc-final-6.4.0/.stamp_built"
non riuscito
make: *** [/home/michele/buildroot/buildroot-2018.02.2/output/build/host-gcc-final-6.4.0/.stamp_built]
Errore 2

My host system is Debian Jessie 8.10 x86_64
I attach my .config file: what can I do to fix the iissue?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config
Type: application/octet-stream
Size: 90197 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180606/a51019dc/attachment.obj>

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

* [Buildroot] Cannot build C++ internal toolchain using uclibc-ng
  2018-06-06 15:41 [Buildroot] Cannot build C++ internal toolchain using uclibc-ng Michele Bucca
@ 2018-06-06 18:49 ` Thomas Petazzoni
  2018-06-06 20:29   ` Michele Bucca
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas Petazzoni @ 2018-06-06 18:49 UTC (permalink / raw)
  To: buildroot

Hello,

On Wed, 6 Jun 2018 17:41:53 +0200, Michele Bucca wrote:

> My host system is Debian Jessie 8.10 x86_64
> I attach my .config file: what can I do to fix the iissue?

Is this what you have after a complete rebuild ? Make sure you have the
same error after doing "make clean; make".

See https://buildroot.org/downloads/manual/manual.html#full-rebuild for
more details.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

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

* [Buildroot] Cannot build C++ internal toolchain using uclibc-ng
  2018-06-06 18:49 ` Thomas Petazzoni
@ 2018-06-06 20:29   ` Michele Bucca
  2018-06-06 21:15     ` Thomas Petazzoni
  0 siblings, 1 reply; 6+ messages in thread
From: Michele Bucca @ 2018-06-06 20:29 UTC (permalink / raw)
  To: buildroot

2018-06-06 20:49 GMT+02:00 Thomas Petazzoni <thomas.petazzoni@bootlin.com>:
> Hello,
>
> On Wed, 6 Jun 2018 17:41:53 +0200, Michele Bucca wrote:
>
>> My host system is Debian Jessie 8.10 x86_64
>> I attach my .config file: what can I do to fix the iissue?
>
> Is this what you have after a complete rebuild ? Make sure you have the
> same error after doing "make clean; make".
>
> See https://buildroot.org/downloads/manual/manual.html#full-rebuild for
> more details.
>

Yes, it shows the same error [1]. By the way here's  the output of a
clean build that I've made with the commands :

make clean
LC_ALL=C make

[1] https://pastebin.com/Z6vUVmRE

my config is the following:

BR2_x86_i686=y
BR2_KERNEL_HEADERS_4_15=y
BR2_TOOLCHAIN_BUILDROOT_LOCALE=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_TARGET_GENERIC_PASSWD_SHA256=y
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_DEFCONFIG="i386"
BR2_PACKAGE_LIBERATION=y
BR2_PACKAGE_XORG7=y
BR2_PACKAGE_XSERVER_XORG_SERVER=y
BR2_PACKAGE_XAPP_SETXKBMAP=y
BR2_PACKAGE_XAPP_TWM=y
BR2_PACKAGE_XAPP_XCALC=y
BR2_PACKAGE_XAPP_XCLIPBOARD=y
BR2_PACKAGE_XAPP_XCLOCK=y
BR2_PACKAGE_XAPP_XEDIT=y
BR2_PACKAGE_XAPP_XINIT=y
BR2_PACKAGE_XAPP_XINPUT=y
BR2_PACKAGE_XDRIVER_XF86_INPUT_EVDEV=y
BR2_PACKAGE_XDRIVER_XF86_INPUT_KEYBOARD=y
BR2_PACKAGE_XDRIVER_XF86_INPUT_MOUSE=y
BR2_PACKAGE_XDRIVER_XF86_VIDEO_CIRRUS=y
BR2_PACKAGE_XDRIVER_XF86_VIDEO_FBDEV=y
BR2_PACKAGE_XDRIVER_XF86_VIDEO_VESA=y
BR2_PACKAGE_XTERM=y
BR2_TARGET_ROOTFS_INITRAMFS=y
BR2_TARGET_ROOTFS_ISO9660=y
# BR2_TARGET_ROOTFS_TAR is not set
BR2_TARGET_SYSLINUX=y


> Best regards,
>
> Thomas
> --
> Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
> Embedded Linux and Kernel engineering
> https://bootlin.com

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

* [Buildroot] Cannot build C++ internal toolchain using uclibc-ng
  2018-06-06 20:29   ` Michele Bucca
@ 2018-06-06 21:15     ` Thomas Petazzoni
  2018-06-06 21:24       ` Michele Bucca
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas Petazzoni @ 2018-06-06 21:15 UTC (permalink / raw)
  To: buildroot

Hello,

On Wed, 6 Jun 2018 22:29:33 +0200, Michele Bucca wrote:

> Yes, it shows the same error [1]. By the way here's  the output of a
> clean build that I've made with the commands :
> 
> make clean
> LC_ALL=C make
> 
> [1] https://pastebin.com/Z6vUVmRE
> 

What Linux distribution and version of this distribution are you using
as the host system ?

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

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

* [Buildroot] Cannot build C++ internal toolchain using uclibc-ng
  2018-06-06 21:15     ` Thomas Petazzoni
@ 2018-06-06 21:24       ` Michele Bucca
  2018-06-07  8:26         ` Thomas Petazzoni
  0 siblings, 1 reply; 6+ messages in thread
From: Michele Bucca @ 2018-06-06 21:24 UTC (permalink / raw)
  To: buildroot

2018-06-06 23:15 GMT+02:00 Thomas Petazzoni <thomas.petazzoni@bootlin.com>:
> Hello,
>
> On Wed, 6 Jun 2018 22:29:33 +0200, Michele Bucca wrote:
>
>> Yes, it shows the same error [1]. By the way here's  the output of a
>> clean build that I've made with the commands :
>>
>> make clean
>> LC_ALL=C make
>>
>> [1] https://pastebin.com/Z6vUVmRE
>>
>
> What Linux distribution and version of this distribution are you using
> as the host system ?

My host system is Debian Jessie 8.10 x86_64 Updated just today with
latest packages from the repos

>
> Thanks,
>
> Thomas
> --
> Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
> Embedded Linux and Kernel engineering
> https://bootlin.com

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

* [Buildroot] Cannot build C++ internal toolchain using uclibc-ng
  2018-06-06 21:24       ` Michele Bucca
@ 2018-06-07  8:26         ` Thomas Petazzoni
  0 siblings, 0 replies; 6+ messages in thread
From: Thomas Petazzoni @ 2018-06-07  8:26 UTC (permalink / raw)
  To: buildroot

Hello,

On Wed, 6 Jun 2018 23:24:06 +0200, Michele Bucca wrote:

> >> make clean
> >> LC_ALL=C make
> >>
> >> [1] https://pastebin.com/Z6vUVmRE
> >>  
> >
> > What Linux distribution and version of this distribution are you using
> > as the host system ?  
> 
> My host system is Debian Jessie 8.10 x86_64 Updated just today with
> latest packages from the repos

I built your exact defconfig in a Docker container that has Debian
Jessie 8.10 installed, and it worked just fine for me. I only had an
issue way after the toolchain build, when building the kernel, because
your defconfig lacks:

  BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y

But other than that, it builds fine. So I suspect there is something
wrong/special in your environment. As I can't reproduce, you'll have to
investigate a bit yourself I'm afraid.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

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

end of thread, other threads:[~2018-06-07  8:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-06 15:41 [Buildroot] Cannot build C++ internal toolchain using uclibc-ng Michele Bucca
2018-06-06 18:49 ` Thomas Petazzoni
2018-06-06 20:29   ` Michele Bucca
2018-06-06 21:15     ` Thomas Petazzoni
2018-06-06 21:24       ` Michele Bucca
2018-06-07  8:26         ` 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.