osx - Buliding an ARM cross-compiler with crosstool-ng on OS X -
i'm trying create cross compiler on mac raspberry pi, have managed configure, build , install crosstool-ng, when building arm-unknow-linux-gnueabi
toolchain, fails. output of ./ct-ng build
is:
[info ] performing trivial sanity checks [info ] build started 20140517.143156 [error] [error] >> [error] >> build failed in step 'dumping user-supplied crosstool-ng configuration' [error] >> called in step '(top-level)' [error] >> [error] >> error happened in: ct_doexeclog[scripts/functions@216] [error] >> called from: main[scripts/crosstool-ng.sh@125] [error] >> [error] >> more info on error, @ file: 'build.log' [error] >> there list of known issues, workarounds, in: [error] >> '/usr/local/share/doc/crosstool-ng/ct-ng.1.19.0/b - known issues.txt' [error] [error] (elapsed: 0:00.00) [00:00] / make: *** [build] error 1
the contents of build.log
are:
[info ] performing trivial sanity checks [debug] testing '! ( -n )' [debug] testing '! ( -n )' [debug] testing '! ( -n )' [debug] testing '! ( -n )' [debug] testing '! ( -n )' [debug] testing '! ( -n )' [debug] ==> executing: 'mkdir' '-p' '/volumes/crosstool/crosstool-ng-1.19.0/usr/local/bin/.build' [debug] ==> executing: 'rm' '-f' '/volumes/crosstool/crosstool-ng-1.19.0/usr/local/bin/.build/backtrace' [debug] ==> executing: 'touch' '/volumes/crosstool/crosstool-ng-1.19.0/usr/local/bin/.build/foo' [debug] testing '! ( -f /volumes/crosstool/crosstool-ng-1.19.0/usr/local/bin/.build/foo )' [debug] ==> executing: 'rm' '-f' '/volumes/crosstool/crosstool-ng-1.19.0/usr/local/bin/.build/foo' [debug] testing '-f /bin/bash -a -x /bin/bash' [debug] creating bin-override tools in '/volumes/crosstool/crosstool-ng-1.19.0/usr/local/bin/.build/tools' [debug] ==> executing: 'mkdir' '-p' '/volumes/crosstool/crosstool-ng-1.19.0/usr/local/bin/.build/tools/bin' [debug] creating script-override 'install' -> '"/usr/bin/install -c"' [debug] ==> executing: 'chmod' '700' '/volumes/crosstool/crosstool-ng-1.19.0/usr/local/bin/.build/tools/bin/install' [debug] creating script-override 'bash' -> '"/bin/bash"' [debug] ==> executing: 'chmod' '700' '/volumes/crosstool/crosstool-ng-1.19.0/usr/local/bin/.build/tools/bin/bash' [debug] creating script-override 'awk' -> '"/usr/local/bin/awk"' [debug] ==> executing: 'chmod' '700' '/volumes/crosstool/crosstool-ng-1.19.0/usr/local/bin/.build/tools/bin/awk' [debug] creating script-override 'grep' -> '"/usr/bin/grep"' [debug] ==> executing: 'chmod' '700' '/volumes/crosstool/crosstool-ng-1.19.0/usr/local/bin/.build/tools/bin/grep' [debug] creating script-override 'make' -> '"/usr/bin/make"' [debug] ==> executing: 'chmod' '700' '/volumes/crosstool/crosstool-ng-1.19.0/usr/local/bin/.build/tools/bin/make' [debug] creating script-override 'sed' -> '"/usr/local/bin/sed"' [debug] ==> executing: 'chmod' '700' '/volumes/crosstool/crosstool-ng-1.19.0/usr/local/bin/.build/tools/bin/sed' [debug] creating script-override 'libtool' -> '"/usr/local/bin/libtool"' [debug] ==> executing: 'chmod' '700' '/volumes/crosstool/crosstool-ng-1.19.0/usr/local/bin/.build/tools/bin/libtool' [debug] creating script-override 'libtoolize' -> '"/usr/local/bin/libtoolize"' [debug] ==> executing: 'chmod' '700' '/volumes/crosstool/crosstool-ng-1.19.0/usr/local/bin/.build/tools/bin/libtoolize' [debug] creating script-override 'objcopy' -> '"/usr/local/bin/objcopy"' [debug] ==> executing: 'chmod' '700' '/volumes/crosstool/crosstool-ng-1.19.0/usr/local/bin/.build/tools/bin/objcopy' [debug] creating script-override 'objdump' -> '"/usr/local/bin/objdump"' [debug] ==> executing: 'chmod' '700' '/volumes/crosstool/crosstool-ng-1.19.0/usr/local/bin/.build/tools/bin/objdump' [debug] creating script-override 'readelf' -> '"/usr/local/bin/readelf"' [debug] ==> executing: 'chmod' '700' '/volumes/crosstool/crosstool-ng-1.19.0/usr/local/bin/.build/tools/bin/readelf' [debug] creating script-override 'patch' -> '"/usr/bin/patch"' [debug] ==> executing: 'chmod' '700' '/volumes/crosstool/crosstool-ng-1.19.0/usr/local/bin/.build/tools/bin/patch' [debug] creating script-override 'gperf' -> '"/usr/bin/gperf"' [debug] ==> executing: 'chmod' '700' '/volumes/crosstool/crosstool-ng-1.19.0/usr/local/bin/.build/tools/bin/gperf' [info ] build started 20140517.161844 [debug] ================================================================= [debug] dumping user-supplied crosstool-ng configuration [debug] ==> executing: 'grep' '-e' '^(# |)ct_' '.config' [debug] grep: empty (sub)expression [error] [error] >> [error] >> build failed in step 'dumping user-supplied crosstool-ng configuration' [error] >> called in step '(top-level)' [error] >> [error] >> error happened in: ct_doexeclog[scripts/functions@216] [error] >> called from: main[scripts/crosstool-ng.sh@125] [error] >> [error] >> more info on error, @ file: 'build.log' [error] >> there list of known issues, workarounds, in: [error] >> '/usr/local/share/doc/crosstool-ng/ct-ng.1.19.0/b - known issues.txt' [error] [error] (elapsed: 0:00.00)
update 1:
i have run 'grep' '-e' '^(# |)ct_' '.config'
in crosstool-ng's bin directory , returns:
ct_configure_has_svn=y ct_modules=y # ct_obsolete not set # ct_experimental not set # ct_debug_ct not set ct_local_tarballs_dir="${home}/src" ct_save_tarballs=y ct_work_dir="${ct_top_dir}/.build" ct_prefix_dir="${home}/x-tools/${ct_target}" ct_install_dir="${ct_prefix_dir}" ct_rm_rf_prefix_dir=y # ct_remove_docs not set # ct_build_manuals not set ct_install_dir_ro=y ct_strip_all_toolchain_executables=y # ct_forbid_download not set # ct_force_download not set ct_connect_timeout=10 # ct_only_download not set # ct_use_mirror not set # ct_force_extract not set ct_overide_config_guess_sub=y # ct_only_extract not set ct_patch_bundled=y # ct_patch_local not set # ct_patch_bundled_local not set # ct_patch_local_bundled not set # ct_patch_bundled_fallback_local not set # ct_patch_local_fallback_bundled not set # ct_patch_none not set ct_patch_order="bundled" ct_parallel_jobs=0 ct_load="" ct_use_pipes=y ct_extra_cflags_for_build="" ct_extra_ldflags_for_build="" ct_extra_cflags_for_host="" ct_extra_ldflags_for_host="" # ct_config_shell_sh not set # ct_config_shell_ash not set ct_config_shell_bash=y # ct_config_shell_custom not set ct_config_shell="${bash}" # ct_log_error not set # ct_log_warn not set # ct_log_info not set ct_log_extra=y # ct_log_all not set # ct_log_debug not set ct_log_level_max="extra" # ct_log_see_tools_warn not set ct_log_progress_bar=y ct_log_to_file=y ct_log_file_compress=y ct_arch="arm" ct_arch_supports_both_mmu=y ct_arch_supports_both_endian=y ct_arch_supports_32=y ct_arch_supports_with_arch=y ct_arch_supports_with_cpu=y ct_arch_supports_with_tune=y ct_arch_supports_with_float=y ct_arch_supports_with_fpu=y ct_arch_supports_softfp=y ct_arch_default_has_mmu=y ct_arch_default_le=y ct_arch_default_32=y ct_arch_arch="" ct_arch_cpu="" ct_arch_tune="" ct_arch_fpu="" # ct_arch_be not set ct_arch_le=y ct_arch_32=y ct_arch_bitness=32 # ct_arch_float_hw not set ct_arch_float_sw=y ct_target_cflags="" ct_target_ldflags="" # ct_arch_alpha not set ct_arch_arm=y # ct_arch_avr32 not set # ct_arch_blackfin not set # ct_arch_m68k not set # ct_arch_mips not set # ct_arch_powerpc not set # ct_arch_s390 not set # ct_arch_sh not set # ct_arch_sparc not set # ct_arch_x86 not set ct_arch_alpha_available=y ct_arch_arm_available=y ct_arch_avr32_available=y ct_arch_blackfin_available=y ct_arch_m68k_available=y ct_arch_microblaze_available=y ct_arch_mips_available=y ct_arch_powerpc_available=y ct_arch_s390_available=y ct_arch_sh_available=y ct_arch_sparc_available=y ct_arch_x86_available=y ct_arch_suffix="" # ct_multilib not set ct_arch_use_mmu=y ct_arch_endian="little" # ct_arch_float_softfp not set ct_arch_float="soft" ct_arch_arm_mode="arm" ct_arch_arm_mode_arm=y # ct_arch_arm_mode_thumb not set # ct_arch_arm_interworking not set ct_arch_arm_eabi_force=y ct_arch_arm_eabi=y ct_force_sysroot=y ct_use_sysroot=y ct_sysroot_name="sysroot" ct_sysroot_dir_prefix="" # ct_static_toolchain not set ct_toolchain_pkgversion="" ct_toolchain_bugurl="" ct_target_vendor="unknown" ct_target_alias_sed_expr="" ct_target_alias="" ct_cross=y # ct_canadian not set ct_toolchain_type="cross" ct_build="" ct_build_prefix="" ct_build_suffix="" # ct_toolchain_enable_nls not set ct_kernel_supports_shared_libs=y ct_kernel="linux" ct_kernel_version="3.10.2" # ct_kernel_bare_metal not set ct_kernel_linux=y ct_kernel_bare_metal_available=y ct_kernel_linux_available=y ct_kernel_v_3_10=y # ct_kernel_v_3_9 not set # ct_kernel_v_3_8 not set # ct_kernel_v_3_7 not set # ct_kernel_v_3_6 not set # ct_kernel_v_3_5 not set # ct_kernel_v_3_4 not set # ct_kernel_v_3_3 not set # ct_kernel_v_3_2 not set # ct_kernel_v_3_1 not set # ct_kernel_v_3_0 not set # ct_kernel_v_2_6_39 not set # ct_kernel_v_2_6_38 not set # ct_kernel_v_2_6_37 not set # ct_kernel_v_2_6_36 not set # ct_kernel_v_2_6_33 not set # ct_kernel_v_2_6_32 not set # ct_kernel_v_2_6_31 not set # ct_kernel_v_2_6_27 not set # ct_kernel_linux_custom not set ct_kernel_windows_available=y ct_shared_libs=y ct_kernel_linux_verbosity_0=y # ct_kernel_linux_verbosity_1 not set # ct_kernel_linux_verbosity_2 not set ct_kernel_linux_verbose_level=0 ct_kernel_linux_install_check=y ct_arch_binfmt_elf=y ct_binutils="binutils" ct_binutils_binutils=y # ct_binutils_v_2_22 not set # ct_binutils_v_2_21_53 not set # ct_binutils_v_2_21_1a not set # ct_binutils_v_2_20_1a not set ct_binutils_v_2_19_1a=y # ct_binutils_v_2_18a not set ct_binutils_version="2.19.1a" ct_binutils_2_19_or_later=y ct_binutils_2_18_or_later=y ct_binutils_has_hash_style=y ct_binutils_gold_supports_arch=y ct_binutils_has_pkgversion_bugurl=y ct_binutils_force_ld_bfd=y ct_binutils_linker_ld=y ct_binutils_linkers_list="ld" ct_binutils_linker_default="bfd" ct_binutils_extra_config_array="" ct_binutils_for_target=y ct_binutils_for_target_iberty=y ct_binutils_for_target_bfd=y ct_cc="gcc" ct_cc_version="4.3.2" ct_cc_core_passes_needed=y ct_cc_gcc=y # ct_cc_gcc_show_linaro not set # ct_cc_v_4_8_1 not set # ct_cc_v_4_8_0 not set # ct_cc_v_4_7_3 not set # ct_cc_v_4_7_2 not set # ct_cc_v_4_7_1 not set # ct_cc_v_4_7_0 not set # ct_cc_v_4_6_4 not set # ct_cc_v_4_6_3 not set # ct_cc_v_4_6_2 not set # ct_cc_v_4_6_1 not set # ct_cc_v_4_6_0 not set # ct_cc_v_4_5_3 not set # ct_cc_v_4_5_2 not set # ct_cc_v_4_5_1 not set # ct_cc_v_4_5_0 not set # ct_cc_v_4_4_7 not set # ct_cc_v_4_4_6 not set # ct_cc_v_4_4_5 not set # ct_cc_v_4_4_4 not set # ct_cc_v_4_4_3 not set # ct_cc_v_4_4_2 not set # ct_cc_v_4_4_1 not set # ct_cc_v_4_4_0 not set # ct_cc_v_4_3_6 not set # ct_cc_v_4_3_5 not set # ct_cc_v_4_3_4 not set # ct_cc_v_4_3_3 not set ct_cc_v_4_3_2=y # ct_cc_v_4_3_1 not set # ct_cc_v_4_2_4 not set # ct_cc_v_4_2_2 not set ct_cc_gcc_4_2_or_later=y ct_cc_gcc_4_3=y ct_cc_gcc_4_3_or_later=y # ct_cc_gcc_use_graphite not set # ct_cc_gcc_use_lto not set ct_cc_gcc_has_pkgversion_bugurl=y ct_cc_gcc_use_gmp_mpfr=y ct_cc_lang_java_use_ecj=y ct_cc_lang_fortran=y ct_cc_support_cxx=y ct_cc_support_fortran=y ct_cc_support_java=y ct_cc_support_ada=y ct_cc_support_objc=y ct_cc_support_objcxx=y ct_cc_lang_cxx=y ct_cc_lang_java=y ct_cc_enable_cxx_flags="" ct_cc_core_extra_config_array="" ct_cc_extra_config_array="" # ct_cc_gcc_system_zlib not set ct_cc_gcc_enable_target_optspace=y # ct_cc_gcc_libmudflap not set # ct_cc_gcc_libgomp not set # ct_cc_gcc_libssp not set ct_cc_cxa_atexit=y # ct_cc_gcc_disable_pch not set # ct_cc_gcc_sjlj_exceptions not set ct_cc_gcc_ldbl_128=m ct_libc="glibc" ct_libc_version="2.9" # ct_libc_eglibc not set ct_libc_glibc=y # ct_libc_uclibc not set ct_libc_eglibc_available=y ct_libc_glibc_available=y # ct_libc_glibc_v_2_17 not set # ct_libc_glibc_v_2_16_0 not set # ct_libc_glibc_v_2_15 not set # ct_libc_glibc_v_2_14_1 not set # ct_libc_glibc_v_2_14 not set # ct_libc_glibc_v_2_13 not set # ct_libc_glibc_v_2_12_2 not set # ct_libc_glibc_v_2_12_1 not set # ct_libc_glibc_v_2_11_1 not set # ct_libc_glibc_v_2_11 not set # ct_libc_glibc_v_2_10_1 not set ct_libc_glibc_v_2_9=y # ct_libc_glibc_v_2_8 not set ct_libc_mingw_available=y ct_libc_newlib_available=y ct_libc_none_available=y ct_libc_uclibc_available=y ct_libc_support_threads_any=y ct_libc_support_nptl=y ct_threads="nptl" ct_threads_nptl=y ct_libc_xldd=y ct_libc_glibc_may_force_ports=y ct_libc_glibc_familly=y ct_libc_glibc_extra_config_array="" ct_libc_glibc_configparms="" ct_libc_glibc_extra_cflags="" ct_libc_extra_cc_args="" # ct_libc_disable_versioning not set ct_libc_oldest_abi="" # ct_libc_glibc_force_unwind not set ct_libc_glibc_use_ports=y ct_libc_addons_list="" # ct_libc_locales not set # ct_libc_glibc_kernel_version_none not set ct_libc_glibc_kernel_version_as_headers=y # ct_libc_glibc_kernel_version_chosen not set ct_libc_glibc_min_kernel="3.10.2" ct_debug_dmalloc=y ct_dmalloc_v_5_5_2=y ct_dmalloc_version="5.5.2" ct_debug_duma=y ct_duma_a=y ct_duma_so=y ct_duma_v_2_5_15=y ct_duma_version="2_5_15" ct_debug_gdb=y ct_gdb_cross=y # ct_gdb_cross_static not set # ct_gdb_cross_sim not set ct_gdb_cross_python=y ct_gdb_cross_extra_config_array="" ct_gdb_native=y # ct_gdb_native_static not set ct_gdb_gdbserver=y ct_gdb_gdbserver_static=y # ct_debug_gdb_show_linaro not set # ct_gdb_v_7_4_1 not set # ct_gdb_v_7_4 not set # ct_gdb_v_7_3_1 not set # ct_gdb_v_7_3a not set # ct_gdb_v_7_2a not set # ct_gdb_v_7_1a not set # ct_gdb_v_7_0_1a not set # ct_gdb_v_7_0a not set ct_gdb_v_6_8a=y ct_gdb_version="6.8a" ct_debug_ltrace=y ct_ltrace_v_0_5_3=y # ct_ltrace_v_0_5_2 not set ct_ltrace_version="0.5.3" ct_ltrace_0_5_3_or_later=y ct_debug_strace=y # ct_strace_v_4_5_20 not set ct_strace_v_4_5_19=y # ct_strace_v_4_5_18 not set ct_strace_version="4.5.19" ct_complibs_needed=y ct_gmp_needed=y ct_mpfr_needed=y ct_complibs=y ct_gmp=y ct_mpfr=y ct_libelf_target=y # ct_gmp_v_5_1_1 not set # ct_gmp_v_5_0_2 not set # ct_gmp_v_5_0_1 not set ct_gmp_v_4_3_2=y # ct_gmp_v_4_3_1 not set # ct_gmp_v_4_3_0 not set ct_gmp_version="4.3.2" # ct_mpfr_v_3_1_2 not set # ct_mpfr_v_3_1_0 not set # ct_mpfr_v_3_0_1 not set # ct_mpfr_v_3_0_0 not set ct_mpfr_v_2_4_2=y # ct_mpfr_v_2_4_1 not set # ct_mpfr_v_2_4_0 not set ct_mpfr_version="2.4.2" ct_libelf_v_0_8_13=y # ct_libelf_v_0_8_12 not set ct_libelf_version="0.8.13" # ct_complibs_check not set
please help, i'm totally clueless :)
just figured it! crosstool-ng using own grep (strange, know), deleted own grep (which cannot process regular expression), , added symlink gnu grep built , located in usr/local/bin/grep
.
Comments
Post a Comment