Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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] Sat, 22 December 2018 01:38 Go to next message
Steven White is currently offline Steven WhiteFriend
Messages: 2
Registered: December 2018
Junior Member
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 09:04 Go to previous messageGo to next message
Tauno Voipio is currently offline Tauno VoipioFriend
Messages: 742
Registered: August 2014
Senior Member
Are you attempting to cross-compile?

Please show the 'Includes' part of the project explorer.


--

Tauno Voipio
Re: Linux Header File conflicts [message #1800466 is a reply to message #1800252] Sat, 29 December 2018 02:37 Go to previous messageGo to next message
Steven White is currently offline Steven WhiteFriend
Messages: 2
Registered: December 2018
Junior Member
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 19:32 Go to previous message
Tauno Voipio is currently offline Tauno VoipioFriend
Messages: 742
Registered: August 2014
Senior Member
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?


--

Tauno Voipio
Previous Topic:Eclipse windows across multiple monitors
Next Topic:EMF,Graphiti Training
Goto Forum:
  


Current Time: Fri Mar 29 09:47:56 GMT 2024

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

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

Back to the top