Skip to contentSkip to conversation

Problems applying patches to 2.6.12-rc5-mm2

uml-devel Anthony Brock 1 participant 1 message Jun 6, 2005 User-mode Linux (UML)

lore
Share & tools
lore
#0 lore raw

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

Quoted 1 line
Quoted 1 line
Quoted 1 line

Blaisorblade <[email protected]> 06/05/05 08:54AM >>>

Quoted 13 lines · Anthony Brock

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
Quoted 6 lines

<*** 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.

Quoted 2 lines

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

Signature · 36 lines
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
[email protected] 
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel