[MacPorts] #64316: gcc9 @9.4.0_1 & gcc10 @10.3.0_1: build failure: Undefined symbols for architecture x86_64

MacPorts noreply at macports.org
Sat Apr 30 20:50:12 UTC 2022


#64316: gcc9 @9.4.0_1 & gcc10 @10.3.0_1: build failure: Undefined symbols for
architecture x86_64
-------------------------+------------------------
  Reporter:  i0ntempest  |      Owner:  i0ntempest
      Type:  defect      |     Status:  closed
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.7.1
Resolution:  fixed       |   Keywords:
      Port:  gcc9 gcc10  |
-------------------------+------------------------

Comment (by chillin-):

 An hour since closed, I still get the same undefined symbols/symbols not
 found build error for libgcc10,
 using Xcode at 5.1.1 (5B1008), Macmini5,2 OS X 10.8.5

 {{{

 clang: warning: argument unused during compilation: '-no-pie' [-Wunused-
 command-line-argument]Undefined symbols for architecture x86_64:
   "_cfun", referenced from:
       ___cxx_global_var_init.101 in gencondmd.o
   "_const_int_rtx", referenced from:
       ___cxx_global_var_init.101 in gencondmd.o
   "_const_tiny_rtx", referenced from:
       ___cxx_global_var_init.101 in gencondmd.o
   "_epilogue_completed", referenced from:
       ___cxx_global_var_init.101 in gencondmd.o
   "_flag_cf_protection", referenced from:
       ___cxx_global_var_init.101 in gencondmd.o
   "_flag_finite_math_only", referenced from:
       ___cxx_global_var_init.101 in gencondmd.o
   "_flag_fp_int_builtin_inexact", referenced from:
       ___cxx_global_var_init.101 in gencondmd.o
   "_flag_pic", referenced from:
       ___cxx_global_var_init.101 in gencondmd.o
   "_flag_rounding_math", referenced from:
       ___cxx_global_var_init.101 in gencondmd.o
   "_flag_trapping_math", referenced from:
       ___cxx_global_var_init.101 in gencondmd.o
   "_flag_unsafe_math_optimizations", referenced from:
       ___cxx_global_var_init.101 in gencondmd.o
   "_insn", referenced from:
       ___cxx_global_var_init.101 in gencondmd.o
   "_ix86_arch_features", referenced from:
       ___cxx_global_var_init.101 in gencondmd.o
   "_ix86_cmodel", referenced from:
       ___cxx_global_var_init.101 in gencondmd.o
   "_ix86_excess_precision", referenced from:
       ___cxx_global_var_init.101 in gencondmd.o
   "_ix86_fpmath", referenced from:
       ___cxx_global_var_init.101 in gencondmd.o
   "_ix86_isa_flags", referenced from:
       ___cxx_global_var_init.101 in gencondmd.o
   "_ix86_isa_flags2", referenced from:
       ___cxx_global_var_init.101 in gencondmd.o
   "_ix86_pmode", referenced from:
       ___cxx_global_var_init.101 in gencondmd.o
   "_ix86_tls_dialect", referenced from:
       ___cxx_global_var_init.101 in gencondmd.o
   "_ix86_tune_features", referenced from:
       ___cxx_global_var_init.101 in gencondmd.o
   "_ix86_unsafe_math_optimizations", referenced from:
       ___cxx_global_var_init.101 in gencondmd.o
   "_operands", referenced from:
       ___cxx_global_var_init.101 in gencondmd.o
   "_reload_completed", referenced from:
       ___cxx_global_var_init.101 in gencondmd.o
   "_reload_in_progress", referenced from:
       ___cxx_global_var_init.101 in gencondmd.o
   "_rtx_class", referenced from:
       ___cxx_global_var_init.101 in gencondmd.o
   "_target_flags", referenced from:
       ___cxx_global_var_init.101 in gencondmd.o
   "_x86_prefetch_sse", referenced from:
       ___cxx_global_var_init.101 in gencondmd.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[3]: *** [build/gencondmd] Error 1
 rm gcc.pod
 make[3]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc10/libgcc10/work/build/gcc'
 make[2]: *** [all-stage1-gcc] Error 2
 make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc10/libgcc10/work/build'
 make[1]: *** [stage1-bubble] Error 2
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc10/libgcc10/work/build'
 make: *** [bootstrap-lean] Error 2
 make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc10/libgcc10/work/build'
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc10/libgcc10/work/build"
 && /usr/bin/make -j4 -w bootstrap-lean
 Exit code: 2
 Error: Failed to build libgcc10: command execution failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc10/libgcc10/main.log
 for details.
 Error: Follow https://guide.macports.org/#project.tickets if you believe
 there is a bug.
 }}}


 identical log attached here (in closed duplicate):
 https://trac.macports.org/ticket/65089

-- 
Ticket URL: <https://trac.macports.org/ticket/64316#comment:17>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list