Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 382651

Summary: sys-devel/gdb fails building on OS X 10.5.8 (Core2 duo 32 bit)
Product: Gentoo/Alt Reporter: François Bissey <frp.bissey>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: OS X   
Whiteboard:
Package list:
Runtime testing required: ---

Description François Bissey 2011-09-11 22:02:28 UTC
As in the summary gdb fails to build for me. It dies witht he following message:

rm -f libgdb.a
i686-apple-darwin9-ar q libgdb.a amd64-tdep.o amd64-darwin-tdep.o i386-tdep.o i387-tdep.o i386-darwin-tdep.o solib.o solib-darwin.o ser-base.o ser-unix.o ser-pipe.o ser-tcp.o fork-child.o machoread.o darwin-nat.o i386-darwin-nat.o i386-nat.o amd64-nat.o darwin-nat-info.o remote.o dcache.o tracepoint.o ax-general.o ax-gdb.o remote-fileio.o  cli-dump.o cli-decode.o cli-script.o cli-cmds.o cli-setshow.o cli-logging.o cli-interp.o mi-out.o mi-console.o mi-cmds.o mi-cmd-env.o mi-cmd-var.o mi-cmd-break.o mi-cmd-stack.o mi-cmd-file.o mi-cmd-disas.o mi-symbol-cmds.o mi-cmd-target.o mi-interp.o mi-main.o mi-parse.o mi-getopt.o tui-command.o tui-data.o tui-disasm.o tui-file.o tui.o tui-hooks.o tui-interp.o tui-io.o tui-layout.o tui-out.o tui-regs.o tui-source.o tui-stack.o tui-win.o tui-windata.o tui-wingeneral.o tui-winsource.o python.o py-value.o py-prettyprint.o py-auto-load.o posix-hdep.o c-exp.o cp-name-parser.o objc-exp.o ada-exp.o jv-exp.o f-exp.o m2-exp.o p-exp.o version.o annotate.o addrmap.o auxv.o bfd-target.o blockframe.o breakpoint.o findvar.o regcache.o charset.o disasm.o dummy-frame.o dfp.o source.o value.o eval.o valops.o valarith.o valprint.o printcmd.o block.o symtab.o psymtab.o symfile.o symmisc.o linespec.o dictionary.o infcall.o infcmd.o infrun.o expprint.o environ.o stack.o thread.o exceptions.o filesystem.o inf-child.o interps.o main.o macrotab.o macrocmd.o macroexp.o macroscope.o mi-common.o event-loop.o event-top.o inf-loop.o completer.o gdbarch.o arch-utils.o gdbtypes.o osabi.o copying.o memattr.o mem-break.o target.o parse.o language.o buildsym.o findcmd.o std-regs.o signals.o exec.o reverse.o bcache.o objfiles.o observer.o minsyms.o maint.o demangle.o dbxread.o coffread.o coff-pe-read.o dwarf2read.o mipsread.o stabsread.o corefile.o dwarf2expr.o dwarf2loc.o dwarf2-frame.o ada-lang.o c-lang.o d-lang.o f-lang.o objc-lang.o ada-tasks.o ui-out.o cli-out.o varobj.o vec.o wrapper.o jv-lang.o jv-valprint.o jv-typeprint.o m2-lang.o opencl-lang.o p-lang.o p-typeprint.o p-valprint.o sentinel-frame.o complaints.o typeprint.o ada-typeprint.o c-typeprint.o f-typeprint.o m2-typeprint.o ada-valprint.o c-valprint.o cp-valprint.o d-valprint.o f-valprint.o m2-valprint.o serial.o mdebugread.o top.o utils.o ui-file.o user-regs.o frame.o frame-unwind.o doublest.o frame-base.o inline-frame.o gnu-v2-abi.o gnu-v3-abi.o cp-abi.o cp-support.o cp-namespace.o reggroups.o regset.o trad-frame.o tramp-frame.o solib.o solib-target.o prologue-value.o memory-map.o xml-support.o xml-syscall.o target-descriptions.o target-memory.o xml-tdesc.o xml-builtin.o inferior.o osdata.o gdb_usleep.o record.o gcore.o jit.o progspace.o inflow.o    init.o
i686-apple-darwin9-ar: creating archive libgdb.a
i686-apple-darwin9-ranlib libgdb.a
rm -f gdb
rm -f gdbtui
i686-apple-darwin9-gcc -O2 -pipe -march=nocona -ggdb -fno-strict-aliasing   -Wl,-dead_strip_dylibs   \
	-o gdb gdb.o libgdb.a \
	   ../readline/libreadline.a ../opcodes/libopcodes.a ../bfd/libbfd.a  ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a    -lncurses -lz -lm   -liconv  ../libiberty/libiberty.a  gnulib/libgnu.a 
i686-apple-darwin9-gcc -O2 -pipe -march=nocona -ggdb -fno-strict-aliasing   -Wl,-dead_strip_dylibs   \
	-o gdbtui tui-main.o libgdb.a \
	   ../readline/libreadline.a ../opcodes/libopcodes.a ../bfd/libbfd.a  ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a    -lncurses -lz -lm   -liconv  ../libiberty/libiberty.a  gnulib/libgnu.a 
UndefinedUndefined  symbolssymbols::

    ""_gnu_ifunc_record_cache_gnu_ifunc_record_cache"",,  referencedreferenced  fromfrom::

            _bpstat_what_bpstat_what  inin  libgdb.alibgdb.a((breakpoint.obreakpoint.o))

            _find_function_addr_find_function_addr  inin  libgdb.alibgdb.a((infcall.oinfcall.o))

    ""_resolve_gnu_ifunc_resolve_gnu_ifunc"",,  referencedreferenced  fromfrom::

            _set_breakpoint_location_function_set_breakpoint_location_function  inin  libgdb.alibgdb.a((breakpoint.obreakpoint.o))

            _find_function_addr_find_function_addr  inin  libgdb.alibgdb.a((infcall.oinfcall.o))

    ""_debug_flush_missing_debug_flush_missing"",,  referencedreferenced  fromfrom::

            _display_gdb_prompt_display_gdb_prompt  inin  libgdb.alibgdb.a((eventevent--top.otop.o))

            _cli_command_loop_cli_command_loop  inin  libgdb.alibgdb.a((eventevent--top.otop.o))

            _tui_command_loop_tui_command_loop  inin  libgdb.alibgdb.a((tuitui--interp.ointerp.o))

ldld::  symbol(s) not found
collect2: ld returned 1 exit status
symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [gdbtui] Error 1
Comment 1 Fabian Groffen gentoo-dev 2012-03-24 13:19:59 UTC
probably should mask for Darwin9
Comment 2 Fabian Groffen gentoo-dev 2012-12-12 11:43:01 UTC
I have it installed without problems (7.5 that is) on i686-apple-darwin9.