In x86-64 Linux, when using 64 bits newlib should pay attention to a point, to add "-Disable-multilib" When configure, otherwise there will be the following error, because newlib will upload 32 bits of newlib together with others, will add-M32 when all files are uploaded
X86_64-peter-elf-cc-B/root/workspace2/newlib-1.19.0 build/x86_64-peter-elf/32/Newlib/-isystem/root/workspace2/newlib-1.19.Build/x86_64-peter-elf/32/Newlib/targ-include
-Isystem/root/workspace2/newlib-1.19.0/newlib/libc/include-B/root/workspace2/newlib-1.19.0 build/x86_64-peter-elf/32/Libgloss/x86_64-L/root/workspace2/newlib-1.19.0 build/x86_64-peter-elf/32/Libgloss/libnosys
-L/root/workspace2/newlib-1.19.0/libgloss/x86_64-M32-dpackage_name = \ "newlib \"-dpackage_tarname = \ "newlib \"-dpackage_version = \ "1.19.0 \"-dpackage_string = \ "newlib \ 1.19.0 \ "-dpackage_bugreport = \" \ "-dpackage_url = \" \ "-I.
-I ../newlib-1.19.0/newlib/libc/machine/X86_64-dmissing_syscall_names-fno-builtin-O2-g-M32-c-o lib_a-setjmp.o 'Test
-F 'setjmp. s' | echo '.../newlib-1.19.0/newlib/libc/machine/X86_64/''setjmp. s
../Newlib-1.19.0/newlib/libc/machine/x86 _64/setjmp. S: assembler messages:
../Newlib-1.19.0/newlib/libc/machine/x86 _64/setjmp. S: 25: Error: Bad register name '% rbx'
../Newlib-1.19.0/newlib/libc/machine/x86 _64/setjmp. S: 26: Error: Bad register name '% RBP'
../Newlib-1.19.0/newlib/libc/machine/x86 _64/setjmp. S: 27: Error: Bad register name '% r12 ′
../Newlib-1.19.0/newlib/libc/machine/x86 _64/setjmp. S: 28: Error: Bad register name '% r13 ′
../Newlib-1.19.0/newlib/libc/machine/x86 _64/setjmp. S: 29: Error: Bad register name '% r14 ′
../Newlib-1.19.0/newlib/libc/machine/x86 _64/setjmp. S: 30: Error: Bad register name '% r15 ′
../Newlib-1.19.0/newlib/libc/machine/x86 _64/setjmp. S: 31: Error: Bad register name '% RSP )'
../Newlib-1.19.0/newlib/libc/machine/x86 _64/setjmp. S: 32: Error: Bad register name '% rax'
../Newlib-1.19.0/newlib/libc/machine/x86 _64/setjmp. S: 33: Error: Bad register name '% RSP )'
../Newlib-1.19.0/newlib/libc/machine/x86 _64/setjmp. S: 34: Error: Bad register name '% rax'