It does not appear that I have anything weird in the repo: $ git status # On branch master nothing to commit (working directory clean)
Maybe my old version of GCC is the issue: $ gcc --version gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-17) -----Original Message----- From: Freddie Chopin [mailto:[email protected]] Sent: Thursday, June 29, 2017 5:57 PM To: [email protected] Subject: Re: [OpenOCD-devel] Issues compiling from git on CentOS 6.6 Notice: This message originated outside of SRC. On Thu, 2017-06-29 at 19:49 +0000, Borton, Nick wrote: > Hello, > > I’m attempting to build OpenOCD from the git source on CentOS 6.6 > > I downloaded the source with the following: git clone https://git.cod > e.sf.net/p/openocd/code openocd-code > > Then ran the following: > ./bootstrap > ./configure --prefix=${PREFIX} > make all install > > I am currently getting the following error: > > libtool: link: gcc -std=gnu99 -Wall -Wstrict-prototypes -Wformat- > security -Wshadow -Wextra -Wno-unused-parameter -Wbad-function-cast > -Wcast-align -Wredundant-decls -Werror -o src/openocd src/main.o > src/.libs/libopenocd.a ./jimtcl/libjim.a -ldl > src/.libs/libopenocd.a(mips32.o): In function > `mips32_checksum_memory': > mips32.c:(.text+0x20fd): undefined reference to `pracc_swap16_array' > src/.libs/libopenocd.a(mips32.o): In function > `mips32_blank_check_memory': > mips32.c:(.text+0x2490): undefined reference to `pracc_swap16_array' > src/.libs/libopenocd.a(mips32_pracc.o): In function > `mips32_pracc_clean_text_jump': > mips32_pracc.c:(.text+0x269): undefined reference to > `pracc_swap16_array' > src/.libs/libopenocd.a(mips32_pracc.o): In function > `mips32_pracc_fastdata_xfer': > mips32_pracc.c:(.text+0x2f2c): undefined reference to > `pracc_swap16_array' > mips32_pracc.c:(.text+0x3099): undefined reference to > `pracc_swap16_array' > collect2: ld returned 1 exit status > > I’m assuming there is something silly I have wrong? I've just tried that and the code build fine (apart from several GCC7- only warnings - see http://openocd.zylin.com/#/c/4174/ and http://openocd.zylin.com/#/c/4175/). Show us what you get from `git status` - maybe there are some strange files in your repository. Regards, FCh ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
