* [Buildroot] [Bug 11036] New: C compiler cannot create executables
@ 2018-05-23 14:44 bugzilla at busybox.net
2018-05-23 14:58 ` [Buildroot] [Bug 11036] " bugzilla at busybox.net
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: bugzilla at busybox.net @ 2018-05-23 14:44 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=11036
Bug ID: 11036
Summary: C compiler cannot create executables
Product: buildroot
Version: 2018.02.1
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: outtierbert at gmail.com
CC: buildroot at uclibc.org
Target Milestone: ---
Created attachment 7596
--> https://bugs.busybox.net/attachment.cgi?id=7596&action=edit
file located in
output/build/host-gcc-initial-6.4.0/build/arm-buildroot-linux-uclibcgnueabihf/libgcc/config.log
Hi all,
I am trying to build my buildroot project, but I keep on getting a strange
error.
In the build step of host-gcc-initial, I get an error when it builds libgcc:
Checking multilib configuration for libgcc...
mkdir -p -- arm-buildroot-linux-uclibcgnueabihf/libgcc
Configuring in arm-buildroot-linux-uclibcgnueabihf/libgcc
configure: creating cache ./config.cache
checking build system type... x86_64-pc-linux-gnu
checking host system type... arm-buildroot-linux-uclibcgnueabihf
checking for --enable-version-specific-runtime-libs... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... gawk
checking for arm-buildroot-linux-uclibcgnueabihf-ar...
/home/bertou/development/bernardo-buildroot/buildroot/output/host/arm-buildroot-linux-uclibcgnueabihf/bin/ar
checking for arm-buildroot-linux-uclibcgnueabihf-lipo...
arm-buildroot-linux-uclibcgnueabihf-lipo
checking for arm-buildroot-linux-uclibcgnueabihf-nm...
/home/bertou/development/bernardo-buildroot/buildroot/output/build/host-gcc-initial-6.4.0/build/./gcc/nm
checking for arm-buildroot-linux-uclibcgnueabihf-ranlib...
/home/bertou/development/bernardo-buildroot/buildroot/output/host/arm-buildroot-linux-uclibcgnueabihf/bin/ranlib
checking for arm-buildroot-linux-uclibcgnueabihf-strip...
/home/bertou/development/bernardo-buildroot/buildroot/output/host/arm-buildroot-linux-uclibcgnueabihf/bin/strip
checking whether ln -s works... yes
checking for arm-buildroot-linux-uclibcgnueabihf-gcc...
/home/bertou/development/bernardo-buildroot/buildroot/output/build/host-gcc-initial-6.4.0/build/./gcc/xgcc
-B/home/bertou/development/bernardo-buildroot/buildroot/output/build/host-gcc-initial-6.4.0/build/./gcc/
-B/home/bertou/development/bernardo-buildroot/buildroot/output/host/arm-buildroot-linux-uclibcgnueabihf/bin/
-B/home/bertou/development/bernardo-buildroot/buildroot/output/host/arm-buildroot-linux-uclibcgnueabihf/lib/
-isystem
/home/bertou/development/bernardo-buildroot/buildroot/output/host/arm-buildroot-linux-uclibcgnueabihf/include
-isystem
/home/bertou/development/bernardo-buildroot/buildroot/output/host/arm-buildroot-linux-uclibcgnueabihf/sys-include
checking for C compiler default output file name...
configure: error: in
`/home/bertou/development/bernardo-buildroot/buildroot/output/build/host-gcc-initial-6.4.0/build/arm-buildroot-linux-uclibcgnueabihf/libgcc':
configure: error: C compiler cannot create executables
See `config.log' for more details.
Makefile:10976: recipe for target 'configure-target-libgcc' failed
make[2]: *** [configure-target-libgcc] Error 1
package/pkg-generic.mk:223: recipe for target
'/home/bertou/development/bernardo-buildroot/buildroot/output/build/host-gcc-initial-6.4.0/.stamp_built'
failed
make[1]: ***
[/home/bertou/development/bernardo-buildroot/buildroot/output/build/host-gcc-initial-6.4.0/.stamp_built]
Error 2
Makefile:79: recipe for target '_all' failed
make: *** [_all] Error 2
My system is a Ubuntu 16.04, gcc version 5.4.0
The full config.log is in attachment. I can build other buildroot projects just
fine, so it does not seem to be a environment issue.
This is the buildroot defconfig that I am trying to build:
BR2_arm=y
BR2_cortex_a8=y
BR2_GLOBAL_PATCH_DIR="$(BR2_EXTERNAL_BERNARDO_PATH)/board/bernardo/patches"
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_9=y
BR2_TARGET_GENERIC_GETTY_PORT="ttyO0"
BR2_ROOTFS_OVERLAY="$(BR2_EXTERNAL_BERNARDO_PATH)/board/bernardo/rootfs_overlay"
BR2_ROOTFS_POST_BUILD_SCRIPT="$(BR2_EXTERNAL_BERNARDO_PATH)/board/bernardo/post-build.sh"
BR2_ROOTFS_POST_IMAGE_SCRIPT="$(BR2_EXTERNAL_BERNARDO_PATH)/board/bernardo/post-image.sh"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_GIT=y
BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/RobertCNelson/linux-stable-rcn-ee"
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="4.9.36-ti-r46"
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(BR2_EXTERNAL_BERNARDO_PATH)/board/bernardo/kernel.config"
BR2_LINUX_KERNEL_DTS_SUPPORT=y
BR2_LINUX_KERNEL_USE_CUSTOM_DTS=y
BR2_LINUX_KERNEL_CUSTOM_DTS_PATH="$(BR2_EXTERNAL_BERNARDO_PATH)/board/bernardo/bernardo.dts"
BR2_PACKAGE_BUSYBOX_CONFIG="$(BR2_EXTERNAL_BERNARDO_PATH)/board/bernardo/busybox.config"
BR2_TARGET_ROOTFS_EXT2=y
BR2_TARGET_ROOTFS_EXT2_4=y
BR2_TARGET_UBOOT=y
BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
BR2_TARGET_UBOOT_CUSTOM_GIT=y
BR2_TARGET_UBOOT_CUSTOM_REPO_URL="https://github.com/u-boot/u-boot"
BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="v2018.01"
BR2_TARGET_UBOOT_PATCH="$(BR2_EXTERNAL_BERNARDO_PATH)/board/bernardo/u-boot"
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="am335x_boneblack"
BR2_TARGET_UBOOT_NEEDS_DTC=y
# BR2_TARGET_UBOOT_FORMAT_BIN is not set
BR2_TARGET_UBOOT_FORMAT_IMG=y
BR2_TARGET_UBOOT_FORMAT_CUSTOM=y
BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="spl/u-boot-spl.bin"
BR2_TARGET_UBOOT_SPL=y
BR2_TARGET_UBOOT_SPL_NAME="MLO"
BR2_PACKAGE_HOST_DOSFSTOOLS=y
BR2_PACKAGE_HOST_GENIMAGE=y
BR2_PACKAGE_HOST_MTOOLS=y
When I try to build the beaglebone_defconfig config (which is not that
different), I do not have any issue.
Can you guys help me?
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [Bug 11036] C compiler cannot create executables
2018-05-23 14:44 [Buildroot] [Bug 11036] New: C compiler cannot create executables bugzilla at busybox.net
@ 2018-05-23 14:58 ` bugzilla at busybox.net
2018-05-23 15:03 ` bugzilla at busybox.net
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: bugzilla at busybox.net @ 2018-05-23 14:58 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=11036
--- Comment #1 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com> ---
First question: does this issue appear when doing a full rebuild from scratch,
i.e "make clean; make" ?
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [Bug 11036] C compiler cannot create executables
2018-05-23 14:44 [Buildroot] [Bug 11036] New: C compiler cannot create executables bugzilla at busybox.net
2018-05-23 14:58 ` [Buildroot] [Bug 11036] " bugzilla at busybox.net
@ 2018-05-23 15:03 ` bugzilla at busybox.net
2018-05-23 17:03 ` bugzilla at busybox.net
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: bugzilla at busybox.net @ 2018-05-23 15:03 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=11036
--- Comment #2 from outtierbert at gmail.com ---
Yes, it does. I even completely removed the output folder once, just to be
sure.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [Bug 11036] C compiler cannot create executables
2018-05-23 14:44 [Buildroot] [Bug 11036] New: C compiler cannot create executables bugzilla at busybox.net
2018-05-23 14:58 ` [Buildroot] [Bug 11036] " bugzilla at busybox.net
2018-05-23 15:03 ` bugzilla at busybox.net
@ 2018-05-23 17:03 ` bugzilla at busybox.net
2018-05-23 21:29 ` bugzilla at busybox.net
2018-05-24 6:23 ` bugzilla at busybox.net
4 siblings, 0 replies; 6+ messages in thread
From: bugzilla at busybox.net @ 2018-05-23 17:03 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=11036
--- Comment #3 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com> ---
OK. Could you try to provide a defconfig that exhibits the problem but does not
use your own private BR2_EXTERNAL tree, so that we could try to reproduce the
issue ?
Since it's the toolchain that is failing to build, normally only those options
would be needed to reproduce the problem:
BR2_arm=y
BR2_cortex_a8=y
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_9=y
the other options should not affect the toolchain build, except if your patches
on gcc/binutils in $(BR2_EXTERNAL_BERNARDO_PATH)/board/bernardo/patches.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [Bug 11036] C compiler cannot create executables
2018-05-23 14:44 [Buildroot] [Bug 11036] New: C compiler cannot create executables bugzilla at busybox.net
` (2 preceding siblings ...)
2018-05-23 17:03 ` bugzilla at busybox.net
@ 2018-05-23 21:29 ` bugzilla at busybox.net
2018-05-24 6:23 ` bugzilla at busybox.net
4 siblings, 0 replies; 6+ messages in thread
From: bugzilla at busybox.net @ 2018-05-23 21:29 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=11036
--- Comment #4 from Arnout Vandecappelle <arnout@mind.be> ---
I suspect the problem must be in the external. The key is that config.log
contains:
CFLAGS='-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os
-c -Wall -O2 -c -Wall -O2'
The -Os is from TARGET_OPTIMIZATION, then there is an empty TARGET_DEBUGGING,
but the "-c -Wall -O2 -c -Wall -O2" is what causes the problem. Indeed, because
of the -c, a conftest.o is generated while configure checks for a.out and
conftest.exe etc.
So Bert, please check why TARGET_CFLAGS is modified (and if this is indeed the
issue).
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [Bug 11036] C compiler cannot create executables
2018-05-23 14:44 [Buildroot] [Bug 11036] New: C compiler cannot create executables bugzilla at busybox.net
` (3 preceding siblings ...)
2018-05-23 21:29 ` bugzilla at busybox.net
@ 2018-05-24 6:23 ` bugzilla at busybox.net
4 siblings, 0 replies; 6+ messages in thread
From: bugzilla at busybox.net @ 2018-05-24 6:23 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=11036
outtierbert at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|NEW |RESOLVED
--- Comment #5 from outtierbert at gmail.com ---
You were totally right Arnout. Thanks for the quick support guys!
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2018-05-24 6:23 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-23 14:44 [Buildroot] [Bug 11036] New: C compiler cannot create executables bugzilla at busybox.net
2018-05-23 14:58 ` [Buildroot] [Bug 11036] " bugzilla at busybox.net
2018-05-23 15:03 ` bugzilla at busybox.net
2018-05-23 17:03 ` bugzilla at busybox.net
2018-05-23 21:29 ` bugzilla at busybox.net
2018-05-24 6:23 ` bugzilla at busybox.net
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox