svn commit: r504811 - head/net/tcpkali

Jan Beich jbeich at FreeBSD.org
Fri Jun 21 21:27:50 UTC 2019


Mark Linimon <linimon at FreeBSD.org> writes:

> -.include <bsd.port.mk>
> +.include <bsd.port.pre.mk>
> +
> +.if ${CHOSEN_COMPILER_TYPE} == gcc
> +BROKEN=		src/tcpkali_atomic.h unconditionally includes x86 assembler
> +.endif

lang/gcc8 on powerpc64 does support __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4,
so maybe try USES=compiler:c11 instead. GCC 4.2 on amd64 does define
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 but not __SIZEOF_SIZE_T__. As the
assembly fallback uses SIZEOF_SIZE_T (without underscores) it wouldn't
compile even on x86 e.g.,

In file included from tcpkali_traffic_stats.h:30,
                 from tcpkali_engine.h:33,
                 from tcpkali.h:31,
                 from tcpkali_dns.c:42:
tcpkali_atomic.h:101: error: expected specifier-qualifier-list before 'non_atomic_wide_t'
tcpkali_atomic.h:102: error: expected specifier-qualifier-list before 'non_atomic_narrow_t'
In file included from tcpkali_traffic_stats.h:30,
                 from tcpkali_engine.h:33,
                 from tcpkali.h:31,
                 from tcpkali_dns.c:42:
tcpkali_atomic.h:111:2: error: #error "Weird platform, aborting"

--
In short, the BROKEN message is garbage.


More information about the svn-ports-all mailing list