Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Jan 2019 19:09:27 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 235358] net-p2p/qtum: fix build with GCC-based architectures
Message-ID:  <bug-235358-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D235358

            Bug ID: 235358
           Summary: net-p2p/qtum: fix build with GCC-based architectures
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: vd@FreeBSD.org
          Reporter: pkubaj@anongoth.pl
          Assignee: vd@FreeBSD.org
             Flags: maintainer-feedback?(vd@FreeBSD.org)

Created attachment 201564
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D201564&action=
=3Dedit
patch

The code for big-endian architectures is broken and doesn't compile.

#define fix_endian64(dst_, src_) dst_ =3D ethash_swap_u64(src_
misses ) at the end of line.

fix_endian_arr32 and fix_endian_arr64 are broken because of bad "while"
placement. Unfortunately, I couldn't find what the issue is, so I just remo=
ved
do while, which simplifies things.

Another error is that for loop in fix_endian_arr{32,64} uses , instead of ;.

Also remove const qualifier from nonce since it's actually modified and cau=
ses
another build error (although Clang for some strange reason accepts it).

Tested on powerpc64 and amd64.

Hardware sponsored by IntegriCloud.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-235358-7788>