VOGONS


First post, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

With clang from the prerelease Xcode 5 I get these errors:

In file included from ./core_dyn_x86/dyn_fpu.h:49:
./core_dyn_x86/../../fpu/fpu_instructions_x86.h:1164:2: error: ambiguous
instructions require an explicit suffix (could be 'filds', or 'fildl')
FPUD_LOAD(fild,WORD,)
^
./core_dyn_x86/../../fpu/fpu_instructions_x86.h:560:4: note: expanded from macro
'FPUD_LOAD'
#op #szA " (%2, %%eax) \n" \
^
<scratch space>:36:2: note: expanded from here
"fild"
^
<inline asm>:5:1: note: instantiated into assembly here
fild (%edx, %eax)
^
In file included from core_dyn_x86.cpp:234:
In file included from ./core_dyn_x86/decoder.h:1988:
In file included from ./core_dyn_x86/dyn_fpu.h:49:
./core_dyn_x86/../../fpu/fpu_instructions_x86.h:1214:2: error: ambiguous
instructions require an explicit suffix (could be 'fistps', or 'fistpl')
FPUD_STORE(fistp,WORD,)
^
./core_dyn_x86/../../fpu/fpu_instructions_x86.h:621:4: note: expanded from macro
'FPUD_STORE'
#op #szA " (%3, %%eax) \n" \
^
<scratch space>:52:2: note: expanded from here
"fistp"
^
<inline asm>:8:1: note: instantiated into assembly here
fistp (%esi, %eax)
^
In file included from core_dyn_x86.cpp:234:
In file included from ./core_dyn_x86/decoder.h:1988:
In file included from ./core_dyn_x86/dyn_fpu.h:49:
./core_dyn_x86/../../fpu/fpu_instructions_x86.h:1169:2: error: ambiguous
instructions require an explicit suffix (could be 'filds', or 'fildl')
FPUD_LOAD_EA(fild,WORD,)
^
./core_dyn_x86/../../fpu/fpu_instructions_x86.h:586:4: note: expanded from macro
'FPUD_LOAD_EA'
#op #szA " (%1, %%eax) \n" \
^
<scratch space>:38:2: note: expanded from here
"fild"
^
<inline asm>:4:1: note: instantiated into assembly here
fild (%edx, %eax)
^
3 errors generated.

older clang versions compiled Dosbox but dynamic core didn't work/crash or so. Maybe this was the culprit.

The problem is that Xcode 5 will only ship with clang, no other compiler will be included.

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 3 of 3, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

I posted a quick fix in Building under OS X and Xcode 5.0 but there is a more extensive fpu rewrite patch somewhere on git that probably needs testing...

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper