Opened 3 years ago
Closed 3 years ago
#64010 closed defect (duplicate)
cctools @949.0.1_1+llvm10: error: implicit declaration of function 'CLS_GETINFO' is invalid in C99
Reported by: | jwoehr (Jack J. Woehr) | Owned by: | jeremyhu (Jeremy Huddleston Sequoia) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.1 |
Keywords: | monterey | Cc: | |
Port: | cctools |
Description
macOS Monterey version 12.0.1 (21A559)
:info:build /usr/bin/clang -Os -std=gnu99 -Os -DLTO_SUPPORT -g -Wall -I./../include -I. -D_MACH_I386_THREAD_STATUS_FPSTATE_LEGACY_FIELD_NAMES_ -D_ARCHITECTURE_I386_FPU_FPSTATE_LEGACY_FIELD_NAMES_ -DEFI_SUPPORT -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cctools/cctools/work/cctools-949.0.1/../ld64-530/src/abstraction -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cctools/cctools/work/cctools-949.0.1/../ld64-530/src/other -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cctools/cctools/work/cctools-949.0.1/include -arch x86_64 -I/opt/local/libexec/llvm-10/include -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -c -o ./print_objc2_64bit.o print_objc2_64bit.c :info:build print_objc.c:639:21: error: implicit declaration of function 'CLS_GETINFO' is invalid in C99 [-Werror,-Wimplicit-function-declaration] :info:build if(verbose && CLS_GETINFO(&objc_class, CLS_META)){ :info:build ^ :info:build print_objc.c:639:46: error: use of undeclared identifier 'CLS_META' :info:build if(verbose && CLS_GETINFO(&objc_class, CLS_META)){ :info:build ^ :info:build print_objc.c:678:32: error: use of undeclared identifier 'CLS_CLASS' :info:build if(CLS_GETINFO(&objc_class, CLS_CLASS)) :info:build ^ :info:build print_objc.c:680:37: error: use of undeclared identifier 'CLS_META' :info:build else if(CLS_GETINFO(&objc_class, CLS_META)) :info:build ^ :info:build print_objc.c:770:37: error: use of undeclared identifier 'CLS_CLASS' :info:build if(CLS_GETINFO((&objc_class), CLS_CLASS)){ :info:build ^ :info:build 5 errors generated.
Attachments (1)
Change History (3)
Changed 3 years ago by jwoehr (Jack J. Woehr)
comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | monterey added |
---|---|
Owner: | set to jeremyhu |
Port: | cctools added |
Status: | new → assigned |
Summary: | cctools @949.0.1_1+llvm10.darwin_21.x86_64: build failure in print_obj.c → cctools @949.0.1_1+llvm10: error: implicit declaration of function 'CLS_GETINFO' is invalid in C99 |
llvm 10 predates macOS 12. Is it necessary to use the llvm10 variant?
The default is the xcode variant, which cannot fail, since it just installs symlinks to xcode tools and does not actually build anything, so I definitely recommend using that if possible.
The llvmdev variant may work better than the llvm10 variant, if using an llvm variant is necessary, since llvm-devel is newer than llvm 10. (The current version of llvm, released last month, is 13.)
comment:2 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → duplicate |
---|---|
Status: | assigned → closed |
Duplicate of #63221.
Note: See
TracTickets for help on using
tickets.
build log cctools-949.0.1