#21887: Fails very early in tools\compile due to md5 issues
-----------------------+------------------------
Reporter: anonymous | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone:
Component: packages | Version: Trunk
Keywords: |
-----------------------+------------------------
The full log is down below, but I narrowed this problem down to call to
md5s() in shell.sh from find_md5 in depends.mk.
I do have md5sum installed, but the way this call is made it does not
return md5 and instead prints the help text (print mode: md5sum <file>
<file> ... check mode: md5sum -c <checksum file>) that wrongly gets
appended to .prepared and build fails. I tried multiple versions,
including trunk.
Any assistance would be great appreciated?
{{{
find_md5=$(SH_FUNC) find $(1) -type f $(patsubst -x,-and -not
-path,$(DEP_FINDPARAMS) $(2)) | md5s
}}}
{{{
cat "$@" | (
md5sum 2>/dev/null ||
md5
) | awk '{print $1}'
}}}
{{{
systems2@systems2-linux:~/gateway/openwrt$ make -j1 V=s
Collecting package info: done
Collecting target info: done
make[1]: Entering directory '/home/systems2/gateway/openwrt'
make[2]: Entering directory '/home/systems2/gateway/openwrt'
+ mkdir -p /home/systems2/gateway/openwrt/staging_dir/target-
arm_cortex-a9+neon_uClibc-0.9.33.2_eabi
+ cd /home/systems2/gateway/openwrt/staging_dir/target-
arm_cortex-a9+neon_uClibc-0.9.33.2_eabi
+ mkdir -p bin lib include stamp
mkdir -p /home/systems2/gateway/openwrt/build_dir/target-
arm_cortex-a9+neon_uClibc-0.9.33.2_eabi/stamp
touch /home/systems2/gateway/openwrt/staging_dir/target-
arm_cortex-a9+neon_uClibc-0.9.33.2_eabi/.prepared
+ mkdir -p /home/systems2/gateway/openwrt/staging_dir/host
+ cd /home/systems2/gateway/openwrt/staging_dir/host
+ mkdir -p bin lib include stamp
mkdir -p /home/systems2/gateway/openwrt/build_dir/host/stamp
/home/systems2/gateway/openwrt/staging_dir/host/include/sys
install -m0644 /home/systems2/gateway/openwrt/tools/include/*.h
/home/systems2/gateway/openwrt/staging_dir/host/include/
install -m0644 /home/systems2/gateway/openwrt/tools/include/sys/*.h
/home/systems2/gateway/openwrt/staging_dir/host/include/sys/
ln -sf lib /home/systems2/gateway/openwrt/staging_dir/host/lib64
touch /home/systems2/gateway/openwrt/staging_dir/host/.prepared
make[3]: Entering directory '/home/systems2/gateway/openwrt/tools/patch'
/home/systems2/gateway/openwrt/include/shell.sh: line 37: md5: command not
found
/home/systems2/gateway/openwrt/include/shell.sh: line 37: md5: command not
found
/home/systems2/gateway/openwrt/include/shell.sh: line 37: md5: command not
found
/home/systems2/gateway/openwrt/include/shell.sh: line 37: md5: command not
found
/home/systems2/gateway/openwrt/include/shell.sh: line 37: md5: command not
found
Makefile:21: *** target file
'/home/systems2/gateway/openwrt/build_dir/host/patch-2.7.5/.preparedprint'
has both : and :: entries. Stop.
make[3]: Leaving directory '/home/systems2/gateway/openwrt/tools/patch'
tools/Makefile:121: recipe for target 'tools/patch/compile' failed
make[2]: *** [tools/patch/compile] Error 2
make[2]: Leaving directory '/home/systems2/gateway/openwrt'
tools/Makefile:120: recipe for target
'/home/systems2/gateway/openwrt/staging_dir/target-
arm_cortex-a9+neon_uClibc-0.9.33.2_eabi/stamp/.tools_install_yynyynynynyyyyyyyyynyyyyyyyyynyyyyynnyyynnyynnnyy'
failed
make[1]: *** [/home/systems2/gateway/openwrt/staging_dir/target-
arm_cortex-a9+neon_uClibc-0.9.33.2_eabi/stamp/.tools_install_yynyynynynyyyyyyyyynyyyyyyyyynyyyyynnyyynnyynnnyy]
Error 2
make[1]: Leaving directory '/home/systems2/gateway/openwrt'
/home/systems2/gateway/openwrt/include/toplevel.mk:181: recipe for target
'world' failed
make: *** [world] Error 2
}}}
--
Ticket URL: <https://dev.openwrt.org/ticket/21887>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets