Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 718662 - dev-embedded/u-boot-tools-2020.04 calls cc directly
Summary: dev-embedded/u-boot-tools-2020.04 calls cc directly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: tc-directly
  Show dependency tree
 
Reported: 2020-04-20 18:20 UTC by Agostino Sarubbo
Modified: 2020-05-26 21:56 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,10.80 KB, text/plain)
2020-04-20 18:20 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-04-20 18:20:03 UTC
This is an auto-filled bug because dev-embedded/u-boot-tools calls cc directly.
The issue was originally discovered on arm64, but it may be reproducible on other arches as well.
Attached build log and emerge --info.

NOTE:
To reproduce this issue you may want to temporarily move the /usr/bin/cc - /usr/bin/gcc binaries.
Comment 1 Agostino Sarubbo gentoo-dev 2020-04-20 18:20:13 UTC
Created attachment 633954 [details]
build.log

build log and emerge --info
Comment 2 Sergei Trofimovich gentoo-dev 2020-05-26 21:50:50 UTC
Error snippet for conveinence:

"""
	{ rm -f include/config/auto.conf; false; }
set -e; : '  CHK     include/config.h'; mkdir -p include/; 	(echo "/* Automatically generated - do not edit */"; for i in $(echo "" | sed 's/,/ /g'); do echo \#define CONFIG_$i | sed '/=/ {s/=/	/;q; } ; { s/$/	1/; }'; done; echo \#define CONFIG_BOARDDIR board/sandbox; echo \#include \<config_defaults.h\>; echo \#include \<config_uncmd_spl.h\>; echo \#include \<configs/"sandbox".h\>; echo \#include \<asm/config.h\>; echo \#include \<linux/kconfig.h\>; echo \#include \<config_fallbacks.h\>;) < scripts/Makefile.autoconf > include/config.h.tmp; if [ -r include/config.h ] && cmp -s include/config.h include/config.h.tmp; then rm -f include/config.h.tmp; else : '  UPD     include/config.h'; mv -f include/config.h.tmp include/config.h; fi
  gcc -E -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -std=gnu11 -fshort-wchar -fno-strict-aliasing -O2 -g -D__KERNEL__ -D__UBOOT__ -D__SANDBOX__ -U_FORTIFY_SOURCE -DCONFIG_ARCH_MAP_SYSMEM -fPIC -DSANDBOX_NO_SDL -pipe -Iinclude  -I./arch/sandbox/include -include ./include/linux/kconfig.h -nostdinc -isystem   -DDO_DEPS_ONLY -dM ./include/common.h > u-boot.cfg.tmp && { grep 'define CONFIG_' u-boot.cfg.tmp > u-boot.cfg; rm u-boot.cfg.tmp; } || { rm u-boot.cfg.tmp; false; }
  gcc -x c -DDO_DEPS_ONLY -M -MP -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -std=gnu11 -fshort-wchar -fno-strict-aliasing -O2 -g -D__KERNEL__ -D__UBOOT__ -D__SANDBOX__ -U_FORTIFY_SOURCE -DCONFIG_ARCH_MAP_SYSMEM -fPIC -DSANDBOX_NO_SDL -pipe -Iinclude  -I./arch/sandbox/include -include ./include/linux/kconfig.h -nostdinc -isystem  -MQ include/config/auto.conf ./include/common.h > include/autoconf.mk.dep || { rm include/autoconf.mk.dep; false; }
/bin/sh: gcc: command not found
/bin/sh: gcc: command not found
make[1]: *** [scripts/Makefile.autoconf:77: u-boot.cfg] Error 1
make[1]: *** Waiting for unfinished jobs....
"""
Comment 4 Larry the Git Cow gentoo-dev 2020-05-26 21:56:05 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37d5310f386fe475248a15d7ac484a4992bb3534

commit 37d5310f386fe475248a15d7ac484a4992bb3534
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2020-05-26 21:55:50 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2020-05-26 21:56:00 +0000

    dev-embedded/u-boot-tools: respect user's AR setting, bug #718662
    
    Reported-by: Agostino Sarubbo
    Closes: https://bugs.gentoo.org/718662
    Package-Manager: Portage-2.3.100, Repoman-2.3.22
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 .../u-boot-tools/u-boot-tools-2020.04-r2.ebuild    | 74 ++++++++++++++++++++++
 1 file changed, 74 insertions(+)