* 3.7-rc-1 Release Causing application failure for compilation
@ 2012-10-18 16:19 Prabhakar Lad
2012-10-18 18:39 ` Baruch Siach
0 siblings, 1 reply; 3+ messages in thread
From: Prabhakar Lad @ 2012-10-18 16:19 UTC (permalink / raw)
To: linux-arm-kernel
Hi All,
I have updated to 3.7-rc1 kernel version with latest head with
commit-id 43c422eda99b894f18d1cca17bcd2401efaf7bd0
but when I try to cross compile the Application I am getting following errors.
/home/plad/ti/linus/linus/include/linux/types.h:14:26: error:
conflicting types for 'fd_set'
/home/plad/CodeSourcery/Sourcery_G++_Lite/bin/../arm-none-linux-gnueabi/libc/usr/include/sys/select.h:78:5:
note: previous declaration of 'fd_set' was here
/home/plad/ti/linus/linus/include/linux/types.h:15:25: error:
conflicting types for 'dev_t'
/home/plad/CodeSourcery/Sourcery_G++_Lite/bin/../arm-none-linux-gnueabi/libc/usr/include/sys/types.h:61:17:
note: previous declaration of 'dev_t' was here
/home/plad/ti/linus/linus/include/linux/types.h:17:26: error:
conflicting types for 'mode_t'
/home/plad/CodeSourcery/Sourcery_G++_Lite/bin/../arm-none-linux-gnueabi/libc/usr/include/sys/types.h:71:18:
note: previous declaration of 'mode_t' was here
/home/plad/ti/linus/linus/include/linux/types.h:25:26: error:
conflicting types for 'timer_t'
/home/plad/CodeSourcery/Sourcery_G++_Lite/bin/../arm-none-linux-gnueabi/libc/usr/include/time.h:104:19:
note: previous declaration of 'timer_t' was here
/home/plad/ti/linus/linus/include/linux/types.h:134:23: error:
conflicting types for 'blkcnt_t'
/home/plad/CodeSourcery/Sourcery_G++_Lite/bin/../arm-none-linux-gnueabi/libc/usr/include/sys/types.h:236:20:
note: previous declaration of 'blkcnt_t' was here
I use the codesourcery toolchain for cross compiling the applications
for ARM. The same compiler is used to build the uImage for ARM, but
when I try building the apps I see this issue. Can any help me out in
fixing this.
Regards,
--Prabhakar Lad
^ permalink raw reply [flat|nested] 3+ messages in thread
* 3.7-rc-1 Release Causing application failure for compilation
2012-10-18 16:19 3.7-rc-1 Release Causing application failure for compilation Prabhakar Lad
@ 2012-10-18 18:39 ` Baruch Siach
2012-10-22 5:09 ` Prabhakar Lad
0 siblings, 1 reply; 3+ messages in thread
From: Baruch Siach @ 2012-10-18 18:39 UTC (permalink / raw)
To: linux-arm-kernel
Hello Prabhakar Lad,
On Thu, Oct 18, 2012 at 09:49:34PM +0530, Prabhakar Lad wrote:
> I have updated to 3.7-rc1 kernel version with latest head with
> commit-id 43c422eda99b894f18d1cca17bcd2401efaf7bd0
> but when I try to cross compile the Application I am getting following errors.
>
> /home/plad/ti/linus/linus/include/linux/types.h:14:26: error:
> conflicting types for 'fd_set'
> /home/plad/CodeSourcery/Sourcery_G++_Lite/bin/../arm-none-linux-gnueabi/libc/usr/include/sys/select.h:78:5:
> note: previous declaration of 'fd_set' was here
> /home/plad/ti/linus/linus/include/linux/types.h:15:25: error:
[snip]
> I use the codesourcery toolchain for cross compiling the applications
> for ARM. The same compiler is used to build the uImage for ARM, but
> when I try building the apps I see this issue. Can any help me out in
> fixing this.
It seems that you are including kernel headers directly in your userspace
code. Don't do that. Types defined in kernel headers conflict with types
defined in your toolchain's kernel headers. Instead, just use the headers that
are part of your toolchain, which in turn include kernel headers that your
toolchain was built with.
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 3+ messages in thread
* 3.7-rc-1 Release Causing application failure for compilation
2012-10-18 18:39 ` Baruch Siach
@ 2012-10-22 5:09 ` Prabhakar Lad
0 siblings, 0 replies; 3+ messages in thread
From: Prabhakar Lad @ 2012-10-22 5:09 UTC (permalink / raw)
To: linux-arm-kernel
Hi Baruch,
On Fri, Oct 19, 2012 at 12:09 AM, Baruch Siach <baruch@tkos.co.il> wrote:
> Hello Prabhakar Lad,
>
> On Thu, Oct 18, 2012 at 09:49:34PM +0530, Prabhakar Lad wrote:
>> I have updated to 3.7-rc1 kernel version with latest head with
>> commit-id 43c422eda99b894f18d1cca17bcd2401efaf7bd0
>> but when I try to cross compile the Application I am getting following errors.
>>
>> /home/plad/ti/linus/linus/include/linux/types.h:14:26: error:
>> conflicting types for 'fd_set'
>> /home/plad/CodeSourcery/Sourcery_G++_Lite/bin/../arm-none-linux-gnueabi/libc/usr/include/sys/select.h:78:5:
>> note: previous declaration of 'fd_set' was here
>> /home/plad/ti/linus/linus/include/linux/types.h:15:25: error:
>
> [snip]
>
>> I use the codesourcery toolchain for cross compiling the applications
>> for ARM. The same compiler is used to build the uImage for ARM, but
>> when I try building the apps I see this issue. Can any help me out in
>> fixing this.
>
> It seems that you are including kernel headers directly in your userspace
> code. Don't do that. Types defined in kernel headers conflict with types
> defined in your toolchain's kernel headers. Instead, just use the headers that
> are part of your toolchain, which in turn include kernel headers that your
> toolchain was built with.
>
Thanks for the reply, got it fixed :)
Regards,
--Prabhakar Lad
> baruch
>
> --
> http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
> =}------------------------------------------------ooO--U--Ooo------------{=
> - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-10-22 5:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-18 16:19 3.7-rc-1 Release Causing application failure for compilation Prabhakar Lad
2012-10-18 18:39 ` Baruch Siach
2012-10-22 5:09 ` Prabhakar Lad
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).