All of lore.kernel.org
 help / color / mirror / Atom feed
* [uml-devel] Problems applying patches to 2.6.12-rc5-mm2
@ 2005-06-03 17:15 Anthony Brock
  2005-06-05 15:54 ` Blaisorblade
  0 siblings, 1 reply; 4+ messages in thread
From: Anthony Brock @ 2005-06-03 17:15 UTC (permalink / raw)
  To: user-mode-linux-devel

In the event that something "wierd" happened to my guest binary, I've decide
to try recompiling again. However, I'm now seeing new (and old) compilation
errors with Jeff's tree. The steps were:


# tar -jxvf linux-2.6.12-rc5.tar.bz2
# cd linux-2.6.12-rc5/
# bzip2 -dc ../2.6.12-rc5-mm2.bz2 |patch -p1
# tar -xvf ../2.6.12-rc5-mm2-20050602-patches.tar
# quilt push -a
# cp -a ../.config .
# make oldconfig ARCH=um
# make ARCH=um && make modules ARCH=um

<*** OUTPUT SNIPPED ***>

  CC      arch/um/sys-i386/sigcontext.o
  AS      arch/um/sys-i386/stub.o
  CC      arch/um/sys-i386/stub_segv.o
fixdep: arch/um/sys-i386/.stub_segv.o.d: No such file or directory
make[1]: *** [arch/um/sys-i386/stub_segv.o] Error 2
make: *** [arch/um/sys-i386] Error 2
#


So, this problem is back. I then removed the 'av-skas0' patch with:


# cat patches/av-skas0|patch -p1 -R
patching file arch/um/Makefile
Hunk #1 succeeded at 64 (offset 1 line).
patching file arch/um/sys-i386/Makefile
patching file arch/um/sys-x86_64/Makefile
Hunk #1 succeeded at 32 (offset 2 lines).
#


Once more, I tried the compile:


# make ARCH=um && make modules ARCH=um

<*** OUTPUT SNIPPED ***>

  CC      kernel/futex.o
  CC      kernel/uid16.o
  CC      kernel/module.o
kernel/module.c: In function `module_add_modinfo_attrs':
kernel/module.c:1078: error: `modinfo_attrs' undeclared (first use in this
function)
kernel/module.c:1078: error: (Each undeclared identifier is reported only
once
kernel/module.c:1078: error: for each function it appears in.)
kernel/module.c: In function `module_remove_modinfo_attrs':
kernel/module.c:1091: error: `modinfo_attrs' undeclared (first use in this
function)
kernel/module.c: In function `setup_modinfo':
kernel/module.c:1387: error: `modinfo_attrs' undeclared (first use in this
function)
make[1]: *** [kernel/module.o] Error 1
make: *** [kernel] Error 2
#


Idea? - Tony



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

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

* Re: [uml-devel] Problems applying patches to 2.6.12-rc5-mm2
  2005-06-03 17:15 Anthony Brock
@ 2005-06-05 15:54 ` Blaisorblade
  0 siblings, 0 replies; 4+ messages in thread
From: Blaisorblade @ 2005-06-05 15:54 UTC (permalink / raw)
  To: user-mode-linux-devel, Jeff Dike, Al Viro; +Cc: Anthony Brock

On Friday 03 June 2005 19:15, Anthony Brock wrote:
> In the event that something "wierd" happened to my guest binary, I've
> decide to try recompiling again. However, I'm now seeing new (and old)
> compilation errors with Jeff's tree. The steps were:

> # tar -jxvf linux-2.6.12-rc5.tar.bz2
> # cd linux-2.6.12-rc5/
> # bzip2 -dc ../2.6.12-rc5-mm2.bz2 |patch -p1
> # tar -xvf ../2.6.12-rc5-mm2-20050602-patches.tar
> # quilt push -a
> # cp -a ../.config .
> # make oldconfig ARCH=um
> # make ARCH=um && make modules ARCH=um
>
> <*** OUTPUT SNIPPED ***>
>
>   CC      arch/um/sys-i386/sigcontext.o
>   AS      arch/um/sys-i386/stub.o
>   CC      arch/um/sys-i386/stub_segv.o
> fixdep: arch/um/sys-i386/.stub_segv.o.d: No such file or directory
Ok, the other time I just looked at patch changelogs, now here's a more 
definite answer. The patch does not work because the .d file is not created.

Probably it works for you, Jeff, because you have that file as a residual from 
a previous compile...

In this section of the patch (both for i386 and x86_64), affecting 
arch/um/sys-*/Makefile, the last line:

+# _cflags works with kernel files, not with userspace ones, but c_flags does,
+# why ask why?
+$(obj)/stub_segv.o : c_flags = $(call unprofile,$(USER_CFLAGS))

should become (without the break):
+$(obj)/stub_segv.o : c_flags = -Wp,-MD,$(depfile) $(call unprofile,
$(USER_CFLAGS))

See for comparison the content of arch/um/scripts/Makefile.rules (and for the 
difference between _c_flags and c_flags, scripts/Makefile.lib).

Beyond that, for such tricks with .S files we would use a_flags (or 
_a_flags)... currently this is not needed, but just in case you need it.


> make[1]: *** [arch/um/sys-i386/stub_segv.o] Error 2
> make: *** [arch/um/sys-i386] Error 2

-- 
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade


	

	
		
___________________________________ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

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

* Re: [uml-devel] Problems applying patches to 2.6.12-rc5-mm2
@ 2005-06-06 19:55 Anthony Brock
  0 siblings, 0 replies; 4+ messages in thread
From: Anthony Brock @ 2005-06-06 19:55 UTC (permalink / raw)
  To: jdike, user-mode-linux-devel, viro, blaisorblade; +Cc: Anthony.Brock

Blaisor,

Thanks! Any ideas on the second compile problem? The output is:

  CC      kernel/futex.o
  CC      kernel/uid16.o
  CC      kernel/module.o
kernel/module.c: In function `module_add_modinfo_attrs':
kernel/module.c:1078: error: `modinfo_attrs' undeclared (first use in this function)
kernel/module.c:1078: error: (Each undeclared identifier is reported only once
kernel/module.c:1078: error: for each function it appears in.)
kernel/module.c: In function `module_remove_modinfo_attrs':
kernel/module.c:1091: error: `modinfo_attrs' undeclared (first use in this function)
kernel/module.c: In function `setup_modinfo':
kernel/module.c:1387: error: `modinfo_attrs' undeclared (first use in this function)
make[1]: *** [kernel/module.o] Error 1
make: *** [kernel] Error 2


Tony


>>> Blaisorblade <blaisorblade@yahoo.it> 06/05/05 08:54AM >>>
On Friday 03 June 2005 19:15, Anthony Brock wrote:
> In the event that something "wierd" happened to my guest binary, I've
> decide to try recompiling again. However, I'm now seeing new (and old)
> compilation errors with Jeff's tree. The steps were:

> # tar -jxvf linux-2.6.12-rc5.tar.bz2
> # cd linux-2.6.12-rc5/
> # bzip2 -dc ../2.6.12-rc5-mm2.bz2 |patch -p1
> # tar -xvf ../2.6.12-rc5-mm2-20050602-patches.tar
> # quilt push -a
> # cp -a ../.config .
> # make oldconfig ARCH=um
> # make ARCH=um && make modules ARCH=um
>
> <*** OUTPUT SNIPPED ***>
>
>   CC      arch/um/sys-i386/sigcontext.o
>   AS      arch/um/sys-i386/stub.o
>   CC      arch/um/sys-i386/stub_segv.o
> fixdep: arch/um/sys-i386/.stub_segv.o.d: No such file or directory
Ok, the other time I just looked at patch changelogs, now here's a more 
definite answer. The patch does not work because the .d file is not created.

Probably it works for you, Jeff, because you have that file as a residual from 
a previous compile...

In this section of the patch (both for i386 and x86_64), affecting 
arch/um/sys-*/Makefile, the last line:

+# _cflags works with kernel files, not with userspace ones, but c_flags does,
+# why ask why?
+$(obj)/stub_segv.o : c_flags = $(call unprofile,$(USER_CFLAGS))

should become (without the break):
+$(obj)/stub_segv.o : c_flags = -Wp,-MD,$(depfile) $(call unprofile,
$(USER_CFLAGS))

See for comparison the content of arch/um/scripts/Makefile.rules (and for the 
difference between _c_flags and c_flags, scripts/Makefile.lib).

Beyond that, for such tricks with .S files we would use a_flags (or 
_a_flags)... currently this is not needed, but just in case you need it.


> make[1]: *** [arch/um/sys-i386/stub_segv.o] Error 2
> make: *** [arch/um/sys-i386] Error 2

-- 
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade 


	

	
		
___________________________________ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it 



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r 
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

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

* Re: [uml-devel] Problems applying patches to 2.6.12-rc5-mm2
       [not found] <s2a447e1.041@ORANGE.OUS.EDU>
@ 2005-06-07  0:43 ` Jeff Dike
  0 siblings, 0 replies; 4+ messages in thread
From: Jeff Dike @ 2005-06-07  0:43 UTC (permalink / raw)
  To: Anthony Brock; +Cc: user-mode-linux-devel, blaisorblade, Anthony.Brock

On Mon, Jun 06, 2005 at 12:55:29PM -0700, Anthony Brock wrote:
> kernel/module.c:1387: error: `modinfo_attrs' undeclared (first use in this function)
> make[1]: *** [kernel/module.o] Error 1
> make: *** [kernel] Error 2

Leave module support out for now.  We need to do some work there still.

				Jeff


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

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

end of thread, other threads:[~2005-06-07  1:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <s2a447e1.041@ORANGE.OUS.EDU>
2005-06-07  0:43 ` [uml-devel] Problems applying patches to 2.6.12-rc5-mm2 Jeff Dike
2005-06-06 19:55 Anthony Brock
  -- strict thread matches above, loose matches on Subject: below --
2005-06-03 17:15 Anthony Brock
2005-06-05 15:54 ` Blaisorblade

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.