make
make[3]: Nothing to be done for `all'.
make[2]: Nothing to be done for `all'.
true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2" "CFLAGS_FOR_BUILD=-g -O2" "CFLAGS_FOR_TARGET=-g -O2" "INSTALL=/usr/local/bin/ginstall -c" "INSTALL_DATA=/usr/local/bin/ginstall -c -m 644" "INSTALL_PROGRAM=/usr/local/bin/ginstall -c" "INSTALL_SCRIPT=/usr/local/bin/ginstall -c" "LDFLAGS=-Wl,-no_pie " "LIBCFLAGS=-g -O2" "LIBCFLAGS_FOR_TARGET=-g -O2" "MAKE=/Applications/Xcode_9.4.app/Contents/Developer/usr/bin/make" "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/usr/local/arm-elf" "infodir=/usr/local/arm-elf/share/info" "libdir=/usr/local/arm-elf/lib" "prefix=/usr/local/arm-elf" "tooldir=/usr/local/arm-elf/arm-elf" "AR=ar" "AS=as" "CC=gcc" "CXX=g++" "LD=/Applications/Xcode_9.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld" "LIBCFLAGS=-g -O2" "NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do # /Applications/Xcode_9.4.app/Contents/Developer/usr/bin/make
Making info in doc
Making info in po
make[3]: Nothing to be done for `info'.
make[3]: Nothing to be done for `info-am'.
/Applications/Xcode_9.4.app/Contents/Developer/usr/bin/make all-recursive
Making all in doc
Making all in po
make[4]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all-am'.
/Applications/Xcode_9.4.app/Contents/Developer/usr/bin/make all-recursive
Making all in .
make[4]: Nothing to be done for `all-am'.
Making all in po
make[4]: Nothing to be done for `all'.
/Applications/Xcode_9.4.app/Contents/Developer/usr/bin/make all-recursive
Making all in doc
make[4]: Nothing to be done for `all'.
Making all in po
make[4]: Nothing to be done for `all'.
/bin/sh ./libtool --tag=CC --mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wwrite-strings -I./../zlib -g -O2 -Wl,-no_pie -o as-new app.o as.o atof-generic.o compress-debug.o cond.o depend.o dwarf2dbg.o dw2gencfi.o ecoff.o ehopt.o expr.o flonum-copy.o flonum-konst.o flonum-mult.o frags.o hash.o input-file.o input-scrub.o listing.o literal.o macro.o messages.o output-file.o read.o remap.o sb.o stabs.o subsegs.o symbols.o write.o config/tc-arm.o config/obj-elf.o config/atof-ieee.o ../opcodes/libopcodes.la ../bfd/libbfd.la ../libiberty/libiberty.a
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wwrite-strings -I./../zlib -g -O2 -Wl,-no_pie -o as-new app.o as.o atof-generic.o compress-debug.o cond.o depend.o dwarf2dbg.o dw2gencfi.o ecoff.o ehopt.o expr.o flonum-copy.o flonum-konst.o flonum-mult.o frags.o hash.o input-file.o input-scrub.o listing.o literal.o macro.o messages.o output-file.o read.o remap.o sb.o stabs.o subsegs.o symbols.o write.o config/tc-arm.o config/obj-elf.o config/atof-ieee.o ../opcodes/.libs/libopcodes.a ../bfd/.libs/libbfd.a -L/Users/ho/local/dev/arm-elf-gcc/binutils/zlib -ldl -lz ../libiberty/libiberty.a
ld: warning: URGENT: building for OSX, but linking against dylib (/usr/lib/libdl.dylib) built for (unknown). Note: This will be an error in the future.
ld: warning: URGENT: building for OSX, but linking against dylib (/usr/lib/libSystem.dylib) built for (unknown). Note: This will be an error in the future.
ld: warning: ld: warning: ignoring file /Users/ho/local/dev/arm-elf-gcc/binutils/zlib/libz.a, file was built for archive which is not the architecture being linked (x86_64): /Users/ho/local/dev/arm-elf-gcc/binutils/zlib/libz.a
ld: warning: ignoring file ../libiberty/libiberty.a, file was built for archive which is not the architecture being linked (x86_64): ../libiberty/libiberty.a
ignoring file ../opcodes/.libs/libopcodes.a, file was built for archive which is not the architecture being linked (x86_64): ../opcodes/.libs/libopcodes.a
ld: warning: ignoring file ../bfd/.libs/libbfd.a, file was built for archive which is not the architecture being linked (x86_64): ../bfd/.libs/libbfd.a
Undefined symbols for architecture x86_64:
"__bfd_elf_obj_attrs_arg_type", referenced from:
_obj_elf_vendor_attribute in obj-elf.o
"__bfd_std_section", referenced from:
_main in as.o
_dwarf2_directive_loc in dwarf2dbg.o
_dwarf2_finish in dwarf2dbg.o
_check_eh_frame in ehopt.o
_make_expr_symbol in expr.o
_expr_build_dot in expr.o
_current_location in expr.o
...
"__hex_value", referenced from:
_integer_constant in expr.o
_hex_float in read.o
"__obstack_begin", referenced from:
_hash_new_sized in hash.o
_read_begin in read.o
_subsegs_begin in subsegs.o
_subseg_set_rest in subsegs.o
"__obstack_free", referenced from:
_s_endif in cond.o
_cond_exit_macro in cond.o
_hash_die in hash.o
_hash_delete in hash.o
_s_stab_generic in stabs.o
"__obstack_newchunk", referenced from:
_s_ifdef in cond.o
_s_if in cond.o
_s_ifb in cond.o
_s_ifc in cond.o
_s_ifeqs in cond.o
_cfi_add_label in dw2gencfi.o
_frag_alloc in frags.o
...
"__sch_istable", referenced from:
_atof_generic in atof-generic.o
_dwarf2_directive_loc in dwarf2dbg.o
_input_file_open in input-file.o
_listing_newline in listing.o
_debugging_pseudo in listing.o
_macro_expand_body in macro.o
_read_a_source_file in read.o
...
"__sch_tolower", referenced from:
_operand in expr.o
_define_macro in macro.o
_check_macro in macro.o
_delete_macro in macro.o
_read_a_source_file in read.o
_s_unreq in tc-arm.o
_md_assemble in tc-arm.o
...
"__sch_toupper", referenced from:
_save_symbol_name in symbols.o
_symbol_find_noref in symbols.o
_s_unreq in tc-arm.o
_s_arm_cpu in tc-arm.o
_md_assemble in tc-arm.o
_arm_parse_cpu in tc-arm.o
_aeabi_set_public_attributes in tc-arm.o
...
"_bfd_alloc", referenced from:
_write_object_file in write.o
"_bfd_arch_bits_per_address", referenced from:
_dwarf2_finish in dwarf2dbg.o
_cfi_finish in dw2gencfi.o
_output_fde in dw2gencfi.o
_output_cfi_insn in dw2gencfi.o
_write_object_file in write.o
_create_note_reloc in write.o
"_bfd_cache_close_all", referenced from:
_output_file_close in output-file.o
"_bfd_close", referenced from:
_output_file_close in output-file.o
"_bfd_elf_add_obj_attr_int", referenced from:
_aeabi_set_public_attributes in tc-arm.o
_obj_elf_vendor_attribute in obj-elf.o
"_bfd_elf_add_obj_attr_int_string", referenced from:
_obj_elf_vendor_attribute in obj-elf.o
"_bfd_elf_add_obj_attr_string", referenced from:
_aeabi_set_public_attributes in tc-arm.o
_obj_elf_vendor_attribute in obj-elf.o
"_bfd_elf_get_default_section_type", referenced from:
_obj_elf_change_section in obj-elf.o
"_bfd_elf_obj_attr_size", referenced from:
_write_object_file in write.o
"_bfd_elf_set_obj_attr_contents", referenced from:
_write_object_file in write.o
"_bfd_errmsg", referenced from:
_output_file_create in output-file.o
_output_file_close in output-file.o
_s_linkonce in read.o
_symbol_create in symbols.o
_symbol_clone in symbols.o
_dot_symbol_init in symbols.o
_write_contents in write.o
...
"_bfd_get_arch_size", referenced from:
_cfi_finish in dw2gencfi.o
_select_cie_for_fde in dw2gencfi.o
_output_fde in dw2gencfi.o
"_bfd_get_compression_header_size", referenced from:
_compress_debug in write.o
"_bfd_get_error", referenced from:
_output_file_create in output-file.o
_output_file_close in output-file.o
_s_linkonce in read.o
_symbol_create in symbols.o
_symbol_clone in symbols.o
_dot_symbol_init in symbols.o
_write_contents in write.o
...
"_bfd_get_reloc_code_name", referenced from:
_print_fixup in write.o
_tc_gen_reloc in tc-arm.o
"_bfd_get_reloc_size", referenced from:
_s_arm_elf_cons in tc-arm.o
"_bfd_get_section_by_name", referenced from:
_dwarf2_finish in dwarf2dbg.o
_write_object_file in write.o
_elf_begin in obj-elf.o
_adjust_stab_sections in obj-elf.o
"_bfd_get_section_by_name_if", referenced from:
_obj_elf_change_section in obj-elf.o
"_bfd_hash_set_default_size", referenced from:
_set_gas_hash_table_size in hash.o
"_bfd_init", referenced from:
_main in as.o
"_bfd_install_relocation", referenced from:
_install_reloc in write.o
"_bfd_is_arm_special_symbol_name", referenced from:
_arm_adjust_symtab in tc-arm.o
"_bfd_is_local_label", referenced from:
_S_IS_LOCAL in symbols.o
"_bfd_make_section", referenced from:
_md_begin in tc-arm.o
"_bfd_make_section_anyway", referenced from:
_subseg_get in subsegs.o
_subseg_force_new in subsegs.o
"_bfd_make_section_old_way", referenced from:
_subseg_get in subsegs.o
_subseg_new in subsegs.o
"_bfd_map_over_sections", referenced from:
_write_object_file in write.o
_arm_adjust_symtab in tc-arm.o
_elf_adjust_symtab in obj-elf.o
_elf_frob_file in obj-elf.o
"_bfd_openw", referenced from:
_output_file_create in output-file.o
"_bfd_reloc_name_lookup", referenced from:
_s_reloc in read.o
"_bfd_reloc_type_lookup", referenced from:
_s_reloc in read.o
_create_note_reloc in write.o
_s_arm_elf_cons in tc-arm.o
_tc_gen_reloc in tc-arm.o
"_bfd_scan_vma", referenced from:
_main in as.o
"_bfd_set_error_program_name", referenced from:
_main in as.o
"_bfd_set_format", referenced from:
_output_file_create in output-file.o
"_bfd_set_section_contents", referenced from:
_write_object_file in write.o
_write_contents in write.o
_md_begin in tc-arm.o
"_bfd_set_section_flags", referenced from:
_main in as.o
_dwarf2_finish in dwarf2dbg.o
_cfi_finish in dw2gencfi.o
_s_linkonce in read.o
_get_stab_string_offset in stabs.o
_s_stab_generic in stabs.o
_write_object_file in write.o
...
"_bfd_set_section_size", referenced from:
_size_seg in write.o
_compress_debug in write.o
_md_begin in tc-arm.o
_elf_frob_file_after_relocs in obj-elf.o
"_bfd_set_symtab", referenced from:
_write_object_file in write.o
"_bfd_update_compression_header", referenced from:
_compress_debug in write.o
"_concat", referenced from:
_main in as.o
_dwarf2_finish in dwarf2dbg.o
_operand in expr.o
_listing_warning in listing.o
_listing_error in listing.o
_s_weakref in read.o
_remap_debug_filename in remap.o
...
"_deflate", referenced from:
_compress_data in compress-debug.o
_compress_finish in compress-debug.o
"_deflateEnd", referenced from:
_compress_finish in compress-debug.o
"_deflateInit_", referenced from:
_compress_init in compress-debug.o
"_expandargv", referenced from:
_main in as.o
"_filename_cmp", referenced from:
_register_dependency in depend.o
_get_filenum in dwarf2dbg.o
_new_logical_line_flags in input-scrub.o
_new_logical_line in input-scrub.o
_listing_newline in listing.o
_listing_source_file in listing.o
_generate_asm_file in stabs.o
...
"_filename_ncmp", referenced from:
_get_filenum in dwarf2dbg.o
_remap_debug_filename in remap.o
"_get_run_time", referenced from:
_main in as.o
_dump_statistics in as.o
"_getpwd", referenced from:
_dwarf2_finish in dwarf2dbg.o
_stabs_generate_asm_file in stabs.o
"_hex_init", referenced from:
_main in as.o
"_lbasename", referenced from:
_get_filenum in dwarf2dbg.o
"_unlink_if_ordinary", referenced from:
_close_output_file in as.o
_as_fatal in messages.o
"_xatexit", referenced from:
_main in as.o
"_xcalloc", referenced from:
_cfi_new_fde in dw2gencfi.o
_cfi_add_advance_loc in dw2gencfi.o
_cfi_add_label in dw2gencfi.o
_cfi_add_CFA_offset in dw2gencfi.o
_cfi_add_CFA_val_offset in dw2gencfi.o
_cfi_add_CFA_def_cfa in dw2gencfi.o
_cfi_add_CFA_register in dw2gencfi.o
...
"_xexit", referenced from:
_main in as.o
_as_fatal in messages.o
_as_abort in messages.o
"_xmalloc", referenced from:
_app_push in app.o
_main in as.o
_atof_generic in atof-generic.o
_register_dependency in depend.o
_dwarf2_gen_line_info in dwarf2dbg.o
_get_filenum in dwarf2dbg.o
_dwarf2_move_insn in dwarf2dbg.o
...
"_xmalloc_set_program_name", referenced from:
_main in as.o
"_xrealloc", referenced from:
_get_filenum in dwarf2dbg.o
_input_scrub_next_buffer in input-scrub.o
_read_a_source_file in read.o
_read_symbol_name in read.o
_add_include_dir in read.o
_sb_add_sb in sb.o
_sb_scrub_and_add_sb in sb.o
...
"_xstrdup", referenced from:
_main in as.o
_register_dependency in depend.o
_get_filenum in dwarf2dbg.o
_listing_newline in listing.o
_listing_source_file in listing.o
_s_incbin in read.o
_s_func in read.o
...
"_xstrerror", referenced from:
_input_file_open in input-file.o
_input_file_give_next_buffer in input-file.o
_input_file_get in input-file.o
_listing_print in listing.o
_s_func in read.o
_stabs_generate_asm_func in stabs.o
_stabs_generate_asm_endfunc in stabs.o
...
"_xstrndup", referenced from:
_obj_elf_vendor_attribute in obj-elf.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[4]: *** [as-new] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-gas] Error 2
make: *** [all] Error 2