|
|
Re: Linux Header File conflicts [message #1800466 is a reply to message #1800252] |
Sat, 29 December 2018 02:37 |
Steven White 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 |
Tauno Voipio 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
|
|
|
Powered by
FUDForum. Page generated in 0.05364 seconds