Issue while building the kernel for Wilink8 module - linux

I am trying to integrate the Wilink8 WiFi module with the ZedBoard(Zync series SoC from Xilinx) and when i tried to compile mine linux- Kernel to create the uImage, I am getting the following error:
In file included from drivers/net/wireless/ti/wlcore/main.c:43:0:
drivers/net/wireless/ti/wlcore/version.h:1:39: error: macro "__TIMESTAMP__" might prevent reproducible builds [-Werror=date-time]static const char *wlcore_timestamp = __TIMESTAMP__;
drivers/net/wireless/ti/wlcore/main.c:5911:2: warning: initialization from incompatible pointer type
.sched_scan_stop = wl1271_op_sched_scan_stop,
drivers/net/wireless/ti/wlcore/main.c:5911:2: warning: (near initialization for 'wl1271_ops.sched_scan_stop')
cc1: some warnings being treated as errors
make[5]: *** [drivers/net/wireless/ti/wlcore/main.o] Error 1
make[4]: *** [drivers/net/wireless/ti/wlcore] Error 2
make[3]: *** [drivers/net/wireless/ti] Error 2
make[2]: *** [drivers/net/wireless] Error 2
make[1]: *** [drivers/net] Error 2
make: *** [drivers] Error 2
Can you help me to rectify this.

You may disable treating this warning as error as desribed in this post or remove line containing timestamp macro from driver source code.

Related

SeedLabs Firewall Lab: Implement a Simple Kernel Module, failure to build a kernel module

I'm following the steps from here at 3.1 Task 1.A: Implement a Simple Kernel Module:
https://seedsecuritylabs.org/Labs_20.04/Files/Firewall/Firewall.pdf
Everything was fine until I ran the make command. the hello.ko file wasn't generated and I don't know what's wrong.
make -C /lib/modules/5.11.0-38-generic/build M=/home/seed/Downloads/Labsetup/Files/kernel_module modules
make[1]: Entering directory '/usr/src/linux-headers-5.11.0-38-generic'
CC [M] /home/seed/Downloads/Labsetup/Files/kernel_module/hello.o
MODPOST /home/seed/Downloads/Labsetup/Files/kernel_module/Module.symvers
ERROR: modpost: missing MODULE_LICENSE() in /home/seed/Downloads/Labsetup/Files/kernel_module/hello.o
make[2]: *** [scripts/Makefile.modpost:124: /home/seed/Downloads/Labsetup/Files/kernel_module/Module.symvers] Error 1
make[2]: *** Deleting file '/home/seed/Downloads/Labsetup/Files/kernel_module/Module.symvers'
make[1]: *** [Makefile:1753: modules] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.11.0-38-generic'
make: *** [Makefile:4: all] Error 2
ERROR: modpost: missing MODULE_LICENSE() in /home/seed/Downloads/Labsetup/Files/kernel_module/hello.o
You must add the license in hello.c.
e.g.
MODULE_LICENSE("GPL");

fatal error: boost/algorithm/string/trim.hpp: No such file or directory, no root access

I am trying to compile BRHCLUS, a package part of OrthoDB. I do not have root access but I did load the module boost. I keep getting the fatal error when trying to make all. Any ideas as to what the issue is?
Compiling pairdataset.cpp
In file included from pairdataset.cpp:22:0:
pairdataset.h:37:10: fatal error: boost/algorithm/string/trim.hpp: No such file or directory
#include <boost/algorithm/string/trim.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [.linux/pairdataset.o] Error 1
make[1]: *** [src] Error 2
make: *** [all] Error 2

getting error FATAL: /home/labuser/b.o has no symtab? make[1]: *** [__modpost] Error 1 on compiling a linux driver file

I have written wrapper functions for LED management in C. Basically i am using device drivers in Linux programming. But on compiling i am getting the following Error.
make -C /usr/src/linux-headers-3.13.0-44-generic/ M=pwd modules
make: Entering directory `/usr/src/linux-headers-3.13.0-44-generic'
Building modules, stage 2.
MODPOST 1 modules
FATAL: /home/labuser/b.o has no symtab?
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
make: Leaving directory `/usr/src/linux-headers-3.13.0-44-generic'
I am using kernel space header files. and compiling the file using makefile. What can be the probable cause of this Error??

Error building HHVM on Amazon Linux 2014.03 (unrecognized command line option ‘-fno-canonical-system-headers’)

I'm following the process https://github.com/facebook/hhvm/wiki/Building-and-installing-HHVM-on-Amazon-Linux-2014.03.
At the time of compilation and installation:
[root#ip-172-31-19-191 hhvm]# make
[ 0%] Building CXX object hphp/third_party/folly/CMakeFiles/folly.dir/folly/Demangle.cpp.o
c++: error: unrecognized command line option ‘-fno-canonical-system-headers’
make[2]: *** [hphp/third_party/folly/CMakeFiles/folly.dir/folly/Demangle.cpp.o] Error 1
make[1]: *** [hphp/third_party/folly/CMakeFiles/folly.dir/all] Error 2
make: *** [all] Error 2
Anyone know why the compiler is not recognizing this command?

OpenMPI 1.6.3- 64 bit installation failure in CentOS 6.3

How to install OpenMPI 1.6.3 - 64 bit version in a machine with CUDA 5.0 installed already. OS using is CentOS 6.3 x86_64.
After doing the configure i gave the command make. At last it is showing some conflict with the CUDA include files.
I
have gave the following options in configure command
./configure --enable-heterogeneous --enable-cxx-exceptions --enable-opal-multi-threads --enable-mpi-thread-multiple --with-wrapper-cflags=-m64 --with-wrapper-cxxflags=-m64 --with-wrapper-ldflags=-m64 --with-wrapper-libs=-m64 --with-wrapper-fflags=-m64 --with-wrapper-fcflags=-m64 --with-exflags=-m64 --with-timer=TYPE CFLAGS=-m64 LDFLAGS=-m64 CPPFLAGS=-m64 CXXFLAGS=-m64 CCASFLAGS=-m64 FFLAGS=-m64 FCFLAGS=-m64 --prefix=/usr/local/openmpi
configure command successfully executed. After that i gave
make
After a lot of output i got the following errors in the terminal.
Making all in vtlib
make[5]: Entering directory `/Softwares/OpenMPI/openmpi-1.6.3/ompi/contrib/vt/vt/vtlib'
CC vt_comp_gnu.lo
CC vt_getcpu.lo
CC vt_gpu.lo
CC vt_cudartwrap.lo
vt_cudartwrap.c:145: error: conflicting types for 'cudaGetSymbolAddress'
/usr/local/cuda/include/cuda_runtime_api.h:4263: note: previous declaration of 'cudaGetSymbolAddress' was here
vt_cudartwrap.c:164: error: conflicting types for 'cudaGetSymbolSize'
/usr/local/cuda/include/cuda_runtime_api.h:4285: note: previous declaration of 'cudaGetSymbolSize' was here
vt_cudartwrap.c:392: error: conflicting types for 'cudaGetTextureReference'
/usr/local/cuda/include/cuda_runtime_api.h:5055: note: previous declaration of 'cudaGetTextureReference' was here
vt_cudartwrap.c:501: error: conflicting types for 'cudaFuncGetAttributes'
/usr/local/cuda/include/cuda_runtime_api.h:2241: note: previous declaration of 'cudaFuncGetAttributes' was here
vt_cudartwrap.c:797: error: conflicting types for 'cudaFuncSetCacheConfig'
/usr/local/cuda/include/cuda_runtime_api.h:2122: note: previous declaration of 'cudaFuncSetCacheConfig' was here
vt_cudartwrap.c:969: error: conflicting types for 'cudaGetSurfaceReference'
/usr/local/cuda/include/cuda_runtime_api.h:5110: note: previous declaration of 'cudaGetSurfaceReference' was here
vt_cudartwrap.c:1565: error: conflicting types for 'cudaFuncSetSharedMemConfig'
/usr/local/cuda/include/cuda_runtime_api.h:2173: note: previous declaration of 'cudaFuncSetSharedMemConfig' was here
make[5]: *** [vt_cudartwrap.lo] Error 1
make[5]: Leaving directory `/Softwares/OpenMPI/openmpi-1.6.3/ompi/contrib/vt/vt/vtlib'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/Softwares/OpenMPI/openmpi-1.6.3/ompi/contrib/vt/vt'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/Softwares/OpenMPI/openmpi-1.6.3/ompi/contrib/vt/vt'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/Softwares/OpenMPI/openmpi-1.6.3/ompi/contrib/vt'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/Softwares/OpenMPI/openmpi-1.6.3/ompi'
make: *** [all-recursive] Error 1
The problem is not in Open MPI buth rather with the bundled VampirTrace library. Simply configure the build with --disable-vt. 1.6.1 does not build VT by default. Maybe 1.6.3 had this changed. If you need MPI tracing, obtain the latest VampirTrace from its home site and build it separately.
This answer is provided by Hristo Iliev Nov 16 at 12:35

Resources