https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63592
Bug ID: 63592 Summary: Linux kernel build failure due to duplicate exported symbols Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: sasha.levin at oracle dot com CC: mpolacek at gcc dot gnu.org Hi, I'm seeing the following build failure with the Linux Kernel: /home/sasha/linux-next/lib/mpi/mpi-inline.h:82: multiple definition of `mpihelp_sub_1' lib/mpi/generic_mpih-lshift.o:/home/sasha/linux-next/lib/mpi/mpi-inline.h:82: first defined here lib/mpi/mpih-div.o: In function `mpihelp_sub': /home/sasha/linux-next/lib/mpi/mpi-inline.h:110: multiple definition of `mpihelp_sub' lib/mpi/generic_mpih-lshift.o:/home/sasha/linux-next/lib/mpi/mpi-inline.h:110: first defined here lib/mpi/mpih-mul.o: In function `mpihelp_add_1': /home/sasha/linux-next/lib/mpi/mpi-inline.h:39: multiple definition of `mpihelp_add_1' lib/mpi/generic_mpih-lshift.o:/home/sasha/linux-next/lib/mpi/mpi-inline.h:39: first defined here lib/mpi/mpih-mul.o: In function `mpihelp_add': /home/sasha/linux-next/lib/mpi/mpi-inline.h:67: multiple definition of `mpihelp_add' lib/mpi/generic_mpih-lshift.o:/home/sasha/linux-next/lib/mpi/mpi-inline.h:67: first defined here lib/mpi/mpih-mul.o: In function `mpihelp_sub_1': /home/sasha/linux-next/lib/mpi/mpi-inline.h:82: multiple definition of `mpihelp_sub_1' lib/mpi/generic_mpih-lshift.o:/home/sasha/linux-next/lib/mpi/mpi-inline.h:82: first defined here lib/mpi/mpih-mul.o: In function `mpihelp_sub': /home/sasha/linux-next/lib/mpi/mpi-inline.h:110: multiple definition of `mpihelp_sub' lib/mpi/generic_mpih-lshift.o:/home/sasha/linux-next/lib/mpi/mpi-inline.h:110: first defined here lib/mpi/mpi-pow.o: In function `mpihelp_add': /home/sasha/linux-next/lib/mpi/mpi-inline.h:67: multiple definition of `mpihelp_add' lib/mpi/generic_mpih-lshift.o:/home/sasha/linux-next/lib/mpi/mpi-inline.h:67: first defined here lib/mpi/mpi-pow.o: In function `mpihelp_sub_1': /home/sasha/linux-next/lib/mpi/mpi-inline.h:82: multiple definition of `mpihelp_sub_1' lib/mpi/generic_mpih-lshift.o:/home/sasha/linux-next/lib/mpi/mpi-inline.h:82: first defined here lib/mpi/mpi-pow.o: In function `mpihelp_sub': /home/sasha/linux-next/lib/mpi/mpi-inline.h:110: multiple definition of `mpihelp_sub' lib/mpi/generic_mpih-lshift.o:/home/sasha/linux-next/lib/mpi/mpi-inline.h:110: first defined here lib/mpi/mpi-pow.o: In function `mpihelp_add_1': /home/sasha/linux-next/lib/mpi/mpi-inline.h:39: multiple definition of `mpihelp_add_1' lib/mpi/generic_mpih-lshift.o:/home/sasha/linux-next/lib/mpi/mpi-inline.h:39: first defined here lib/mpi/mpiutil.o: In function `mpihelp_add': /home/sasha/linux-next/lib/mpi/mpi-inline.h:67: multiple definition of `mpihelp_add' lib/mpi/generic_mpih-lshift.o:/home/sasha/linux-next/lib/mpi/mpi-inline.h:67: first defined here lib/mpi/mpiutil.o: In function `mpihelp_sub_1': /home/sasha/linux-next/lib/mpi/mpi-inline.h:82: multiple definition of `mpihelp_sub_1' lib/mpi/generic_mpih-lshift.o:/home/sasha/linux-next/lib/mpi/mpi-inline.h:82: first defined here lib/mpi/mpiutil.o: In function `mpihelp_sub': /home/sasha/linux-next/lib/mpi/mpi-inline.h:110: multiple definition of `mpihelp_sub' lib/mpi/generic_mpih-lshift.o:/home/sasha/linux-next/lib/mpi/mpi-inline.h:110: first defined here lib/mpi/mpiutil.o: In function `mpihelp_add_1': /home/sasha/linux-next/lib/mpi/mpi-inline.h:39: multiple definition of `mpihelp_add_1' lib/mpi/generic_mpih-lshift.o:/home/sasha/linux-next/lib/mpi/mpi-inline.h:39: first defined here make[1]: *** [lib/mpi/mpi.o] Error 1 make: *** [lib/mpi/] Error 2 This was bisected down to GCC commit: commit b2601928b5bf34a817b5a9a2a371c476018e634d Author: mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Wed Oct 15 10:08:00 2014 +0000 * doc/invoke.texi: Update to reflect that GNU11 is the default mode for C. * c-common.h (c_language_kind): Update comment. c-family/ * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@216247 138bc75d-0d04-0410-961f-82ee72b054a4