Hi there
Clean install of CentOS 6.8 Desktop 32 bit
Install prerequisites - e.g....
Install autoconf 2.69: https://gist.github.com/tkuchiki/543e277a2f7221a7833a
sudo yum install libusb1-devel git <maybe some="" other="" stuff=""></maybe>
Then...
cd ~/Downloads
git clone --recursive git://git.code.sf.net/p/openocd/code
cd code
./bootstrap
./configure --prefix=`pwd`/openocd
make
But I get this:
libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../src -I../../src/helper -DPKGDATADIR=\"/home/user/Downloads/openocd.master/code/openocd/share/openocd\" -DBINDIR=\"/home/user/Downloads/openocd.master/code/openocd/bin\" -I../../jimtcl -I../../jimtcl -g -O2 -Wall -Wstrict-prototypes -Wformat-security -Wshadow -Wextra -Wno-unused-parameter -Wbad-function-cast -Wcast-align -Wredundant-decls -Werror -MT armv7a.lo -MD -MP -MF .deps/armv7a.Tpo -c armv7a.c -o armv7a.o
cc1: warnings being treated as errors
armv7a.c: In function ‘decode_cache_reg’:
armv7a.c:553: error: ‘size.level_num’ is used uninitialized in this function
make[6]: *** [armv7a.lo] Error 1
make[6]: Leaving directory `/home/user/Downloads/openocd.master/code/src/target'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/home/user/Downloads/openocd.master/code/src/target'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/user/Downloads/openocd.master/code/src/target'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/user/Downloads/openocd.master/code/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/user/Downloads/openocd.master/code/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/user/Downloads/openocd.master/code'
make: *** [all] Error 2
Am I doing something wrong?
Thanks a lot
Meant to say ... gcc is:
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-17)but I also tried
gcc version 4.9.1 20140922 (Red Hat 4.9.1-10) (GCC)and got the same problem.
Hey Tommy,
That's a nice one, please let's proceed at
http://openocd.zylin.com/3891
It would be interesting to know what makes your compiler produce this
warning while our builds on Jenkins ignore that.
--
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercerpav@gmail.com
Thanks for quick reply Paul.
Sorry but I'm not sure what I need to do next?
Can you clarify please?
Do I just get the patch/modified header file, drop that in and try again?
Thanks.
On Tue, Nov 29, 2016 at 07:15:02PM +0000, Tommy Murphy wrote:
Yes, please. You can see the Download "dropdown menu" on Gerrit on the
top right, press it, choose "cherry-pick" line and run that inside
your repo. That should patch the needed file for you. Then rerun make.
--
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercerpav@gmail.com
Tried the same thing today...
Clean CentOS 6.8 32 bit virtual machine install
Installed prerequisites including autoconf 2.69
Then...
but I get this:
Any ideas?
Curiously it builds OK in the same circumstances on Ubuntu 14.04.5 LTS 32 bit.
Thanks.
I tried autoconf 2.64 but it still doesn't work:
On Mon, Dec 12, 2016 at 12:49:37PM +0000, Tommy Murphy wrote:
Please use automake 1.14 or later. You might need to do a clean
checkout. Please refer to my recent automake mail on the devel mailing
list.
Thanks Paul.
Got automake 1.15 and cloned afresh but now I get this:
Can you link to the post that you mention because I can't seem to find it.
Thanks.
Last edit: Tommy Murphy 2016-12-12
On Mon, Dec 12, 2016 at 01:21:55PM +0000, Tommy Murphy wrote:
Is it a clean checkout?
Can you possible join our IRC channel for faster support?
The last errors are manifistations of missing pkgconfig during ./bootstrap. I think it should all be fixed now in 0.10.0-rc1.