Skip to contentSkip to conversation

build errors on kinect and rc-main - 2.6.38

PATCH Superseded Nicolas WILL 6 participants 11 messages May 25, 2011 – May 26, 2011 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Hello,

I'm trying to build the media tree using the automatic script and end-up with at least two errors not allowing me to move forward positively.

Ubuntu 11.04 x86_64 2.6.38-8-generic

First one is on Kinect (don't need it, I can disable the build):

CC [M] /home/nico/src/media_build/v4l/kinect.o
/home/nico/src/media_build/v4l/kinect.c:38:19: error: 'D_ERR' undeclared here (not in a function) /home/nico/src/media_build/v4l/kinect.c:38:27: error: 'D_PROBE' undeclared here (not in a function) /home/nico/src/media_build/v4l/kinect.c:38:37: error: 'D_CONF' undeclared here (not in a function) /home/nico/src/media_build/v4l/kinect.c:38:46: error: 'D_STREAM' undeclared here (not in a function) /home/nico/src/media_build/v4l/kinect.c:38:57: error: 'D_FRAM' undeclared here (not in a function) /home/nico/src/media_build/v4l/kinect.c:38:66: error: 'D_PACK' undeclared here (not in a function) /home/nico/src/media_build/v4l/kinect.c:39:2: error: 'D_USBI' undeclared here (not in a function) /home/nico/src/media_build/v4l/kinect.c:39:11: error: 'D_USBO' undeclared here (not in a function) /home/nico/src/media_build/v4l/kinect.c:39:20: error: 'D_V4L2' undeclared here (not in a function) make[3]: *** [/home/nico/src/media_build/v4l/kinect.o] Error 1
make[2]: *** [_module_/home/nico/src/media_build/v4l] Error 2

The second one is on rc-main (I probably need that!):

CC [M] /home/nico/src/media_build/v4l/rc-main.o
/home/nico/src/media_build/v4l/rc-main.c: In function 'rc_allocate_device':
/home/nico/src/media_build/v4l/rc-main.c:993:29: warning: assignment from incompatible pointer type /home/nico/src/media_build/v4l/rc-main.c:994:29: warning: assignment from incompatible pointer type
CC [M] /home/nico/src/media_build/v4l/ir-raw.o
CC [M] /home/nico/src/media_build/v4l/mipi-csis.o
/home/nico/src/media_build/v4l/mipi-csis.c:29:28: fatal error: plat/mipi_csis.h: No such file or directory compilation terminated.

Thanks for looking into it!

Nico

#1 lore raw

Re: build errors on kinect and rc-main - 2.6.38 (mipi-csis not rc-main)

Quoted 10 lines · Nicolas WILL

The second one is on rc-main (I probably need that!):

CC [M] /home/nico/src/media_build/v4l/rc-main.o
/home/nico/src/media_build/v4l/rc-main.c: In function 'rc_allocate_device':
/home/nico/src/media_build/v4l/rc-main.c:993:29: warning: assignment from incompatible pointer type /home/nico/src/media_build/v4l/rc-main.c:994:29: warning: assignment from incompatible pointer type
CC [M] /home/nico/src/media_build/v4l/ir-raw.o
CC [M] /home/nico/src/media_build/v4l/mipi-csis.o
/home/nico/src/media_build/v4l/mipi-csis.c:29:28: fatal error: plat/mipi_csis.h: No such file or directory compilation terminated.

Oh, not rc-main, but mipi-csis!

Sorry...

Nico

#2 lore raw

PATCH 1/1 s5p-csis: Add missing dependency on PLAT_S5P

s5p-csis is to be built only on S5P SoC platforms.

---

Hi Nicolas,

On x86 mipi-csis build should be disabled. This patch should the issue.

Regards,
Sylwester Nawrocki
Samsung Poland R&D Center

---
 drivers/media/video/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/media/video/Kconfig +1 -1
index cf5a1f6..bd739a6 100644
@@ -954,7 +954,7 @@ config  VIDEO_SAMSUNG_S5P_FIMC
 
 config VIDEO_S5P_MIPI_CSIS
 	tristate "Samsung S5P and EXYNOS4 MIPI CSI receiver driver"
-	depends on VIDEO_V4L2 && PM_RUNTIME && VIDEO_V4L2_SUBDEV_API
+	depends on VIDEO_V4L2 && PM_RUNTIME && PLAT_S5P && VIDEO_V4L2_SUBDEV_API && PLAT_S5P
 	---help---
 	  This is a v4l2 driver for Samsung S5P/EXYNOS4 MIPI-CSI receiver.
 
Signature · 1 line
1.7.2.5
#3 lore raw

PATCH v2 1/1 s5p-csis: Add missing dependency on PLAT_S5P

In reply to Nicolas WILL

s5p-csis is to be built only on S5P SoC platforms.

---
Resending, as the previous patch had PLAT_S5P added twice..

---
 drivers/media/video/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/media/video/Kconfig +1 -1
index cf5a1f6..bb53de7 100644
@@ -954,7 +954,7 @@ config  VIDEO_SAMSUNG_S5P_FIMC
 
 config VIDEO_S5P_MIPI_CSIS
 	tristate "Samsung S5P and EXYNOS4 MIPI CSI receiver driver"
-	depends on VIDEO_V4L2 && PM_RUNTIME && VIDEO_V4L2_SUBDEV_API
+	depends on VIDEO_V4L2 && PM_RUNTIME && PLAT_S5P && VIDEO_V4L2_SUBDEV_API
 	---help---
 	  This is a v4l2 driver for Samsung S5P/EXYNOS4 MIPI-CSI receiver.
 
Signature · 1 line
1.7.2.5
#4 lore raw

Re: build errors on kinect and rc-main - 2.6.38 (mipi-csis not rc-main)

In reply to Nicolas WILL
Quoted 12 lines · Nicolas WILL
Quoted 10 lines · Nicolas WILL

The second one is on rc-main (I probably need that!):

CC [M] /home/nico/src/media_build/v4l/rc-main.o
/home/nico/src/media_build/v4l/rc-main.c: In function 'rc_allocate_device':
/home/nico/src/media_build/v4l/rc-main.c:993:29: warning: assignment from incompatible pointer type /home/nico/src/media_build/v4l/rc-main.c:994:29: warning: assignment from incompatible pointer type
CC [M] /home/nico/src/media_build/v4l/ir-raw.o
CC [M] /home/nico/src/media_build/v4l/mipi-csis.o
/home/nico/src/media_build/v4l/mipi-csis.c:29:28: fatal error: plat/mipi_csis.h: No such file or directory compilation terminated.

Quoted 1 line

Oh, not rc-main, but mipi-csis!

True, but the rc-main warning is actually a valid issue that needs to be fixed as well. I'll get the necessary backport patch into media_build shortly, I hope...

Signature · 2 lines
Jarod Wilson
[email protected]
#5 lore raw

Re: build errors on kinect and rc-main - 2.6.38 (mipi-csis not rc-main)

Quoted 14 lines · Jarod Wilson
Quoted 12 lines · Nicolas WILL
Quoted 10 lines · Nicolas WILL

The second one is on rc-main (I probably need that!):

CC [M] /home/nico/src/media_build/v4l/rc-main.o /home/nico/src/media_build/v4l/rc-main.c: In function 'rc_allocate_device':
/home/nico/src/media_build/v4l/rc-main.c:993:29: warning: assignment from incompatible pointer type /home/nico/src/media_build/v4l/rc-main.c:994:29: warning: assignment from incompatible pointer type CC [M] /home/nico/src/media_build/v4l/ir-raw.o
CC [M] /home/nico/src/media_build/v4l/mipi-csis.o /home/nico/src/media_build/v4l/mipi-csis.c:29:28: fatal error: plat/mipi_csis.h: No such file or directory compilation terminated.

Quoted 5 lines
Quoted 1 line

Oh, not rc-main, but mipi-csis!

True, but the rc-main warning is actually a valid issue that needs to be fixed as well. I'll get the necessary backport patch into media_build shortly, I hope...

Patches pushed.

Signature · 2 lines
Jarod Wilson
[email protected]
#6 lore raw

Re: build errors on kinect and rc-main - 2.6.38 (mipi-csis not rc-main)

Quoted 22 lines · Jarod Wilson
Quoted 7 lines · Jarod Wilson
Quoted 5 lines · Nicolas WILL
Quoted 4 lines · Nicolas WILL

The second one is on rc-main (I probably need that!):

CC [M] /home/nico/src/media_build/v4l/rc-main.o /home/nico/src/media_build/v4l/rc-main.c: In function

'rc_allocate_device':

Quoted 1 line
Quoted 1 line
Quoted 1 line

/home/nico/src/media_build/v4l/rc-main.c:993:29: warning:

assignment from incompatible pointer type

Quoted 1 line
Quoted 1 line
Quoted 1 line

/home/nico/src/media_build/v4l/rc-main.c:994:29: warning:

assignment from incompatible pointer type

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

CC [M] /home/nico/src/media_build/v4l/ir-raw.o
CC [M] /home/nico/src/media_build/v4l/mipi-csis.o /home/nico/src/media_build/v4l/mipi-csis.c:29:28: fatal error:

plat/mipi_csis.h: No such file or directory

Quoted 4 lines
Quoted 3 lines
Quoted 1 line

compilation terminated.

Oh, not rc-main, but mipi-csis!

Quoted 7 lines
Quoted 1 line

True, but the rc-main warning is actually a valid issue that needs

to

Quoted 1 line

be fixed as well. I'll get the necessary backport patch into

media_build

Quoted 1 line

shortly, I hope...

Patches pushed.

:o)

Thanks !

Nico

#7 lore raw

PATCH 1/1 gspca/kinect: wrap gspca_debug with GSPCA_DEBUG

In reply to Nicolas WILL

Fixes media_build, and presumably certain other upstream kernel build option combos.

Before:
CC [M] /home/jarod/src/media_build/v4l/kinect.o
/home/jarod/src/media_build/v4l/kinect.c:38:19: error: 'D_ERR' undeclared here (not in a function) /home/jarod/src/media_build/v4l/kinect.c:38:27: error: 'D_PROBE' undeclared here (not in a function) /home/jarod/src/media_build/v4l/kinect.c:38:37: error: 'D_CONF' undeclared here (not in a function) /home/jarod/src/media_build/v4l/kinect.c:38:46: error: 'D_STREAM' undeclared here (not in a function) /home/jarod/src/media_build/v4l/kinect.c:38:57: error: 'D_FRAM' undeclared here (not in a function) /home/jarod/src/media_build/v4l/kinect.c:38:66: error: 'D_PACK' undeclared here (not in a function) /home/jarod/src/media_build/v4l/kinect.c:39:2: error: 'D_USBI' undeclared here (not in a function) /home/jarod/src/media_build/v4l/kinect.c:39:11: error: 'D_USBO' undeclared here (not in a function) /home/jarod/src/media_build/v4l/kinect.c:39:20: error: 'D_V4L2' undeclared here (not in a function) make[3]: *** [/home/jarod/src/media_build/v4l/kinect.o] Error 1

After:
CC [M] /home/jarod/src/media_build/v4l/kinect.o
...
LD [M] /home/jarod/src/media_build/v4l/gspca_kinect.ko
...
profit

---
 drivers/media/video/gspca/kinect.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/media/video/gspca/kinect.c +1 -1
index 66671a4..26fc206 100644
@@ -34,7 +34,7 @@ MODULE_AUTHOR("Antonio Ospite <[email protected]>");
 MODULE_DESCRIPTION("GSPCA/Kinect Sensor Device USB Camera Driver");
 MODULE_LICENSE("GPL");
 
-#ifdef DEBUG
+#ifdef GSPCA_DEBUG
 int gspca_debug = D_ERR | D_PROBE | D_CONF | D_STREAM | D_FRAM | D_PACK |
 	D_USBI | D_USBO | D_V4L2;
 #endif
Signature · 1 line
1.7.1
#8 lore raw

Re: [PATCH] [media] gspca/kinect: wrap gspca_debug with GSPCA_DEBUG

drivers/media/video/gspca/kinect.c MODULE_AUTHOR("Antonio Ospite <[email protected]>"); · line 40

Quoted 13 lines · On Wed, 25 May 2011 17:34:32 -0400 Jarod Wilson <[email protected]> wrote:
drivers/media/video/gspca/kinect.c +1 -1
index 66671a4..26fc206 100644
@@ -34,7 +34,7 @@ MODULE_AUTHOR("Antonio Ospite <[email protected]>");
 MODULE_DESCRIPTION("GSPCA/Kinect Sensor Device USB Camera Driver");
 MODULE_LICENSE("GPL");
 
-#ifdef DEBUG
+#ifdef GSPCA_DEBUG
 int gspca_debug = D_ERR | D_PROBE | D_CONF | D_STREAM | D_FRAM | D_PACK |
 	D_USBI | D_USBO | D_V4L2;
 #endif

Hi Jarod,

Sorry, it is not the right fix. In fact, the variable gspca_debug must not be defined in gspca subdrivers:

drivers/media/video/gspca/kinect.c +0 -5
@@ -34,11 +34,6 @@
 MODULE_DESCRIPTION("GSPCA/Kinect Sensor Device USB Camera Driver");
 MODULE_LICENSE("GPL");
 
-#ifdef DEBUG
-int gspca_debug = D_ERR | D_PROBE | D_CONF | D_STREAM | D_FRAM | D_PACK |
-	D_USBI | D_USBO | D_V4L2;
-#endif
-
 struct pkt_hdr {
 	uint8_t magic[2];
 	uint8_t pad;
Signature · 2 lines
Ken ar c'hentañ	|	      ** Breizh ha Linux atav! **
Jef		|		http://moinejf.free.fr/
#9 lore raw

Re: [PATCH] [media] gspca/kinect: wrap gspca_debug with GSPCA_DEBUG

Quoted 27 lines · On Thu, 26 May 2011 08:49:12 +0200 Jean-Francois Moine <[email protected]> wrote:

drivers/media/video/gspca/kinect.c MODULE_AUTHOR("Antonio Ospite <[email protected]>"); · line 40

Quoted 13 lines · On Wed, 25 May 2011 17:34:32 -0400 Jarod Wilson <[email protected]> wrote:
drivers/media/video/gspca/kinect.c +1 -1
index 66671a4..26fc206 100644
@@ -34,7 +34,7 @@ MODULE_AUTHOR("Antonio Ospite <[email protected]>");
 MODULE_DESCRIPTION("GSPCA/Kinect Sensor Device USB Camera Driver");
 MODULE_LICENSE("GPL");
 
-#ifdef DEBUG
+#ifdef GSPCA_DEBUG
 int gspca_debug = D_ERR | D_PROBE | D_CONF | D_STREAM | D_FRAM | D_PACK |
 	D_USBI | D_USBO | D_V4L2;
 #endif

Hi Jarod,

Sorry, it is not the right fix. In fact, the variable gspca_debug must not be defined in gspca subdrivers:

drivers/media/video/gspca/kinect.c +0 -0
@@ -34,11 +34,6 @@
 MODULE_DESCRIPTION("GSPCA/Kinect Sensor Device USB Camera Driver");

drivers/media/video/gspca/kinect.c line 39

Quoted 10 lines
drivers/media/video/gspca/kinect.c +0 -5
 MODULE_LICENSE("GPL");
 
-#ifdef DEBUG
-int gspca_debug = D_ERR | D_PROBE | D_CONF | D_STREAM | D_FRAM | D_PACK |
-	D_USBI | D_USBO | D_V4L2;
-#endif
-
 struct pkt_hdr {
 	uint8_t magic[2];
 	uint8_t pad;

OK.

Thanks,
Antonio

Signature · 8 lines
Antonio Ospite
http://ao2.it

PGP public key ID: 0x4553B001

A: Because it messes up the order in which people normally read text.
   See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?
#10 lore raw

Re: [PATCH] [media] gspca/kinect: wrap gspca_debug with GSPCA_DEBUG

In reply to Jean-Francois Moine
Quoted 26 lines · jean-francois Moine
Quoted 11 lines · On Wed, 25 May 2011 17:34:32 -0400 Jarod Wilson <[email protected]> wrote:
drivers/media/video/gspca/kinect.c +1 -1
index 66671a4..26fc206 100644
@@ -34,7 +34,7 @@ MODULE_AUTHOR("Antonio Ospite <[email protected]>");
 MODULE_DESCRIPTION("GSPCA/Kinect Sensor Device USB Camera Driver");
 MODULE_LICENSE("GPL");
 
-#ifdef DEBUG
+#ifdef GSPCA_DEBUG

int gspca_debug = D_ERR | D_PROBE | D_CONF | D_STREAM | D_FRAM | D_PACK |

Quoted 2 lines
	D_USBI | D_USBO | D_V4L2;

#endif

Hi Jarod,

Sorry, it is not the right fix. In fact, the variable gspca_debug must not be defined in gspca subdrivers:

drivers/media/video/gspca/kinect.c +0 -0
@@ -34,11 +34,6 @@
 MODULE_DESCRIPTION("GSPCA/Kinect Sensor Device USB Camera Driver");

drivers/media/video/gspca/kinect.c line 39

Quoted 10 lines
drivers/media/video/gspca/kinect.c +0 -5
 MODULE_LICENSE("GPL");
 
-#ifdef DEBUG
-int gspca_debug = D_ERR | D_PROBE | D_CONF | D_STREAM | D_FRAM | D_PACK |
-	D_USBI | D_USBO | D_V4L2;
-#endif
-
 struct pkt_hdr {
 	uint8_t magic[2];
 	uint8_t pad;

Ah, ok, that works just as well for me, since I don't have the hardware, was just looking to make sure things still complied. ;)

Signature · 2 lines
Jarod Wilson
[email protected]