From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
To: Yinghai Lu <yinghai@kernel.org>
Cc: linux-kernel@vger.kernel.org,
"H. Peter Anvin" <hpa@linux.intel.com>,
Pekka Enberg <penberg@cs.helsinki.fi>,
Ingo Molnar <mingo@redhat.com>
Subject: Re: [BUG 2.6.36] early serial console undefined refs
Date: Sun, 24 Oct 2010 17:18:24 -0400 [thread overview]
Message-ID: <20101024211824.GA19172@Krystal> (raw)
In-Reply-To: <4CC31DF9.9020307@kernel.org>
* Yinghai Lu (yinghai@kernel.org) wrote:
> On 10/23/2010 10:37 AM, Yinghai Lu wrote:
> > On 10/23/2010 07:43 AM, Mathieu Desnoyers wrote:
> >> Hi,
> >>
> >> Building 2.6.36 fails for me with the following link error (config below).
> >> I think commit f4ed2877b16e8146427306aea8819adac5c88374 is very likely to be the
> >> culprit, but given other changes that were done afterward, the fix is not as
> >> easy as a simple revert.
> >>
> >> Thoughts ?
> >>
> >> Building modules, stage 2.
> >> MODPOST 65 modules
> >> LD arch/x86/boot/setup.elf
> >> arch/x86/boot/early_serial_console.o: In function `early_serial_init':
> >> /home/compudj/git/morestable/linux-2.6-lttng/arch/x86/boot/early_serial_console.c:40: undefined reference to `early_serial_base'
> >
> > your tree may have problem. Did you try clean tree from Linus ?
> >
> > early_seria_console.c
> >
> > #include "boot.h"
> > ...
> > static void early_serial_init(int port, int baud)
> >
> >
> > and in boot.h, we have
> > /* early_serial_console.c */
> > extern int early_serial_base;
>
> at least linus's tree and tip are ok with your config
I did a make clean, and it fixed the problem. I tried checking out a 2.6.35.7
kernel, build it, checkout 2.6.36 on top, then build without make clean, and it
works fine now. So I cannot reproduce the problem.
Thanks for the hint!
Mathieu
>
> MODPOST 65 modules
> CC arch/x86/boot/a20.o
> CC arch/x86/boot/cmdline.o
> AS arch/x86/boot/copy.o
> HOSTCC arch/x86/boot/mkcpustr
> CC arch/x86/ia32/ia32_aout.mod.o
> CC arch/x86/boot/cpucheck.o
> CC arch/x86/kvm/kvm-intel.mod.o
> CC arch/x86/boot/early_serial_console.o
> CC arch/x86/boot/edd.o
> CC arch/x86/kvm/kvm.mod.o
> VOFFSET arch/x86/boot/voffset.h
> CC arch/x86/oprofile/oprofile.mod.o
> CC crypto/crc32c.mod.o
> CC drivers/ata/sata_mv.mod.o
> CC drivers/base/firmware_class.mod.o
> LDS arch/x86/boot/compressed/vmlinux.lds
> AS arch/x86/boot/compressed/head_64.o
> CC drivers/block/cryptoloop.mod.o
> CC arch/x86/boot/compressed/misc.o
> CC drivers/block/loop.mod.o
> CC drivers/cpufreq/cpufreq_ondemand.mod.o
> CC drivers/firmware/dcdbas.mod.o
> CC drivers/hwmon/hwmon-vid.mod.o
> CC drivers/hwmon/it87.mod.o
> CC drivers/input/input-polldev.mod.o
> CC drivers/md/dm-crypt.mod.o
> CC arch/x86/boot/compressed/string.o
> CC drivers/md/dm-delay.mod.o
> CC arch/x86/boot/compressed/cmdline.o
> CC drivers/md/dm-log.mod.o
> CC arch/x86/boot/compressed/early_serial_console.o
> CC drivers/md/dm-mirror.mod.o
> OBJCOPY arch/x86/boot/compressed/vmlinux.bin
> CC drivers/md/dm-multipath.mod.o
> GZIP arch/x86/boot/compressed/vmlinux.bin.gz
> CC drivers/md/dm-region-hash.mod.o
> CC drivers/md/dm-round-robin.mod.o
> CC drivers/md/dm-snapshot.mod.o
> CC drivers/md/dm-zero.mod.o
> CC drivers/net/bonding/bonding.mod.o
> CC drivers/net/dummy.mod.o
> CC drivers/net/e1000/e1000.mod.o
> CC drivers/net/e1000e/e1000e.mod.o
> CC drivers/net/s2io.mod.o
> CC drivers/net/skge.mod.o
> CC drivers/net/sky2.mod.o
> CC drivers/net/tun.mod.o
> CC drivers/scsi/dpt_i2o.mod.o
> CC drivers/scsi/qla4xxx/qla4xxx.mod.o
> CC drivers/scsi/scsi_transport_iscsi.mod.o
> CC drivers/scsi/scsi_wait_scan.mod.o
> MKPIGGY arch/x86/boot/compressed/piggy.S
> AS arch/x86/boot/compressed/piggy.o
> CC drivers/usb/misc/cytherm.mod.o
> LD arch/x86/boot/compressed/vmlinux
> CC arch/x86/boot/main.o
> CC drivers/usb/serial/pl2303.mod.o
> CC arch/x86/boot/mca.o
> CC arch/x86/boot/memory.o
> CC drivers/usb/serial/usbserial.mod.o
> CC arch/x86/boot/pm.o
> AS arch/x86/boot/pmjump.o
> CC drivers/video/output.mod.o
> CC arch/x86/boot/printf.o
> CC lib/libcrc32c.mod.o
> CC arch/x86/boot/regs.o
> CC arch/x86/boot/string.o
> CC net/ipv4/inet_diag.mod.o
> CC arch/x86/boot/tty.o
> CC arch/x86/boot/video.o
> CC net/ipv4/tcp_diag.mod.o
> CC arch/x86/boot/video-mode.o
> CC net/netfilter/nfnetlink.mod.o
> CC arch/x86/boot/version.o
> CC net/netfilter/nfnetlink_log.mod.o
> CC arch/x86/boot/video-vga.o
> CC arch/x86/boot/video-vesa.o
> CC net/netfilter/nfnetlink_queue.mod.o
> CC arch/x86/boot/video-bios.o
> CC samples/kprobes/jprobe_example.mod.o
> OBJCOPY arch/x86/boot/vmlinux.bin
> CPUSTR arch/x86/boot/cpustr.h
> ZOFFSET arch/x86/boot/zoffset.h
> CC samples/kprobes/kprobe_example.mod.o
> CC arch/x86/boot/cpu.o
> AS arch/x86/boot/header.o
> LD arch/x86/boot/setup.elf
> CC samples/kprobes/kretprobe_example.mod.o
> OBJCOPY arch/x86/boot/setup.bin
> BUILD arch/x86/boot/bzImage
> Root device is (8, 6)
> Setup is 12972 bytes (padded to 13312 bytes).
> System is 3475 kB
> CRC f34900df
> Kernel: arch/x86/boot/bzImage is ready (#210)
--
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com
prev parent reply other threads:[~2010-10-24 21:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-23 14:43 [BUG 2.6.36] early serial console undefined refs Mathieu Desnoyers
2010-10-23 17:37 ` Yinghai Lu
2010-10-23 17:40 ` Yinghai Lu
2010-10-24 21:18 ` Mathieu Desnoyers [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20101024211824.GA19172@Krystal \
--to=mathieu.desnoyers@efficios.com \
--cc=hpa@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=penberg@cs.helsinki.fi \
--cc=yinghai@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox