Uploaded image for project: 'SWORD'
  1. SWORD
  2. API-178

Headers are incorrect for PPC64

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Building Sword on PPC64 works but it causes the following error when trying to build Xiphos:

      /usr/include/sword/sysdata.h:44:44: error: conflicting declaration 'typedef long long int __s64'
       __extension__ typedef __signed__ long long __s64;
                                                  ^
      In file included from /usr/include/asm/types.h:25:0,
                       from /usr/include/linux/types.h:4,
                       from /usr/include/asm/ptrace.h:27,
                       from /usr/include/asm/sigcontext.h:11,
                       from /usr/include/bits/sigcontext.h:27,
                       from /usr/include/signal.h:340,
                       from /usr/include/glib-2.0/glib/gbacktrace.h:35,
                       from /usr/include/glib-2.0/glib.h:36,
                       from ../src/backend/module_manager.cc:31:
      /usr/include/asm-generic/int-l64.h:28:25: error: '__s64' has a previous declaration as 'typedef long int __s64'
       typedef __signed__ long __s64;
                               ^
      In file included from /usr/include/sword/swkey.h:31:0,
                       from /usr/include/sword/listkey.h:28,
                       from /usr/include/sword/swmodule.h:29,
                       from ../src/backend/module_manager.hh:26,
                       from ../src/backend/module_manager.cc:40:
      /usr/include/sword/sysdata.h:45:42: error: conflicting declaration 'typedef long long unsigned int __u64'
       __extension__ typedef unsigned long long __u64;
                                                ^
      In file included from /usr/include/asm/types.h:25:0,
                       from /usr/include/linux/types.h:4,
                       from /usr/include/asm/ptrace.h:27,
                       from /usr/include/asm/sigcontext.h:11,
                       from /usr/include/bits/sigcontext.h:27,
                       from /usr/include/signal.h:340,
                       from /usr/include/glib-2.0/glib/gbacktrace.h:35,
                       from /usr/include/glib-2.0/glib.h:36,
                       from ../src/backend/module_manager.cc:31:
      /usr/include/asm-generic/int-l64.h:29:23: error: '__u64' has a previous declaration as 'typedef long unsigned int __u64'
       typedef unsigned long __u64;
      

      The definitions of __u64 and __s64 are incorrect on this architecture and ought to be updated to operate properly.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              greg.hellings Greg Hellings
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: