Opened 2 years ago

Last modified 2 years ago

#21887 new defect

Fails very early in tools\compile due to md5 issues

Reported by: anonymous Owned by: developers
Priority: normal Milestone:
Component: packages Version: Trunk
Keywords: Cc:


The full log is down below, but I narrowed this problem down to call to md5s() in from find_md5 in

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 ||
	) | 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-
+ cd /home/systems2/gateway/openwrt/staging_dir/target-arm_cortex-a9+neon_uClibc-
+ mkdir -p bin lib include stamp
mkdir -p /home/systems2/gateway/openwrt/build_dir/target-arm_cortex-a9+neon_uClibc-
touch /home/systems2/gateway/openwrt/staging_dir/target-arm_cortex-a9+neon_uClibc-
+ 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/ line 37: md5: command not found
/home/systems2/gateway/openwrt/include/ line 37: md5: command not found
/home/systems2/gateway/openwrt/include/ line 37: md5: command not found
/home/systems2/gateway/openwrt/include/ line 37: md5: command not found
/home/systems2/gateway/openwrt/include/ 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-' failed
make[1]: *** [/home/systems2/gateway/openwrt/staging_dir/target-arm_cortex-a9+neon_uClibc-] Error 2
make[1]: Leaving directory '/home/systems2/gateway/openwrt'
/home/systems2/gateway/openwrt/include/ recipe for target 'world' failed
make: *** [world] Error 2

Attachments (0)

Change History (1)

comment:1 Changed 2 years ago by KamathKrish

I had a "non-standard" md5sum in /usr/local/bin with no version number, and not sure how it got installed in the first place.

With the md5sum installed with Ubuntu system at /usr/bin (version 8.21) the build is progressing past earlier failure.

We can close this ticket. Only upside from trying to bug this development environment issue is got a better insight into openwrt build system

Sorry for the distraction!

Add Comment

Modify Ticket

as new .

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.