Skip to content

Instantly share code, notes, and snippets.

@BrainStone
Created November 16, 2017 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BrainStone/464437e0ab39bca04bef5e2311952cc5 to your computer and use it in GitHub Desktop.
Save BrainStone/464437e0ab39bca04bef5e2311952cc5 to your computer and use it in GitHub Desktop.
Compilation error
../src/factor.c: In function ‘factor’:
../src/factor.c:807:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
ASSERT(HERE, ((uint64)factor_k & 0x3f) == 0, "factor_k not 64-byte aligned!");
^
../src/gcd_lehmer.c: In function ‘fft_gcd_get_mults’:
../src/gcd_lehmer.c:321:2: warning: #warning to-do! *** cvt a,b back to int and use those 2*sec_len - long ints to do int-mul to test resulting gcd-reduction *** [-Wcpp]
#warning to-do! *** cvt a,b back to int and use those 2*sec_len - long ints to do int-mul to test resulting gcd-reduction ***
^~~~~~~
../src/gcd_lehmer.c: In function ‘fft_gcd’:
../src/gcd_lehmer.c:416:2: warning: #warning May need to clear more words for half-length reduction! [-Wcpp]
#warning May need to clear more words for half-length reduction!
^~~~~~~
../src/mi64.c: In function ‘mi64_div’:
../src/mi64.c:3608:36: warning: passing argument 1 of ‘mi64_div_by_scalar64_u4’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
itmp64 = mi64_div_by_scalar64_u4(x, y[0], xlen, q); // Use 4-folded divrem for speed
^
In file included from ../src/mi64.c:25:0:
../src/mi64.h:177:12: note: expected ‘uint64 * {aka long long unsigned int *}’ but argument is of type ‘const uint64 * {aka const long long unsigned int *}’
DEV uint64 mi64_div_by_scalar64_u4 (uint64 x[], uint64 a, uint32 lenX, uint64 q[]); // 4-way interleaved-|| loop
^~~~~~~~~~~~~~~~~~~~~~~
../src/mi64.c: In function ‘mi64_div_by_scalar64_u4’:
../src/mi64.c:5955:27: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
xy_ptr_diff = (uint64*)((uint64)y - (uint64)x); // 2-step cast to avoid GCC "initialization makes pointer from integer without a cast" warning
^
../src/mi64.c:5955:39: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
xy_ptr_diff = (uint64*)((uint64)y - (uint64)x); // 2-step cast to avoid GCC "initialization makes pointer from integer without a cast" warning
^
../src/mi64.c:5955:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
xy_ptr_diff = (uint64*)((uint64)y - (uint64)x); // 2-step cast to avoid GCC "initialization makes pointer from integer without a cast" warning
^
../src/mi64.c: In function ‘mi64_div_y32’:
../src/mi64.c:6602:40: warning: passing argument 1 of ‘mi64_is_div_by_scalar32’ from incompatible pointer type [-Wincompatible-pointer-types]
ASSERT(HERE, mi64_is_div_by_scalar32(x, y, len), "Results of mi64_div_y32 and mi64_is_div_by_scalar32 differ!");
^
../src/mi64.c:4306:5: note: expected ‘const uint32 * {aka const unsigned int *}’ but argument is of type ‘uint64 * {aka long long unsigned int *}’
int mi64_is_div_by_scalar32(const uint32 x[], uint32 q, uint32 len)
^~~~~~~~~~~~~~~~~~~~~~~
../src/pairFFT_mul.c: In function ‘pairFFT_mul’:
../src/pairFFT_mul.c:139:3: warning: #warning Add support for multiple FFT lengths, each with associated saved data in order to obviate need for redundant re-initing! [-Wcpp]
#warning Add support for multiple FFT lengths, each with associated saved data in order to obviate need for redundant re-initing!
^~~~~~~
In file included from ../src/radix1024_ditN_cy_dif1.c:3569:0:
../src/radix1024_main_carry_loop.h: In function ‘cy1024_process_chunk’:
../src/radix1024_main_carry_loop.h:150:9: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
addr = DFT1024_TWIDDLES[ntmp]; addi = addr+1; // Pointer to required row of 2-D twiddles array
^
In file included from ../src/radix1024_ditN_cy_dif1.c:3569:0:
../src/radix1024_main_carry_loop.h:816:9: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
addr = DFT1024_TWIDDLES[l]; addi = addr+1; // Pointer to required row of 2-D twiddles array
^
In file included from ../src/radix128_ditN_cy_dif1.c:3298:0:
../src/radix128_main_carry_loop.h: In function ‘cy128_process_chunk’:
../src/radix128_main_carry_loop.h:280:8: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
addr = DFT128_TWIDDLES[l]; addi = addr+1; // Pointer to required row of 2-D twiddles array
^
../src/radix128_main_carry_loop.h:1090:8: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
addr = DFT128_TWIDDLES[l]; addi = addr+1; // Pointer to required row of 2-D twiddles array
^
In file included from ../src/radix256_ditN_cy_dif1.c:2893:0:
../src/radix256_main_carry_loop.h: In function ‘cy256_process_chunk’:
../src/radix256_main_carry_loop.h:336:8: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
addr = DFT256_TWIDDLES[ntmp]; addi = addr+1; // Pointer to required row of 2-D twiddles array
^
../src/radix256_main_carry_loop.h:1191:8: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
addr = DFT256_TWIDDLES[ntmp]; addi = addr+1; // Pointer to required row of 2-D twiddles array
^
../src/radix512_ditN_cy_dif1.c: In function ‘radix512_dif_pass1’:
../src/radix512_ditN_cy_dif1.c:322:8: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
addr = DFT1024_TWIDDLES[i]; addi = addr+1; // Pointer to required row of 2-D twiddles array
^
../src/radix512_ditN_cy_dif1.c: In function ‘radix512_dit_pass1’:
../src/radix512_ditN_cy_dif1.c:491:9: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
addr = DFT1024_TWIDDLES[i]; addi = addr+1; // Pointer to required row of 2-D twiddles array
^
In file included from ../src/radix64_ditN_cy_dif1.c:2857:0:
../src/radix64_main_carry_loop.h: In function ‘cy64_process_chunk’:
../src/radix64_main_carry_loop.h:177:8: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
addr = DFT64_TWIDDLES[l-1]; addi = addr+1; // Pointer to required row of 2-D twiddles array
^
../src/radix64_main_carry_loop.h:932:8: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
addr = DFT64_TWIDDLES[l-1]; addi = addr+1; // Pointer to required row of 2-D twiddles array
^
../src/threadpool.c:267:2: warning: ‘force_align_arg_pointer’ attribute directive ignored [-Wattributes]
{
^
../src/twopmodq80.c:6236:48: warning: missing terminating ' character
The third column [||] indicates the instruction's degree of parallelism with respect to
^
../src/twopmodq80.c:6261:72: warning: missing terminating ' character
0. Vector-load of need qinv 8-bit inits from the minv8[] byte-table def'd in mi64.h. This gather-load must needs
^
../src/twopmodq80.c:6302:4: warning: missing terminating ' character
let's break it down into 32-bit operand sub-multiplies and see how the resulting bits line up:
^
../src/util.c: In function ‘has_asimd’:
../src/util.c:1806:16: error: ‘HWCAP_ASIMD’ undeclared (first use in this function)
if (hwcaps & HWCAP_ASIMD) {
^~~~~~~~~~~
../src/util.c:1806:16: note: each undeclared identifier is reported only once for each function it appears in
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment