Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 729240 - app-emulation/dosemu-1.4.1_pre20130107-r5: configure failure: Your system has no complete code16 functional gas
Summary: app-emulation/dosemu-1.4.1_pre20130107-r5: configure failure: Your system has...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Sergei Trofimovich (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-23 06:33 UTC by Agostino Sarubbo
Modified: 2021-07-05 07:28 UTC (History)
0 users

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


Attachments
build.log (build.log,13.89 KB, text/plain)
2020-06-23 06:33 UTC, Agostino Sarubbo
Details
other.tar.bz2 (other.tar.bz2,15.29 KB, application/x-bzip2)
2020-06-23 06:33 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-06-23 06:33:19 UTC
@@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.
Comment 1 Agostino Sarubbo gentoo-dev 2020-06-23 06:33:25 UTC
Created attachment 645786 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2020-06-23 06:33:27 UTC
Created attachment 645788 [details]
other.tar.bz2

other logs
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2020-06-24 06:42:41 UTC
"""
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
"""
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2020-06-24 06:49:14 UTC
> 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
Comment 5 Larry the Git Cow gentoo-dev 2020-06-24 06:53:30 UTC
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(+)
Comment 6 Arfrever Frehtes Taifersar Arahesis 2020-06-24 07:46:59 UTC
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
Comment 7 Arfrever Frehtes Taifersar Arahesis 2020-06-24 07:49:25 UTC
Actually I found that there is a patch (dosemu-1.4.1_pre20130107-as.patch) which fixes this.
Comment 8 Sergei Trofimovich (RETIRED) gentoo-dev 2020-06-24 08:03:03 UTC
(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.
Comment 9 Sergei Trofimovich (RETIRED) gentoo-dev 2021-07-05 07:28:19 UTC
Let's close it as pkg_pretend() now clearly states the prerequisite $CC.