[Bug 250899] security/masscan: fails to build on !x86

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Nov 6 10:01:31 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250899

            Bug ID: 250899
           Summary: security/masscan: fails to build on !x86
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs at FreeBSD.org
          Reporter: mikael at FreeBSD.org
                CC: taguchi.ch at gmail.com
             Flags: maintainer-feedback?(taguchi.ch at gmail.com)
                CC: taguchi.ch at gmail.com

pulls in x86 headers on every arch:

cat files/patch-src_smack1.c
--- src/smack1.c.orig   2017-06-06 03:59:39 UTC
+++ src/smack1.c
@@ -115,6 +115,8 @@
 #include "pixie-timer.h"
 #if defined(_MSC_VER)
 #include <intrin.h>
+#elif defined(__llvm__)
+#include <x86intrin.h>
 #elif defined(__GNUC__)
 static __inline__ unsigned long long __rdtsc(void)
 {


see also: ports r533887 (which is wrong imo)


build log:
In file included from src/smack1.c:119:
In file included from /usr/lib/clang/11.0.0/include/x86intrin.h:15:
In file included from /usr/lib/clang/11.0.0/include/immintrin.h:15:
/usr/lib/clang/11.0.0/include/mmintrin.h:50:12: error: invalid conversion
between vector type '__m64' (vector of 1 'long long' value) and integer type
'int' of different size
    return (__m64)__builtin_ia32_vec_init_v2si(__i, 0);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/clang/11.0.0/include/mmintrin.h:129:12: error: invalid conversion
between vector type '__m64' (vector of 1 'long long' value) and integer type
'int' of different size
    return (__m64)__builtin_ia32_packsswb((__v4hi)__m1, (__v4hi)__m2);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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


More information about the freebsd-ports-bugs mailing list