OpenWrt Forum Archive

Topic: Target has both : and :: entries. Stop.

The content of this topic has been archived on 1 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

I'm trying to compile a basic C program (one common header 4 .c files) works fine under Ubuntu as a standalone program, so I think the standard makefile is ok.

I created a package folder (onkyocontrol) with the source and original makefile in a sub folder (src), then created an Openwrt Makefile. Following the tutorial on the Gargoyle router pages for a basic C program.

I tried to make the package as follows:

$ make package/onkyocontrol/{clean,compile,install} V=99

The below is an extract of what happened next..

phill@phill-laptop:~/Projects/Openwrt/8.09$ make package/onkyocontrol/{clean,compile,install} V=99
make[1]: Entering directory `/home/phill/Projects/Openwrt/8.09'
--: line 0: test: /home/phill/Projects/Openwrt/8.09/build_dir/armeb/onkyocontrol: binary operator expected
--: line 0: test: /home/phill/Projects/Openwrt/8.09/build_dir/armeb/onkyocontrol: binary operator expected
--: line 0: test: /home/phill/Projects/Openwrt/8.09/build_dir/armeb/onkyocontrol: binary operator expected
--: line 0: test: /home/phill/Projects/Openwrt/8.09/build_dir/armeb/onkyocontrol: binary operator expected
--: line 0: test: /home/phill/Projects/Openwrt/8.09/build_dir/armeb/onkyocontrol: binary operator expected
--: line 0: test: /home/phill/Projects/Openwrt/8.09/build_dir/armeb/onkyocontrol: binary operator expected
--: line 0: test: /home/phill/Projects/Openwrt/8.09/build_dir/armeb/onkyocontrol: binary operator expected
--: line 0: test: /home/phill/Projects/Openwrt/8.09/build_dir/armeb/onkyocontrol: binary operator expected
make[2]: Entering directory `/home/phill/Projects/Openwrt/8.09/package/onkyocontrol'
Makefile:91: warning: overriding commands for target `/home/phill/Projects/Openwrt/8.09/build_dir/armeb/onkyocontrol'
Makefile:91: warning: ignoring old commands for target `/home/phill/Projects/Openwrt/8.09/build_dir/armeb/onkyocontrol'
Makefile:91: warning: overriding commands for target `/home/phill/Projects/Openwrt/8.09/build_dir/armeb/onkyocontrol'
Makefile:91: warning: ignoring old commands for target `/home/phill/Projects/Openwrt/8.09/build_dir/armeb/onkyocontrol'
Makefile:91: warning: overriding commands for target `/home/phill/Projects/Openwrt/8.09/build_dir/armeb/onkyocontrol'
Makefile:91: warning: ignoring old commands for target `/home/phill/Projects/Openwrt/8.09/build_dir/armeb/onkyocontrol'
Makefile:91: warning: overriding commands for target `/home/phill/Projects/Openwrt/8.09/build_dir/armeb/onkyocontrol'
Makefile:91: warning: ignoring old commands for target `/home/phill/Projects/Openwrt/8.09/build_dir/armeb/onkyocontrol'
rm -f /home/phill/Projects/Openwrt/8.09/staging_dir/armeb/stamp/.onkyocontrol _installed
--: line 2: [: packages/onkyocontrol: binary operator expected
rm -f /home/phill/Projects/Openwrt/8.09/bin/packages/armeb/onkyocontrol_*
rm -f /home/phill/Projects/Openwrt/8.09/staging_dir/armeb/packages/onkyocontrol .list /home/phill/Projects/Openwrt/8.09/staging_dir/host/packages/onkyocontrol .list
rm -rf /home/phill/Projects/Openwrt/8.09/build_dir/armeb/onkyocontrol
make[2]: Leaving directory `/home/phill/Projects/Openwrt/8.09/package/onkyocontrol'
make[1]: Leaving directory `/home/phill/Projects/Openwrt/8.09'
make[1]: Entering directory `/home/phill/Projects/Openwrt/8.09'
--: line 0: test: /home/phill/Projects/Openwrt/8.09/build_dir/armeb/onkyocontrol: binary operator expected
--: line 0: test: /home/phill/Projects/Openwrt/8.09/build_dir/armeb/onkyocontrol: binary operator expected
--: line 0: test: /home/phill/Projects/Openwrt/8.09/build_dir/armeb/onkyocontrol: binary operator expected
--: line 0: test: /home/phill/Projects/Openwrt/8.09/build_dir/armeb/onkyocontrol: binary operator expected
--: line 0: test: /home/phill/Projects/Openwrt/8.09/build_dir/armeb/onkyocontrol: binary operator expected
--: line 0: test: /home/phill/Projects/Openwrt/8.09/build_dir/armeb/onkyocontrol: binary operator expected
--: line 0: test: /home/phill/Projects/Openwrt/8.09/build_dir/armeb/onkyocontrol: binary operator expected
--: line 0: test: /home/phill/Projects/Openwrt/8.09/build_dir/armeb/onkyocontrol: binary operator expected
--: line 0: test: /home/phill/Projects/Openwrt/8.09/build_dir/armeb/onkyocontrol: binary operator expected
--: line 0: test: /home/phill/Projects/Openwrt/8.09/build_dir/armeb/onkyocontrol: binary operator expected
--: line 0: test: /home/phill/Projects/Openwrt/8.09/build_dir/armeb/onkyocontrol: binary operator expected
make[2]: Entering directory `/home/phill/Projects/Openwrt/8.09/package/onkyocontrol'
Makefile:91: warning: overriding commands for target `/home/phill/Projects/Openwrt/8.09/build_dir/armeb/onkyocontrol'
Makefile:91: warning: ignoring old commands for target `/home/phill/Projects/Openwrt/8.09/build_dir/armeb/onkyocontrol'
Makefile:91: *** target file `/home/phill/Projects/Openwrt/8.09/build_dir/armeb/onkyocontrol' has both : and :: entries.  Stop.
make[2]: Leaving directory `/home/phill/Projects/Openwrt/8.09/package/onkyocontrol'
make[1]: *** [package/onkyocontrol/compile] Error 2
make[1]: Leaving directory `/home/phill/Projects/Openwrt/8.09'
make: *** [package/onkyocontrol/compile] Error 2
phill@phill-laptop:~/Projects/Openwrt/8.09$

Seems this is the primary problem:

Makefile:91: *** target file `/home/phill/Projects/Openwrt/8.09/build_dir/armeb/onkyocontrol' has both : and :: entries.  Stop.

But I have no idea what it means ! I've tried in vain to see if I can fix it but to no avail, maybe someone can advise me where I going wrong.

Many thanks

Phill

I had similar problem. Check spaces in end of lines. I had such a problem untill removed space chars in end of line PKG_VERSION:=1.1.1[SPACE_CHARACTER]

The discussion might have continued from here.