Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] bug in xserver compilation?
@ 2016-07-28 20:56 daggs
  2016-07-28 21:04 ` Yann E. MORIN
  2016-07-28 21:30 ` Thomas Petazzoni
  0 siblings, 2 replies; 6+ messages in thread
From: daggs @ 2016-07-28 20:56 UTC (permalink / raw)
  To: buildroot

Greetings,

I'm trying to add a new ddx driver to buildroot from aarch64 and I've encountered a strange issue.
so I've decided to try and reproduce it with are more stable env, Iv'e ran make pc_x86_64_bios_defconfig, then entered menuconfig.
in it I've enable c++ support, modular xserver and finally the intel xf86 video.
I've hit make and waited, when buildroot got to xserver. it failed with the following error more than once:
/home/dagg/workspace/buildroots/buildroot-master3/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/include/xf86drm.h:40:17: fatal error: drm.h: No such file or directory
 #include <drm.h>

I've ran a sanity check on the output dir:
dagg at NCC-5001-D ~/workspace/buildroots/buildroot-master3 $ find output/ -name drm.h
output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/include/drm/drm.h
output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/include/libdrm/drm.h
output/build/libdrm-2.4.70/include/drm/drm.h
output/build/linux-headers-4.6.3/usr/include/drm/drm.h
output/build/linux-headers-4.6.3/drivers/gpu/drm/tegra/drm.h
output/build/linux-headers-4.6.3/include/uapi/drm/drm.h
output/target/usr/include/libdrm/drm.h

I think this is a bug, am I wrong?

the actual config I've used can be found at http://bpaste.net/show/45998ef4aed6

Dagg.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] bug in xserver compilation?
  2016-07-28 20:56 [Buildroot] bug in xserver compilation? daggs
@ 2016-07-28 21:04 ` Yann E. MORIN
  2016-07-29 14:23   ` daggs
  2016-07-28 21:30 ` Thomas Petazzoni
  1 sibling, 1 reply; 6+ messages in thread
From: Yann E. MORIN @ 2016-07-28 21:04 UTC (permalink / raw)
  To: buildroot

Dagg, All,

On 2016-07-28 22:56 +0200, daggs spake thusly:
> I'm trying to add a new ddx driver to buildroot from aarch64 and I've encountered a strange issue.
> so I've decided to try and reproduce it with are more stable env, Iv'e ran make pc_x86_64_bios_defconfig, then entered menuconfig.
> in it I've enable c++ support, modular xserver and finally the intel xf86 video.
> I've hit make and waited, when buildroot got to xserver. it failed with the following error more than once:
> /home/dagg/workspace/buildroots/buildroot-master3/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/include/xf86drm.h:40:17: fatal error: drm.h: No such file or directory
>  #include <drm.h>

The xdriver_xf86-video-intel was updated just tonight. Did you observe
the build failure before it was updated, or after it was?

Regards,
Yann E. MORIN.

> I've ran a sanity check on the output dir:
> dagg at NCC-5001-D ~/workspace/buildroots/buildroot-master3 $ find output/ -name drm.h
> output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/include/drm/drm.h
> output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/include/libdrm/drm.h
> output/build/libdrm-2.4.70/include/drm/drm.h
> output/build/linux-headers-4.6.3/usr/include/drm/drm.h
> output/build/linux-headers-4.6.3/drivers/gpu/drm/tegra/drm.h
> output/build/linux-headers-4.6.3/include/uapi/drm/drm.h
> output/target/usr/include/libdrm/drm.h
> 
> I think this is a bug, am I wrong?
> 
> the actual config I've used can be found at http://bpaste.net/show/45998ef4aed6
> 
> Dagg.
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] bug in xserver compilation?
  2016-07-28 20:56 [Buildroot] bug in xserver compilation? daggs
  2016-07-28 21:04 ` Yann E. MORIN
@ 2016-07-28 21:30 ` Thomas Petazzoni
  2016-07-29 14:25   ` daggs
  1 sibling, 1 reply; 6+ messages in thread
From: Thomas Petazzoni @ 2016-07-28 21:30 UTC (permalink / raw)
  To: buildroot

Hello,

On Thu, 28 Jul 2016 22:56:23 +0200, daggs wrote:

> I'm trying to add a new ddx driver to buildroot from aarch64 and I've encountered a strange issue.
> so I've decided to try and reproduce it with are more stable env, Iv'e ran make pc_x86_64_bios_defconfig, then entered menuconfig.
> in it I've enable c++ support, modular xserver and finally the intel xf86 video.
> I've hit make and waited, when buildroot got to xserver. it failed with the following error more than once:
> /home/dagg/workspace/buildroots/buildroot-master3/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/include/xf86drm.h:40:17: fatal error: drm.h: No such file or directory
>  #include <drm.h>

This is a known issue. Bernd posted a patch to fix it "[PATCH 1/2]
package/x11r7/xserver_xorg-server: add libdrm-specific cflags" but I
wasn't happy with it. You can see my reply from this Monday in the
mailing list archives.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] bug in xserver compilation?
  2016-07-28 21:04 ` Yann E. MORIN
@ 2016-07-29 14:23   ` daggs
  0 siblings, 0 replies; 6+ messages in thread
From: daggs @ 2016-07-29 14:23 UTC (permalink / raw)
  To: buildroot

Greetings Yann
> Dagg, All,
> 
> On 2016-07-28 22:56 +0200, daggs spake thusly:
> > I'm trying to add a new ddx driver to buildroot from aarch64 and I've encountered a strange issue.
> > so I've decided to try and reproduce it with are more stable env, Iv'e ran make pc_x86_64_bios_defconfig, then entered menuconfig.
> > in it I've enable c++ support, modular xserver and finally the intel xf86 video.
> > I've hit make and waited, when buildroot got to xserver. it failed with the following error more than once:
> > /home/dagg/workspace/buildroots/buildroot-master3/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/include/xf86drm.h:40:17: fatal error: drm.h: No such file or directory
> >  #include <drm.h>
> 
> The xdriver_xf86-video-intel was updated just tonight. Did you observe
> the build failure before it was updated, or after it was?
> 
> Regards,
> Yann E. MORIN.
>

I didn't updated my local copy lately.
the issue in hand is with xserver and libdrm.
it seems that libdrm is installed but zserver doesn't find it in the include path. see the compilation error and the find output I've attached.

Dagg.
 
> > I've ran a sanity check on the output dir:
> > dagg at NCC-5001-D ~/workspace/buildroots/buildroot-master3 $ find output/ -name drm.h
> > output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/include/drm/drm.h
> > output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/include/libdrm/drm.h
> > output/build/libdrm-2.4.70/include/drm/drm.h
> > output/build/linux-headers-4.6.3/usr/include/drm/drm.h
> > output/build/linux-headers-4.6.3/drivers/gpu/drm/tegra/drm.h
> > output/build/linux-headers-4.6.3/include/uapi/drm/drm.h
> > output/target/usr/include/libdrm/drm.h
> > 
> > I think this is a bug, am I wrong?
> > 
> > the actual config I've used can be found at http://bpaste.net/show/45998ef4aed6
> > 
> > Dagg.
> > _______________________________________________
> > buildroot mailing list
> > buildroot at busybox.net
> > http://lists.busybox.net/mailman/listinfo/buildroot
> 
> -- 
> .-----------------.--------------------.------------------.--------------------.
> |  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
> | +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
> | +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
> | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
> '------------------------------^-------^------------------^--------------------'
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] bug in xserver compilation?
  2016-07-28 21:30 ` Thomas Petazzoni
@ 2016-07-29 14:25   ` daggs
  2016-07-30 13:52     ` Thomas Petazzoni
  0 siblings, 1 reply; 6+ messages in thread
From: daggs @ 2016-07-29 14:25 UTC (permalink / raw)
  To: buildroot

Greetings Thomas,

> Sent: Friday, July 29, 2016 at 12:30 AM
> From: "Thomas Petazzoni" <thomas.petazzoni@free-electrons.com>
> To: daggs <daggs@gmx.com>
> Cc: buildroot at buildroot.org
> Subject: Re: [Buildroot] bug in xserver compilation?
>
> Hello,
> 
> On Thu, 28 Jul 2016 22:56:23 +0200, daggs wrote:
> 
> > I'm trying to add a new ddx driver to buildroot from aarch64 and I've encountered a strange issue.
> > so I've decided to try and reproduce it with are more stable env, Iv'e ran make pc_x86_64_bios_defconfig, then entered menuconfig.
> > in it I've enable c++ support, modular xserver and finally the intel xf86 video.
> > I've hit make and waited, when buildroot got to xserver. it failed with the following error more than once:
> > /home/dagg/workspace/buildroots/buildroot-master3/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/include/xf86drm.h:40:17: fatal error: drm.h: No such file or directory
> >  #include <drm.h>
> 
> This is a known issue. Bernd posted a patch to fix it "[PATCH 1/2]
> package/x11r7/xserver_xorg-server: add libdrm-specific cflags" but I
> wasn't happy with it. You can see my reply from this Monday in the
> mailing list archives.
> 

thanks for info., is this a version related regression?

Dagg.

> Best regards,
> 
> Thomas
> -- 
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] bug in xserver compilation?
  2016-07-29 14:25   ` daggs
@ 2016-07-30 13:52     ` Thomas Petazzoni
  0 siblings, 0 replies; 6+ messages in thread
From: Thomas Petazzoni @ 2016-07-30 13:52 UTC (permalink / raw)
  To: buildroot

Hello,

On Fri, 29 Jul 2016 16:25:18 +0200, daggs wrote:

> > This is a known issue. Bernd posted a patch to fix it "[PATCH 1/2]
> > package/x11r7/xserver_xorg-server: add libdrm-specific cflags" but I
> > wasn't happy with it. You can see my reply from this Monday in the
> > mailing list archives.
> 
> thanks for info., is this a version related regression?

I have no idea. I believe the problem has existed for a while, but I'm
not sure.

A proper patch is welcome, though :)

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-07-30 13:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-28 20:56 [Buildroot] bug in xserver compilation? daggs
2016-07-28 21:04 ` Yann E. MORIN
2016-07-29 14:23   ` daggs
2016-07-28 21:30 ` Thomas Petazzoni
2016-07-29 14:25   ` daggs
2016-07-30 13:52     ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox