Make [2]: *** you can create the target "/home/Hello. c" for "/home/Hello. O" without rules ". Stop.

Source: Internet
Author: User

The following error occurs when compiling a simple driver hello. C:

[Email protected]: ~ /Workspace/project/driver/Hello $ make
Make-C/home/Mach/workspace/linux-3.8_webee210v2 M =/home/Mach/workspace/project/driver/Hello modules arch = arm cross_compile = arm-Linux-
Make [1]: Entering directory '/home/Mach/workspace/linux-3.8_webee210v2'
Make [2]: * ** you can create the target "/home/Mach/workspace/project/driver/Hello/webee210_hello.o" for "/home/Mach/workspace/project/driver/Hello/" without rules/ webee210_hello.c ". Stop.
Make [1]: *** [_ module _/home/Mach/workspace/project/driver/Hello] Error 2
Make [1]: Leaving directory '/home/Mach/workspace/linux-3.8_webee210v2'
Make: *** [all] Error 2

 

When I see such a prompt, I know it must be a syntax problem. Read it carefully. c file. Check the MAKEFILE file carefully. No errors are found. Later, note that webee210_hello.o in makefile is in lower case, while webee210_hello.c's "W" is in upper case, so it is changed to lower case and compiled, actually passed.

It's really speechless. Let's give it a reference.

 

Make [2]: *** you can create the target "/home/Hello. c" for "/home/Hello. O" without rules ". Stop.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.