Uploaded image for project: 'Infrastructure'
  1. Infrastructure
  2. INFRA-13906

Fix zookeeper build error on AArch64

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Fix Version/s: Apr 2017
    • Component/s: Analysis
    • Labels:
      None
    • Environment:
      Hisilicon Taishan AArch64(Cortex-A57@2.1GHz)
      16.04.2 LTS (Xenial Xerus)
    • Project:
      ZooKeeper

      Description

      The error occurred when we build the bigtop zookeeper component on AArch64 :

      "[exec] libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/ws/output/zookeeper/zookeeper-3.4.10/src/c -I/ws/output/zookeeper/zookeeper-3.4.10/src/c/include -I/ws/output/zookeeper/zookeeper-3.4.10/src/c/tests -I/ws/output/zookeeper/zookeeper-3.4.10/src/c/generated -Wdate-time -D_FORTIFY_SOURCE=2 -DTHREADED -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT libzkmt_la-mt_adaptor.lo -MD -MP -MF .deps/libzkmt_la-mt_adaptor.Tpo -c /ws/output/zookeeper/zookeeper-3.4.10/src/c/src/mt_adaptor.c -fPIC -DPIC -o .libs/libzkmt_la-mt_adaptor.o
      [exec] Makefile:946: recipe for target 'libzkmt_la-mt_adaptor.lo' failed
      [exec] make[2]: Leaving directory '/ws/output/zookeeper/zookeeper-3.4.10/build/c'
      [exec] /tmp/cc4YHZ73.s: Assembler messages:
      [exec] /tmp/cc4YHZ73.s:1713: Error: unknown mnemonic lock' --lock xaddl x1,[x0]'
      [exec] make[2]: *** [libzkmt_la-mt_adaptor.lo] Error 1
      "

      gcc does provide alternative primitives (sync*) which provide better cross platform compatibility; but that does make the assumption that a) gcc is being used or b) the primitives are provided by alternative compilers.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              yqGu Yuqi Gu
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: