Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant build xnu du to multiple errors(expected register, soft-float-abi) #43

Open
capo245 opened this issue Jun 1, 2018 · 2 comments
Open

Comments

@capo245
Copy link

capo245 commented Jun 1, 2018

clang: error: assembler command failed with exit code 1 (use -v to see invocation)
Makefile:1475: recipe for target 'bcopyinout.o' failed
make[6]: *** [bcopyinout.o] Error 1
make[6]: *** Waiting for unfinished jobs....
'+soft-float-abi' is not a recognized feature for this target (ignoring feature)
/home/castelo/Projekte/DarwinARM/xnu/osfmk/arm/cswitch.s:46:19: error: register expected
ldr sp, [r12, TH_PCB_ISS]
^
/home/castelo/Projekte/DarwinARM/xnu/osfmk/arm/cswitch.s:73:20: error: register expected
strne r1, [r0', TH_+soft-float-abi' is not a recognized feature for this targetCO (ignoring feature)
NTINUATION]
^
/home/castelo/Projekte/DarwinARM/xnu/osfmk/arm/cswitch.s:76:20: error: register expected
ldreq r3, [r0, TH_PCB_make[3]: Nothing to be done for 'do_build_all'.
make[3]: Leaving directory '/home/castelo/Projekte/DarwinARM/xnu/BUILD/obj/DEBUG_ARM_ARMPBA8/security'
make[2]: Leaving directory '/home/castelo/Projekte/DarwinARM/xnu/BUILD/obj/DEBUG_ARM_ARMPBA8/security'
ISS]
/home/castelo/Projekte/DarwinARM/xnu/osfmk/arm/hw_lock.s^
:69:19: error: register expected
ldr r2, [r12, MACHINE_THREAD_PREEMPT_COUNT] ; adds r2, r2, #1 ; str r2, [/home/castelo/Projekte/DarwinARM/xnu/osfmk/arm/cswitch.sr:1872:,18 : MACerror: HINregister expectedE
_T HR E A Dl_dPrR ErE3M,P T[_rC2O,U NMTA]C H;I
NE _ T H R E A D _ C T H R E A D _ S^E
LF/home/castelo/Projekte/DarwinARM/xnu/osfmk/arm/hw_lock.s:69:83: error: register expected
ldr r2, [r12, MACHI]
^
/home/castelo/Projekte/DarwinARM/xnu/osfmk/arm/cswitch.s:91:18: error: register expected
ldr r3, [r2, TH_PCB_ISS]
NE_THREAD_PREEMPT ^
/home/castelo/Projekte/DarwinARM/xnu/osfmk/arm/cswitch.s:118:18: error: register expected
_COUNT] ; adds r2, r2, #1 ; str r2, [r12, MACHINE_THREAD_PREEMPT_COUNT] ;
ldr r1, [r0, MA ^
/home/castelo/Projekte/DarwinARM/xnu/osfmk/arm/hw_lock.s:111:19: error: register expected
ldr r2, [r1CHINE_THREAD_CTHREAD_SELF]
^
/home/castelo/Projekte/DarwinARM/xnu/osfmk/arm/cswitch.s:122:18: error: register expected
ldr r3, [r0, TH_PCB_ISS]
^
/home/castelo/Projekte/DarwinARM/xnu/osfmk/arm/cswitch.s:135:19: error: register expected
ldr r4, [r12, MACHINE_THREAD_PREEMPT_COUNT] ; adds r2, r2, #1 ; str r2, [r12, MACHINE_2, TH_PCB_USS]
THREAD_PREEMPT_COUNT] ; ^
/home/castelo/Projekte/DarwinARM/xnu/osfmk/arm/cswitch.s:153:
^
/home/castelo/Projekte/DarwinARM/xnu/osfmk/arm/hw_lock.s:111:83: error: register expected
19: error: register expected
ldr r8, ldr r2, [r12, MACHINE_THREAD_PREEM[r12, MACHINE_THREAD_CPPT_COUNT] ; adds r2, r2, #1 ; str r2, [r12, MAU_DATA]
^
/home/castelo/Projekte/DarwinARM/xnu/osfmk/arm/cswitch.s:154:18: error: register expected
ldr r5, [CHINE_THREAD_PREEMPT_COUNT] ;
r8, CPU_PENDING_AST]
^
/home/castelo/Projekte/DarwinARM/xnu/osfmk/arm/cswitch.s:170:19: error: register expected
ldr sp, [r12, TH_PC ^
/home/castelo/Projekte/DarwinARM/xnu/osfmk/arm/hw_lock.s:125:19: error: register expected
ldr r2, [r12, MACHINEB_USS]
^
_THREAD_PREEMPT_COUNT] ; adds r2, r2, #1 ; str r2, [r12, MACHINE_THREAD_PREEMPT_COUNT] ;
^
/home/castelo/Projekte/DarwinARM/xnu/osfmk/arm/hw_lock.s:125:83: error: register expected
ldr r2, [r12, MACHINE_THREAD_PREEMPT_COUNT] ; adds r2, r2, #1 ; str r2, [r12, MACHINE_THREAD_PREEMPT_COUNT] ;
^
/home/castelo/Projekte/DarwinARM/xnu/osfmk/arm/hw_lock.s:386:19: error: register expected
ldr r2, [r12, MACHINE_THREAD_PREEMPT_COUNT] ; adds r2, r2, #1 ; str r2, [r12, MACHINE_THREAD_PREEMPT_COUNT] ;
^
/home/castelo/Projekte/DarwinARM/xnu/osfmk/arm/hw_lock.s:386:83: error: register expected
ldr r2, [r12, MACHINE_THREAD_PREEMPT_COUNT] ; adds r2, r2, #1 ; str r2, [r12, MACHINE_THREAD_PREEMPT_COUNT] ;
^
/home/castelo/Projekte/DarwinARM/xnu/osfmk/arm/hw_lock.s:440:19: error: register expected
ldr r2, [r12, MACHINE_THREAD_PREEMPT_COUNT] ; adds r2, r2, #1 ; str r2, [r12, MACHINE_THREAD_PREEMPT_COUNT] ;
^
/home/castelo/Projekte/DarwinARM/xnu/osfmk/arm/hw_lock.s:440:83: error: register expected
ldr r2, [r12, MACHINE_THREAD_PREEMPT_COUNT] ; adds r2, r2, #1 ; str r2, [r12, MACHINE_THREAD_PREEMPT_COUNT] ;
^
/home/castelo/Projekte/DarwinARM/xnu/osfmk/arm/hw_lock.s:502:19: error: register expected
ldr r2, [r12, MACHINE_THREAD_PREEMPT_COUNT] ; adds r2, r2, #1 ; str r2, [r12, MACHINE_THREAD_PREEMPT_COUNT] ;
^
/home/castelo/Projekte/DarwinARM/xnu/osfmk/arm/hw_lock.s:502:83: error: register expected
ldr r2, [r12, MACHINE_THREAD_PREEMPT_COUNT] ; adds r2, r2, #1 ; str r2, [r12, MACHINE_THREAD_PREEMPT_COUNT] ;
^
/home/castelo/Projekte/DarwinARM/xnu/osfmk/arm/hw_lock.s:657:18: error: register expected
ldr r2, [r9, MACHINE_THREAD_PREEMPT_COUNT] ; adds r2, r2, #1 ; str r2, [r9, MACHINE_THREAD_PREEMPT_COUNT] ;
^
/home/castelo/Projekte/DarwinARM/xnu/osfmk/arm/hw_lock.s:657:81: error: register expected
ldr r2, [r9, MACHINE_THREAD_PREEMPT_COUNT] ; adds r2, r2, #1 ; str r2, [r9, MACHINE_THREAD_PREEMPT_COUNT] ;
^
Makefile:1490: recipe for target 'cswitch.o' failed
make[6]: *** [cswitch.o] Error 1
Makefile:1505: recipe for target 'hw_lock.o' failed
make[6]: *** [hw_lock.o] Error 1

@adalric
Copy link

adalric commented Jul 20, 2018

Can you provide more context? OS, clang version, etc...

@capo245
Copy link
Author

capo245 commented Jul 23, 2018

Linux Mint 18.3 , clang 3.6, arch is x64.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants