Opened 3 years ago

Closed 3 years ago

#63971 closed defect (duplicate)

libgcc9: Undefined symbols

Reported by: 40015116 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: monterey Cc:
Port: libgcc9

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Hi there,
I am trying to install gcc7 on a macOS Monterey (version 12.0.1) but the installation process fails as follows:

sudo port install gcc7
Password:
--->  Computing dependencies for gcc7
The following dependencies will be installed: 
 libgcc7
 libgcc8
 libgcc9
Continue? [Y/n]: Y
--->  Fetching archive for libgcc9
--->  Attempting to fetch libgcc9-9.4.0_0.darwin_21.x86_64.tbz2 from https://packages.macports.org/libgcc9
--->  Attempting to fetch libgcc9-9.4.0_0.darwin_21.x86_64.tbz2 from https://pek.cn.packages.macports.org/macports/packages/libgcc9
--->  Attempting to fetch libgcc9-9.4.0_0.darwin_21.x86_64.tbz2 from https://kmq.jp.packages.macports.org/libgcc9
--->  Fetching distfiles for libgcc9
--->  Verifying checksums for libgcc9
--->  Extracting libgcc9
--->  Applying patches to libgcc9
--->  Configuring libgcc9
Warning: Applying '--without-build-config' workaround to Xcode 13.1 / CLT 13.1.0.0.1.1633545042
Warning: If versions > 12.5 please check if it is still required
--->  Building libgcc9                                   
Error: Failed to build libgcc9: command execution failed 
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port gcc7 failed

Before executing the installation I did a sudo port selfupdate and a sudo port upgrade outdated and they both completed successfully.

I am also attaching the main.log for further details.

The macports version I am using is 2.7.1.

Any help to get this resolved would be very much appreciated.

Thanks

Attachments (1)

main.log (3.0 MB) - added by 40015116 3 years ago.

Change History (2)

Changed 3 years ago by 40015116

Attachment: main.log added

comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: monterey added; gcc installation failure removed
Port: libgcc9 added; gcc7 removed
Resolution: duplicate
Status: newclosed
Summary: Installation issue with gcclibgcc9: Undefined symbols

According to your log:

:info:build Undefined symbols for architecture x86_64:
:info:build   "_cfun", referenced from:
:info:build       ___cxx_global_var_init.99 in gencondmd.o
:info:build   "_epilogue_completed", referenced from:
:info:build       ___cxx_global_var_init.99 in gencondmd.o
:info:build   "_flag_cf_protection", referenced from:
:info:build       ___cxx_global_var_init.99 in gencondmd.o
:info:build   "_flag_finite_math_only", referenced from:
:info:build       ___cxx_global_var_init.99 in gencondmd.o
:info:build   "_flag_fp_int_builtin_inexact", referenced from:
:info:build       ___cxx_global_var_init.99 in gencondmd.o
:info:build   "_flag_peephole2", referenced from:
:info:build       ___cxx_global_var_init.99 in gencondmd.o
:info:build   "_flag_pic", referenced from:
:info:build       ___cxx_global_var_init.99 in gencondmd.o
:info:build   "_flag_rounding_math", referenced from:
:info:build       ___cxx_global_var_init.99 in gencondmd.o
:info:build   "_flag_trapping_math", referenced from:
:info:build       ___cxx_global_var_init.99 in gencondmd.o
:info:build   "_flag_unsafe_math_optimizations", referenced from:
:info:build       ___cxx_global_var_init.99 in gencondmd.o
:info:build   "_insn", referenced from:
:info:build       ___cxx_global_var_init.99 in gencondmd.o
:info:build   "_ix86_arch_features", referenced from:
:info:build       ___cxx_global_var_init.99 in gencondmd.o
:info:build   "_ix86_cmodel", referenced from:
:info:build       ___cxx_global_var_init.99 in gencondmd.o
:info:build   "_ix86_fpmath", referenced from:
:info:build       ___cxx_global_var_init.99 in gencondmd.o
:info:build   "_ix86_isa_flags", referenced from:
:info:build       ___cxx_global_var_init.99 in gencondmd.o
:info:build   "_ix86_isa_flags2", referenced from:
:info:build       ___cxx_global_var_init.99 in gencondmd.o
:info:build   "_ix86_pmode", referenced from:
:info:build       ___cxx_global_var_init.99 in gencondmd.o
:info:build   "_ix86_tls_dialect", referenced from:
:info:build       ___cxx_global_var_init.99 in gencondmd.o
:info:build   "_ix86_tune_features", referenced from:
:info:build       ___cxx_global_var_init.99 in gencondmd.o
:info:build   "_operands", referenced from:
:info:build       ___cxx_global_var_init.99 in gencondmd.o
:info:build   "_optimize", referenced from:
:info:build       ___cxx_global_var_init.99 in gencondmd.o
:info:build   "_reload_completed", referenced from:
:info:build       ___cxx_global_var_init.99 in gencondmd.o
:info:build   "_reload_in_progress", referenced from:
:info:build       ___cxx_global_var_init.99 in gencondmd.o
:info:build   "_rtx_class", referenced from:
:info:build       ___cxx_global_var_init.99 in gencondmd.o
:info:build   "_target_flags", referenced from:
:info:build       ___cxx_global_var_init.99 in gencondmd.o
:info:build   "_this_target_flag_state", referenced from:
:info:build       ___cxx_global_var_init.99 in gencondmd.o
:info:build   "_x86_prefetch_sse", referenced from:
:info:build       ___cxx_global_var_init.99 in gencondmd.o
:info:build ld: symbol(s) not found for architecture x86_64

Duplicate of #63697.

Note: See TracTickets for help on using tickets.