darwin-on-arm / xnu

Porting the Darwin kernel to the AArch64/ARMv7/ARMv6-A architectures.
Other
582 stars 146 forks source link

OS X: bcopyinout.s immediate expression requires a # prefix #39

Open spotlightishere opened 8 years ago

spotlightishere commented 8 years ago

I'm on OS X 10.11.6 beta with Xcode 7.3.1 (not beta, App Store version). Upon compiling XNU, I get the following:

> cd xnu; make TARGET_CONFIGS="debug arm armpba8" NO_DTRACE_SYMS=YES; cd ..
/Users/me/Projects/DarwinARM/Work/xnu/osfmk/arm/bcopyinout.s:67:immediate expression requires a # prefix -- `str r12,[r10,TH_RECOVER]'
/Users/me/Projects/DarwinARM/Work/xnu/osfmk/arm/bcopyinout.s:70:immediate expression requires a # prefix -- `str r11,[r10,TH_RECOVER]'
/Users/me/Projects/DarwinARM/Work/xnu/osfmk/arm/bcopyinout.s:76:immediate expression requires a # prefix -- `str r11,[r10,TH_RECOVER]'
/Users/me/Projects/DarwinARM/Work/xnu/osfmk/arm/bcopyinout.s:486:immediate expression requires a # prefix -- `ldr r11,[r10,TH_RECOVER]'
/Users/me/Projects/DarwinARM/Work/xnu/osfmk/arm/bcopyinout.s:487:immediate expression requires a # prefix -- `str r12,[r10,TH_RECOVER]'
/Users/me/Projects/DarwinARM/Work/xnu/osfmk/arm/bcopyinout.s:490:immediate expression requires a # prefix -- `str r11,[r10,TH_RECOVER]'
/Users/me/Projects/DarwinARM/Work/xnu/osfmk/arm/bcopyinout.s:496:immediate expression requires a # prefix -- `str r11,[r10,TH_RECOVER]'
/Users/me/Projects/DarwinARM/Work/xnu/osfmk/arm/bcopyinout.s:950:immediate expression requires a # prefix -- `str r5,[r4,TH_RECOVER]'
/Users/me/Projects/DarwinARM/Work/xnu/osfmk/arm/bcopyinout.s:960:immediate expression requires a # prefix -- `str r0,[r4,TH_RECOVER]'
/Users/me/Projects/DarwinARM/Work/xnu/osfmk/arm/bcopyinout.s:991:immediate expression requires a # prefix -- `str r5,[r4,TH_RECOVER]'
/Users/me/Projects/DarwinARM/Work/xnu/osfmk/arm/bcopyinout.s:1001:immediate expression requires a # prefix -- `str r0,[r4,TH_RECOVER]'
/Users/me/Projects/DarwinARM/Work/xnu/osfmk/arm/bcopyinout.s:1016:immediate expression requires a # prefix -- `str r1,[r4,TH_RECOVER]'
/Users/me/Projects/DarwinARM/Work/xnu/osfmk/arm/bcopyinout.s:1061:immediate expression requires a # prefix -- `ldr r4,[r12,TH_RECOVER]'
/Users/me/Projects/DarwinARM/Work/xnu/osfmk/arm/bcopyinout.s:1062:immediate expression requires a # prefix -- `str r3,[r12,TH_RECOVER]'
clang: error: assembler command failed with exit code 1 (use -v to see invocation)
make[6]: *** [bcopyinout.o] Error 1
make[5]: *** [build_all] Error 2
make[4]: *** [do_all] Error 2
make[3]: *** [build_all] Error 2
make[2]: *** [build_all_conf] Error 2
make[1]: *** [build_all_osfmk] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [all] Error 2

I have also tried changing TARGET_CONFIGS="debug arm armpba8" to TARGET_CONFIGS="debug arm s5l8930x" with no avail.

Is this a bug, or did I miss steps while setting up?

wargio commented 8 years ago

it's due this bug: https://github.com/darwin-on-arm/xnu/issues/38

johnothwolo commented 7 years ago

Can somebody please outline a fix clearly? @wargio

johnothwolo commented 7 years ago

Thanks @wargio