Surprise! We've been running on hardware provided by BuyVM for a few months and wanted to show them a little appreciation.
Running a paste site comes with unique challenges, ones that aren't always obvious and hard to control. As such, BuyVM offered us a home where we could worry less about the hosting side of things and focus on maintaining a clean and useful service! Go check them out and show them some love!
Description: quickbms 11 build error log and compile patch
Submitted on April 19, 2022 at 02:42 AM

-static-libgcc -static-libstdc++ -lstdc++ -lm -lpthread -lssl -lcrypto -DDISABLE_MCRYPT -DDISABLE_TOMCRYPT -ldl
/usr/bin/ld: /tmp/cccgp6Gz.o: in function `os_tmpname':
loslib.c:(.text+0x1e0): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
/usr/bin/ld: /tmp/ccuqhqMk.o: in function `ChooseContextMap':
encode.c:(.text+0x1ec3): undefined reference to `kBrotliLog2Table'
/usr/bin/ld: encode.c:(.text+0x1eee): undefined reference to `kBrotliLog2Table'
/usr/bin/ld: encode.c:(.text+0x1f15): undefined reference to `kBrotliLog2Table'
/usr/bin/ld: encode.c:(.text+0x1f3f): undefined reference to `kBrotliLog2Table'
/usr/bin/ld: encode.c:(.text+0x1f69): undefined reference to `kBrotliLog2Table'
/usr/bin/ld: /tmp/ccuqhqMk.o:encode.c:(.text+0x1f94): more undefined references to `kBrotliLog2Table' follow
/usr/bin/ld: /tmp/ccuqhqMk.o: in function `WriteMetaBlockInternal':
encode.c:(.text+0x29f4): undefined reference to `_kBrotliContextLookupTable'
/usr/bin/ld: /tmp/ccuqhqMk.o: in function `EncodeData':
encode.c:(.text+0x3d5e): undefined reference to `_kBrotliContextLookupTable'
/usr/bin/ld: /tmp/ccuqhqMk.o: in function `BrotliCompressBufferQuality10':
encode.c:(.text+0x6242): undefined reference to `_kBrotliContextLookupTable'
/usr/bin/ld: /tmp/ccuqhqMk.o: in function `ShouldUseComplexStaticContextMap.part.0':
encode.c:(.text+0x88cb): undefined reference to `_kBrotliContextLookupTable'
/usr/bin/ld: encode.c:(.text+0x88dd): undefined reference to `_kBrotliContextLookupTable'
/usr/bin/ld: encode.c:(.text+0x899d): undefined reference to `kBrotliLog2Table'
/usr/bin/ld: encode.c:(.text+0x89d1): undefined reference to `kBrotliLog2Table'
/usr/bin/ld: encode.c:(.text+0x8a18): undefined reference to `kBrotliLog2Table'
/usr/bin/ld: encode.c:(.text+0x8a72): undefined reference to `kBrotliLog2Table'
/usr/bin/ld: encode.c:(.text+0x8a9e): undefined reference to `kBrotliLog2Table'
/usr/bin/ld: /tmp/ccuqhqMk.o:encode.c:(.text+0x8ae3): more undefined references to `kBrotliLog2Table' follow
/usr/bin/ld: /tmp/ccTFxlBx.o: in function `BrotliBuildHistogramsWithContext':
histogram.c:(.text+0x231): undefined reference to `_kBrotliContextLookupTable'
/usr/bin/ld: histogram.c:(.text+0x238): undefined reference to `_kBrotliContextLookupTable'
/usr/bin/ld: /tmp/ccpAFgRY.o: in function `EstimateBitCostsForLiteralsUTF8':
literal_cost.c:(.text+0x2b3): undefined reference to `kBrotliLog2Table'
/usr/bin/ld: literal_cost.c:(.text+0x2c5): undefined reference to `kBrotliLog2Table'
/usr/bin/ld: /tmp/ccpAFgRY.o: in function `BrotliEstimateBitCostsForLiterals':
literal_cost.c:(.text+0x6c3): undefined reference to `kBrotliLog2Table'
/usr/bin/ld: literal_cost.c:(.text+0x6d5): undefined reference to `kBrotliLog2Table'
/usr/bin/ld: /tmp/cc8TOuuh.o: in function `BrotliInitMemoryManager':
memory.c:(.text+0x4a): undefined reference to `BrotliDefaultAllocFunc'
/usr/bin/ld: memory.c:(.text+0x50): undefined reference to `BrotliDefaultFreeFunc'
collect2: error: ld returned 1 exit status

compile.patch (Text)

diff --unified --recursive --text src.old/libs/powzix/kraken.cpp src.new/libs/powzix/kraken.cpp
--- src.old/libs/powzix/kraken.cpp	2021-02-12 18:31:26.000000000 -0500
+++ src.new/libs/powzix/kraken.cpp	2021-06-28 11:36:23.583579008 -0400
@@ -19,13 +19,6 @@
 
 #include "stdafx.h"
 
- static unsigned int _rotl(  unsigned int value, int shift )
- {
-     int max_bits = sizeof(value)<<3; 
-     if ( shift > max_bits )
-         shift = shift % max_bits;
-     return (value << shift) | (value >> (max_bits-shift));
- }
 
 // Header in front of each 256k block
 typedef struct KrakenHeader {
@@ -348,14 +341,12 @@
   uint32 w, m, n, rv;
   if (v < 0xF0) {
     n = (v >> 4) + 4;
-    w = _rotl(bits->bits | 1, n);
     bits->bitpos += n;
     m = (2 << n) - 1;
     bits->bits = w & ~m;
     rv = ((w & m) << 4) + (v & 0xF) - 248;
   } else {
     n = v - 0xF0 + 4;
-    w = _rotl(bits->bits | 1, n);
     bits->bitpos += n;
     m = (2 << n) - 1;
     bits->bits = w & ~m;
@@ -375,14 +366,12 @@
   uint32 w, m, n, rv;
   if (v < 0xF0) {
     n = (v >> 4) + 4;
-    w = _rotl(bits->bits | 1, n);
     bits->bitpos += n;
     m = (2 << n) - 1;
     bits->bits = w & ~m;
     rv = ((w & m) << 4) + (v & 0xF) - 248;
   } else {
     n = v - 0xF0 + 4;
-    w = _rotl(bits->bits | 1, n);
     bits->bitpos += n;
     m = (2 << n) - 1;
     bits->bits = w & ~m;
@@ -1458,10 +1447,7 @@
     int numbits_f = interval_lenlog2[i + 0];
     int numbits_b = interval_lenlog2[i + 1];
 
-    bits_f = _rotl(bits_f | 1, numbits_f);
     bitpos_f += numbits_f - 8 * ((bitpos_f + 7) >> 3);
-
-    bits_b = _rotl(bits_b | 1, numbits_b);
     bitpos_b += numbits_b - 8 * ((bitpos_b + 7) >> 3);
 
     int value_f = bits_f & bitmasks[numbits_f];
@@ -1478,7 +1464,6 @@
   if (i < num_lens) {
     bits_f |= _byteswap_ulong(*(uint32*)f) >> (24 - bitpos_f);
     int numbits_f = interval_lenlog2[i];
-    bits_f = _rotl(bits_f | 1, numbits_f);
     int value_f = bits_f & bitmasks[numbits_f];
     decoded_intervals[i + 0] = value_f;
   }
diff --unified --recursive --text src.old/Makefile src.new/Makefile
--- src.old/Makefile	2021-04-03 19:28:16.000000000 -0400
+++ src.new/Makefile	2021-06-27 22:58:02.148647514 -0400
@@ -19,10 +19,8 @@
 USE_OPENSSL	= 1
 else
 CLIBS	+= -static-libgcc
-ifeq ($(filter-out %86, $(shell uname -m)),)
 EXTRA_TARGETS	= libs/amiga/amiga.s libs/powzix/*.cpp
 CFLAGS	+= -msse2
-endif
 USE_OPENSSL	= 1
 endif