Opened 6 years ago

Closed 6 years ago

#55297 closed defect (duplicate)

gdb @7.12.1: error: use of undeclared identifier 'min'; did you mean 'fmin'?

Reported by: murrayE Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.4.2
Keywords: highsierra Cc: dershow
Port: gdb

Description

This is during a reinstall of ports during migration of MacPorts from macOS Sierra to High Sierra 10.13.1 (Installed new MacPorts; have to install ports manually since the script to do it automatically is not proceeding without an error.)

Many warnings in build portion of log, but I don't see just what's causing the build failure.

(Dependency boehmgc installed OK.)

Attachments (1)

gdb_main.log.zip (2.8 MB) - added by murrayE 6 years ago.

Change History (5)

Changed 6 years ago by murrayE

Attachment: gdb_main.log.zip added

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

Keywords: highsierra added; build removed
Port: gdb added; gdb-7.12.1 removed
Summary: gdb-7.12.1 fails to build under macOS 10.13.1gdb @7.12.1: error: use of undeclared identifier 'min'; did you mean 'fmin'?

The relevant errors in the log are:

:info:build doublest.c:258:19: error: use of undeclared identifier 'min'; did you mean 'fmin'?
:info:build doublest.c:568:19: error: use of undeclared identifier 'min'; did you mean 'fmin'?
:info:build doublest.c:912:25: error: use of undeclared identifier 'min'; did you mean 'fmin'?

clang has gotten more strict about this kind of thing in recent versions. There are other tickets about other ports. I don't remember what the fix is.

comment:2 Changed 6 years ago by dershow

I tried switching back to XCode 8.3.3 and gdb does build that way. Just not with 9.1

comment:3 Changed 6 years ago by dershow

Cc: dershow added

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

Resolution: duplicate
Status: newclosed

Great if that worked for you, but note that Xcode 8.3.3 is not compatible with High Sierra so you should not make a habit of using that version.

Duplicate of #55035.

Note: See TracTickets for help on using tickets.