'No rule to make target 'arch/arm/tools/syscall.tbl' when installing wifi modules on raspi - linux

I have been trying to install these drivers for ALFA network's AWUS036NEH wifi adapter onto my raspberry pi but I get an error along the way where i run 'sudo make' and i receive the error:
make[1]: Entering directory '/usr/src/linux-headers-5.4.51-v7l+'
make[2]: *** No rule to make target 'arch/arm/tools/syscall.tbl', needed by 'arch/arm/include/generated/uapi/asm/united-common.h'. Stop.
make[1]: *** [arch/arm/Makefile:325:archheaders] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.4.51-v7l+'
make: *** [Makefile:389: LINUX] Error 2
I am very new to doing stuff on Linux so I tried troubleshooting to the best of my ability but I couldn't figure it out. Also, if there's more information that's needed to solve this that I didn't provide, I will be sure to provide upon request.

Related

Error while building drivers on Raspberry Pi 3 board

I am using Raspberry Pi 3 Model B Rev 1.2 with kernel 4.4.50-v7+ & facing issue while building drivers. Please find below error that I am facing
make[1]: *** /lib/modules/4.4.50-v7+/build: No such file or directory. Stop.
Makefile:149: recipe for target 'build_driver' failed
make: *** [build_driver] Error 2
Can someone help me to resolve this issue?
Your first line mentions why you are getting the error
make[1]: *** /lib/modules/4.4.50-v7+/build: No such file or directory.
It seems that the path /lib/modules/4.4.50-v7+/build does not exist. This may be because you have not installed kernel headers for the kernel for which you are building the driver. You can also change the Makefile of your driver to point it to the linux kernel source directory for which you are building the driver.

Compiling error - Kernel source for Raspberry Pi

I am trying to build a Linux kernel version rpi-4.14 for Raspberry Pi on Linux system.
The build is done with cross compiler arm-linux-gnueabihf with the configuration bcm2709_defconfig.
I'm running the command:
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage modules dtbs
But I get the following error:
arch/arm/boot/dts/overlays/midi-uart0-overlay.dts:4:39: fatal error: dt-bindings/clock/bcm2835.h: No such file or directory
compilation terminated.
scripts/Makefile.lib:328: recipe for target 'arch/arm/boot/dts/overlays/midi-uart0.dtbo' failed
make[2]: *** [arch/arm/boot/dts/overlays/midi-uart0.dtbo] Error 1
scripts/Makefile.build:587: recipe for target 'arch/arm/boot/dts/overlays' failed
make[1]: *** [arch/arm/boot/dts/overlays] Error 2
arch/arm/Makefile:350: recipe for target 'dtbs' failed
make: *** [dtbs] Error 2
The file dt-bindings/clock/bcm2835.h is in place, so I do not really know what the problem is.
The error is telling you that there is a file missing.
arch/arm/boot/dts/overlays/midi-uart0-overlay.dts:4:39: fatal error: dt-bindings/clock/bcm2835.h: No such file or directory
Check if the directory exists, look for the file you need and change the directory in the Makefile.
In my case it was an erroneous symbolic link under arch/arm/boot/dts/include. The kernel sources have been packed/unpacked by 7z, maybe that was an issue.
Solved it via
ln -s ~/kernel-building/linux-raspberrypi-kernel_1.20170703-2/include/dt-bindings arch/arm/boot/dts/include/dt-bindings
Trying to link in relative to the current directory did not work.

Makefile in Linux error: *** No rule to make target `all'. Stop

I'm installing Apache on my Linux server RedHat 6.4.
I follow the following guide: http://squirrelmail.org/docs/admin/admin-3.html
When executing the make file, i got the following error:
Making all in srclib
make[1]: Entering directory `/usr/local/src/httpd-2.4.20/srclib'
make[1]: *** No rule to make target `all'. Stop.
make[1]: Leaving directory `/usr/local/src/httpd-2.4.20/srclib'
make: *** [all-recursive] Error 1
Can you please suggest how I can proceed further?
SquirrelMail is in the epel.repo https://fedoraproject.org/wiki/EPEL
yum install epel-release-6-8.noarch.rpm
https://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum install squirrelmail
Im facing this recently and manage to solved it.. below is the solution i made.
go to srclib folder in httpd
create new file as "Makefile.in"
the content will be like this
BUILD_SUBDIRS = $(AP_BUILD_SRCLIB_DIRS)
CLEAN_SUBDIRS = $(AP_CLEAN_SRCLIB_DIRS)
include $(top_builddir)/build/rules.mk
and save it.
Now you can run make command in httpd folder

Linux 3.13 Kernel Fails to Compile

After configuring various options inside .conf using
$make config
I try to compile the entire linux kernel using
$make
However it throws an error as below:
root#localbox:/LinuxKernel/linux-3.13# make
scripts/kconfig/conf --silentoldconfig Kconfig
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `relocs'.
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
root#localbox:/LinuxKernel/linux-3.13#
I tried to search for .conf by using:
$find -name ".conf"
However it turns up no results. But since make config worked I assume .config must exist somewhere.
Please advise me on how to overcome this annoying problem. I am doing this for the first time and I am not sure if there are any dependencies that have to be installed before trying to compile the kernel. Your feedbacks are highly appreciated.
There must have been some error with make config, e.g. disk full or you aborted it with Ctrl-C. The .config file (not .conf) is right in the main directory.
The error message says it already
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
There are several textbased (config, oldconfig, menuconfig) and graphical (xconfig, gconfig) configuration programs. You might want to pick a graphical one and run it, e.g.
make gconfig
These graphical configurators also help to avoid all the hundreds of irrelevant questions. When you're done selecting the needed options, don't forget to save the .config file and try again compiling the kernel and modules.

Error when using Mingw on Windows

I am completely new to this. I have a C program which compiles fine and runs fine on linux. I want to run the same code on a Windows machine so I am using the cross compiler Mingw. However every time i try and build the project i get this error:
14:51:21 **** Incremental Build of configuration Default for project zbar-0.10 ****
make all
make all-am
make[1]: Entering directory `D:/zbar-0.10'
! was unexpected at this time.
make[1]: *** [include/config.h] Error 255
make[1]: Leaving directory `D:/zbar-0.10'
make: *** [all] Error 2
14:51:26 Build Finished (took 4s.493ms)
I have googled around and still do not understand why i am getting it. Any advice?
Build with exact versions of tools as specified in: http://sourceforge.net/apps/mediawiki/zbar/index.php?title=HOWTO:_Compile_with_MinGW_in_Windows
The code is old and the make will break with newer versions.

Resources