I tried to build the gold plugin and receive the errors posted below. I checked out the gold plugin using "cvs -z 9 -d :pserver:anoncvs at sourceware.org:/cvs/src co src," as documented on llvm.org. Is that version bleeding edge and perhaps not stable? The first errors have to do with the libtool version. I have libtool 2.2.6 on my system, which is what the README-maintainer-mode file states I need. Do I need to upgrade to libtool 2.2.7a? ------------------------------- /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I../../.././rda/qe -I.. -I../../.././rda/qe -I../../.././rda/qe/../include -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -g -O2 -MT qe.o -MD -MP -MF .deps/qe.Tpo -c -o qe.o ../../.././rda/qe/qe.c mv -f .deps/qe.Tpo .deps/qe.Po /bin/bash ../libtool --tag=CC --mode=link /usr/bin/gcc-4.2 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -g -O2 -o qe inc-gdblog.o inc-gdbloop.o inc-gdbsched.o inc-gdbserv.o inc-gdbserv-client.o inc-gdbserv-input.o inc-gdbserv-log.o inc-gdbserv-output.o inc-gdbserv-target.o inc-gdbserv-utils.o inc-gdbsocket.o inc-stdio-log.o inc-forward.o inc-backwards.o qe.o -lresolv -lnsl libtool: Version mismatch error. This is libtool 2.2.7a, but the libtool: definition of this LT_INIT comes from libtool 2.2.6. libtool: You should recreate aclocal.m4 with macros from libtool 2.2.7a libtool: and run autoconf again. make[4]: *** [qe] Error 63 make[4]: Leaving directory `/home/lefever/work/llvm/v2.6/gold-plugin/binutils/src/x86_64-unknown-linux-gnu/rda/qe' .... make[5]: Entering directory `/home/lefever/work/llvm/v2.6/gold-plugin/binutils/src/x86_64-unknown-linux-gnu/rda/unix' /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I../../.././rda/unix -I../../.././rda/unix -I../../.././rda/unix/../include -Wall -g -O2 -MT server.o -MD -MP -MF .deps/server.Tpo -c -o server.o ../../.././rda/unix/server.c mv -f .deps/server.Tpo .deps/server.Po /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I../../.././rda/unix -I../../.././rda/unix -I../../.././rda/unix/../include -Wall -g -O2 -MT linux-target.o -MD -MP -MF .deps/linux-target.Tpo -c -o linux-target.o ../../.././rda/unix/linux-target.c In file included from ../../.././rda/unix/linux-target.c:50: ../../.././rda/unix/ptrace-target.h:70: error: expected declaration specifiers or ‘...’ before ‘ptrace_arg3_type’ ../../.././rda/unix/ptrace-target.h:72: error: expected declaration specifiers or ‘...’ before ‘ptrace_arg3_type’ ../../.././rda/unix/linux-target.c:1620:2: error: #error Need a _LINUX_TARGET define for your architecture ../../.././rda/unix/linux-target.c: In function ‘linux_next_gg_reg’: ../../.././rda/unix/linux-target.c:1643: error: ‘NUM_REGS’ undeclared (first use in this function) ../../.././rda/unix/linux-target.c:1643: error: (Each undeclared identifier is reported only once ../../.././rda/unix/linux-target.c:1643: error: for each function it appears in.) ../../.././rda/unix/linux-target.c: In function ‘linux_gg_reg_nr’: ../../.././rda/unix/linux-target.c:1660: error: ‘NUM_REGS’ undeclared (first use in this function) ../../.././rda/unix/linux-target.c: In function ‘linux_register_offset’: ../../.././rda/unix/linux-target.c:2693: error: ‘SIZEOF_REGMAP’ undeclared (first use in this function) ../../.././rda/unix/linux-target.c:2695: error: ‘regmap’ undeclared (first use in this function) ../../.././rda/unix/linux-target.c:2705: error: ‘SIZEOF_MAPPEDREG’ undeclared (first use in this function) ../../.././rda/unix/linux-target.c: At top level: ../../.././rda/unix/linux-target.c:2722: error: expected declaration specifiers or ‘...’ before ‘ptrace_xfer_type’ ../../.././rda/unix/linux-target.c: In function ‘linux_read_reg’: ../../.././rda/unix/linux-target.c:2725: error: ‘ptrace_arg3_type’ undeclared (first use in this function) ../../.././rda/unix/linux-target.c:2725: error: expected ‘;’ before ‘regaddr’ ../../.././rda/unix/linux-target.c:2727: error: ‘regaddr’ undeclared (first use in this function) ../../.././rda/unix/linux-target.c:2732: error: ‘regval’ undeclared (first use in this function) ../../.././rda/unix/linux-target.c:2732: error: too many arguments to function ‘ptrace_read_user’ ../../.././rda/unix/linux-target.c:2724: warning: unused variable ‘u_regs_base’ ../../.././rda/unix/linux-target.c: At top level: ../../.././rda/unix/linux-target.c:2748: error: expected declaration specifiers or ‘...’ before ‘ptrace_xfer_type’ ../../.././rda/unix/linux-target.c: In function ‘linux_write_reg’: ../../.././rda/unix/linux-target.c:2751: error: ‘ptrace_arg3_type’ undeclared (first use in this function) ../../.././rda/unix/linux-target.c:2751: error: expected ‘;’ before ‘regaddr’ ../../.././rda/unix/linux-target.c:2754: error: ‘regaddr’ undeclared (first use in this function) ../../.././rda/unix/linux-target.c:2759: error: ‘regval’ undeclared (first use in this function) ../../.././rda/unix/linux-target.c:2759: error: too many arguments to function ‘ptrace_write_user’ ../../.././rda/unix/linux-target.c:2750: warning: unused variable ‘u_regs_base’ ../../.././rda/unix/linux-target.c: In function ‘debug_get_reg’: ../../.././rda/unix/linux-target.c:2775: error: ‘ptrace_xfer_type’ undeclared (first use in this function) ../../.././rda/unix/linux-target.c:2775: error: expected ‘;’ before ‘value’ ../../.././rda/unix/linux-target.c:2777: error: ‘value’ undeclared (first use in this function) ../../.././rda/unix/linux-target.c:2777: error: too many arguments to function ‘linux_read_reg’ ../../.././rda/unix/linux-target.c: In function ‘debug_get_pc’: ../../.././rda/unix/linux-target.c:2787: error: ‘PC_REGNUM’ undeclared (first use in this function) ../../.././rda/unix/linux-target.c: In function ‘linux_reg_format’: ../../.././rda/unix/linux-target.c:2804: error: ‘SIZEOF_MAPPEDREG’ undeclared (first use in this function) ../../.././rda/unix/linux-target.c: In function ‘linux_sizeof_reg’: ../../.././rda/unix/linux-target.c:2819: error: ‘SIZEOF_MAPPEDREG’ undeclared (first use in this function) ../../.././rda/unix/linux-target.c: In function ‘linux_get_reg’: ../../.././rda/unix/linux-target.c:2834: error: ‘ptrace_xfer_type’ undeclared (first use in this function) ../../.././rda/unix/linux-target.c:2834: error: expected ‘;’ before ‘regval’ ../../.././rda/unix/linux-target.c:2837: error: ‘regval’ undeclared (first use in this function) ../../.././rda/unix/linux-target.c:2837: error: too many arguments to function ‘linux_read_reg’ ../../.././rda/unix/linux-target.c:2844: error: ‘SIZEOF_MAPPEDREG’ undeclared (first use in this function) ../../.././rda/unix/linux-target.c: In function ‘linux_set_reg’: ../../.././rda/unix/linux-target.c:2863: error: ‘ptrace_xfer_type’ undeclared (first use in this function) ../../.././rda/unix/linux-target.c:2863: error: expected ‘;’ before ‘regval’ ../../.././rda/unix/linux-target.c:2865: error: ‘NUM_REGS’ undeclared (first use in this function) ../../.././rda/unix/linux-target.c:2872: error: ‘regval’ undeclared (first use in this function) ../../.././rda/unix/linux-target.c:2878: error: too many arguments to function ‘linux_write_reg’ ../../.././rda/unix/linux-target.c: In function ‘reg_from_gregset’: ../../.././rda/unix/linux-target.c:2903: error: ‘SIZEOF_MAPPEDREG’ undeclared (first use in this function) ../../.././rda/unix/linux-target.c: In function ‘reg_to_gregset’: ../../.././rda/unix/linux-target.c:2936: error: ‘SIZEOF_MAPPEDREG’ undeclared (first use in this function) ../../.././rda/unix/linux-target.c: In function ‘get_gregset’: ../../.././rda/unix/linux-target.c:3010: warning: passing argument 4 of ‘ptrace_read_user’ makes pointer from integer without a cast ../../.././rda/unix/linux-target.c:3010: error: too many arguments to function ‘ptrace_read_user’ ../../.././rda/unix/linux-target.c: In function ‘put_gregset’: ../../.././rda/unix/linux-target.c:3024: warning: passing argument 4 of ‘ptrace_write_user’ makes pointer from integer without a cast ../../.././rda/unix/linux-target.c:3024: error: too many arguments to function ‘ptrace_write_user’ make[5]: *** [linux-target.o] Error 1 ------------------------------- Thanks, Ryan
Hi Ryan,> I tried to build the gold plugin and receive the errors posted below. I > checked out the gold plugin using "cvs -z 9 -d > :pserver:anoncvs at sourceware.org:/cvs/src co src," as documented on > llvm.org. Is that version bleeding edge and perhaps not stable?probably it is.> The first errors have to do with the libtool version. I have libtool > 2.2.6 on my system, which is what the README-maintainer-mode file states > I need. Do I need to upgrade to libtool 2.2.7a?You should probably ask the gold developers these questions. As far as I know none hang out here. Ciao, Duncan.> > ------------------------------- > /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I../../.././rda/qe -I.. > -I../../.././rda/qe -I../../.././rda/qe/../include -Wimplicit > -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses > -Wpointer-arith -g -O2 -MT qe.o -MD -MP -MF .deps/qe.Tpo -c -o qe.o > ../../.././rda/qe/qe.c > mv -f .deps/qe.Tpo .deps/qe.Po > /bin/bash ../libtool --tag=CC --mode=link /usr/bin/gcc-4.2 > -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses > -Wpointer-arith -g -O2 -o qe inc-gdblog.o inc-gdbloop.o > inc-gdbsched.o inc-gdbserv.o inc-gdbserv-client.o inc-gdbserv-input.o > inc-gdbserv-log.o inc-gdbserv-output.o inc-gdbserv-target.o > inc-gdbserv-utils.o inc-gdbsocket.o inc-stdio-log.o inc-forward.o > inc-backwards.o qe.o -lresolv -lnsl > libtool: Version mismatch error. This is libtool 2.2.7a, but the > libtool: definition of this LT_INIT comes from libtool 2.2.6. > libtool: You should recreate aclocal.m4 with macros from libtool 2.2.7a > libtool: and run autoconf again. > make[4]: *** [qe] Error 63 > make[4]: Leaving directory > `/home/lefever/work/llvm/v2.6/gold-plugin/binutils/src/x86_64-unknown-linux-gnu/rda/qe' > > .... > > make[5]: Entering directory > `/home/lefever/work/llvm/v2.6/gold-plugin/binutils/src/x86_64-unknown-linux-gnu/rda/unix' > /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I../../.././rda/unix > -I../../.././rda/unix -I../../.././rda/unix/../include -Wall -g -O2 > -MT server.o -MD -MP -MF .deps/server.Tpo -c -o server.o > ../../.././rda/unix/server.c > mv -f .deps/server.Tpo .deps/server.Po > /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I../../.././rda/unix > -I../../.././rda/unix -I../../.././rda/unix/../include -Wall -g -O2 > -MT linux-target.o -MD -MP -MF .deps/linux-target.Tpo -c -o > linux-target.o ../../.././rda/unix/linux-target.c > In file included from ../../.././rda/unix/linux-target.c:50: > ../../.././rda/unix/ptrace-target.h:70: error: expected declaration > specifiers or ‘...’ before ‘ptrace_arg3_type’ > ../../.././rda/unix/ptrace-target.h:72: error: expected declaration > specifiers or ‘...’ before ‘ptrace_arg3_type’ > ../../.././rda/unix/linux-target.c:1620:2: error: #error Need a > _LINUX_TARGET define for your architecture > ../../.././rda/unix/linux-target.c: In function ‘linux_next_gg_reg’: > ../../.././rda/unix/linux-target.c:1643: error: ‘NUM_REGS’ undeclared > (first use in this function) > ../../.././rda/unix/linux-target.c:1643: error: (Each undeclared > identifier is reported only once > ../../.././rda/unix/linux-target.c:1643: error: for each function it > appears in.) > ../../.././rda/unix/linux-target.c: In function ‘linux_gg_reg_nr’: > ../../.././rda/unix/linux-target.c:1660: error: ‘NUM_REGS’ undeclared > (first use in this function) > ../../.././rda/unix/linux-target.c: In function ‘linux_register_offset’: > ../../.././rda/unix/linux-target.c:2693: error: ‘SIZEOF_REGMAP’ > undeclared (first use in this function) > ../../.././rda/unix/linux-target.c:2695: error: ‘regmap’ undeclared > (first use in this function) > ../../.././rda/unix/linux-target.c:2705: error: ‘SIZEOF_MAPPEDREG’ > undeclared (first use in this function) > ../../.././rda/unix/linux-target.c: At top level: > ../../.././rda/unix/linux-target.c:2722: error: expected declaration > specifiers or ‘...’ before ‘ptrace_xfer_type’ > ../../.././rda/unix/linux-target.c: In function ‘linux_read_reg’: > ../../.././rda/unix/linux-target.c:2725: error: ‘ptrace_arg3_type’ > undeclared (first use in this function) > ../../.././rda/unix/linux-target.c:2725: error: expected ‘;’ before > ‘regaddr’ > ../../.././rda/unix/linux-target.c:2727: error: ‘regaddr’ undeclared > (first use in this function) > ../../.././rda/unix/linux-target.c:2732: error: ‘regval’ undeclared > (first use in this function) > ../../.././rda/unix/linux-target.c:2732: error: too many arguments to > function ‘ptrace_read_user’ > ../../.././rda/unix/linux-target.c:2724: warning: unused variable > ‘u_regs_base’ > ../../.././rda/unix/linux-target.c: At top level: > ../../.././rda/unix/linux-target.c:2748: error: expected declaration > specifiers or ‘...’ before ‘ptrace_xfer_type’ > ../../.././rda/unix/linux-target.c: In function ‘linux_write_reg’: > ../../.././rda/unix/linux-target.c:2751: error: ‘ptrace_arg3_type’ > undeclared (first use in this function) > ../../.././rda/unix/linux-target.c:2751: error: expected ‘;’ before > ‘regaddr’ > ../../.././rda/unix/linux-target.c:2754: error: ‘regaddr’ undeclared > (first use in this function) > ../../.././rda/unix/linux-target.c:2759: error: ‘regval’ undeclared > (first use in this function) > ../../.././rda/unix/linux-target.c:2759: error: too many arguments to > function ‘ptrace_write_user’ > ../../.././rda/unix/linux-target.c:2750: warning: unused variable > ‘u_regs_base’ > ../../.././rda/unix/linux-target.c: In function ‘debug_get_reg’: > ../../.././rda/unix/linux-target.c:2775: error: ‘ptrace_xfer_type’ > undeclared (first use in this function) > ../../.././rda/unix/linux-target.c:2775: error: expected ‘;’ before ‘value’ > ../../.././rda/unix/linux-target.c:2777: error: ‘value’ undeclared > (first use in this function) > ../../.././rda/unix/linux-target.c:2777: error: too many arguments to > function ‘linux_read_reg’ > ../../.././rda/unix/linux-target.c: In function ‘debug_get_pc’: > ../../.././rda/unix/linux-target.c:2787: error: ‘PC_REGNUM’ undeclared > (first use in this function) > ../../.././rda/unix/linux-target.c: In function ‘linux_reg_format’: > ../../.././rda/unix/linux-target.c:2804: error: ‘SIZEOF_MAPPEDREG’ > undeclared (first use in this function) > ../../.././rda/unix/linux-target.c: In function ‘linux_sizeof_reg’: > ../../.././rda/unix/linux-target.c:2819: error: ‘SIZEOF_MAPPEDREG’ > undeclared (first use in this function) > ../../.././rda/unix/linux-target.c: In function ‘linux_get_reg’: > ../../.././rda/unix/linux-target.c:2834: error: ‘ptrace_xfer_type’ > undeclared (first use in this function) > ../../.././rda/unix/linux-target.c:2834: error: expected ‘;’ before ‘regval’ > ../../.././rda/unix/linux-target.c:2837: error: ‘regval’ undeclared > (first use in this function) > ../../.././rda/unix/linux-target.c:2837: error: too many arguments to > function ‘linux_read_reg’ > ../../.././rda/unix/linux-target.c:2844: error: ‘SIZEOF_MAPPEDREG’ > undeclared (first use in this function) > ../../.././rda/unix/linux-target.c: In function ‘linux_set_reg’: > ../../.././rda/unix/linux-target.c:2863: error: ‘ptrace_xfer_type’ > undeclared (first use in this function) > ../../.././rda/unix/linux-target.c:2863: error: expected ‘;’ before ‘regval’ > ../../.././rda/unix/linux-target.c:2865: error: ‘NUM_REGS’ undeclared > (first use in this function) > ../../.././rda/unix/linux-target.c:2872: error: ‘regval’ undeclared > (first use in this function) > ../../.././rda/unix/linux-target.c:2878: error: too many arguments to > function ‘linux_write_reg’ > ../../.././rda/unix/linux-target.c: In function ‘reg_from_gregset’: > ../../.././rda/unix/linux-target.c:2903: error: ‘SIZEOF_MAPPEDREG’ > undeclared (first use in this function) > ../../.././rda/unix/linux-target.c: In function ‘reg_to_gregset’: > ../../.././rda/unix/linux-target.c:2936: error: ‘SIZEOF_MAPPEDREG’ > undeclared (first use in this function) > ../../.././rda/unix/linux-target.c: In function ‘get_gregset’: > ../../.././rda/unix/linux-target.c:3010: warning: passing argument 4 of > ‘ptrace_read_user’ makes pointer from integer without a cast > ../../.././rda/unix/linux-target.c:3010: error: too many arguments to > function ‘ptrace_read_user’ > ../../.././rda/unix/linux-target.c: In function ‘put_gregset’: > ../../.././rda/unix/linux-target.c:3024: warning: passing argument 4 of > ‘ptrace_write_user’ makes pointer from integer without a cast > ../../.././rda/unix/linux-target.c:3024: error: too many arguments to > function ‘ptrace_write_user’ > make[5]: *** [linux-target.o] Error 1 > ------------------------------- > > Thanks, > Ryan > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
> /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I../../.././rda/qe -I.. > -I../../.././rda/qe -I../../.././rda/qe/../include -Wimplicit > -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses > -Wpointer-arith -g -O2 -MT qe.o -MD -MP -MF .deps/qe.Tpo -c -o qe.o > ../../.././rda/qe/qe.c > mv -f .deps/qe.Tpo .deps/qe.Po > /bin/bash ../libtool --tag=CC --mode=link /usr/bin/gcc-4.2 > -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses > -Wpointer-arith -g -O2 -o qe inc-gdblog.o inc-gdbloop.o > inc-gdbsched.o inc-gdbserv.o inc-gdbserv-client.o inc-gdbserv-input.o > inc-gdbserv-log.o inc-gdbserv-output.o inc-gdbserv-target.o > inc-gdbserv-utils.o inc-gdbsocket.o inc-stdio-log.o inc-forward.o > inc-backwards.o qe.o -lresolv -lnsl > libtool: Version mismatch error. This is libtool 2.2.7a, but the > libtool: definition of this LT_INIT comes from libtool 2.2.6. > libtool: You should recreate aclocal.m4 with macros from libtool 2.2.7a > libtool: and run autoconf again. > make[4]: *** [qe] Error 63 > make[4]: Leaving directoryThis is when trying to build gold itself, right? Looks like it is trying to build too much for some reason. I don't have any file named inc-gdbserv-output.o in my build dir for example. Cheers, -- Rafael Ávila de Espíndola