Opened 2 years ago

Last modified 2 years ago

#66198 new defect

arm-elf-gdb: needs to set supported_archs, fix implicit declarations

Reported by: the80srobot (Adam Sindelar) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: Cc:
Port: arm-elf-gdb

Description

The build consistently fails:

> sudo port install arm-elf-gdb 
--->  Fetching archive for arm-elf-gdb
--->  Attempting to fetch arm-elf-gdb-7.1_1.darwin_21.arm64.tbz2 from https://packages.macports.org/arm-elf-gdb
--->  Attempting to fetch arm-elf-gdb-7.1_1.darwin_21.arm64.tbz2 from https://fra.de.packages.macports.org/arm-elf-gdb
--->  Attempting to fetch arm-elf-gdb-7.1_1.darwin_21.arm64.tbz2 from https://nue.de.packages.macports.org/arm-elf-gdb
--->  Fetching distfiles for arm-elf-gdb
--->  Attempting to fetch gdb-7.1.tar.bz2 from https://fra.de.distfiles.macports.org/gdb
--->  Verifying checksums for arm-elf-gdb
--->  Extracting arm-elf-gdb
--->  Applying patches to arm-elf-gdb
Warning: reinplace s|setfilename standards.info|setfilename arm-elf-standards.info|g didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_arm-elf-gdb/arm-elf-gdb/work/gdb-7.1/etc/standards.info
Warning: reinplace s|@file{standards}|@file{arm-elf-standards}|g didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_arm-elf-gdb/arm-elf-gdb/work/gdb-7.1/etc/standards.info
Warning: reinplace s|/standards.info|/arm-elf-standards.info|g didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_arm-elf-gdb/arm-elf-gdb/work/gdb-7.1/etc/Makefile.in
Warning: reinplace s| standards.pod| arm-elf-standards.pod|g didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_arm-elf-gdb/arm-elf-gdb/work/gdb-7.1/etc/Makefile.in
Warning: reinplace s|/standards.pod|/arm-elf-standards.pod|g didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_arm-elf-gdb/arm-elf-gdb/work/gdb-7.1/etc/Makefile.in
Warning: reinplace s|^standards.pod|arm-elf-standards.pod|g didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_arm-elf-gdb/arm-elf-gdb/work/gdb-7.1/etc/Makefile.in
Warning: reinplace s| standards.info| arm-elf-standards.info|g didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_arm-elf-gdb/arm-elf-gdb/work/gdb-7.1/etc/Makefile.in
Warning: reinplace s|/standards.info|/arm-elf-standards.info|g didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_arm-elf-gdb/arm-elf-gdb/work/gdb-7.1/etc/Makefile.in
Warning: reinplace s|^standards.info|arm-elf-standards.info|g didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_arm-elf-gdb/arm-elf-gdb/work/gdb-7.1/etc/Makefile.in
Warning: reinplace s|--info-dir=$(DESTDIR)$(infodir)|--dir-file=$(DESTDIR)$(infodir)/arm-elf-gdb-dir|g didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_arm-elf-gdb/arm-elf-gdb/work/gdb-7.1/etc/Makefile.in
--->  Configuring arm-elf-gdb
--->  Building arm-elf-gdb                               
Error: Failed to build arm-elf-gdb: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_arm-elf-gdb/arm-elf-gdb/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port arm-elf-gdb failed

Build log is attached.

I tried running the make by hand, because the debug output is light on details even with -v. It seems to die suddenly:

configure: updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating bfd-in3.h
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default-1 commands
config.status: executing bfd_stdint.h commands
config.status: executing default commands
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_arm-elf-gdb/arm-elf-gdb/work/build'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_cross_arm-elf-gdb/arm-elf-gdb/work/build'

I'm not sure how to get more details about what failed out of it.

Attachments (1)

main.log (91.7 KB) - added by the80srobot (Adam Sindelar) 2 years ago.
build log

Download all attachments as: .zip

Change History (4)

Changed 2 years ago by the80srobot (Adam Sindelar)

Attachment: main.log added

build log

comment:1 Changed 2 years ago by the80srobot (Adam Sindelar)

Oh hang on a minute. It looks like GDB straight up doesn't work on arm64?

https://inbox.sourceware.org/gdb/3185c3b8-8a91-4beb-a5d5-9db6afb93713@Spark/

If that's the case, then sorry for the noise and feel free to close without further comment.

comment:2 Changed 2 years ago by jmroot (Joshua Root)

Summary: defect: arm-elf-gdb is broken on Montereyarm-elf-gdb: needs to set supported_archs

comment:3 Changed 2 years ago by jmroot (Joshua Root)

Summary: arm-elf-gdb: needs to set supported_archsarm-elf-gdb: needs to set supported_archs, fix implicit declarations

Looks like there are some implicit declaration errors in there that would also affect x86_64 with newer Xcode versions.

Note: See TracTickets for help on using tickets.