Opened 3 years ago

Last modified 5 weeks ago

#64075 new defect

gcc8 @8.5.0 (lang) does not build

Reported by: TomDev234 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: monterey Cc: cooljeanius (Eric Gallager)
Port: gcc8

Description

:info:build /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,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk -no-pie -o build/gencondmd \
:info:build 	    build/gencondmd.o ../build-x86_64-apple-darwin21/libiberty/pic/libiberty.a
:info:build clang: warning: argument unused during compilation: '-no-pie' [-Wunused-command-line-argument]
: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
:info:b

Change History (5)

comment:1 Changed 3 years ago by reneeotten (Renee Otten)

Keywords: gcc8 symbols removed
Port: @8.5.0 removed

please attach the full log main.log mentioned in the error messageto this ticket. From the status page it appears thhe port builds on all systems, where are you trying to install it?

Last edited 7 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

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

Keywords: monterey added

Per the ticket description, on x86_64-apple-darwin21.

The original release of gcc8 predates macOS Monterey by several years. Try the gcc-devel port instead for now, until the next stable version of gcc is released.

comment:3 Changed 7 months ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added

comment:4 Changed 7 months ago by cooljeanius (Eric Gallager)

Also seeing this on Big Sur, so it's not just a Monterey issue

comment:5 Changed 5 weeks ago by cooljeanius (Eric Gallager)

Even though it's for gcc9 and this is gcc8, https://github.com/fink/fink-distributions/issues/874 looks similar.

Note: See TracTickets for help on using tickets.