Eu estou tentando construir a versão 2.6.32.69 do Linux Kernel para uma placa versátil, mas recebi este erro durante a etapa de compilação
init/mounts.o: In function 'tty_port_users':
do_mounts_initrd.c:(.text+0x0): multiple definition of 'tty_port_users'
init/main.o:main.c:(.text+0x0): first defined here
scripts/Makefile.build:297: recipe for target 'init/built-in.o' failed
make[1]: *** [init/built-in.o] Error 1
Makefile:881: recipe for target 'init' failed
make: *** [init] Error 2
Eu executei os seguintes comandos (em ordem)
$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- versatile_defconfig
$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- zImage
O resultado de arm-linux-gnueabi-gcc -v
Eu acho que a versão 2.6.32.69 é muito antiga Eu já tentei a versão 4.2 e tudo correu bem, mas eu acho que deve haver uma maneira de resolver este problema. obrigado pelo seu interesseUsing built-in specs. COLLECT_GCC=arm-linux-gnueabi-gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc-cross/arm-linux-gnueabi/5/lto-wrapper Target: arm-linux-gnueabi Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.2.1-22ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libitm --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-armel-cross/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-armel-cross --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-armel-cross --with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libgcj --enable-objc-gc --enable-multiarch --enable-multilib --disable-sjlj-exceptions --with-arch=armv5t --with-float=soft --disable-werror --enable-multilib --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=arm-linux-gnueabi --program-prefix=arm-linux-gnueabi- --includedir=/usr/arm-linux-gnueabi/include Thread model: posix gcc version 5.2.1 20151010 (Ubuntu 5.2.1-22ubuntu1)