Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#55035 closed defect (fixed)

gdb @7.12.1: doublest.c:568:19: error: use of undeclared identifier 'min'; did you mean 'fmin'?

Reported by: sekuri (Sekuri) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: sierra highsierra xcode9 Cc: basmac, epilatow (Edward Pilatowicz), plinss (Peter Linss), thenickdude (Nicholas Sherlock), floodkoff (Misha Fludkov), maehne (Torsten Maehne), omnikultur, p-bro, murrayE, espinraf (Rafael Espino), dershow, davelaneca
Port: gdb

Description (last modified by ryandesign (Ryan Carsten Schmidt))

After upgrading to 10.13, followed migration instructions and ran restore_ports.tcl script. So far, all worked except for gdb with the following error:

Error: Failed to build gdb: command execution failed
Error: Processing of port gdb failed

main.log file attached. Thanks

Attachments (1)

main.log (994.7 KB) - added by sekuri (Sekuri) 7 years ago.

Download all attachments as: .zip

Change History (23)

Changed 7 years ago by sekuri (Sekuri)

Attachment: main.log added

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

Description: modified (diff)
Keywords: highsierra added; failed gdb build high sierra removed
Summary: Failed to build gdb on macOS 10.13gdb @7.12.1: doublest.c:568:19: error: use of undeclared identifier 'min'; did you mean 'fmin'?

comment:2 Changed 7 years ago by basmac

lots of warnings then at the end

./common/vec.h:1099:20: note: expanded from macro '\
DEF_VEC_ALLOC_FUNC_O'
static inline void VEC_OP (T,safe_grow)                                   \
                   ^
./common/vec.h:399:22: note: expanded from macro 'VEC_OP'
#define VEC_OP(T,OP) VEC_##T##_##OP
                     ^
<scratch space>:64:1: note: expanded from here
VEC_inline_state_s_safe_grow
^
inline-frame.c:59:1: warning: unused function 'VEC_inline_state_s_safe_insert' [-Wunused-function]
./common/vec.h:436:27: note: expanded from macro 'DEF_VEC_O'
DEF_VEC_FUNC_O(T)                                                         \
                                                                          ^
./common/vec.h:1117:18: note: expanded from macro '\
DEF_VEC_ALLOC_FUNC_O'
static inline T *VEC_OP (T,safe_insert)                                   \
                 ^
./common/vec.h:399:22: note: expanded from macro 'VEC_OP'
#define VEC_OP(T,OP) VEC_##T##_##OP
                     ^
<scratch space>:84:1: note: expanded from here
VEC_inline_state_s_safe_insert
^
267 warnings generated.
348 warnings generated.
312 warnings generated.
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gdb/gdb/work/gdb-7.12.1/gdb'
make[1]: *** [all-gdb] Error 2
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gdb/gdb/work/gdb-7.12.1'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gdb/gdb/work/gdb-7.12.1'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gdb/gdb/work/gdb-7.12.1" && /usr/bin/make -j8 -w all
Exit code: 2
Error: Failed to build gdb: command execution failed
DEBUG: Error code: CHILDSTATUS 33352 2
DEBUG: Backtrace: command execution failed
    while executing
"system {*}$notty {*}$nice $fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gdb/gdb/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port gdb failed
[mac27:/] root#
Last edited 7 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:3 Changed 7 years ago by basmac

Cc: basmac added

comment:4 Changed 7 years ago by epilatow (Edward Pilatowicz)

Cc: epilatow added

comment:5 Changed 7 years ago by senseysensor

the same here. :(

comment:6 Changed 7 years ago by kencu (Ken)

We probably need to upgrade this. Homebrew has it at 8.0.1 <https://github.com/Homebrew/homebrew-core/blob/master/Formula/gdb.rb>

comment:7 Changed 7 years ago by plinss (Peter Linss)

Cc: plinss added

comment:8 Changed 7 years ago by thenickdude (Nicholas Sherlock)

Cc: thenickdude added

comment:9 Changed 7 years ago by floodkoff (Misha Fludkov)

Cc: floodkoff added

comment:10 Changed 7 years ago by maehne (Torsten Maehne)

Cc: maehne added

comment:11 Changed 7 years ago by omnikultur

Cc: omnikultur added

comment:12 Changed 7 years ago by p-bro

Cc: p-bro added

comment:13 Changed 7 years ago by p-bro

Is #55297 a duplicate of this one? Seems strongly like it...

comment:14 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: murrayE dershow espinraf added
Keywords: sierra xcode9 added

Has duplicates #55297 and #55344.

comment:15 Changed 7 years ago by dershow

Cc: dershow removed

comment:16 Changed 7 years ago by dershow

Cc: dershow added

comment:17 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: davelaneca added

Has duplicate #55348.

comment:18 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to ryandesign
Resolution: fixed
Status: newclosed

comment:19 Changed 7 years ago by davelaneca

How long to we have to wait before 8.0.1 becomes available for download/install?

comment:20 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

The public rsync server is updated every 30-40 minutes.

comment:21 Changed 7 years ago by davelaneca

gdb version 7.21.1 is still coming up when I do a:

port install gdb

yes, I have done a port clean gdb

Last edited 7 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

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

You need to run the following first:

sudo port selfupdate
Note: See TracTickets for help on using tickets.