Skip to main content



      Home
Home » Newcomers » Newcomers » Linux Header File conflicts(these Linux header file conflicts are kiliing my build of a C/C++ project.)
Linux Header File conflicts [message #1800248] Fri, 21 December 2018 20:38 Go to next message
Eclipse UserFriend
Is there any way to bypass internal conflicts in the Linux header files when I'm trying to do an Eclipse build? I need to include these header files, of course, but I shouldn't have to resolve these open-source errors (such as previous declaration of a function in another header file) every time I want to build.
Thanks,
Steve
Re: Linux Header File conflicts [message #1800252 is a reply to message #1800248] Sat, 22 December 2018 04:04 Go to previous messageGo to next message
Eclipse UserFriend
Are you attempting to cross-compile?

Please show the 'Includes' part of the project explorer.
Re: Linux Header File conflicts [message #1800466 is a reply to message #1800252] Fri, 28 December 2018 21:37 Go to previous messageGo to next message
Eclipse UserFriend
No I'm not cross compiling yet.

Here's a small section of the build error listing :
In file included from ./include/linux/irqflags.h:16:0,

from ./arch/x86/include/asm/processor.h:33,

from ./arch/x86/include/asm/cpufeature.h:5,

from ./arch/x86/include/asm/thread_info.h:53,

from ./include/linux/thread_info.h:38,
from ./arch/x86/include/asm/preempt.h:7,

from ./include/linux/preempt.h:81,

from ./include/linux/spinlock.h:51,

from ./include/linux/seqlock.h:36,

from ./include/linux/time.h:6,

from ./include/linux/skbuff.h:19,

from ./include/linux/tcp.h:21,

from ./include/net/tcp.h:24,

from /home/sfm/eclipse-workspace/eth_i40e_2.4.10/src/i40e.h:27,

from /home/sfm/eclipse-workspace/eth_i40e_2.4.10/src/kcompat.c:24:
./include/asm-generic/irqflags.h:48:20:
error: redefinition of 'arch_local_irq_enable'
static inline void arch_local_irq_enable(void)


In file included from ./arch/x86/include/asm/special_insns.h:145:0,

from ./arch/x86/include/asm/processor.h:24,

from ./arch/x86/include/asm/cpufeature.h:5,

from ./arch/x86/include/asm/thread_info.h:53,

from ./include/linux/thread_info.h:38,

from ./arch/x86/include/asm/preempt.h:7,

from ./include/linux/preempt.h:81,

from ./include/linux/spinlock.h:51,

from ./include/linux/seqlock.h:36,

from ./include/linux/time.h:6,

from ./include/linux/skbuff.h:19,

from ./include/linux/tcp.h:21,

from ./include/net/tcp.h:24,

from /home/sfm/eclipse-workspace/eth_i40e_2.4.10/src/i40e.h:27,

from /home/sfm/eclipse-workspace/eth_i40e_2.4.10/src/kcompat.c:24:
./arch/x86/include/asm/paravirt.h:786:28:
note: previous definition of 'arch_local_irq_enable' was here
static inline notrace void arch_local_irq_enable(void)

The includes are the typical x86_64_linux_gnu paths.

The build seems to be conflating the ARCH header files with the Linux header files?? and finding conflicting declarations for the same function.

Re: Linux Header File conflicts [message #1800483 is a reply to message #1800466] Sat, 29 December 2018 14:32 Go to previous message
Eclipse UserFriend
It seems to me that you're not attempting to compile something for the userspace of your development machine.

You did not show the 'Includes' part of Eclipse project explorer on you project.

Would you please tell what you're attempting to achieve and on which host system?
Previous Topic:Eclipse windows across multiple monitors
Next Topic:EMF,Graphiti Training
Goto Forum:
  


Current Time: Wed Jul 23 13:43:09 EDT 2025

Powered by FUDForum. Page generated in 0.08354 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top