Opened 3 years ago

Last modified 3 years ago

#64762 new defect

esorepo gcc8, gcc9 Monterey

Reported by: dnfarias Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: gcc Cc:
Port: esorepo

Description (last modified by dnfarias)

Hi all, a new MacOS user here. I have Monterey 12.2.1 version, with Macports 2.7.1-12. I've seen several tickets related to building gcc8 and gcc9 on new OSX versions, although I'm unsure on how to fix this problem with esorepo port. In particular, I was trying to do:

sudo port install esopipe-molecfit 

(it happens for other esopipe packages), and it fails at installing libgcc8 and libgcc9. I attach the whole main.log. In specific, the same issue as other tickets is:

make[3]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/build/gcc'
/usr/bin/clang++ -arch x86_64 -std=gnu++98   -g  -DIN_GCC -fPIC   -fno-strict-aliasing -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H  -DGENERATOR_FILE -fno-PIE -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -no-pie -o build/gencondmd \
	    build/gencondmd.o ../build-x86_64-apple-darwin21/libiberty/pic/libiberty.a
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.99 in gencondmd.o
  "_epilogue_completed", referenced from:
      ___cxx_global_var_init.99 in gencondmd.o
  "_flag_cf_protection", referenced from:
      ___cxx_global_var_init.99 in gencondmd.o
  "_flag_finite_math_only", referenced from:
      ___cxx_global_var_init.99 in gencondmd.o
  "_flag_fp_int_builtin_inexact", referenced from:
      ___cxx_global_var_init.99 in gencondmd.o
  "_flag_peephole2", referenced from:
      ___cxx_global_var_init.99 in gencondmd.o
  "_flag_pic", referenced from:
      ___cxx_global_var_init.99 in gencondmd.o
  "_flag_rounding_math", referenced from:
      ___cxx_global_var_init.99 in gencondmd.o
  "_flag_trapping_math", referenced from:
      ___cxx_global_var_init.99 in gencondmd.o
  "_flag_unsafe_math_optimizations", referenced from:
      ___cxx_global_var_init.99 in gencondmd.o
  "_insn", referenced from:
      ___cxx_global_var_init.99 in gencondmd.o
  "_ix86_arch_features", referenced from:
      ___cxx_global_var_init.99 in gencondmd.o
  "_ix86_cmodel", referenced from:
      ___cxx_global_var_init.99 in gencondmd.o
  "_ix86_fpmath", referenced from:
      ___cxx_global_var_init.99 in gencondmd.o
  "_ix86_isa_flags", referenced from:
      ___cxx_global_var_init.99 in gencondmd.o
  "_ix86_isa_flags2", referenced from:
      ___cxx_global_var_init.99 in gencondmd.o
  "_ix86_pmode", referenced from:
      ___cxx_global_var_init.99 in gencondmd.o
  "_ix86_tls_dialect", referenced from:
      ___cxx_global_var_init.99 in gencondmd.o
  "_ix86_tune_features", referenced from:
      ___cxx_global_var_init.99 in gencondmd.o
  "_operands", referenced from:
      ___cxx_global_var_init.99 in gencondmd.o
  "_optimize", referenced from:
      ___cxx_global_var_init.99 in gencondmd.o
  "_reload_completed", referenced from:
      ___cxx_global_var_init.99 in gencondmd.o
  "_reload_in_progress", referenced from:
      ___cxx_global_var_init.99 in gencondmd.o
  "_rtx_class", referenced from:
      ___cxx_global_var_init.99 in gencondmd.o
  "_target_flags", referenced from:
      ___cxx_global_var_init.99 in gencondmd.o
  "_this_target_flag_state", referenced from:
      ___cxx_global_var_init.99 in gencondmd.o
  "_x86_prefetch_sse", referenced from:
      ___cxx_global_var_init.99 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
make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/work/build/gcc'

From the patches and fixes, I suppose it shouldn't be hard to make this work.

Attachments (1)

main.log (3.2 MB) - added by dnfarias 3 years ago.
main.log

Change History (6)

Changed 3 years ago by dnfarias

Attachment: main.log added

main.log

comment:1 Changed 3 years ago by dnfarias

Description: modified (diff)

comment:2 Changed 3 years ago by kencu (Ken)

the work required to get the older, no longer maintained gcc versions to build on newer systems has been declined upstream.

gcc11 and newer are supported. gcc10 has also been worked on and patches can be found, but an official release supporting newer systems is unlikely.

software that uses gcc should be updated or adjusted to use gcc11 as that is the supported default.

Ifvthe software cannot be updated, then that is a problem…

Version 0, edited 3 years ago by kencu (Ken) (next)

comment:3 Changed 3 years ago by dnfarias

Thanks for your quick answer. Then it is a problem indeed.

comment:4 Changed 3 years ago by kencu (Ken)

this is a very unusual port that does most of it’s thing in a separate repository run by the authours.

you should best go to their website and post your issues, as macports is just a wrapper around their stuff…

Note: See TracTickets for help on using tickets.