error build an system

View: New views
6 Messages — Rating Filter:   Alert me  

error build an system

by Gerardo Di iorio-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I have create an image for x86 from last svn.
I now use thi image for an  build arm-croos config.
I have this error on build linux-header on stage 0

You should not call uname during the build!
... linux source patching for -dist finished.
Correcting user and permissions ...
Clean up the *.orig and *~ files ...
You should not call uname during the build!
You should not call uname during the build!
You should not call uname during the build!
scripts/kconfig/conf -s arch/arm/Kconfig
You should not call uname during the build!
  SYMLINK include/asm -> include/asm-arm
You should not call uname during the build!
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  HOSTCC  scripts/unifdef
scripts/unifdef.c:209: error: conflicting types for 'getline'
/usr/include/stdio.h:651: error: previous declaration of 'getline' was here
make[1]: *** [scripts/unifdef] Error 1
make: *** [headers_install] Error 2
Due to previous errors, no 0-linux-header.log file!
(Try enabling xtrace in the config to track an error inside the build system.)
--- BUILD ERROR ---




--
http://www.gerardodiiorio.com



-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
lists@... with a subject of: unsubscribe t2

Re: error build an system

by Gerardo Di iorio-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


This is the patch for build with glibc 2.10.1


--- a/scripts/unifdef.c
+++ b/scripts/unifdef.c
@@ -206,7 +206,7 @@ static void             done(void);
 static void             error(const char *);
 static int              findsym(const char *);
 static void             flushline(bool);
-static Linetype         getline(void);
+static Linetype         get_line(void);
 static Linetype         ifeval(const char **);
 static void             ignoreoff(void);
 static void             ignoreon(void);
@@ -512,7 +512,7 @@ process(void)
 
  for (;;) {
  linenum++;
- lineval = getline();
+ lineval = get_line();
  trans_table[ifstate[depth]][lineval]();
  debug("process %s -> %s depth %d",
     linetype_name[lineval],
@@ -526,7 +526,7 @@ process(void)
  * help from skipcomment().
  */
 static Linetype
-getline(void)
+get_line(void)
 {
  const char *cp;
  int cursym;



--
http://www.gerardodiiorio.com



-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
lists@... with a subject of: unsubscribe t2

Re: error build an system

by Gerardo Di iorio-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This is the patch




--
http://www.gerardodiiorio.com

Index: package/base/linux-header/glibc.patch
===================================================================
--- package/base/linux-header/glibc.patch (revision 0)
+++ package/base/linux-header/glibc.patch (revision 0)
@@ -0,0 +1,30 @@
+-- a/scripts/unifdef.c
++++ b/scripts/unifdef.c
+@@ -206,7 +206,7 @@ static void             done(void);
+ static void             error(const char *);
+ static int              findsym(const char *);
+ static void             flushline(bool);
+-static Linetype         getline(void);
++static Linetype         get_line(void);
+ static Linetype         ifeval(const char **);
+ static void             ignoreoff(void);
+ static void             ignoreon(void);
+@@ -512,7 +512,7 @@ process(void)
+
+ for (;;) {
+ linenum++;
+- lineval = getline();
++ lineval = get_line();
+ trans_table[ifstate[depth]][lineval]();
+ debug("process %s -> %s depth %d",
+    linetype_name[lineval],
+@@ -526,7 +526,7 @@ process(void)
+  * help from skipcomment().
+  */
+ static Linetype
+-getline(void)
++get_line(void)
+ {
+ const char *cp;
+ int cursym;
+

-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
lists@... with a subject of: unsubscribe t2

Re: Re: error build an system

by Aldas Nabazas-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Gerardo,

Thanks, I think it's about time to update linux-header package instead of patching it. I will re-schedule the build, shouldn't take too long.

Cheers,
Aldas

On Tue, Aug 25, 2009 at 3:34 PM, Gerardo Di iorio <arete74@...> wrote:
This is the patch




--
http://www.gerardodiiorio.com

-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
lists@... with a subject of: unsubscribe t2



-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
lists@... with a subject of: unsubscribe t2

Re: Re: error build an system

by Rene Rebe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Aldas,

we can still import the bugfix and then update (for a better code re-use history in t2).

Michael Tross was also about to update the linux-header package as he mentioned some days ago in IRC. He needed it for some new DVB (Digital Video Broadcasting) API.

On 27.08.2009, at 11:36, Aldas Nabazas wrote:

Hi Gerardo,

Thanks, I think it's about time to update linux-header package instead of patching it. I will re-schedule the build, shouldn't take too long.

Cheers,
Aldas

On Tue, Aug 25, 2009 at 3:34 PM, Gerardo Di iorio <arete74@...> wrote:
This is the patch




--
http://www.gerardodiiorio.com

-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
lists@... with a subject of: unsubscribe t2


-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
lists@... with a subject of: unsubscribe t2

-- 
  René Rebe - ExactCODE GmbH - Europe, Germany, Berlin


-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
lists@... with a subject of: unsubscribe t2

Re: Re: error build an system

by Aldas Nabazas-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi René,

Ok, we will wait for Michael then.
Thanks Gerardo, applied r34079.

Cheers,
Aldas

On Thu, Aug 27, 2009 at 4:16 PM, René Rebe <rene@...> wrote:
Hi Aldas,

we can still import the bugfix and then update (for a better code re-use history in t2).

Michael Tross was also about to update the linux-header package as he mentioned some days ago in IRC. He needed it for some new DVB (Digital Video Broadcasting) API.

On 27.08.2009, at 11:36, Aldas Nabazas wrote:

Hi Gerardo,

Thanks, I think it's about time to update linux-header package instead of patching it. I will re-schedule the build, shouldn't take too long.

Cheers,
Aldas

On Tue, Aug 25, 2009 at 3:34 PM, Gerardo Di iorio <arete74@...> wrote:
This is the patch




--
http://www.gerardodiiorio.com

-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
lists@... with a subject of: unsubscribe t2


-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
lists@... with a subject of: unsubscribe t2

-- 
  René Rebe - ExactCODE GmbH - Europe, Germany, Berlin



-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
lists@... with a subject of: unsubscribe t2