https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: dev-lua/lua-openssl-0.7.8_p0-r2 fails to compile. Discovered on: amd64 (internal ref: ci)
Created attachment 676714 [details] build.log build log and emerge --info
Possible context of error(s): make: gcc: No such file or directory /bin/sh: luajit: command not found collect2: error: ld returned 1 exit status
ifneq (,$(TARGET_SYS)) SYS := $(TARGET_SYS) else SYS := $(shell gcc -dumpmachine) endif Makefile uses gcc rather than $(CC), and being missing leads it to later not include -fPIC in CFLAGS if $(SYS) doesn't contain "linux". Rather than fix the Makefile, I guess(?) could add "TARGET_SYS=${CBUILD}" to myemakeargs
(In reply to Ionen Wolkens from comment #3) > Rather than fix the Makefile, I guess(?) could add "TARGET_SYS=${CBUILD}" to > myemakeargs Err, "TARGET_SYS=${CTARGET:-${CHOST}}" rather.
I am a little bit confused here. Just run a test on my system, everything compiles as it should. Also not 'gcc' is called, but 'x86_64-pc-linux-gnu-gcc'. Why I am not hitting the error?
(In reply to Conrad Kostecki from comment #5) > I am a little bit confused here. Just run a test on my system, everything > compiles as it should. Also not 'gcc' is called, but > 'x86_64-pc-linux-gnu-gcc'. > > Why I am not hitting the error? It use it only for $(shell gcc -dumpmachine) This would be a problem in cross-compilation given it'd use -dumpmachine from the wrong compiler and report CHOST rather than CTARGET
Oh yeah, haven't thought about cross compiling. Makes perfect sense. Seems also to work as it should.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd3a84a595cd275cadbea0a2344aac0358749d5c commit fd3a84a595cd275cadbea0a2344aac0358749d5c Author: Conrad Kostecki <conikost@gentoo.org> AuthorDate: 2020-12-04 23:04:27 +0000 Commit: Conrad Kostecki <conikost@gentoo.org> CommitDate: 2020-12-04 23:04:27 +0000 dev-lua/lua-openssl: fix cross compiling Closes: https://bugs.gentoo.org/758419 Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Conrad Kostecki <conikost@gentoo.org> dev-lua/lua-openssl/lua-openssl-0.7.8_p0-r100.ebuild | 5 +++++ dev-lua/lua-openssl/lua-openssl-0.7.8_p0-r2.ebuild | 5 +++++ 2 files changed, 10 insertions(+)