[MacPorts] #66802: I am getting this error while trying to install sudo port install i386-elf-gcc gdb

MacPorts noreply at macports.org
Tue Jan 31 12:25:47 UTC 2023


#66802: I am getting this error while trying to install sudo port install i386-elf-
gcc gdb
--------------------------+--------------------
  Reporter:  sunnypranay  |      Owner:  (none)
      Type:  defect       |     Status:  new
  Priority:  High         |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:               |
--------------------------+--------------------
Description changed by sunnypranay:

Old description:

> :info:build         #define __deprecated_msg(_msg)
> __attribute__((__deprecated__(_msg)))
> :info:build                                                       ^
> :info:build   CXX    tui/tui-hooks.o
> :info:build
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gdb/gdb/work/gdb-12.1/gdb/tracepoint.c:2834:3:
> warning: 'sprintf' is deprecated: This function is provided for
> compatibility reasons only.  Due to security concerns inherent in the
> design of sprintf(3), it is highly recommended that you use snprintf(3)
> instead. [-Wdeprecated-declarations]
> :info:build   sprintf (buf, "%x:%s:%s:%x:%x:",
> :info:build   ^
> :info:build
> /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/stdio.h:188:1:
> note: 'sprintf' has been explicitly marked deprecated here
> :info:build __deprecated_msg("This function is provided for compatibility
> reasons only.  Due to security concerns inherent in the design of
> sprintf(3), it is highly recommended that you use snprintf(3) instead.")
> :info:build ^
> :info:build
> /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/sys/cdefs.h:215:48:
> note: expanded from macro '__deprecated_msg'
> :info:build         #define __deprecated_msg(_msg)
> __attribute__((__deprecated__(_msg)))
> :info:build                                                       ^
> :info:build   CXX    tui/tui-interp.o
> :info:build   CXX    tui/tui-io.o
> :info:build   CXX    tui/tui-layout.o
> :info:build   CXX    tui/tui-location.o
> :info:build   CXX    tui/tui-out.o
> :info:build   CXX    tui/tui-regs.o
> :info:build   CXX    tui/tui-source.o
> :info:build   CXX    tui/tui-stack.o
> :info:build   CXX    tui/tui-win.o
> :info:build 4 warnings generated.
> :info:build   CXX    tui/tui-wingeneral.o
> :info:build   CXX    tui/tui-winsource.o
> :info:build   CXX    tui/tui.o
> :info:build   CXX    type-stack.o
> :info:build   CXX    typeprint.o
> :info:build   CXX    ui-file.o
> :info:build   CXX    ui-out.o
> :info:build   CXX    ui-style.o
> :info:build   CXX    user-regs.o
> :info:build   CXX    utils.o
> :info:build   CXX    valarith.o
> :info:build   CXX    valops.o
> :info:build   CXX    valprint.o
> :info:build   CXX    value.o
> :info:build   CXX    varobj.o
> :info:build   CXX    version.o
> :info:build   CXX    xml-builtin.o
> :info:build   CXX    init.o
> :info:build   CXXLD  gdb
> :info:build ld: warning: ignoring file /opt/local/lib/libintl.dylib,
> building for macOS-x86_64 but attempting to link with file built for
> macOS-arm64
> :info:build Undefined symbols for architecture x86_64:
> :info:build   "_libintl_bindtextdomain", referenced from:
> :info:build       gdb_main(captured_main_args*) in main.o
> :info:build   "_libintl_dgettext", referenced from:
> :info:build       _bfd_cache_lookup_worker in libbfd.a(cache.o)
> :info:build       __bfd_abort in libbfd.a(bfd.o)
> :info:build       _bfd_errmsg in libbfd.a(bfd.o)
> :info:build       _bfd_assert in libbfd.a(bfd.o)
> :info:build       _bfd_get_full_section_contents in libbfd.a(compress.o)
> :info:build       __bfd_generic_get_section_contents in
> libbfd.a(libbfd.o)
> :info:build       __bfd_warn_deprecated in libbfd.a(libbfd.o)
> :info:build       ...
> :info:build   "_libintl_gettext", referenced from:
> :info:build       gettext(char const*) in ada-exp.o
> :info:build       write_var_or_type(parser_state*, block const*, stoken)
> in ada-exp.o
> :info:build       block_lookup(block const*, char const*) in ada-exp.o
> :info:build       ada_parse(parser_state*) in ada-exp.o
> :info:build       processInt(parser_state*, char const*, char const*,
> char const*) in ada-exp.o
> :info:build       write_object_renaming(parser_state*, block const*, char
> const*, int, char const*, int) in ada-exp.o
> :info:build       gettext(char const*) in ada-lang.o
> :info:build       ...
> :info:build   "_libintl_textdomain", referenced from:
> :info:build       gdb_main(captured_main_args*) in main.o
> :info:build ld: symbol(s) not found for architecture x86_64
> :info:build clang: error: linker command failed with exit code 1 (use -v
> to see invocation)
> :info:build make[2]: *** [gdb] Error 1
> :info:build 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/build/gdb'
> :info:build make[1]: *** [all-gdb] Error 2
> :info:build 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/build'
> :info:build make: *** [all] Error 2
> :info:build make: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gdb/gdb/work/build'
> :info:build Command failed:  cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gdb/gdb/work/build"
> && /usr/bin/make -j8 -w all
> :info:build Exit code: 2
> :error:build Failed to build gdb: command execution failed
> :debug:build Error code: CHILDSTATUS 2417 2
> :debug:build Backtrace: command execution failed
> :debug:build     while executing
> :debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
> :debug:build     invoked from within
> :debug:build "command_exec -callback
> portprogress::target_progress_callback build"
> :debug:build     (procedure "portbuild::build_main" line 8)
> :debug:build     invoked from within
> :debug:build "$procedure $targetname"
> :error:build 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.

New description:

 {{{
 :info:build         #define __deprecated_msg(_msg)
 __attribute__((__deprecated__(_msg)))
 :info:build                                                       ^
 :info:build   CXX    tui/tui-hooks.o
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gdb/gdb/work/gdb-12.1/gdb/tracepoint.c:2834:3:
 warning: 'sprintf' is deprecated: This function is provided for
 compatibility reasons only.  Due to security concerns inherent in the
 design of sprintf(3), it is highly recommended that you use snprintf(3)
 instead. [-Wdeprecated-declarations]
 :info:build   sprintf (buf, "%x:%s:%s:%x:%x:",
 :info:build   ^
 :info:build
 /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/stdio.h:188:1:
 note: 'sprintf' has been explicitly marked deprecated here
 :info:build __deprecated_msg("This function is provided for compatibility
 reasons only.  Due to security concerns inherent in the design of
 sprintf(3), it is highly recommended that you use snprintf(3) instead.")
 :info:build ^
 :info:build
 /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/sys/cdefs.h:215:48:
 note: expanded from macro '__deprecated_msg'
 :info:build         #define __deprecated_msg(_msg)
 __attribute__((__deprecated__(_msg)))
 :info:build                                                       ^
 :info:build   CXX    tui/tui-interp.o
 :info:build   CXX    tui/tui-io.o
 :info:build   CXX    tui/tui-layout.o
 :info:build   CXX    tui/tui-location.o
 :info:build   CXX    tui/tui-out.o
 :info:build   CXX    tui/tui-regs.o
 :info:build   CXX    tui/tui-source.o
 :info:build   CXX    tui/tui-stack.o
 :info:build   CXX    tui/tui-win.o
 :info:build 4 warnings generated.
 :info:build   CXX    tui/tui-wingeneral.o
 :info:build   CXX    tui/tui-winsource.o
 :info:build   CXX    tui/tui.o
 :info:build   CXX    type-stack.o
 :info:build   CXX    typeprint.o
 :info:build   CXX    ui-file.o
 :info:build   CXX    ui-out.o
 :info:build   CXX    ui-style.o
 :info:build   CXX    user-regs.o
 :info:build   CXX    utils.o
 :info:build   CXX    valarith.o
 :info:build   CXX    valops.o
 :info:build   CXX    valprint.o
 :info:build   CXX    value.o
 :info:build   CXX    varobj.o
 :info:build   CXX    version.o
 :info:build   CXX    xml-builtin.o
 :info:build   CXX    init.o
 :info:build   CXXLD  gdb
 :info:build ld: warning: ignoring file /opt/local/lib/libintl.dylib,
 building for macOS-x86_64 but attempting to link with file built for
 macOS-arm64
 :info:build Undefined symbols for architecture x86_64:
 :info:build   "_libintl_bindtextdomain", referenced from:
 :info:build       gdb_main(captured_main_args*) in main.o
 :info:build   "_libintl_dgettext", referenced from:
 :info:build       _bfd_cache_lookup_worker in libbfd.a(cache.o)
 :info:build       __bfd_abort in libbfd.a(bfd.o)
 :info:build       _bfd_errmsg in libbfd.a(bfd.o)
 :info:build       _bfd_assert in libbfd.a(bfd.o)
 :info:build       _bfd_get_full_section_contents in libbfd.a(compress.o)
 :info:build       __bfd_generic_get_section_contents in libbfd.a(libbfd.o)
 :info:build       __bfd_warn_deprecated in libbfd.a(libbfd.o)
 :info:build       ...
 :info:build   "_libintl_gettext", referenced from:
 :info:build       gettext(char const*) in ada-exp.o
 :info:build       write_var_or_type(parser_state*, block const*, stoken)
 in ada-exp.o
 :info:build       block_lookup(block const*, char const*) in ada-exp.o
 :info:build       ada_parse(parser_state*) in ada-exp.o
 :info:build       processInt(parser_state*, char const*, char const*, char
 const*) in ada-exp.o
 :info:build       write_object_renaming(parser_state*, block const*, char
 const*, int, char const*, int) in ada-exp.o
 :info:build       gettext(char const*) in ada-lang.o
 :info:build       ...
 :info:build   "_libintl_textdomain", referenced from:
 :info:build       gdb_main(captured_main_args*) in main.o
 :info:build ld: symbol(s) not found for architecture x86_64
 :info:build clang: error: linker command failed with exit code 1 (use -v
 to see invocation)
 :info:build make[2]: *** [gdb] Error 1
 :info:build 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/build/gdb'
 :info:build make[1]: *** [all-gdb] Error 2
 :info:build 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/build'
 :info:build make: *** [all] Error 2
 :info:build make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gdb/gdb/work/build'
 :info:build Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gdb/gdb/work/build"
 && /usr/bin/make -j8 -w all
 :info:build Exit code: 2
 :error:build Failed to build gdb: command execution failed
 :debug:build Error code: CHILDSTATUS 2417 2
 :debug:build Backtrace: command execution failed
 :debug:build     while executing
 :debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
 :debug:build     invoked from within
 :debug:build "command_exec -callback
 portprogress::target_progress_callback build"
 :debug:build     (procedure "portbuild::build_main" line 8)
 :debug:build     invoked from within
 :debug:build "$procedure $targetname"
 :error:build 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.

 }}}

--

-- 
Ticket URL: <https://trac.macports.org/ticket/66802#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list