Opened 6 months ago

Last modified 6 months 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:
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 (2)

comment:1 Changed 6 months 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?

comment:2 Changed 6 months ago by ryandesign (Ryan 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.

Note: See TracTickets for help on using tickets.