Opened 3 years ago

Last modified 11 months ago

#63221 assigned defect

cctools @949.0.1+llvm10: error: implicit declaration of function 'CLS_GETINFO' is invalid in C99

Reported by: teh-maxh (Max Harmony) Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.7.99
Keywords: bigsur monterey ventura sonoma Cc: jwoehr (Jack J. Woehr), cooljeanius (Eric Gallager), cdholmes (Christopher Holmes)
Port: cctools

Description

This output seems relevant:

Warning: reinplace /^COMMON_SUBDIRS/s/ ld / / didn't change anything in /opt/local/var/macports/build/_opt_local_etc_macports_macports-ports_devel_cctools/cctools/work/cctools-949.0.1/Makefile
Warning: reinplace s:"llvm-mc":"llvm-mc-mp-10": didn't change anything in /opt/local/var/macports/build/_opt_local_etc_macports_macports-ports_devel_cctools/cctools/work/cctools-949.0.1/as/driver.c

Attachments (1)

main.log (404.7 KB) - added by teh-maxh (Max Harmony) 3 years ago.

Download all attachments as: .zip

Change History (9)

Changed 3 years ago by teh-maxh (Max Harmony)

Attachment: main.log added

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

1796	:info:build print_objc.c:639:21: error: implicit declaration of function 'CLS_GETINFO' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
1797	:info:build                     if(verbose && CLS_GETINFO(&objc_class, CLS_META)){
1798	:info:build                                   ^
1799	:info:build print_objc.c:639:46: error: use of undeclared identifier 'CLS_META'
1800	:info:build                     if(verbose && CLS_GETINFO(&objc_class, CLS_META)){
1801	:info:build                                                            ^
1802	:info:build print_objc.c:678:32: error: use of undeclared identifier 'CLS_CLASS'
1803	:info:build                         if(CLS_GETINFO(&objc_class, CLS_CLASS))
1804	:info:build                                                     ^
1805	:info:build print_objc.c:680:37: error: use of undeclared identifier 'CLS_META'
1806	:info:build                         else if(CLS_GETINFO(&objc_class, CLS_META))
1807	:info:build                                                          ^
1808	:info:build print_objc.c:770:37: error: use of undeclared identifier 'CLS_CLASS'
1809	:info:build                     if(CLS_GETINFO((&objc_class), CLS_CLASS)){
1810	:info:build                                                   ^

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

Summary: cctools @949.0.1+llvm10: failed to buildcctools @949.0.1+llvm10: error: implicit declaration of function 'CLS_GETINFO' is invalid in C99

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

That variant of cctools would appear to be not building on BigSur.

It really shouldn't be available to be built on BigSur anyway -- the version from Xcode is newer. I'll look at that.

For now, if you do this:

sudo port -f uninstall cctools
sudo port -v install cctools

you should get the proper one you need, which is cctools +xcode, which is the default for you:

$ port info cctools
cctools @949.0.1 (devel)
Variants:             llvm10, llvm50, llvm60, llvm70, llvm80, llvm90, llvmdev,
                      [+]xcode

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

Keywords: bigsur added

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

Cc: kencu removed

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

Cc: jwoehr added
Keywords: monterey added

Has duplicate #64010.

comment:7 Changed 2 years ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added

comment:8 Changed 11 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: cdholmes added
Keywords: ventura sonoma added

Has duplicate #68960.

Note: See TracTickets for help on using tickets.