Trouble building 17.01 from source on x64

in source/feeds/packages/utils/xz/Makefile, I see --disable-assembler but when attempting to build LEDE 17.01, I get errors that look like the --disable-assembler directive is not being respected

check/crc32_x86.S: Assembler messages:
check/crc32_x86.S:96: Error: invalid instruction suffix for `push'
check/crc32_x86.S:97: Error: invalid instruction suffix for `push'
check/crc32_x86.S:98: Error: invalid instruction suffix for `push'
check/crc32_x86.S:99: Error: invalid instruction suffix for `push'
check/crc32_x86.S:132: Error: relocated field and relocation type differ in signedness
check/crc32_x86.S:265: Error: invalid instruction suffix for `pop'
check/crc32_x86.S:266: Error: invalid instruction suffix for `pop'
check/crc32_x86.S:267: Error: invalid instruction suffix for `pop'
check/crc32_x86.S:268: Error: invalid instruction suffix for `pop'

OK, I managed to fix xz compiling by adding --disable-assembler to source/tools/xz/Makefile

Now gmp is failing with:

Test compile: __builtin_alloca availability
configure:6279: gcc -O2 -I/home/user/OpenWrtSource/source/staging_dir/host/include -I/home/user/OpenWrtSource/source/s
taging_dir/host/usr/include  -I/home/user/OpenWrtSource/source/staging_dir/host/include -I/home/user/OpenWrtSource/sou
rce/staging_dir/host/usr/include  conftest.c >&5
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
configure:6282: $? = 1
failed program was:
int k; int foo () { __builtin_alloca (k); }
Test compile: abs int -> double conversion
configure:6403: gcc -O2 -I/home/user/OpenWrtSource/source/staging_dir/host/include -I/home/user/OpenWrtSource/source/s
taging_dir/host/usr/include  -I/home/user/OpenWrtSource/source/staging_dir/host/include -I/home/user/OpenWrtSource/sou
rce/staging_dir/host/usr/include  conftest.c >&5
configure:6406: $? = 0
configure:6411: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
configure:6414: $? = 0

Thanks, that helped

Not sure what is going on there, but I've never seen anything like that.

I'd guess that your build environment hasn't been installed properly or your missing required packages on your host OS.

Same here, x86 is one of the most tested platforms I reckon, and last time I compiled the 17.01 tree everything went without a hitch.