Skip to contentSkip to conversation

Buglet making vmlinux with -j

DISCUSSION C.Newport 6 participants 8 messages Aug 20, 2004 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore

C.Newport

author
#0 lore raw

If I build a 2.4.27 kernel with -j6 to strsss test an SMP system it compiles but silently finishes before linking.

Is this a bug or expected behaviour ?

#1 lore raw
Quoted 3 lines · C.Newport

If I build a 2.4.27 kernel with -j6 to strsss test an SMP system it compiles but silently finishes before linking.
Is this a bug or expected behaviour ?

You're going to have to be more precise in your description for me to tell. I am not sure from this description whether this describes a failure to build or an unusual kind of output while otherwise building successfully or maybe even something else.

-- wli

#2 lore raw
In reply to C.Newport
Quoted 7 lines · On Fri, 20 Aug 2004 13:59:56 -0700 William Lee Irwin III <[email protected]>…
Quoted 3 lines · C.Newport

If I build a 2.4.27 kernel with -j6 to strsss test an SMP system it compiles but silently finishes before linking.
Is this a bug or expected behaviour ?

You're going to have to be more precise in your description for me to tell.

It's because of all the btfixup stuff in the sparc32 build machinery, William.

He doesn't need to give any more description, it is clear what the issue is.

#3 lore raw
In reply to C.Newport

On Fri, 20 Aug 2004 13:59:56 -0700 William Lee Irwin III <[email protected]> wrote:

| On Fri, Aug 20, 2004 at 09:56:06PM +0100, C.Newport wrote:
| > If I build a 2.4.27 kernel with -j6 to strsss test an SMP system 
| > it compiles but silently finishes before linking.
| > Is this a bug or expected behaviour ?
| 
| You're going to have to be more precise in your description for me to
| tell. I am not sure from this description whether this describes a
| failure to build or an unusual kind of output while otherwise building
| successfully or maybe even something else.

It's known behaviour for 2.4.x (2.6.x should work). Keith had a patch, although I believe it wasn't applied because of suspected side effects.

Signature · 3 lines
Ciaran McCreesh : Gentoo Developer (Sparc, MIPS, Vim, Fluxbox)
Mail            : ciaranm at gentoo.org
Web             : http://dev.gentoo.org/~ciaranm
#4 lore raw
In reply to C.Newport
Quoted 5 lines · David S. Miller

It's because of all the btfixup stuff in the sparc32 build machinery, William.

He doesn't need to give any more description, it is clear what the issue is.

Yes, and there's a patch for it I got long ago, I think from Pete who in turn got it from someone else (feel free to speak up). I doubt this was ever integrated, since 2.4 is dead and buried.

arch/sparc/Makefile +1 -0
diff -ur linux-2.4-export-orig/arch/sparc/Makefile linux-2.4-export-new/arch/sparc/Makefile
@@ -45,6 +45,7 @@
 	$(TOPDIR)/arch/sparc/lib/lib.a
 
 # This one has to come last
+_dir_arch/sparc/boot :  $(patsubst %, _dir_%, $(SUBDIRS))
 SUBDIRS += arch/sparc/boot
 CORE_FILES_NO_BTFIX := $(CORE_FILES)
 CORE_FILES += arch/sparc/boot/btfix.o
arch/sparc/boot/Makefile +8 -5
diff -ur linux-2.4-export-orig/arch/sparc/boot/Makefile linux-2.4-export-new/arch/sparc/boot/Makefile
@@ -26,11 +26,14 @@
 BTLIBS := $(CORE_FILES_NO_BTFIX) $(FILESYSTEMS) \
 	$(DRIVERS) $(NETWORKS)
 
-# I wanted to make this depend upon BTOBJS so that a parallel
-# build would work, but this fails because $(HEAD) cannot work
-# properly as it will cause head.o to be built with the implicit
-# rules not the ones in kernel/Makefile.  Someone please fix. --DaveM
-vmlinux.o: dummy
+GENFILES := include/linux/version.h include/linux/compile.h $(foreach dirname, $(CORE_FILES_NO_BTFIX), _dir_$(dir $(dirname)))
+.PHONY : $(GENFILES)
+GENFILES += $(BTOBJS)
+
+$(GENFILES) :
+	$(MAKE) -C $(TOPDIR) $@
+
+vmlinux.o: $(GENFILES)
 	$(LD) -r $(patsubst %,$(TOPDIR)/%,$(BTOBJS)) \
 		--start-group \
 		$(patsubst %,$(TOPDIR)/%,$(BTLIBS)) \
Signature · 1 line
Keith M Wesolowski
#5 lore raw
In reply to C.Newport
Quoted 2 lines · On Fri, 20 Aug 2004 13:59:56 -0700 William Lee Irwin III wrote:
Quoted 2 lines

You're going to have to be more precise in your description for me to tell.

Quoted 4 lines · David S. Miller

It's because of all the btfixup stuff in the sparc32 build machinery, William.
He doesn't need to give any more description, it is clear what the issue is.

Hmm. Now that I've seen the patch I know what people are on about, but maybe I'm too dense today to figure out what "silently finishes before linking" means, as I've yet to decipher it even afterward.

-- wli

author
#6 lore raw
In reply to C.Newport
Quoted 3 lines · William Lee Irwin III

Hmm. Now that I've seen the patch I know what people are on about, but maybe I'm too dense today to figure out what "silently finishes before linking" means, as I've yet to decipher it even afterward.

Mea culpa - it means that I forgot to save a logfile. make vmlinux -j6 completes all of the compilation steps but ends without complaint before starting the final linkages.

#7 lore raw
In reply to C.Newport
Quoted 2 lines · Ciaran McCreesh

It's known behaviour for 2.4.x (2.6.x should work). Keith had a patch, although I believe it wasn't applied because of suspected side effects.

Yes, 2.6.x works; the problem for me on 2.4 is that a make -j2 will omit building of init/, and the compile will fail because init/main.o is not found.

Even though 'vmlinux' explicitly has a make dependency on init/main.o. *twilight zone*

Signature · 1 line
Joshua Kwan