Opened 2 months ago

Last modified 2 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 Cc: kencu (Ken)
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) 2 months ago.

Download all attachments as: .zip

Change History (5)

Changed 2 months ago by teh-maxh (Max Harmony)

Attachment: main.log added

comment:1 Changed 2 months 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 2 months 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 2 months 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 2 months ago by kencu (Ken)

Keywords: bigsur added
Note: See TracTickets for help on using tickets.