Menu

#142 Error building on CentOS 6.8 32 bit

0.9.0
closed
nobody
None
2016-12-26
2016-11-29
No

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

Discussion

  • Tommy Murphy

    Tommy Murphy - 2016-11-29

    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.

     
    • Paul Fertser

      Paul Fertser - 2016-11-29

      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

       
      • Tommy Murphy

        Tommy Murphy - 2016-11-29

        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.

         
        • Paul Fertser

          Paul Fertser - 2016-11-29

          On Tue, Nov 29, 2016 at 07:15:02PM +0000, Tommy Murphy wrote:

          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?

          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

           
  • Tommy Murphy

    Tommy Murphy - 2016-12-12

    Tried the same thing today...

    Clean CentOS 6.8 32 bit virtual machine install
    Installed prerequisites including autoconf 2.69
    Then...

    git clone --recursive git://git.code.sf.net/p/openocd/code openocd-code
    cd openocd-code
    ./bootstrap
    

    but I get this:

    [user@centos6832 openocd-code]$ ./bootstrap 
    
    + aclocal
    configure.ac:37: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
    ../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
    ../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
    ../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
    /usr/share/aclocal/libtool.m4:1022: _LT_SYS_MODULE_PATH_AIX is expanded from...
    /usr/share/aclocal/libtool.m4:4161: _LT_LINKER_SHLIBS is expanded from...
    /usr/share/aclocal/libtool.m4:5236: _LT_LANG_C_CONFIG is expanded from...
    /usr/share/aclocal/libtool.m4:138: _LT_SETUP is expanded from...
    /usr/share/aclocal/libtool.m4:67: LT_INIT is expanded from...
    /usr/share/aclocal/libtool.m4:102: AC_PROG_LIBTOOL is expanded from...
    configure.ac:37: the top level
    configure.ac:37: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
    ../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
    ../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
    ../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
    /usr/share/aclocal/libtool.m4:4161: _LT_LINKER_SHLIBS is expanded from...
    /usr/share/aclocal/libtool.m4:5236: _LT_LANG_C_CONFIG is expanded from...
    /usr/share/aclocal/libtool.m4:138: _LT_SETUP is expanded from...
    /usr/share/aclocal/libtool.m4:67: LT_INIT is expanded from...
    /usr/share/aclocal/libtool.m4:102: AC_PROG_LIBTOOL is expanded from...
    configure.ac:37: the top level
    + libtoolize --automake --copy
    + autoconf
    configure.ac:37: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
    ../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
    ../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
    ../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
    aclocal.m4:1037: _LT_SYS_MODULE_PATH_AIX is expanded from...
    aclocal.m4:4176: _LT_LINKER_SHLIBS is expanded from...
    aclocal.m4:5251: _LT_LANG_C_CONFIG is expanded from...
    aclocal.m4:159: _LT_SETUP is expanded from...
    aclocal.m4:88: LT_INIT is expanded from...
    aclocal.m4:123: AC_PROG_LIBTOOL is expanded from...
    configure.ac:37: the top level
    configure.ac:37: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
    ../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
    ../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
    ../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
    aclocal.m4:4176: _LT_LINKER_SHLIBS is expanded from...
    aclocal.m4:5251: _LT_LANG_C_CONFIG is expanded from...
    aclocal.m4:159: _LT_SETUP is expanded from...
    aclocal.m4:88: LT_INIT is expanded from...
    aclocal.m4:123: AC_PROG_LIBTOOL is expanded from...
    configure.ac:37: the top level
    + autoheader
    configure.ac:37: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
    ../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
    ../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
    ../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
    aclocal.m4:1037: _LT_SYS_MODULE_PATH_AIX is expanded from...
    aclocal.m4:4176: _LT_LINKER_SHLIBS is expanded from...
    aclocal.m4:5251: _LT_LANG_C_CONFIG is expanded from...
    aclocal.m4:159: _LT_SETUP is expanded from...
    aclocal.m4:88: LT_INIT is expanded from...
    aclocal.m4:123: AC_PROG_LIBTOOL is expanded from...
    configure.ac:37: the top level
    configure.ac:37: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
    ../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
    ../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
    ../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
    aclocal.m4:4176: _LT_LINKER_SHLIBS is expanded from...
    aclocal.m4:5251: _LT_LANG_C_CONFIG is expanded from...
    aclocal.m4:159: _LT_SETUP is expanded from...
    aclocal.m4:88: LT_INIT is expanded from...
    aclocal.m4:123: AC_PROG_LIBTOOL is expanded from...
    configure.ac:37: the top level
    + automake --gnu --add-missing --copy
    configure.ac:37: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
    ../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
    ../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
    ../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
    aclocal.m4:1037: _LT_SYS_MODULE_PATH_AIX is expanded from...
    aclocal.m4:4176: _LT_LINKER_SHLIBS is expanded from...
    aclocal.m4:5251: _LT_LANG_C_CONFIG is expanded from...
    aclocal.m4:159: _LT_SETUP is expanded from...
    aclocal.m4:88: LT_INIT is expanded from...
    aclocal.m4:123: AC_PROG_LIBTOOL is expanded from...
    configure.ac:37: the top level
    configure.ac:37: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
    ../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
    ../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
    ../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
    aclocal.m4:4176: _LT_LINKER_SHLIBS is expanded from...
    aclocal.m4:5251: _LT_LANG_C_CONFIG is expanded from...
    aclocal.m4:159: _LT_SETUP is expanded from...
    aclocal.m4:88: LT_INIT is expanded from...
    aclocal.m4:123: AC_PROG_LIBTOOL is expanded from...
    configure.ac:37: the top level
    configure.ac:28: installing `./compile'
    configure.ac:37: installing `./config.guess'
    configure.ac:37: installing `./config.sub'
    configure.ac:16: installing `./install-sh'
    configure.ac:16: installing `./missing'
    src/Makefile.am:4: bad characters in variable name `%C%_openocd_SOURCES'
    Makefile.am:139:   `src/Makefile.am' included from here
    src/Makefile.am:7: bad characters in variable name `%C%_libopenocd_la_SOURCES'
    Makefile.am:139:   `src/Makefile.am' included from here
    src/Makefile.am:11: bad characters in variable name `%C%_openocd_LDADD'
    Makefile.am:139:   `src/Makefile.am' included from here
    src/Makefile.am:13: bad characters in variable name `%C%_openocd_LDADD'
    Makefile.am:139:   `src/Makefile.am' included from here
    src/Makefile.am:16: bad characters in variable name `%C%_openocd_LDADD'
    Makefile.am:139:   `src/Makefile.am' included from here
    src/Makefile.am:18: bad characters in variable name `%C%_openocd_LDADD'
    Makefile.am:139:   `src/Makefile.am' included from here
    src/Makefile.am:21: bad characters in variable name `%C%_libopenocd_la_CPPFLAGS'
    Makefile.am:139:   `src/Makefile.am' included from here
    src/Makefile.am:26: bad characters in variable name `%C%_libopenocd_la_CPPFLAGS'
    Makefile.am:139:   `src/Makefile.am' included from here
    src/Makefile.am:27: bad characters in variable name `%C%_libopenocd_la_CPPFLAGS'
    Makefile.am:139:   `src/Makefile.am' included from here
    src/Makefile.am:29: bad characters in variable name `%C%_libopenocd_la_CPPFLAGS'
    Makefile.am:139:   `src/Makefile.am' included from here
    src/Makefile.am:30: bad characters in variable name `%C%_libopenocd_la_CPPFLAGS'
    Makefile.am:139:   `src/Makefile.am' included from here
    src/Makefile.am:31: bad characters in variable name `%C%_libopenocd_la_CPPFLAGS'
    Makefile.am:139:   `src/Makefile.am' included from here
    src/Makefile.am:35: bad characters in variable name `%C%_libopenocd_la_CPPFLAGS'
    Makefile.am:139:   `src/Makefile.am' included from here
    src/Makefile.am:38: bad characters in variable name `%C%_libopenocd_la_LDFLAGS'
    Makefile.am:139:   `src/Makefile.am' included from here
    src/Makefile.am:46: bad characters in variable name `%C%_libopenocd_la_LIBADD'
    Makefile.am:139:   `src/Makefile.am' included from here
    doc/Makefile.am:2: bad characters in variable name `%C%_openocd_TEXINFOS'
    Makefile.am:140:   `doc/Makefile.am' included from here
    Makefile.am:42: wildcard $(srcdir: non-POSIX variable name
    Makefile.am:42: (probably a GNU make extension)
    Makefile.am: installing `./INSTALL'
    Makefile.am: installing `./depcomp'
    automake: cannot open < ./%D%/openocd.texi: No such file or directory
    [user@centos6832 openocd-code]$ 
    

    Any ideas?
    Curiously it builds OK in the same circumstances on Ubuntu 14.04.5 LTS 32 bit.

    Thanks.

     
    • Tommy Murphy

      Tommy Murphy - 2016-12-12

      I tried autoconf 2.64 but it still doesn't work:

      [user@centos6832 openocd-code]$ ./bootstrap 
      
      + aclocal
      + libtoolize --automake --copy
      + autoconf
      + autoheader
      + automake --gnu --add-missing --copy
      src/Makefile.am:4: bad characters in variable name `%C%_openocd_SOURCES'
      Makefile.am:139:   `src/Makefile.am' included from here
      src/Makefile.am:7: bad characters in variable name `%C%_libopenocd_la_SOURCES'
      Makefile.am:139:   `src/Makefile.am' included from here
      src/Makefile.am:11: bad characters in variable name `%C%_openocd_LDADD'
      Makefile.am:139:   `src/Makefile.am' included from here
      src/Makefile.am:13: bad characters in variable name `%C%_openocd_LDADD'
      Makefile.am:139:   `src/Makefile.am' included from here
      src/Makefile.am:16: bad characters in variable name `%C%_openocd_LDADD'
      Makefile.am:139:   `src/Makefile.am' included from here
      src/Makefile.am:18: bad characters in variable name `%C%_openocd_LDADD'
      Makefile.am:139:   `src/Makefile.am' included from here
      src/Makefile.am:21: bad characters in variable name `%C%_libopenocd_la_CPPFLAGS'
      Makefile.am:139:   `src/Makefile.am' included from here
      src/Makefile.am:26: bad characters in variable name `%C%_libopenocd_la_CPPFLAGS'
      Makefile.am:139:   `src/Makefile.am' included from here
      src/Makefile.am:27: bad characters in variable name `%C%_libopenocd_la_CPPFLAGS'
      Makefile.am:139:   `src/Makefile.am' included from here
      src/Makefile.am:29: bad characters in variable name `%C%_libopenocd_la_CPPFLAGS'
      Makefile.am:139:   `src/Makefile.am' included from here
      src/Makefile.am:30: bad characters in variable name `%C%_libopenocd_la_CPPFLAGS'
      Makefile.am:139:   `src/Makefile.am' included from here
      src/Makefile.am:31: bad characters in variable name `%C%_libopenocd_la_CPPFLAGS'
      Makefile.am:139:   `src/Makefile.am' included from here
      src/Makefile.am:35: bad characters in variable name `%C%_libopenocd_la_CPPFLAGS'
      Makefile.am:139:   `src/Makefile.am' included from here
      src/Makefile.am:38: bad characters in variable name `%C%_libopenocd_la_LDFLAGS'
      Makefile.am:139:   `src/Makefile.am' included from here
      src/Makefile.am:46: bad characters in variable name `%C%_libopenocd_la_LIBADD'
      Makefile.am:139:   `src/Makefile.am' included from here
      doc/Makefile.am:2: bad characters in variable name `%C%_openocd_TEXINFOS'
      Makefile.am:140:   `doc/Makefile.am' included from here
      Makefile.am:42: wildcard $(srcdir: non-POSIX variable name
      Makefile.am:42: (probably a GNU make extension)
      automake: cannot open < ./%D%/openocd.texi: No such file or directory
      [user@centos6832 openocd-code]$ 
      
       
      • Paul Fertser

        Paul Fertser - 2016-12-12

        On Mon, Dec 12, 2016 at 12:49:37PM +0000, Tommy Murphy wrote:

        I tried autoconf 2.64 but it still doesn't work:

        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.

         
        • Tommy Murphy

          Tommy Murphy - 2016-12-12

          Thanks Paul.
          Got automake 1.15 and cloned afresh but now I get this:

          [user@centos6832 openocd-code]$ ./bootstrap 
          
          + aclocal
          + libtoolize --automake --copy
          + autoconf
          configure.ac:12: error: possibly undefined macro: AC_MSG_WARN
                If this token and others are legitimate, please use m4_pattern_allow.
                See the Autoconf documentation.
          configure.ac:36: error: possibly undefined macro: AC_DISABLE_SHARED
          configure.ac:37: error: possibly undefined macro: AC_PROG_LIBTOOL
          configure.ac:199: error: possibly undefined macro: AC_DEFINE
          configure.ac:580: error: possibly undefined macro: AC_MSG_NOTICE
          [user@centos6832 openocd-code]$ 
          

          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
          • Paul Fertser

            Paul Fertser - 2016-12-12

            On Mon, Dec 12, 2016 at 01:21:55PM +0000, Tommy Murphy wrote:

            configure.ac:12: error: possibly undefined macro: AC_MSG_WARN
            If this token and others are legitimate, please use m4_pattern_allow.
            See the Autoconf documentation.

            Is it a clean checkout?

            Can you possible join our IRC channel for faster support?

             
  • Paul Fertser

    Paul Fertser - 2016-12-26

    The last errors are manifistations of missing pkgconfig during ./bootstrap. I think it should all be fixed now in 0.10.0-rc1.

     
  • Paul Fertser

    Paul Fertser - 2016-12-26
    • status: new --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB