Make Error Build No Such File Or Directory
Contents |
a reply 17 posts by DeanC » Wed Jan 22, 2014 10:29 pm lib modules build no such file or directory centos I'm trying to compile a driver on my RPi
Lib Modules Build No Such File Centos
running Raspbian. But I get the following error:Code: Select allmake: *** /lib/modules/3.10.25+/build: No such file
No Rule To Make Target Modules Stop
or directory. Stop.
make: *** [all] Error 2Every normal (not optimized for RPi) version of Linux I have worked with has this directory. But I
Fedora /lib/modules Build Missing
can't find it in Raspbian. Did this directory get moved somewhere else? How to I get access to it so I can compile my driver? We 'idiot proofed' the world, and now it's full of idiots! Posts: 136Joined: Thu Sep 26, 2013 4:07 pmLocation: Vancouver, Canada by DougieLawson » Wed ubuntu lib modules missing Jan 22, 2014 10:54 pm Can't you simply use mkdir -p /lib/modules/3.10.25+/buildThat /lib/modules/* stuff is all built by rpi-update Microprocessor, Raspberry Pi & Arduino HackerMainframe database troubleshooterMQTT EvangelistRPi owner since '12.Twitter: @DougieLawson2B, B+, A+, 5Bs, zero, 3BPlease post ALL technical questions on the forum.Do not send private messages. Posts: 23356Joined: Sun Jun 16, 2013 11:19 pmLocation: Basingstoke, UK by DeanC » Thu Jan 23, 2014 1:51 am DougieLawson wrote:Can't you simply use mkdir -p /lib/modules/3.10.25+/buildThat /lib/modules/* stuff is all built by rpi-updateI tried it and got the following error:Code: Select allmake[1]: Entering directory `/lib/modules/3.10.25+/build'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/lib/modules/3.10.25+/build'
make: *** [LINUX] Error 2I just tried rpi-update, but but it changes the build to 3.10.27+, so I create the directory again and still get:Code: Select allmake[1]: Entering directory `/lib/modules/3.10.27+/build'
make[1]: *** No rule to make target `modules'. Stop.
make
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about make: makefile: no such file or directory Stack Overflow the company Business Learn more about hiring developers or posting ads with yum install linux headers us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is apt-get install linux-headers a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up makefile “no such file or directory” up vote 0 down vote favorite I https://www.raspberrypi.org/forums/viewtopic.php?t=67347&p=495080 am trying to compile a C++ program using make. After reading quite a few tutorials, I have come upon the following make file. It reads source files from src directory, puts objects in the build directory, and puts the exe in the bin directory. When I try running the following makefile, I get the subsequent error. CC := g++ CFLAGS := -g -O2 BIN_DIR := /bin BUILD_DIR := /build SRC_DIR http://stackoverflow.com/questions/33092891/makefile-no-such-file-or-directory := /src TARGET := wavfiletool.exe SOURCES := $(wildcard $(SRC_DIR)/*.c) OBJECTS := $(SOURCES:$(SRCDIR)/%.cpp=$(BUILD_DIR)/%.o) $(BIN_DIR)/$(TARGET): $(OBJECTS) $(CC) $@ $(CFLAGS) $(OBJECTS) $(OBJECTS): $(BUILD_DIR)/%.o : $(SRC_DIR)/%.c @$(CC) $(CFLAGS) -c $< -o $@ ++ /bin/wavfiletool.exe -g -O2 g++: error: /bin/wavfiletool.exe: No such file or directory g++: fatal error: no input files compilation terminated. make: *** [/bin/wavfiletool.exe] Error 1 [Finished in 0.1s with exit code 2] UPDATE: I have edited the makefile. One typo in the previous version was that I have .c when I am using .cpp and c++. I am now getting a different error. UPDATED MAKEFILE CC := g++ CFLAGS := -g -O2 BIN_DIR := bin BUILD_DIR := build SRC_DIR := src TARGET := wavfiletool.exe SOURCES := $(wildcard $(SRC_DIR)/*.cpp) OBJECTS := $(SOURCES:$(SRCDIR)/%.cpp=$(BUILD_DIR)/%.o) $(BIN_DIR)/$(TARGET): $(OBJECTS) $(CC) $(OBJECTS) $(CFLAGS) -o $@ $(OBJECTS): $(BUILD_DIR)/%.o : $(SRC_DIR)/%.cpp @$(CC) $(CFLAGS) -c $< -o $@ new error makefile:13: target `src/WavFile.cpp' doesn't match the target pattern makefile:13: target `src/WavFileTool.cpp' doesn't match the target pattern g++ src/WavFile.cpp src/WavFileTool.cpp -g -O2 -o bin/wavfiletool.exe makefile gnu-make share|improve this question edited Oct 14 '15 at 1:22 asked Oct 13 '15 at 1:55 ScottF 297518 My answer on your previous question covers these issues. I covered three issues with your makefile. The incorrect variable was just one of them. Also,
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn http://unix.stackexchange.com/questions/75558/ubuntu-make-fails-with-no-such-file-or-directory-lib-modules-3-4-0-build more about Stack Overflow the company Business Learn more about hiring developers or posting https://bbs.archlinux.org/viewtopic.php?id=135931 ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer no such The best answers are voted up and rise to the top Ubuntu make fails with No such file or directory /lib/modules/3.4.0/build up vote 3 down vote favorite 2 I am trying to build the CP210x driver for the 3.x.x kernel on ChrUbuntu. Build instructions: Ubuntu: make ( your cp210x driver ) cp cp210x.ko /lib/modules/
dabbi2000 Member From: Reykjavik, Iceland Registered: 2011-09-28 Posts: 119 Website [SOLVED] Build failed: no such file or directory? I am trying to install acpi_call-git on a 64 bit system, I cannot understand the error I get==> Determining latest git revision... -> Version found: 20120216 ==> Making package: acpi_call-git 20120216-1 (Thu Feb 16 22:22:59 CET 2012) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving Sources... ==> Extracting Sources... ==> Removing existing pkg/ directory... ==> Starting build()... ==> Git checkout: Updating existing tree Already up-to-date. ==> Git checkout: Tree has been updated ==> Checkout completed make -C /lib/modules/3.2.5-1-ARCH/build M=/tmp/packerbuild-0/acpi_call-git/acpi_call-git/src/acpi_call-build modules make: *** /lib/modules/3.2.5-1-ARCH/build: No such file or directory. Stop. make: *** [default] Error 2 ==> ERROR: A failure occurred in build(). Aborting... The build failed.the /lib/modules/3.2.5-1-ARCH folder is there alright but no build, I guess that's a temporary folder for build but I cannot see how I can fix this? Last edited by dabbi2000 (2012-02-25 13:21:27) Offline #2 2012-02-16 21:53:10 jstoik1 Member From: Las Vegas Registered: 2012-02-15 Posts: 13 Re: [SOLVED] Build failed: no such file or directory? Did you upgrade your kernel and forget to reboot? 3.2.6-1-ARCH is out.EDIT: 3.2.6-2-ARCH is out now. Haha. As was also suggested, please make sure you have linux-headers installed as well. Last edited by jstoik1 (2012-02-16 22:03:45) Offline #3 2012-02-16 21:58:33 Cory_j Member From: USA Registered: 2012-02-16 Posts: 39 Re: [SOLVED] Build failed: no such file or directory? sorry had to fix it pacman -Syu base-devel linux-headers Last edited by Cory_j (2012-02-16 22:50:06) Arch Mint Winfail7 Offline #4 2012-02-16 22:12:20 dabbi2000 Member From: Reykjavik, Iceland Registered: 2011-09-28 Posts: 119 Website Re: [SOLVED] Build failed: no such file or directory? I did a pacman -Syu, everything is up to date, doesn't upgrade to 3.2.6.1-ARCH but are you 100% sure that is the problem, the correct version folder is there? Offline #5 2012-02-16 22:12:39 .:B:. Forum Fellow Registered: 2006-11-26 Posts: 5,819 Re: [SOLVED] Build failed: no such file or directory? The PKGBUILD should be fixed, it should use the 'extramodules' dir now:$ ls /lib/modules/ 3.2.6-2-ARCH extramodules-3.2-ARCH Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy Offline #6 2012-02-16 22:28:49 Cory_j Member From