[Solved] Build from Master on ArchLinux gives error for freadahead.c


#1

This the error message from make -j1 V=s

depbase=`echo freadahead.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc  -I.   -I/home/test/development/openwrt/staging_dir/host/include   -O2 -I/home/test/development/openwrt/staging_dir/host/include  -MT freadahead.o -MD -MP -MF $depbase.Tpo -c -o freadahead.o freadahead.c &&\
mv -f $depbase.Tpo $depbase.Po
freadahead.c: In function 'freadahead':
freadahead.c:92:3: error: #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bug-gnulib."
  #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bug-gnulib."
   ^~~~~

Any Suggestions ?


[solved] Lose router's gateway when wan is connected
#2

It's because glibc has been updated to 2.28 on your system (Arch).
You can find more details here and here.

Also, pull changes from the OpenWRT repository. A fix was just merged :slight_smile:


#3

Thanks

The build progressed further, but now have a new error.


make[3]: *** [Makefile:209: /home/test/development/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/base-files/.configured_f8a7ef425d28326c27dae6762b223070_8e081b74cf069e1e6800a5bbcbb282f0] Error 255
make[3]: Leaving directory '/home/test/development/openwrt/package/base-files'
time: package/base-files/compile#0.25#0.11#0.34
make[2]: *** [package/Makefile:109: package/base-files/compile] Error 2
make[2]: Leaving directory '/home/test/development/openwrt'
make[1]: *** [package/Makefile:103: /home/test/development/openwrt/staging_dir/target-mips_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/test/development/openwrt'
make: *** [/home/test/development/openwrt/include/toplevel.mk:218: world] Error 2

#4

Can you post more log output, I couldn't see what's wrong with the current output


#5

Thanks, Here is more of the log

SHELL= flock /home/test/development/openwrt/tmp/.root-copy.flock -c 'cp -fpR /home/test/development/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/packages/.pkgdir/kmod-leds-wndr3700-usb/. /home/test/development/openwrt/staging_dir/target-mips_24kc_musl/root-ar71xx/'
touch /home/test/development/openwrt/staging_dir/target-mips_24kc_musl/root-ar71xx/stamp/.kmod-leds-wndr3700-usb_installed
echo "kmod-leds-wndr3700-usb" >> /home/test/development/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/linux.default.install
make[3]: Leaving directory '/home/test/development/openwrt/package/kernel/linux'
time: package/kernel/linux/compile#3.33#0.43#3.78
make[3]: Entering directory '/home/test/development/openwrt/package/system/ubox'
mkdir -p /home/test/development/openwrt/staging_dir/target-mips_24kc_musl/root-ar71xx/stamp
SHELL= flock /home/test/development/openwrt/tmp/.root-copy.flock -c 'cp -fpR /home/test/development/openwrt/build_dir/target-mips_24kc_musl/ubox-2018-02-14-128bc35f/.pkgdir/ubox/. /home/test/development/openwrt/staging_dir/target-mips_24kc_musl/root-ar71xx/'
touch /home/test/development/openwrt/staging_dir/target-mips_24kc_musl/root-ar71xx/stamp/.ubox_installed
echo "ubox" >> /home/test/development/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/ubox.default.install
mkdir -p /home/test/development/openwrt/staging_dir/target-mips_24kc_musl/root-ar71xx/stamp
SHELL= flock /home/test/development/openwrt/tmp/.root-copy.flock -c 'cp -fpR /home/test/development/openwrt/build_dir/target-mips_24kc_musl/ubox-2018-02-14-128bc35f/.pkgdir/logd/. /home/test/development/openwrt/staging_dir/target-mips_24kc_musl/root-ar71xx/'
touch /home/test/development/openwrt/staging_dir/target-mips_24kc_musl/root-ar71xx/stamp/.logd_installed
echo "logd" >> /home/test/development/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/ubox.default.install
make[3]: Leaving directory '/home/test/development/openwrt/package/system/ubox'
time: package/system/ubox/compile#0.51#0.30#0.78
make[3]: Entering directory '/home/test/development/openwrt/package/libs/ncurses'
make[3]: Leaving directory '/home/test/development/openwrt/package/libs/ncurses'
time: package/libs/ncurses/host-compile#0.21#0.11#0.29
make[3]: Entering directory '/home/test/development/openwrt/package/libs/zlib'
make[3]: Leaving directory '/home/test/development/openwrt/package/libs/zlib'
time: package/libs/zlib/compile#0.16#0.09#0.23
make[3]: Entering directory '/home/test/development/openwrt/package/libs/ncurses'
make[3]: Leaving directory '/home/test/development/openwrt/package/libs/ncurses'
time: package/libs/ncurses/compile#0.22#0.14#0.32
make[3]: Entering directory '/home/test/development/openwrt/package/utils/util-linux'
make[3]: Leaving directory '/home/test/development/openwrt/package/utils/util-linux'
time: package/utils/util-linux/compile#0.24#0.10#0.30
make[3]: Entering directory '/home/test/development/openwrt/package/system/fstools'
mkdir -p /home/test/development/openwrt/staging_dir/target-mips_24kc_musl/root-ar71xx/stamp
SHELL= flock /home/test/development/openwrt/tmp/.root-copy.flock -c 'cp -fpR /home/test/development/openwrt/build_dir/target-mips_24kc_musl/fstools-2018-05-23-dd02dad3/.pkgdir/fstools/. /home/test/development/openwrt/staging_dir/target-mips_24kc_musl/root-ar71xx/'
touch /home/test/development/openwrt/staging_dir/target-mips_24kc_musl/root-ar71xx/stamp/.fstools_installed
echo "fstools" >> /home/test/development/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/fstools.default.install
make[3]: Leaving directory '/home/test/development/openwrt/package/system/fstools'
time: package/system/fstools/compile#0.56#0.39#0.91
make[3]: Entering directory '/home/test/development/openwrt/package/system/fwtool'
make[3]: Leaving directory '/home/test/development/openwrt/package/system/fwtool'
time: package/system/fwtool/host-compile#0.18#0.09#0.26
make[3]: Entering directory '/home/test/development/openwrt/package/system/fwtool'
mkdir -p /home/test/development/openwrt/staging_dir/target-mips_24kc_musl/root-ar71xx/stamp
SHELL= flock /home/test/development/openwrt/tmp/.root-copy.flock -c 'cp -fpR /home/test/development/openwrt/build_dir/target-mips_24kc_musl/fwtool/.pkgdir/fwtool/. /home/test/development/openwrt/staging_dir/target-mips_24kc_musl/root-ar71xx/'
touch /home/test/development/openwrt/staging_dir/target-mips_24kc_musl/root-ar71xx/stamp/.fwtool_installed
echo "fwtool" >> /home/test/development/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/fwtool.default.install
make[3]: Leaving directory '/home/test/development/openwrt/package/system/fwtool'
time: package/system/fwtool/compile#0.20#0.11#0.29
make[3]: Entering directory '/home/test/development/openwrt/package/system/procd'
mkdir -p /home/test/development/openwrt/staging_dir/target-mips_24kc_musl/root-ar71xx/stamp
SHELL= flock /home/test/development/openwrt/tmp/.root-copy.flock -c 'cp -fpR /home/test/development/openwrt/build_dir/target-mips_24kc_musl/procd-2018-08-06-e29966f0/.pkgdir/procd/. /home/test/development/openwrt/staging_dir/target-mips_24kc_musl/root-ar71xx/'
touch /home/test/development/openwrt/staging_dir/target-mips_24kc_musl/root-ar71xx/stamp/.procd_installed
echo "procd" >> /home/test/development/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/procd.default.install
make[3]: Leaving directory '/home/test/development/openwrt/package/system/procd'
time: package/system/procd/compile#0.55#0.28#0.80
make[3]: Entering directory '/home/test/development/openwrt/package/system/usign'
make[3]: Leaving directory '/home/test/development/openwrt/package/system/usign'
time: package/system/usign/host-compile#0.58#0.34#0.87
make[3]: Entering directory '/home/test/development/openwrt/package/system/ucert'
make[3]: Leaving directory '/home/test/development/openwrt/package/system/ucert'
time: package/system/ucert/host-compile#0.45#0.30#0.72
make[3]: Entering directory '/home/test/development/openwrt/package/utils/jsonfilter'
mkdir -p /home/test/development/openwrt/staging_dir/target-mips_24kc_musl/root-ar71xx/stamp
SHELL= flock /home/test/development/openwrt/tmp/.root-copy.flock -c 'cp -fpR /home/test/development/openwrt/build_dir/target-mips_24kc_musl/jsonfilter-2018-02-04-c7e938d6/.pkgdir/jsonfilter/. /home/test/development/openwrt/staging_dir/target-mips_24kc_musl/root-ar71xx/'
touch /home/test/development/openwrt/staging_dir/target-mips_24kc_musl/root-ar71xx/stamp/.jsonfilter_installed
echo "jsonfilter" >> /home/test/development/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/jsonfilter.default.install
make[3]: Leaving directory '/home/test/development/openwrt/package/utils/jsonfilter'
time: package/utils/jsonfilter/compile#0.42#0.27#0.66
make[3]: Entering directory '/home/test/development/openwrt/package/system/openwrt-keyring'
mkdir -p /home/test/development/openwrt/staging_dir/target-mips_24kc_musl/root-ar71xx/stamp
SHELL= flock /home/test/development/openwrt/tmp/.root-copy.flock -c 'cp -fpR /home/test/development/openwrt/build_dir/target-mips_24kc_musl/openwrt-keyring-2018-05-18-103a32e9/.pkgdir/openwrt-keyring/. /home/test/development/openwrt/staging_dir/target-mips_24kc_musl/root-ar71xx/'
touch /home/test/development/openwrt/staging_dir/target-mips_24kc_musl/root-ar71xx/stamp/.openwrt-keyring_installed
echo "openwrt-keyring" >> /home/test/development/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/openwrt-keyring.default.install
make[3]: Leaving directory '/home/test/development/openwrt/package/system/openwrt-keyring'
time: package/system/openwrt-keyring/compile#0.39#0.28#0.64
make[3]: Entering directory '/home/test/development/openwrt/package/system/usign'
mkdir -p /home/test/development/openwrt/staging_dir/target-mips_24kc_musl/root-ar71xx/stamp
SHELL= flock /home/test/development/openwrt/tmp/.root-copy.flock -c 'cp -fpR /home/test/development/openwrt/build_dir/target-mips_24kc_musl/usign-2015-07-04-ef641914/.pkgdir/usign/. /home/test/development/openwrt/staging_dir/target-mips_24kc_musl/root-ar71xx/'
touch /home/test/development/openwrt/staging_dir/target-mips_24kc_musl/root-ar71xx/stamp/.usign_installed
echo "usign" >> /home/test/development/openwrt/staging_dir/target-mips_24kc_musl/pkginfo/usign.default.install
make[3]: Leaving directory '/home/test/development/openwrt/package/system/usign'
time: package/system/usign/compile#0.58#0.36#0.90
make[3]: Entering directory '/home/test/development/openwrt/package/base-files'
rm -f /home/test/development/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/base-files/.configured_*
rm -f /home/test/development/openwrt/staging_dir/target-mips_24kc_musl/stamp/.base-files_installed
[ -s /home/test/development/openwrt/key-build -a -s /home/test/development/openwrt/key-build.pub ] || /home/test/development/openwrt/staging_dir/host/bin/usign -G -s /home/test/development/openwrt/key-build -p /home/test/development/openwrt/key-build.pub -c "Local build key"
[ -s /home/test/development/openwrt/key-build.ucert ] || /home/test/development/openwrt/staging_dir/host/bin/ucert -I -c /home/test/development/openwrt/key-build.ucert -p /home/test/development/openwrt/key-build.pub -s /home/test/development/openwrt/key-build
make[3]: *** [Makefile:209: /home/test/development/openwrt/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/base-files/.configured_f8a7ef425d28326c27dae6762b223070_8e081b74cf069e1e6800a5bbcbb282f0] Error 255
make[3]: Leaving directory '/home/test/development/openwrt/package/base-files'
time: package/base-files/compile#0.22#0.13#0.34
make[2]: *** [package/Makefile:109: package/base-files/compile] Error 2
make[2]: Leaving directory '/home/test/development/openwrt'
make[1]: *** [package/Makefile:103: /home/test/development/openwrt/staging_dir/target-mips_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/test/development/openwrt'
make: *** [/home/test/development/openwrt/include/toplevel.mk:218: world] Error 2

#6

What if you make menuconfig and go to Global build settings, then deselect Cryptographically signed package lists?


#7

:+1:

That fixed worked-around it, thanks


#8

That's a workaround, not a solution. AFAIK the package lists are signed by default.

In general, bleeding edge distros like Arch are a bad idea to use as a base. Stick with a VM with Debian or Ubuntu to avoid such issues.


closed #9

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.