@@This is an auto-filed bug@@ If you think that a different summary clarifies the issue better, feel free to change it. Issue: app-emulation/dosemu fails to compile. Discovered on: amd64 NOTE: If you need further logs, feel free to ask.
Created attachment 645786 [details] build.log build log and emerge --info
Created attachment 645788 [details] other.tar.bz2 other logs
""" configure: Including plugins: plugin/sdl plugin/commands plugin/extra_charsets plugin/kbd_unicode plugin/term plugin/midimisc plugin/translate plugin/translate/charsets plugin/X... configure: Compiling without debug info... configure: Compiling with ASPI support... configure: Compiling with SB Emulation... configure: Compiling with optional 386 emulation code... *** error: *** Your system has no complete code16 functional gas, *** you must upgrade to at least binutils-2.9.5 *** in order to compile DOSEMU ... giving up !!! Please attach the following file when seeking support: !!! /var/tmp/portage/app-emulation/dosemu-1.4.1_pre20130107-r5/work/dosemu-code-15cfb41ff20a052769d753c3262c57ecb050ad71/config.log * ERROR: app-emulation/dosemu-1.4.1_pre20130107-r5::gentoo failed (configure phase): * econf failed """
> checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-clang clang does not support 16-bit assembly: $ echo '.code16;.text;addr32 pushw 4(%esp)' | x86_64-pc-linux-gnu-gcc -c -x assembler -o dummy.o - >/dev/null 2>&1 && echo ok ok $ echo '.code16;.text;addr32 pushw 4(%esp)' | x86_64-pc-linux-gnu-clang -c -x assembler -o dummy.o - >/dev/null 2>&1 && echo ok
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7deebceeece4e05083f78a241ea9119f47c21ce3 commit 7deebceeece4e05083f78a241ea9119f47c21ce3 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2020-06-24 06:53:04 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2020-06-24 06:53:04 +0000 app-emulation/dosemu: fail in pkg_pretend() on clang dosemu needs 16-bit code assembly support from assembler. gcc/gas provides it, llvm/clang does not. Fail at pkg_pretend() for now. Reported-by: Agostino Sarubbo Bug: https://bugs.gentoo.org/729240 Package-Manager: Portage-2.3.102, Repoman-2.3.23 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> app-emulation/dosemu/dosemu-1.4.1_pre20130107-r5.ebuild | 6 ++++++ 1 file changed, 6 insertions(+)
It may be true that Clang does not support 16-bit assembly, but `as` is still called: configure.ac: if ! echo '.code16;.text;addr32 pushw 4(%esp)' | as -o dummy.o >/dev/null 2>&1; then echo '' echo '*** error:' echo '*** Your system has no complete code16 functional gas,' echo '*** you must upgrade to at least binutils-2.9.5' echo '*** in order to compile DOSEMU ... giving up' echo '' exit 1 fi
Actually I found that there is a patch (dosemu-1.4.1_pre20130107-as.patch) which fixes this.
(In reply to Arfrever Frehtes Taifersar Arahesis from comment #6) > It may be true that Clang does not support 16-bit assembly, but `as` is > still called: > > configure.ac: > > if ! echo '.code16;.text;addr32 pushw 4(%esp)' | as -o dummy.o >/dev/null > 2>&1; then > echo '' > echo '*** error:' > echo '*** Your system has no complete code16 functional gas,' > echo '*** you must upgrade to at least binutils-2.9.5' > echo '*** in order to compile DOSEMU ... giving up' > echo '' > exit 1 > fi (In reply to Arfrever Frehtes Taifersar Arahesis from comment #7) > Actually I found that there is a patch (dosemu-1.4.1_pre20130107-as.patch) > which fixes this. dosemu-1.4.1_pre20130107-as.patch was added almost a month back. It's not clear if the patch does not apply to you or you have a stale ::gentoo tree locally.
Let's close it as pkg_pretend() now clearly states the prerequisite $CC.