hardkernel / linux

Linux kernel source tree
Other
427 stars 406 forks source link

Cannot compile kernel: symbol 'cpu_ca15_switch_mm' is already defined #369

Open yrzr opened 5 years ago

yrzr commented 5 years ago

I am compiling the kernel (with release 4.14.94-155) on OdroidXu4 when I encountered the problem:

# make
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CHK     include/generated/bounds.h
  CHK     include/generated/timeconst.h
  CHK     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  CHK     scripts/mod/devicetable-offsets.h
  CHK     include/generated/compile.h
  AS      arch/arm/mm/proc-v7.o
arch/arm/mm/proc-v7.S: Assembler messages:
arch/arm/mm/proc-v7.S:620: Error:symbol 'cpu_ca15_switch_mm' is already defined
make[1]: *** [scripts/Makefile.build:427: arch/arm/mm/proc-v7.o] Error 1
make: *** [Makefile:1039: arch/arm/mm] Error 2
# gcc -v 
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/armv7a-hardfloat-linux-gnueabi/7.3.0/lto-wrapper
Target: armv7a-hardfloat-linux-gnueabi
Configured with: /var/tmp/portage/sys-devel/gcc-7.3.0-r3/work/gcc-7.3.0/configure --host=armv7a-hardfloat-linux-gnueabi --build=armv7a-hardfloat-linux-gnueabi --prefix=/usr --bindir=/usr/armv7a-hardfloat-linux-gnueabi/gcc-bin/7.3.0 --includedir=/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/7.3.0/include --datadir=/usr/share/gcc-data/armv7a-hardfloat-linux-gnueabi/7.3.0 --mandir=/usr/share/gcc-data/armv7a-hardfloat-linux-gnueabi/7.3.0/man --infodir=/usr/share/gcc-data/armv7a-hardfloat-linux-gnueabi/7.3.0/info --with-gxx-include-dir=/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/7.3.0/include/g++-v7 --with-python-dir=/share/gcc-data/armv7a-hardfloat-linux-gnueabi/7.3.0/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 7.3.0-r3 p1.4' --disable-esp --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --disable-multilib --disable-altivec --disable-fixed-point --with-float=hard --with-arch=armv7-a --with-float=hard --with-fpu=vfpv3-d16 --enable-libgomp --disable-libmudflap --disable-libssp --disable-libcilkrts --disable-libmpx --enable-vtable-verify --enable-libvtv --enable-lto --without-isl --enable-libsanitizer --enable-default-pie --enable-default-ssp
Thread model: posix
gcc version 7.3.0 (Gentoo 7.3.0-r3 p1.4)
mdrjr commented 5 years ago

see #365 if it helps you

mdrjr commented 5 years ago

I'll keep this issue open, next kernel release I'll incorporate that patch.

yrzr commented 4 years ago

@mdrjr Hi, any detailed plan to merge that patch?

Nox996 commented 4 years ago

Hi @mdrjr , I would also be highly interested in the merge of that patch. Any plans when this will be merged?

Thank you very much in advance!