I built squid successfully about 2 weeks ago.
Topic: diffutils + squid fail to build
The content of this topic has been archived on 6 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.
Well, a few more details would help;
[EDIT] Details like a build output, or something. In any case I'll try it too real quick.
This would be good to report here: https://github.com/openwrt/packages/issues
FYI: atm the default libc library in OpenWRT is changing from uClibc to musl ; so that could be an issue; there are many packages that need fixing because of this change; and musl is also being updated/changed, so it might work now ?
(Last edited by commodo on 25 Jun 2015, 07:01)
Now squid does not show up any more in make menuconfig network Webservices/Proxy :-)
So, no chance for another try.
Well, it should be there.
Possibly an issue with feeds (or feeds indexing) ; it's not very reliable all the times.
I usually try to cleanup my entire build folder and then re-install the feeds with
./scripts/feeds update packages ; ./scripts/feeds install diffutils squidIn my case I could not build because some error in musl (stdio.h is problematic):
I tried twice and it gave me the same error on a clean checkout + fresh-est feeds.
Will wait until this is fixed.
make all-am
make[6]: Entering directory '/home/sandu/work/openwrt/build_dir/target-i386_i486_musl-1.1.10/diffutils-3.3/src'
i486-openwrt-linux-musl-gcc -I. -I../lib -I../lib -I../lib -I/home/sandu/work/openwrt/staging_dir/target-i386_i486_musl-1.1.10/usr/include -I/home/sandu/work/openwrt/staging_dir/target-i386_i486_musl-1.1.10/include -I/home/sandu/work/openwrt/staging_dir/toolchain-i386_i486_gcc-4.8-linaro_musl-1.1.10/usr/include -I/home/sandu/work/openwrt/staging_dir/toolchain-i386_i486_gcc-4.8-linaro_musl-1.1.10/include/fortify -I/home/sandu/work/openwrt/staging_dir/toolchain-i386_i486_gcc-4.8-linaro_musl-1.1.10/include -Os -pipe -march=i486 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro --std=c99 -MT cmp.o -MD -MP -MF .deps/cmp.Tpo -c -o cmp.o cmp.c
In file included from ../lib/stdio.h:43:0,
from cmp.c:22:
/home/sandu/work/openwrt/staging_dir/toolchain-i386_i486_gcc-4.8-linaro_musl-1.1.10/include/fortify/stdio.h: In function 'snprintf':
/home/sandu/work/openwrt/staging_dir/toolchain-i386_i486_gcc-4.8-linaro_musl-1.1.10/include/fortify/stdio.h:99:2: error: invalid use of '__builtin_va_arg_pack ()'
return __orig_snprintf(__s, __n, __f, __builtin_va_arg_pack());
^
/home/sandu/work/openwrt/staging_dir/toolchain-i386_i486_gcc-4.8-linaro_musl-1.1.10/include/fortify/stdio.h: In function 'sprintf':
/home/sandu/work/openwrt/staging_dir/toolchain-i386_i486_gcc-4.8-linaro_musl-1.1.10/include/fortify/stdio.h:112:7: error: invalid use of '__builtin_va_arg_pack ()'
__r = __orig_sprintf(__s, __f, __builtin_va_arg_pack());
^
Makefile:1256: recipe for target 'cmp.o' failed
make[6]: *** [cmp.o] Error 1
make[6]: Leaving directory '/home/sandu/work/openwrt/build_dir/target-i386_i486_musl-1.1.10/diffutils-3.3/src'
Makefile:1138: recipe for target 'all' failed
make[5]: *** [all] Error 2
make[5]: Leaving directory '/home/sandu/work/openwrt/build_dir/target-i386_i486_musl-1.1.10/diffutils-3.3/src'
Making all in tests
make[5]: Entering directory '/home/sandu/work/openwrt/build_dir/target-i386_i486_musl-1.1.10/diffutils-3.3/tests'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/home/sandu/work/openwrt/build_dir/target-i386_i486_musl-1.1.10/diffutils-3.3/tests'
Making all in doc
make[5]: Entering directory '/home/sandu/work/openwrt/build_dir/target-i386_i486_musl-1.1.10/diffutils-3.3/doc'
make[5]: Nothing to be done for 'all'.The discussion might have continued from here.
