Opened 2 years ago

Closed 2 years ago

#65498 closed defect (fixed)

gcc10-bootstrap fails on Rosetta due to wrong archs in dependencies

Reported by: barracuda156 Owned by: catap (Kirill A. Korinsky)
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: powerpc, rosetta, snowleopard Cc:
Port: gcc10-bootstrap

Description

Referring from: https://trac.macports.org/ticket/65146#comment:16

The problem: when you try building gcc10-bootstrap on 10.6.8 Rosetta, it fails. Details: https://github.com/macports/macports-ports/pull/13995#issuecomment-1066014166https://github.com/macports/macports-ports/pull/13995#issuecomment-1066718196

I used 10.6.8 Server (standard release from Apple), Xcode 3.2.6, gcc10-bootstrap -universal. Macports configure has the following:

build_arch ppc
universal_archs
buildfromsource always
cxx_stdlib libstdc++

This failure is exclusive to Rosetta: neither Leopard nor 10.6 PPC has it (well, unsurprisingly, since in these cases PPC is also the actual cpu arch).

Attachments (1)

gcc10-bootstrap-rosetta.log (1.2 MB) - added by barracuda156 2 years ago.
So here is the log trying to build gcc10-bootstrap, no changes to the portfile

Download all attachments as: .zip

Change History (7)

Changed 2 years ago by barracuda156

Attachment: gcc10-bootstrap-rosetta.log added

So here is the log trying to build gcc10-bootstrap, no changes to the portfile

comment:1 Changed 2 years ago by catap (Kirill A. Korinsky)

Sergey, it's wired. Let me quote the log:

config.status: creating codegen_test.sh
config.status: creating pip_test.sh
no
configure: error: GMP_NUMB_BITS and sizeof(mp_limb_t) are not consistent.
You probably need to change some of the GMP or MPFR compile options.
See 'config.log' for details (search for GMP_NUMB_BITS).

Maybe you may share the end of config.log which contains an output of configure's test program?

comment:2 in reply to:  1 Changed 2 years ago by barracuda156

Replying to catap:

Maybe you may share the end of config.log which contains an output of configure's test program?

No surprise, test results are a mess (from gmp config.log):

configure:30523: summary of build options:

  Version:           GNU MP 6.2.1
  Host type:         none-apple-darwin10
  ABI:               standard
  Install prefix:    /opt/local/libexec/gcc10-bootstrap
  Compiler:          /usr/bin/gcc-4.2 -std=gnu99
  Static libraries:  yes
  Shared libraries:  no


## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=powerpc-apple-darwin10
ac_cv_c_bigendian=no
ac_cv_c_compiler_gnu=yes
ac_cv_c_inline=inline
ac_cv_c_restrict=__restrict
ac_cv_c_volatile=yes
ac_cv_env_ABI_set=
ac_cv_env_ABI_value=
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_FOR_BUILD_set=set
ac_cv_env_CC_FOR_BUILD_value=/usr/bin/gcc-4.2
ac_cv_env_CC_set=set
ac_cv_env_CC_value=/usr/bin/gcc-4.2
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-g -mdynamic-no-pic'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_FOR_BUILD_set=
ac_cv_env_CPP_FOR_BUILD_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-g -mdynamic-no-pic'
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value='/usr/bin/g++-4.2 -std=gnu++98'
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=' -arch ppc'
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LT_SYS_LIBRARY_PATH_set=
ac_cv_env_LT_SYS_LIBRARY_PATH_value=
ac_cv_env_M4_set=set
ac_cv_env_M4_value=gm4
ac_cv_env_YACC_set=set
ac_cv_env_YACC_value='bison -y'
ac_cv_env_YFLAGS_set=
ac_cv_env_YFLAGS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=powerpc-apple-darwin10
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=none-apple-darwin10
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=none-apple-darwin10
ac_cv_func_alarm=yes
ac_cv_func_attr_get=no
ac_cv_func_clock=yes
ac_cv_func_cputime=no
ac_cv_func_getpagesize=yes
ac_cv_func_getrusage=yes
ac_cv_func_getsysinfo=no
ac_cv_func_gettimeofday=yes
ac_cv_func_localeconv=yes
ac_cv_func_memset=yes
ac_cv_func_mmap=yes
ac_cv_func_mprotect=yes
ac_cv_func_nl_langinfo=yes
ac_cv_func_obstack_vprintf=no
ac_cv_func_popen=yes
ac_cv_func_processor_info=yes
ac_cv_func_pstat_getprocessor=no
ac_cv_func_raise=yes
ac_cv_func_read_real_time=no
ac_cv_func_sigaction=yes
ac_cv_func_sigaltstack=yes
ac_cv_func_sigstack=no
ac_cv_func_strchr=yes
ac_cv_func_strerror=yes
ac_cv_func_strnlen=no
ac_cv_func_strtol=yes
ac_cv_func_strtoul=yes
ac_cv_func_sysconf=yes
ac_cv_func_sysctl=yes
ac_cv_func_sysctlbyname=yes
ac_cv_func_syssgi=no
ac_cv_func_times=yes
ac_cv_func_vsnprintf=yes
ac_cv_have_decl_fgetc=yes
ac_cv_have_decl_fscanf=yes
ac_cv_have_decl_optarg=yes
ac_cv_have_decl_sys_errlist=yes
ac_cv_have_decl_sys_nerr=yes
ac_cv_have_decl_ungetc=yes
ac_cv_have_decl_vfprintf=yes
ac_cv_header_dlfcn_h=yes
ac_cv_header_fcntl_h=yes
ac_cv_header_float_h=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_invent_h=no
ac_cv_header_langinfo_h=yes
ac_cv_header_locale_h=yes
ac_cv_header_machine_hal_sysinfo_h=no
ac_cv_header_memory_h=yes
ac_cv_header_nl_types_h=yes
ac_cv_header_readline_history_h=yes
ac_cv_header_readline_readline_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_attributes_h=no
ac_cv_header_sys_iograph_h=no
ac_cv_header_sys_mman_h=yes
ac_cv_header_sys_param_h=yes
ac_cv_header_sys_processor_h=no
ac_cv_header_sys_pstat_h=no
ac_cv_header_sys_resource_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_sysctl_h=yes
ac_cv_header_sys_sysinfo_h=no
ac_cv_header_sys_syssgi_h=no
ac_cv_header_sys_systemcfg_h=no
ac_cv_header_sys_time_h=yes
ac_cv_header_sys_times_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_time=yes
ac_cv_header_unistd_h=yes
ac_cv_host=none-apple-darwin10
ac_cv_lib_lex='none needed'
ac_cv_lib_ncurses_tputs=yes
ac_cv_lib_readline_readline=yes
ac_cv_member_struct_pst_processor_psp_iticksperclktick=no
ac_cv_objext=o
ac_cv_path_EGREP='/usr/bin/grep -E'
ac_cv_path_FGREP='/usr/bin/grep -F'
ac_cv_path_GREP=/usr/bin/grep
ac_cv_path_SED=/usr/bin/sed
ac_cv_path_lt_DD=/bin/dd
ac_cv_prog_AR=ar
ac_cv_prog_AWK=awk
ac_cv_prog_CC=/usr/bin/gcc-4.2
ac_cv_prog_CPP='/usr/bin/gcc-4.2 -std=gnu99 -E'
ac_cv_prog_CXXCPP='/usr/bin/g++-4.2 -std=gnu++98 -E'
ac_cv_prog_DLLTOOL=dlltool
ac_cv_prog_DSYMUTIL=dsymutil
ac_cv_prog_LEX='touch lex.yy.c'
ac_cv_prog_OBJDUMP=objdump
ac_cv_prog_OTOOL=otool
ac_cv_prog_RANLIB=ranlib
ac_cv_prog_STRIP=strip
ac_cv_prog_YACC='bison -y'
ac_cv_prog_ac_ct_LIPO=lipo
ac_cv_prog_ac_ct_NMEDIT=nmedit
ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_cc_c89=
ac_cv_prog_cc_c99=-std=gnu99
ac_cv_prog_cc_g=yes
ac_cv_prog_lex_root=lex.yy
ac_cv_prog_lex_yytext_pointer=no
ac_cv_prog_make__usr_bin_make_set=yes
ac_cv_search_clock_gettime=no
ac_cv_sizeof_mp_limb_t=8
ac_cv_sizeof_unsigned=4
ac_cv_sizeof_unsigned_long=8
ac_cv_sizeof_unsigned_short=2
ac_cv_sizeof_void_p=8
ac_cv_type_intmax_t=yes
ac_cv_type_intptr_t=yes
ac_cv_type_long_double=yes
ac_cv_type_long_long=yes
ac_cv_type_ptrdiff_t=yes
ac_cv_type_quad_t=yes
ac_cv_type_signal=void
ac_cv_type_stack_t=yes
ac_cv_type_uint_least32_t=yes
am_cv_make_support_nested_variables=yes
am_cv_prog_cc_c_o=yes
cl_cv_as_noexecstack=no
gmp_cv_c_attribute_const=yes
gmp_cv_c_attribute_malloc=yes
gmp_cv_c_attribute_mode=yes
gmp_cv_c_attribute_noreturn=yes
gmp_cv_c_double_format='IEEE little endian'
gmp_cv_c_for_build_ansi=yes
gmp_cv_c_hidden_alias=no
gmp_cv_check_libm_for_build=-lm
gmp_cv_func_alloca=yes
gmp_cv_func_sscanf_writable_input=no
gmp_cv_func_vsnprintf=probably
gmp_cv_header_alloca=yes
gmp_cv_option_alloca=alloca
gmp_cv_prog_cpp_for_build='/usr/bin/gcc-4.2 -E'
gmp_cv_prog_exeext_for_build=
lt_cv_apple_cc_single_mod=yes
lt_cv_ar_at_file=no
lt_cv_deplibs_check_method=pass_all
lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_ld_exported_symbols_list=yes
lt_cv_ld_force_load=no
lt_cv_ld_reload_flag=-r
lt_cv_nm_interface='BSD nm'
lt_cv_objdir=.libs
lt_cv_path_LD=/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld
lt_cv_path_LDCXX=
lt_cv_path_NM=nm
lt_cv_path_mainfest_tool=no
lt_cv_prog_compiler_c_o=yes
lt_cv_prog_compiler_c_o_CXX=yes
lt_cv_prog_compiler_pic='-fno-common -DPIC'
lt_cv_prog_compiler_pic_CXX=' -DPIC'
lt_cv_prog_compiler_pic_works=yes
lt_cv_prog_compiler_pic_works_CXX=yes
lt_cv_prog_compiler_rtti_exceptions=no
lt_cv_prog_compiler_static_works=no
lt_cv_prog_compiler_static_works_CXX=yes
lt_cv_prog_gnu_ld=no
lt_cv_prog_gnu_ldcxx=
lt_cv_sharedlib_from_linklib_cmd='printf %s\n'
lt_cv_sys_global_symbol_pipe=
lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \(.*\) .*$/  {"\1", (void *) 0},/p'\'' -e '\''s/^[BCDEGRST][BCDEGRST]* .* \(.*\)$/  {"\1", (void *) \&\1},/p'\'''
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='sed -n -e '\''s/^: \(.*\) .*$/  {"\1", (void *) 0},/p'\'' -e '\''s/^[BCDEGRST][BCDEGRST]* .* \(lib.*\)$/  {"\1", (void *) \&\1},/p'\'' -e '\''s/^[BCDEGRST][BCDEGRST]* .* \(.*\)$/  {"lib\1", (void *) \&\1},/p'\'''
lt_cv_sys_global_symbol_to_cdecl=
lt_cv_sys_global_symbol_to_import=
lt_cv_sys_max_cmd_len=196608
lt_cv_to_host_file_cmd=func_convert_file_noop
lt_cv_to_tool_file_cmd=func_convert_file_noop
lt_cv_truncate_bin='/bin/dd bs=4096 count=1'

## ----------------- ##
## Output variables. ##
## ----------------- ##

ABI='standard'
ACLOCAL='${SHELL} /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.3.0/gmp/missing aclocal-1.15'
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AR='ar'
AS='as'
ASMFLAGS=''
AUTOCONF='${SHELL} /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.3.0/gmp/missing autoconf'
AUTOHEADER='${SHELL} /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.3.0/gmp/missing autoheader'
AUTOMAKE='${SHELL} /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.3.0/gmp/missing automake-1.15'
AWK='awk'
CALLING_CONVENTIONS_OBJS=''
CC='/usr/bin/gcc-4.2 -std=gnu99'
CCAS='/usr/bin/gcc-4.2 -std=gnu99 -c'
CC_FOR_BUILD='/usr/bin/gcc-4.2'
CFLAGS='-g -mdynamic-no-pic'
CPP='/usr/bin/gcc-4.2 -std=gnu99 -E'
CPPFLAGS=''
CPP_FOR_BUILD='/usr/bin/gcc-4.2 -E'
CXX='/usr/bin/g++-4.2 -std=gnu++98'
CXXCPP='/usr/bin/g++-4.2 -std=gnu++98 -E'
CXXFLAGS='-g -mdynamic-no-pic'
CYGPATH_W='echo'
DEFN_LONG_LONG_LIMB='/* #undef _LONG_LONG_LIMB */'
DEFS='-DHAVE_CONFIG_H'
DLLTOOL='dlltool'
DSYMUTIL='dsymutil'
DUMPBIN=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP='/usr/bin/grep -E'
ENABLE_STATIC_FALSE='#'
ENABLE_STATIC_TRUE=''
EXEEXT=''
EXEEXT_FOR_BUILD=''
FGREP='/usr/bin/grep -F'
GMP_LDFLAGS=''
GMP_LIMB_BITS='64'
GMP_NAIL_BITS='0'
GREP='/usr/bin/grep'
HAVE_CLOCK_01='1'
HAVE_CPUTIME_01='0'
HAVE_GETRUSAGE_01='1'
HAVE_GETTIMEOFDAY_01='1'
HAVE_HOST_CPU_FAMILY_power='0'
HAVE_HOST_CPU_FAMILY_powerpc='0'
HAVE_SIGACTION_01='1'
HAVE_SIGALTSTACK_01='1'
HAVE_SIGSTACK_01='0'
HAVE_STACK_T_01='1'
HAVE_SYS_RESOURCE_H_01='1'
INSTALL_DATA='/usr/bin/install -c -m 644'
INSTALL_PROGRAM='/usr/bin/install -c'
INSTALL_SCRIPT='/usr/bin/install -c'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD='/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld'
LDFLAGS=' -arch ppc'
LEX='touch lex.yy.c'
LEXLIB=''
LEX_OUTPUT_ROOT='lex.yy'
LIBCURSES='-lncurses'
LIBGMPXX_LDFLAGS=''
LIBGMP_DLL='0'
LIBGMP_LDFLAGS=''
LIBM=''
LIBM_FOR_BUILD='-lm'
LIBOBJS=''
LIBREADLINE='-lreadline'
LIBS=''
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
LIPO='lipo'
LN_S='ln -s'
LTLIBOBJS=''
LT_SYS_LIBRARY_PATH=''
M4='gm4'
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='makeinfo --split-size=5000000 --split-size=5000000'
MANIFEST_TOOL=':'
MKDIR_P='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.3.0/gmp/install-sh -c -d'
NM='nm'
NMEDIT='nmedit'
OBJDUMP='objdump'
OBJEXT='o'
OTOOL64=':'
OTOOL='otool'
PACKAGE='gmp'
PACKAGE_BUGREPORT='gmp-bugs@gmplib.org, see https://gmplib.org/manual/Reporting-Bugs.html'
PACKAGE_NAME='GNU MP'
PACKAGE_STRING='GNU MP 6.2.1'
PACKAGE_TARNAME='gmp'
PACKAGE_URL='http://www.gnu.org/software/gmp/'
PACKAGE_VERSION='6.2.1'
PATH_SEPARATOR=':'
RANLIB='ranlib'
SED='/usr/bin/sed'
SET_MAKE=''
SHELL='/bin/sh'
SPEED_CYCLECOUNTER_OBJ=''
STRIP='strip'
TAL_OBJECT='tal-reent.lo'
TUNE_LIBS=''
TUNE_SQR_OBJ=''
U_FOR_BUILD=''
VERSION='6.2.1'
WANT_CXX_FALSE=''
WANT_CXX_TRUE='#'
WITH_READLINE_01='1'
YACC='bison -y'
YFLAGS=''
ac_ct_AR=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE='#'
am__isrc=' -I$(srcdir)'
am__leading_dot='.'
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build='powerpc-apple-darwin10'
build_alias='powerpc-apple-darwin10'
build_cpu='powerpc'
build_os='darwin10'
build_vendor='apple'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='${prefix}'
gmp_srclinks=' mpn/add.c mpn/add_1.c mpn/add_n.c mpn/sub.c mpn/sub_1.c mpn/sub_n.c mpn/cnd_add_n.c mpn/cnd_sub_n.c mpn/cnd_swap.c mpn/neg.c mpn/com.c mpn/mul_1.c mpn/addmul_1.c mpn/submul_1.c mpn/add_err1_n.c mpn/add_err2_n.c mpn/add_err3_n.c mpn/sub_err1_n.c mpn/sub_err2_n.c mpn/sub_err3_n.c mpn/lshift.c mpn/rshift.c mpn/dive_1.c mpn/diveby3.c mpn/divis.c mpn/divrem.c mpn/divrem_1.c mpn/divrem_2.c mpn/fib2_ui.c mpn/fib2m.c mpn/mod_1.c mpn/mod_34lsub1.c mpn/mode1o.c mpn/pre_divrem_1.c mpn/pre_mod_1.c mpn/dump.c mpn/mod_1_1.c mpn/mod_1_2.c mpn/mod_1_3.c mpn/mod_1_4.c mpn/lshiftc.c mpn/mul.c mpn/mul_fft.c mpn/mul_n.c mpn/sqr.c mpn/mul_basecase.c mpn/sqr_basecase.c mpn/nussbaumer_mul.c mpn/mulmid_basecase.c mpn/toom42_mulmid.c mpn/mulmid_n.c mpn/mulmid.c mpn/random.c mpn/random2.c mpn/pow_1.c mpn/rootrem.c mpn/sqrtrem.c mpn/sizeinbase.c mpn/get_str.c mpn/set_str.c mpn/compute_powtab.c mpn/scan0.c mpn/scan1.c mpn/popcount.c mpn/hamdist.c mpn/cmp.c mpn/zero_p.c mpn/perfsqr.c mpn/perfpow.c mpn/strongfibo.c mpn/gcd_11.c mpn/gcd_22.c mpn/gcd_1.c mpn/gcd.c mpn/gcdext_1.c mpn/gcdext.c mpn/gcd_subdiv_step.c mpn/gcdext_lehmer.c mpn/div_q.c mpn/tdiv_qr.c mpn/jacbase.c mpn/jacobi_2.c mpn/jacobi.c mpn/get_d.c mpn/matrix22_mul.c mpn/matrix22_mul1_inverse_vector.c mpn/hgcd_matrix.c mpn/hgcd2.c mpn/hgcd_step.c mpn/hgcd_reduce.c mpn/hgcd.c mpn/hgcd_appr.c mpn/hgcd2_jacobi.c mpn/hgcd_jacobi.c mpn/mullo_n.c mpn/mullo_basecase.c mpn/sqrlo.c mpn/sqrlo_basecase.c mpn/toom22_mul.c mpn/toom32_mul.c mpn/toom42_mul.c mpn/toom52_mul.c mpn/toom62_mul.c mpn/toom33_mul.c mpn/toom43_mul.c mpn/toom53_mul.c mpn/toom54_mul.c mpn/toom63_mul.c mpn/toom44_mul.c mpn/toom6h_mul.c mpn/toom6_sqr.c mpn/toom8h_mul.c mpn/toom8_sqr.c mpn/toom_couple_handling.c mpn/toom2_sqr.c mpn/toom3_sqr.c mpn/toom4_sqr.c mpn/toom_eval_dgr3_pm1.c mpn/toom_eval_dgr3_pm2.c mpn/toom_eval_pm1.c mpn/toom_eval_pm2.c mpn/toom_eval_pm2exp.c mpn/toom_eval_pm2rexp.c mpn/toom_interpolate_5pts.c mpn/toom_interpolate_6pts.c mpn/toom_interpolate_7pts.c mpn/toom_interpolate_8pts.c mpn/toom_interpolate_12pts.c mpn/toom_interpolate_16pts.c mpn/invertappr.c mpn/invert.c mpn/binvert.c mpn/mulmod_bnm1.c mpn/sqrmod_bnm1.c mpn/div_qr_1.c mpn/div_qr_1n_pi1.c mpn/div_qr_2.c mpn/div_qr_2n_pi1.c mpn/div_qr_2u_pi1.c mpn/sbpi1_div_q.c mpn/sbpi1_div_qr.c mpn/sbpi1_divappr_q.c mpn/dcpi1_div_q.c mpn/dcpi1_div_qr.c mpn/dcpi1_divappr_q.c mpn/mu_div_qr.c mpn/mu_divappr_q.c mpn/mu_div_q.c mpn/bdiv_q_1.c mpn/sbpi1_bdiv_q.c mpn/sbpi1_bdiv_qr.c mpn/sbpi1_bdiv_r.c mpn/dcpi1_bdiv_q.c mpn/dcpi1_bdiv_qr.c mpn/mu_bdiv_q.c mpn/mu_bdiv_qr.c mpn/bdiv_q.c mpn/bdiv_qr.c mpn/broot.c mpn/brootinv.c mpn/bsqrt.c mpn/bsqrtinv.c mpn/divexact.c mpn/bdiv_dbm1c.c mpn/redc_1.c mpn/redc_2.c mpn/redc_n.c mpn/powm.c mpn/powlo.c mpn/sec_powm.c mpn/sec_mul.c mpn/sec_sqr.c mpn/sec_div_qr.c mpn/sec_div_r.c mpn/sec_pi1_div_qr.c mpn/sec_pi1_div_r.c mpn/sec_add_1.c mpn/sec_sub_1.c mpn/sec_invert.c mpn/trialdiv.c mpn/remove.c mpn/and_n.c mpn/andn_n.c mpn/nand_n.c mpn/ior_n.c mpn/iorn_n.c mpn/nior_n.c mpn/xor_n.c mpn/xnor_n.c mpn/copyi.c mpn/copyd.c mpn/zero.c mpn/sec_tabselect.c mpn/comb_tables.c mpn/add_n_sub_n.c gmp-mparam.h'
host='none-apple-darwin10'
host_alias='none-apple-darwin10'
host_cpu='none'
host_os='darwin10'
host_vendor='apple'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.3.0/gmp/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
mpn_objects=' add$U.lo add_1$U.lo add_n$U.lo sub$U.lo sub_1$U.lo sub_n$U.lo cnd_add_n$U.lo cnd_sub_n$U.lo cnd_swap$U.lo neg$U.lo com$U.lo mul_1$U.lo addmul_1$U.lo submul_1$U.lo add_err1_n$U.lo add_err2_n$U.lo add_err3_n$U.lo sub_err1_n$U.lo sub_err2_n$U.lo sub_err3_n$U.lo lshift$U.lo rshift$U.lo dive_1$U.lo diveby3$U.lo divis$U.lo divrem$U.lo divrem_1$U.lo divrem_2$U.lo fib2_ui$U.lo fib2m$U.lo mod_1$U.lo mod_34lsub1$U.lo mode1o$U.lo pre_divrem_1$U.lo pre_mod_1$U.lo dump$U.lo mod_1_1$U.lo mod_1_2$U.lo mod_1_3$U.lo mod_1_4$U.lo lshiftc$U.lo mul$U.lo mul_fft$U.lo mul_n$U.lo sqr$U.lo mul_basecase$U.lo sqr_basecase$U.lo nussbaumer_mul$U.lo mulmid_basecase$U.lo toom42_mulmid$U.lo mulmid_n$U.lo mulmid$U.lo random$U.lo random2$U.lo pow_1$U.lo rootrem$U.lo sqrtrem$U.lo sizeinbase$U.lo get_str$U.lo set_str$U.lo compute_powtab$U.lo scan0$U.lo scan1$U.lo popcount$U.lo hamdist$U.lo cmp$U.lo zero_p$U.lo perfsqr$U.lo perfpow$U.lo strongfibo$U.lo gcd_11$U.lo gcd_22$U.lo gcd_1$U.lo gcd$U.lo gcdext_1$U.lo gcdext$U.lo gcd_subdiv_step$U.lo gcdext_lehmer$U.lo div_q$U.lo tdiv_qr$U.lo jacbase$U.lo jacobi_2$U.lo jacobi$U.lo get_d$U.lo matrix22_mul$U.lo matrix22_mul1_inverse_vector$U.lo hgcd_matrix$U.lo hgcd2$U.lo hgcd_step$U.lo hgcd_reduce$U.lo hgcd$U.lo hgcd_appr$U.lo hgcd2_jacobi$U.lo hgcd_jacobi$U.lo mullo_n$U.lo mullo_basecase$U.lo sqrlo$U.lo sqrlo_basecase$U.lo toom22_mul$U.lo toom32_mul$U.lo toom42_mul$U.lo toom52_mul$U.lo toom62_mul$U.lo toom33_mul$U.lo toom43_mul$U.lo toom53_mul$U.lo toom54_mul$U.lo toom63_mul$U.lo toom44_mul$U.lo toom6h_mul$U.lo toom6_sqr$U.lo toom8h_mul$U.lo toom8_sqr$U.lo toom_couple_handling$U.lo toom2_sqr$U.lo toom3_sqr$U.lo toom4_sqr$U.lo toom_eval_dgr3_pm1$U.lo toom_eval_dgr3_pm2$U.lo toom_eval_pm1$U.lo toom_eval_pm2$U.lo toom_eval_pm2exp$U.lo toom_eval_pm2rexp$U.lo toom_interpolate_5pts$U.lo toom_interpolate_6pts$U.lo toom_interpolate_7pts$U.lo toom_interpolate_8pts$U.lo toom_interpolate_12pts$U.lo toom_interpolate_16pts$U.lo invertappr$U.lo invert$U.lo binvert$U.lo mulmod_bnm1$U.lo sqrmod_bnm1$U.lo div_qr_1$U.lo div_qr_1n_pi1$U.lo div_qr_2$U.lo div_qr_2n_pi1$U.lo div_qr_2u_pi1$U.lo sbpi1_div_q$U.lo sbpi1_div_qr$U.lo sbpi1_divappr_q$U.lo dcpi1_div_q$U.lo dcpi1_div_qr$U.lo dcpi1_divappr_q$U.lo mu_div_qr$U.lo mu_divappr_q$U.lo mu_div_q$U.lo bdiv_q_1$U.lo sbpi1_bdiv_q$U.lo sbpi1_bdiv_qr$U.lo sbpi1_bdiv_r$U.lo dcpi1_bdiv_q$U.lo dcpi1_bdiv_qr$U.lo mu_bdiv_q$U.lo mu_bdiv_qr$U.lo bdiv_q$U.lo bdiv_qr$U.lo broot$U.lo brootinv$U.lo bsqrt$U.lo bsqrtinv$U.lo divexact$U.lo bdiv_dbm1c$U.lo redc_1$U.lo redc_2$U.lo redc_n$U.lo powm$U.lo powlo$U.lo sec_powm$U.lo sec_mul$U.lo sec_sqr$U.lo sec_div_qr$U.lo sec_div_r$U.lo sec_pi1_div_qr$U.lo sec_pi1_div_r$U.lo sec_add_1$U.lo sec_sub_1$U.lo sec_invert$U.lo trialdiv$U.lo remove$U.lo and_n$U.lo andn_n$U.lo nand_n$U.lo ior_n$U.lo iorn_n$U.lo nior_n$U.lo xor_n$U.lo xnor_n$U.lo copyi$U.lo copyd$U.lo zero$U.lo sec_tabselect$U.lo comb_tables$U.lo add_n_sub_n$U.lo'
mpn_objs_in_libgmp=' mpn/add$U.lo mpn/add_1$U.lo mpn/add_n$U.lo mpn/sub$U.lo mpn/sub_1$U.lo mpn/sub_n$U.lo mpn/cnd_add_n$U.lo mpn/cnd_sub_n$U.lo mpn/cnd_swap$U.lo mpn/neg$U.lo mpn/com$U.lo mpn/mul_1$U.lo mpn/addmul_1$U.lo mpn/submul_1$U.lo mpn/add_err1_n$U.lo mpn/add_err2_n$U.lo mpn/add_err3_n$U.lo mpn/sub_err1_n$U.lo mpn/sub_err2_n$U.lo mpn/sub_err3_n$U.lo mpn/lshift$U.lo mpn/rshift$U.lo mpn/dive_1$U.lo mpn/diveby3$U.lo mpn/divis$U.lo mpn/divrem$U.lo mpn/divrem_1$U.lo mpn/divrem_2$U.lo mpn/fib2_ui$U.lo mpn/fib2m$U.lo mpn/mod_1$U.lo mpn/mod_34lsub1$U.lo mpn/mode1o$U.lo mpn/pre_divrem_1$U.lo mpn/pre_mod_1$U.lo mpn/dump$U.lo mpn/mod_1_1$U.lo mpn/mod_1_2$U.lo mpn/mod_1_3$U.lo mpn/mod_1_4$U.lo mpn/lshiftc$U.lo mpn/mul$U.lo mpn/mul_fft$U.lo mpn/mul_n$U.lo mpn/sqr$U.lo mpn/mul_basecase$U.lo mpn/sqr_basecase$U.lo mpn/nussbaumer_mul$U.lo mpn/mulmid_basecase$U.lo mpn/toom42_mulmid$U.lo mpn/mulmid_n$U.lo mpn/mulmid$U.lo mpn/random$U.lo mpn/random2$U.lo mpn/pow_1$U.lo mpn/rootrem$U.lo mpn/sqrtrem$U.lo mpn/sizeinbase$U.lo mpn/get_str$U.lo mpn/set_str$U.lo mpn/compute_powtab$U.lo mpn/scan0$U.lo mpn/scan1$U.lo mpn/popcount$U.lo mpn/hamdist$U.lo mpn/cmp$U.lo mpn/zero_p$U.lo mpn/perfsqr$U.lo mpn/perfpow$U.lo mpn/strongfibo$U.lo mpn/gcd_11$U.lo mpn/gcd_22$U.lo mpn/gcd_1$U.lo mpn/gcd$U.lo mpn/gcdext_1$U.lo mpn/gcdext$U.lo mpn/gcd_subdiv_step$U.lo mpn/gcdext_lehmer$U.lo mpn/div_q$U.lo mpn/tdiv_qr$U.lo mpn/jacbase$U.lo mpn/jacobi_2$U.lo mpn/jacobi$U.lo mpn/get_d$U.lo mpn/matrix22_mul$U.lo mpn/matrix22_mul1_inverse_vector$U.lo mpn/hgcd_matrix$U.lo mpn/hgcd2$U.lo mpn/hgcd_step$U.lo mpn/hgcd_reduce$U.lo mpn/hgcd$U.lo mpn/hgcd_appr$U.lo mpn/hgcd2_jacobi$U.lo mpn/hgcd_jacobi$U.lo mpn/mullo_n$U.lo mpn/mullo_basecase$U.lo mpn/sqrlo$U.lo mpn/sqrlo_basecase$U.lo mpn/toom22_mul$U.lo mpn/toom32_mul$U.lo mpn/toom42_mul$U.lo mpn/toom52_mul$U.lo mpn/toom62_mul$U.lo mpn/toom33_mul$U.lo mpn/toom43_mul$U.lo mpn/toom53_mul$U.lo mpn/toom54_mul$U.lo mpn/toom63_mul$U.lo mpn/toom44_mul$U.lo mpn/toom6h_mul$U.lo mpn/toom6_sqr$U.lo mpn/toom8h_mul$U.lo mpn/toom8_sqr$U.lo mpn/toom_couple_handling$U.lo mpn/toom2_sqr$U.lo mpn/toom3_sqr$U.lo mpn/toom4_sqr$U.lo mpn/toom_eval_dgr3_pm1$U.lo mpn/toom_eval_dgr3_pm2$U.lo mpn/toom_eval_pm1$U.lo mpn/toom_eval_pm2$U.lo mpn/toom_eval_pm2exp$U.lo mpn/toom_eval_pm2rexp$U.lo mpn/toom_interpolate_5pts$U.lo mpn/toom_interpolate_6pts$U.lo mpn/toom_interpolate_7pts$U.lo mpn/toom_interpolate_8pts$U.lo mpn/toom_interpolate_12pts$U.lo mpn/toom_interpolate_16pts$U.lo mpn/invertappr$U.lo mpn/invert$U.lo mpn/binvert$U.lo mpn/mulmod_bnm1$U.lo mpn/sqrmod_bnm1$U.lo mpn/div_qr_1$U.lo mpn/div_qr_1n_pi1$U.lo mpn/div_qr_2$U.lo mpn/div_qr_2n_pi1$U.lo mpn/div_qr_2u_pi1$U.lo mpn/sbpi1_div_q$U.lo mpn/sbpi1_div_qr$U.lo mpn/sbpi1_divappr_q$U.lo mpn/dcpi1_div_q$U.lo mpn/dcpi1_div_qr$U.lo mpn/dcpi1_divappr_q$U.lo mpn/mu_div_qr$U.lo mpn/mu_divappr_q$U.lo mpn/mu_div_q$U.lo mpn/bdiv_q_1$U.lo mpn/sbpi1_bdiv_q$U.lo mpn/sbpi1_bdiv_qr$U.lo mpn/sbpi1_bdiv_r$U.lo mpn/dcpi1_bdiv_q$U.lo mpn/dcpi1_bdiv_qr$U.lo mpn/mu_bdiv_q$U.lo mpn/mu_bdiv_qr$U.lo mpn/bdiv_q$U.lo mpn/bdiv_qr$U.lo mpn/broot$U.lo mpn/brootinv$U.lo mpn/bsqrt$U.lo mpn/bsqrtinv$U.lo mpn/divexact$U.lo mpn/bdiv_dbm1c$U.lo mpn/redc_1$U.lo mpn/redc_2$U.lo mpn/redc_n$U.lo mpn/powm$U.lo mpn/powlo$U.lo mpn/sec_powm$U.lo mpn/sec_mul$U.lo mpn/sec_sqr$U.lo mpn/sec_div_qr$U.lo mpn/sec_div_r$U.lo mpn/sec_pi1_div_qr$U.lo mpn/sec_pi1_div_r$U.lo mpn/sec_add_1$U.lo mpn/sec_sub_1$U.lo mpn/sec_invert$U.lo mpn/trialdiv$U.lo mpn/remove$U.lo mpn/and_n$U.lo mpn/andn_n$U.lo mpn/nand_n$U.lo mpn/ior_n$U.lo mpn/iorn_n$U.lo mpn/nior_n$U.lo mpn/xor_n$U.lo mpn/xnor_n$U.lo mpn/copyi$U.lo mpn/copyd$U.lo mpn/zero$U.lo mpn/sec_tabselect$U.lo mpn/comb_tables$U.lo mpn/add_n_sub_n$U.lo'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/opt/local/libexec/gcc10-bootstrap'
program_transform_name='s,y,y,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias='none-apple-darwin10'

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "GNU MP"
#define PACKAGE_TARNAME "gmp"
#define PACKAGE_VERSION "6.2.1"
#define PACKAGE_STRING "GNU MP 6.2.1"
#define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org, see https://gmplib.org/manual/Reporting-Bugs.html"
#define PACKAGE_URL "http://www.gnu.org/software/gmp/"
#define PACKAGE "gmp"
#define VERSION "6.2.1"
#define WANT_FFT 1
#define HAVE_HOST_CPU_none 1
#define NO_ASM 1
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_DLFCN_H 1
#define LT_OBJDIR ".libs/"
#define STDC_HEADERS 1
#define TIME_WITH_SYS_TIME 1
#define HAVE_FCNTL_H 1
#define HAVE_FLOAT_H 1
#define HAVE_LANGINFO_H 1
#define HAVE_LOCALE_H 1
#define HAVE_NL_TYPES_H 1
#define HAVE_SYS_MMAN_H 1
#define HAVE_SYS_PARAM_H 1
#define HAVE_SYS_TIME_H 1
#define HAVE_SYS_TIMES_H 1
#define HAVE_SYS_RESOURCE_H 1
#define HAVE_SYS_SYSCTL_H 1
#define HAVE_DECL_FGETC 1
#define HAVE_DECL_FSCANF 1
#define HAVE_DECL_OPTARG 1
#define HAVE_DECL_UNGETC 1
#define HAVE_DECL_VFPRINTF 1
#define HAVE_DECL_SYS_ERRLIST 1
#define HAVE_DECL_SYS_NERR 1
#define RETSIGTYPE void
#define HAVE_INTMAX_T 1
#define HAVE_LONG_DOUBLE 1
#define HAVE_LONG_LONG 1
#define HAVE_PTRDIFF_T 1
#define HAVE_QUAD_T 1
#define HAVE_UINT_LEAST32_T 1
#define HAVE_INTPTR_T 1
#define restrict __restrict
#define HAVE_ATTRIBUTE_CONST 1
#define HAVE_ATTRIBUTE_MALLOC 1
#define HAVE_ATTRIBUTE_MODE 1
#define HAVE_ATTRIBUTE_NORETURN 1
#define HAVE_ALLOCA_H 1
#define HAVE_ALLOCA 1
#define WANT_TMP_ALLOCA 1
#define HAVE_LIMB_LITTLE_ENDIAN 1
#define HAVE_DOUBLE_IEEE_LITTLE_ENDIAN 1
#define HAVE_ALARM 1
#define HAVE_CLOCK 1
#define HAVE_GETPAGESIZE 1
#define HAVE_GETRUSAGE 1
#define HAVE_GETTIMEOFDAY 1
#define HAVE_LOCALECONV 1
#define HAVE_MEMSET 1
#define HAVE_MMAP 1
#define HAVE_MPROTECT 1
#define HAVE_NL_LANGINFO 1
#define HAVE_POPEN 1
#define HAVE_PROCESSOR_INFO 1
#define HAVE_RAISE 1
#define HAVE_SIGACTION 1
#define HAVE_SIGALTSTACK 1
#define HAVE_STRCHR 1
#define HAVE_STRERROR 1
#define HAVE_STRTOL 1
#define HAVE_STRTOUL 1
#define HAVE_SYSCONF 1
#define HAVE_SYSCTL 1
#define HAVE_SYSCTLBYNAME 1
#define HAVE_TIMES 1
#define HAVE_VSNPRINTF 1
#define GMP_MPARAM_H_SUGGEST "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc10-bootstrap/gcc10-bootstrap/work/gcc-10.3.0/gmp/mpn/generic/gmp-mparam.h"
#define SIZEOF_VOID_P 8
#define SIZEOF_UNSIGNED_SHORT 2
#define SIZEOF_UNSIGNED 4
#define SIZEOF_UNSIGNED_LONG 8
#define SIZEOF_MP_LIMB_T 8
#define TUNE_SQR_TOOM2_MAX SQR_TOOM2_MAX_GENERIC
#define HAVE_STACK_T 1

configure: exit 0

Like before (referring to Github links), dependencies fail to make correct (for Rosetta) assumptions. When building gmp, isl and friends standalone, all is good, including on Rosetta. But I do not know how to fix them for Rosetta case.

comment:3 Changed 2 years ago by catap (Kirill A. Korinsky)

May I ask you to test https://github.com/catap/macports-ports/tree/gcc10-bootsrap ?

It may fix an issue.

comment:4 in reply to:  3 Changed 2 years ago by barracuda156

Replying to catap:

May I ask you to test https://github.com/catap/macports-ports/tree/gcc10-bootsrap ?

It may fix an issue.

Fails here:

checking for GMP_NUMB_BITS and sizeof(mp_limb_t) consistency... config.status: creating doc/Makefile
config.status: creating bound_test.sh
config.status: creating codegen_test.sh
no
configure: error: GMP_NUMB_BITS and sizeof(mp_limb_t) are not consistent.
You probably need to change some of the GMP or MPFR compile options.
See 'config.log' for details (search for GMP_NUMB_BITS).
config.status: creating pip_test.sh
config.status: creating flow_test.sh
config.status: creating schedule_test.sh
make[2]: *** [configure-stage1-mpfr] Error 1
make[2]: *** Waiting for unfinished jobs....
config.status: creating isl_config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing include/isl/stdint.h commands
config.status: creating include/isl/stdint.h : _ISL_INCLUDE_ISL_STDINT_H
config.status: executing isl.pc commands
config.status: creating isl.pc.in
config.status: creating isl.pc
config.status: creating isl-uninstalled.pc
config.status: creating isl-uninstalled.sh
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_PPCRosettaPorts_lang_gcc10-bootstrap/gcc10-bootstrap/work/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_PPCRosettaPorts_lang_gcc10-bootstrap/gcc10-bootstrap/work/build'
make: *** [bootstrap-lean] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_PPCRosettaPorts_lang_gcc10-bootstrap/gcc10-bootstrap/work/build'
Command failed:  cd "/opt/local/var/macports/build/_opt_PPCRosettaPorts_lang_gcc10-bootstrap/gcc10-bootstrap/work/build" && /usr/bin/make -j6 -w bootstrap-lean 
Exit code: 2
Last edited 2 years ago by barracuda156 (previous) (diff)

comment:5 Changed 2 years ago by catap (Kirill A. Korinsky)

This issue seems as good place for notes.

The root cause of this issue that it tries to build gmp as:

  Host type:         none-apple-darwin10
  ABI:               standard

because Makefile.in is overwrite provided host and target to none-bla-bla like that:

	$(SHELL) \
	  $$s/$$module_srcdir/configure \
	  --srcdir=$${topdir}/$$module_srcdir \
	  $(HOST_CONFIGARGS) --build=${build_alias} --host=none-${host_vendor}-${host_os} \
	  --target=none-${host_vendor}-${host_os} --disable-shared LEX="touch lex.yy.c" \
	  || exit 1

anyway, I may make a patch that removes this that won't solve an issue because GMP requires host to be specified up to target processor, see: https://github.com/macports/macports-ports/blob/43fc13d3e82f99ed563c4564cc6946ed75e75674/devel/gmp/Portfile#L117-L121

Thus, such setup brokes GCC :)

And to make things more tricky, GMP resets all provided CFLAGS and CXXFLAGS on configure stage, and without -arch it fails with error

checking if the assembler needs r on registers... configure: error: neither "mtctr 6" nor "mtctr r6" works

because gcc-4.2 on 10.6 builds x86_64 by default, and not ppc :)

comment:6 Changed 2 years ago by catap (Kirill A. Korinsky)

Resolution: fixed
Status: assignedclosed

In eb9faa73e32d6da15b0d0ce8f374017557a0ff90/macports-ports (master):

gcc10-bootstrap: fix build on Rosetta

Closes: #65498

Note: See TracTickets for help on using tickets.