By default, the kernel build system default kernel is compiled locally, that is, the compiled kernel is running on the same architecture as the host system. If you are compiling the kernel for another schema, that is, cross compilation, we need to set two variables: Arch and Cross_compile. which
Arch indicates the target architecture, that is, what platform the compiled kernel runs on, such as x86, ARM, or MIPS.
cross_compile Specifies the prefix of the cross
the following return Skb_copy_datagram_iovec (SKB, 0, iov, Len);#ifLinux_version_code return Skb_copy_datagram_iovec (SKB,0, Iov, Len);#elsestruct iov_iter to; Iov_iter_init (to, READ, iov,1, Len); Return Skb_copy_datagram_iter (SKB,0, to, Len);#endif># Vim driver.c +1194//comment out the original code directly and use the File_inode () function to get the inode#if0if(Filp filp->f_dentry) {Inode= filp->f_dentry->D_inode; }#endifInode=File_inode (FILP); # Backup Source Package >#MVVmnet.TarVmne
The establishment of arm-linux-gcc-3.3.2 cross compiler-Linux general technology-Linux programming and kernel information, the following is a detailed reading. 1: Download arm-linux-gcc-3.3.2.tar.bz2 to any directory
I downloaded it to my tools Folder/home/zt/tools
The arm-
the static library [Default=yes].--ENABLE-FAST-INSTALL[=PKGS]Optimized for quick installation [Default=yes].--with-gnu-ldAssume that the C compiler uses the GNU ld [Default=no].--disable-libtool-lockAvoid lock-in (parallel compilation may be corrupted).--with-picTry using only the Pic/non-pic object [Default=use both].--enable-memory-limitAdded memory limit support at compile time.--disable-url-fopen-wrapperFopen wrapper through URLs is forbidden, an
compiler gcc in Linux environmentGcc:-O compilation chain delivered as executable-O-O1-O2-O3 Compilation optimization-G-G1-G2-G3 generating debug information to an executable file-W Close all warnings-W all,error-wall Show all warnings-werror put all warnings in error-C Compile Build target file not linked-E Pre-compilation-S compiled into a compilation-D Add a macro definition to the command line-X The com
Linux under the compiler program, often encounter "undefined reference to XXX" error,Here is a summary of some possible causes and solutions for the needy friends:Said undefined reference error, first mention the Linux GCC link rules:The search order when linking is:
Path specified by-L, looking from left to right
The path specified by the environmen
Linux compiler installation GCC-5.1.0Linux compiler installation GCC-5.1.0
Compiling C/C ++ programs in Linux naturally lacks an excellent compiler, and GCC is a common tool in Linux. In late April 2015, GCC also came out of versi
GCC: Default compiler for languages (input gcc under Ubuntu, can see if GCC is installed depending on the terminal output)g++: Default compiler for C + + (Ubuntu input g++, can see if g++ is installed according to the terminal output)Under Ubuntu we install both GCC and g++ environments by default:sudo apt-get instal gccsudo apt-get install g++----------------------------------------------------------------
Golang compiler installation and configuration
Golang currently has two compilations, one for Golang and the other for GNU Gccgo;
Golang official compiler installation and configuration
Install the GCC tool, because golang some of the features are written in C, so building a Golang compilation is a must
$ sudo apt-get install Bison gawk gcc Libc6-dev make
Install the mercurial tool to use the HG com
GNU, GCC, G ++ compiler in Linux1. GNUGNU is the abbreviation of "GNU's Not Unix". Stallman announced that GNU should be pronounced as Guh-NOO to avoid confusion with the word "new" (note: in English, Gnu stands for the African Impala. Its pronunciation is the same as that of new)To ensure that the GNU software can be freely used, copied, modified, and released ", all GNU software grants all rights to anyone in a copy of the terms of the agreement, GN
Ubuntu also ushered in its new generation of long-term support version 14.04 LTS, which brought a lot of new and exciting, so decided to upgrade.Installed the 64-bit version and install the Linux cross-compilation toolchainRun Gcc,${cross_compile}gcc-vThe classic "No file or directory" hint will still be prompted.Based on previous experience, for the 64-bit version of Ubuntu we need to install the "Ia32-libs" dependent library.Then enter:
sud
Two articles on the role of Linux kernel compiler config_modversions.
In general, if you do not select Config_modversions, these symbols are normal strings, and if you select Config_modversions, the symbols are followed by a check string. This is done to prevent the Linux kernel from crashing when the module does not load properly.
One
If the kernel chooses the c
Installing Nginx under Linux#./configure--prefix=/usr/local/nginx If you are prompted for a missing Pcre library, download from http://www.pcre.org/(wget ftp://ftp.csx.cam.ac.uk/pub/ SOFTWARE/PROGRAMMING/PCRE/PCRE-8.37.TAR.BZ2) Assume that the decompression in/usr/local/src/pcre-8.37 is assumed to be installed in the/usr/local/pcreConfiguration:./configure--prefix=/usr/local/nginx \>--with-pcre=/usr/local/src/pcre-8.37 EnterThen compile:Make make ins
Nowadays, the compiler is changing rapidly, and accidentally lags behind the times. In the past, many programs were compiled with g77. In the new Linux system, g77 has been completely replaced by gfortran. However, the problem is that gfortran is not fully compatible with g77 in the past, and it is unlikely to complete the modification program .. Helpless, so I had to explore for myself as an amateur. I use
Modifying the VIM CompilerCreate the. vimrc file under the root directory and copy and save the code below.Create a. vimrc file in the root directory so that you can write code as an administratorNote: (This vim text compiler needs to install the Python and g++ compilers in the Linux environment first)My VIM configuration mainly has the following advantages:1. Press F5 to directly compile and execute C, C +
System Ubuntu14.04Version: GCC version 4.7.3 20130328 (prerelease) (Crosstool-ng Linaro-1.13.1-4.7-2013.04-20130415-linaro gcc 2013.04)Specific configuration similar to other compilers: Arm-fsl-linux-gnueabi Cross compiler installationNot specifically.After matching, error Libstdc++.so.6:cannot open shared object file:no such file or directory.Online will say directly install 32-bit libstd32c++6sudo apt-get
directly after the '/extension_dir ' search, found after this may be:Extension_dir = "./"To be modified to:Extension_dir = "/var/www/php/lib/php/extensions/" (note where the so file is located)extension=openssl.so (so module file name)Last Save exit! : wq!Then you restart the Apache server! (there is said that people do not, but also a command, I think the configuration is good to restart or peace of mind!) )You can use the command to view the next PHP run load:/var/www/php/bin/php-m|grep OpenS
/BASES/CONSOLE.C:24: References not defined for ' pyerr_print '/HOME/BILL/DOWNLOADS/CX_FREEZE-4.3.3/SOURCE/BASES/CONSOLE.C:25: References not defined for ' py_fatalerror 'BUILD/TEMP.LINUX-X86_64-2.7/SOURCE/BASES/CONSOLE.O: In the function ' Fatalscripterror ':/HOME/BILL/DOWNLOADS/CX_FREEZE-4.3.3/SOURCE/BASES/CONSOLE.C:36: References not defined for ' pyerr_print 'Collect2:error:ld returned 1 exit statusError:command ' X86_64-LINUX-GNU-GCC ' failed wit
Recently want to write C, C + + aspects of the program, so I would like to find a Linux editor to use, looking for a lot also tried a lot, and finally locked the codeblocks. The following is an introduction to him and some installation procedures. Apply to all Linux bar. (Sometimes it just takes a train of thought, all the others are almost the same)
(excerpt) Code::Blocks, sometimes also simply called "Co
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.