Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#59334 closed defect (fixed)

bmon @4.0_2 Failed to build bmon: command execution failed

Reported by: dlamija (Muhammed Ramiza) Owned by: l2dy (Zero King)
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: catalina Cc:
Port: bmon

Description

bmon failed to build on Catalina.

:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/mach/mig_errors.h:113:34: error: use of undeclared identifier 'unused'
:info:build __NDR_convert__mig_reply_error_t(__unused mig_reply_error_t *x)
:info:build                                  ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/cdefs.h:161:40: note: expanded from macro '__unused'
:info:build #define __unused        __attribute__((__unused__))
:info:build                                        ^
:info:build ../include/bmon/bmon.h:63:36: note: expanded from macro '__unused__'
:info:build #define __unused__ __attribute__ ((unused))
:info:build                                    ^
:info:build 1 error generated.

it's can be seen it using library from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk event though

~>>> xcode-select -p                                                      
/Applications/Xcode.app/Contents/Developer

Attachments (2)

main.log (96.3 KB) - added by dlamija (Muhammed Ramiza) 5 years ago.
main.2.log (30.7 KB) - added by mf2k (Frank Schima) 5 years ago.
Xcode 11.2 and Catalina

Download all attachments as: .zip

Change History (14)

Changed 5 years ago by dlamija (Muhammed Ramiza)

Attachment: main.log added

comment:1 Changed 5 years ago by dlamija (Muhammed Ramiza)

Owner: set to l2dy
Status: newassigned

comment:2 Changed 5 years ago by dlamija (Muhammed Ramiza)

Summary: bmon @@4.0_2 Failed to build bmon: command execution failedbmon @4.0_2 Failed to build bmon: command execution failed

comment:3 Changed 5 years ago by mf2k (Frank Schima)

Cc: l2dy removed

comment:4 Changed 5 years ago by iEFdev

I got the same error on Lion:

:info:build /usr/include/mach/mig_errors.h:113:34: error: use of undeclared identifier 'unused'
:info:build __NDR_convert__mig_reply_error_t(__unused mig_reply_error_t *x)
:info:build                                  ^

comment:5 Changed 5 years ago by dlamija (Muhammed Ramiza)

Version: 2.6.12.6.2

with 10.15.1 with macport 2.6.2 on Xcode 11.1

:info:build /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mig_errors.h:113:34: error: use of undeclared identifier 'unused'
:info:build __NDR_convert__mig_reply_error_t(__unused mig_reply_error_t *x)
:info:build                                  ^
:info:build /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/cdefs.h:161:40: note: expanded from macro '__unused'
:info:build #define __unused        __attribute__((__unused__))
:info:build                                        ^
:info:build ../include/bmon/bmon.h:63:36: note: expanded from macro '__unused__'
:info:build #define __unused__ __attribute__ ((unused))
:info:build                                    ^
:info:build 1 error generated.
:info:build make[1]: *** [bmon-utils.o] Error 1

almost the same error but now it already select /Applications/Xcode.app/Contents/Developer for the library used.

comment:6 Changed 5 years ago by l2dy (Zero King)

Anyone tested this with Xcode 11.2?

comment:7 Changed 5 years ago by mf2k (Frank Schima)

Yes, same error.

Changed 5 years ago by mf2k (Frank Schima)

Attachment: main.2.log added

Xcode 11.2 and Catalina

comment:8 in reply to:  7 Changed 5 years ago by l2dy (Zero King)

Xcode 11.2 and Catalina

It's built against the CLT (CommandLineTools), is the CLT updated to match Xcode 11.2?


If Xcode 11.2 and the upcoming CLT release fix the issue, I'll do a revbump after our 10.15 builder gets updated.

Or, if this PR is updated to apply the patch on 10.15 only, I'll merge it instead.

comment:9 Changed 5 years ago by mf2k (Frank Schima)

I am fully updated as of now and see no updates for the CLT. Maybe they haven't been released yet?

comment:10 Changed 5 years ago by iEFdev

Found a post and it seems like there are many who experience upgrading issues, And someone posted a (xip) direct link if that helps: https://forums.developer.apple.com/thread/125322#thread-post-392024

comment:11 Changed 5 years ago by Eric F <iEFdev@…>

Resolution: fixed
Status: assignedclosed

In 6d1dd5e9c8fae608bd22f3ede21e576f29c6358c/macports-ports (master):

bmon: fix for undeclared identifier (https://github.com/macports/macports-ports/pull/5636)

  • Closes: #59334
  • Add size to checksums

comment:12 Changed 5 years ago by dlamija (Muhammed Ramiza)

Good! 4.0_3 compiled perfectly! Thank You.

Note: See TracTickets for help on using tickets.