在Mac上安装xv6时出现问题

时间:2019-09-28 11:28:41

标签: macos qemu xv6

我正在MacOS上安装xv6,但遇到一些问题。

我尝试了以下步骤:

1。安装Xcode
2.下载xv6
3.安装MacPorts
4.安装remu
5. sudo端口安装i386-elf-gcc gdb

但是,当我输入“ make qemu clean”时,结果是错误的。

/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:6:2: error: unknown directive
        .type   strcpy, @function
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:13:2: error: instruction requires: Not 64-bit mode
        pushl   %ebp
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:20:2: error: instruction requires: Not 64-bit mode
        pushl   %ebx
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:37:2: error: instruction requires: Not 64-bit mode
        popl    %ebx
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:39:2: error: instruction requires: Not 64-bit mode
        popl    %ebp
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:46:2: error: unknown directive
        .size   strcpy, .-strcpy
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:49:2: error: unknown directive
        .type   strcmp, @function
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:55:2: error: instruction requires: Not 64-bit mode
        pushl   %ebp
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:62:2: error: instruction requires: Not 64-bit mode
        pushl   %esi
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:63:2: error: instruction requires: Not 64-bit mode
        pushl   %ebx
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:101:2: error: instruction requires: Not 64-bit mode
        popl    %ebx
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:104:2: error: instruction requires: Not 64-bit mode
        popl    %esi
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:106:2: error: instruction requires: Not 64-bit mode
        popl    %ebp
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:121:2: error: instruction requires: Not 64-bit mode
        popl    %ebx
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:123:2: error: instruction requires: Not 64-bit mode
        popl    %esi
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:125:2: error: instruction requires: Not 64-bit mode
        popl    %ebp
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:132:2: error: unknown directive
        .size   strcmp, .-strcmp
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:135:2: error: unknown directive
        .type   strlen, @function
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:141:2: error: instruction requires: Not 64-bit mode
        pushl   %ebp
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:164:2: error: instruction requires: Not 64-bit mode
        popl    %ebp
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:177:2: error: instruction requires: Not 64-bit mode
        popl    %ebp
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:184:2: error: unknown directive
        .size   strlen, .-strlen
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:187:2: error: unknown directive
        .type   memset, @function
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:193:2: error: instruction requires: Not 64-bit mode
        pushl   %ebp
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:200:2: error: instruction requires: Not 64-bit mode
        pushl   %edi
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:211:1: error: unexpected token at start of statement
/APP
^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:212:1: error: unexpected token at start of statement
/  45 "x86.h" 1
^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:214:1: error: unexpected token at start of statement
/  0 "" 2
^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:216:1: error: unexpected token at start of statement
/NO_APP
^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:221:2: error: instruction requires: Not 64-bit mode
        popl    %edi
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:223:2: error: instruction requires: Not 64-bit mode
        popl    %ebp
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:230:2: error: unknown directive
        .size   memset, .-memset
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:233:2: error: unknown directive
        .type   strchr, @function
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:239:2: error: instruction requires: Not 64-bit mode
        pushl   %ebp
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:266:2: error: instruction requires: Not 64-bit mode
        popl    %ebp
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:279:2: error: instruction requires: Not 64-bit mode
        popl    %ebp
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:286:2: error: unknown directive
        .size   strchr, .-strchr
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:289:2: error: unknown directive
        .type   gets, @function
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:295:2: error: instruction requires: Not 64-bit mode
        pushl   %ebp
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:302:2: error: instruction requires: Not 64-bit mode
        pushl   %edi
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:303:2: error: instruction requires: Not 64-bit mode
        pushl   %esi
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:304:2: error: instruction requires: Not 64-bit mode
        pushl   %ebx
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:352:2: error: instruction requires: Not 64-bit mode
        popl    %ebx
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:354:2: error: instruction requires: Not 64-bit mode
        popl    %esi
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:357:2: error: instruction requires: Not 64-bit mode
        popl    %edi
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:359:2: error: instruction requires: Not 64-bit mode
        popl    %ebp
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:366:2: error: unknown directive
        .size   gets, .-gets
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:369:2: error: unknown directive
        .type   stat, @function
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:375:2: error: instruction requires: Not 64-bit mode
        pushl   %ebp
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:382:2: error: instruction requires: Not 64-bit mode
        pushl   %esi
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:383:2: error: instruction requires: Not 64-bit mode
        pushl   %ebx
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:413:2: error: instruction requires: Not 64-bit mode
        popl    %ebx
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:417:2: error: instruction requires: Not 64-bit mode
        popl    %esi
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:419:2: error: instruction requires: Not 64-bit mode
        popl    %ebp
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:434:2: error: unknown directive
        .size   stat, .-stat
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:437:2: error: unknown directive
        .type   atoi, @function
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:443:2: error: instruction requires: Not 64-bit mode
        pushl   %ebp
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:450:2: error: instruction requires: Not 64-bit mode
        pushl   %ebx
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:478:2: error: instruction requires: Not 64-bit mode
        popl    %ebx
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:480:2: error: instruction requires: Not 64-bit mode
        popl    %ebp
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:487:2: error: unknown directive
        .size   atoi, .-atoi
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:490:2: error: unknown directive
        .type   memmove, @function
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:496:2: error: instruction requires: Not 64-bit mode
        pushl   %ebp
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:503:2: error: instruction requires: Not 64-bit mode
        pushl   %esi
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:504:2: error: instruction requires: Not 64-bit mode
        pushl   %ebx
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:528:2: error: instruction requires: Not 64-bit mode
        popl    %ebx
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:530:2: error: instruction requires: Not 64-bit mode
        popl    %esi
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:532:2: error: instruction requires: Not 64-bit mode
        popl    %ebp
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:539:2: error: unknown directive
        .size   memmove, .-memmove
        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:543:11: error: mach-o section specifier uses an unknown section type
        .section        .debug_info,"",@progbits
                        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:999:11: error: mach-o section specifier uses an unknown section type
        .section        .debug_abbrev,"",@progbits
                        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:1305:11: error: mach-o section specifier uses an unknown section type
        .section        .debug_loc,"",@progbits
                        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:1750:11: error: mach-o section specifier uses an unknown section type
        .section        .debug_aranges,"",@progbits
                        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:1762:11: error: mach-o section specifier uses an unknown section type
        .section        .debug_line,"",@progbits
                        ^
/var/folders/xw/9n848h8s4cqd5lkzvg_wk1k00000gn/T//ccv8SWpV.s:1764:11: error: mach-o section specifier uses an unknown section type
        .section        .debug_str,"MS",@progbits,1
                        ^
make: *** [ulib.o] Error 1

我该怎么解决这个问题?

0 个答案:

没有答案