Issue compiling 2.4test10

From: Eric Reischer (emr@engr.de.psu.edu)
Date: Wed Nov 01 2000 - 20:32:35 EST


I am attempting to cross-compile a 2.4 kernel for a PowerPC arch on an
Intel machine, of which I have Debian 2.2 installed. I have successfully
compiled a 2.4test9 kernel, but I got the following error message the first
time I compiled (it failed due to this):

powerpc-unknown-linux-gnu-ld -T arch/ppc/mm/mm.o <blah blah blah on same
command for about 11 lines>
drivers/input/inputdrv.o: In function 'keybdev_event':
drivers/input/inputdrv.o(.text+0x16bc): undefined reference to 'emulate_raw'
drivers/input/inputdrv.o(.text+0x16bc): relocation truncated to fit:
R_PPC_REL24 emulate_raw
make: *** [vmlinux] Error 1

Quoting Martin Costabel <costabel@wanadoo.fr>:

<snip>
The function emulate_raw is used without any ifs, but its definition
some lines earlier is enclosed in either
#if defined(CONFIG_X86) || defined(CONFIG_IA64) || defined(__alpha__) ||
defined(__mips__)
or
#elif defined(CONFIG_ADB_KEYBOARD)
So in your case you would need to put CONFIG_ADB_KEYBOARD=y into your
.config file. Or change these weird #ifs.
The bitkeeper version of the file is somewhat better in that it uses only
one set of conditionals,
#if defined(CONFIG_X86) || defined(CONFIG_IA64) || defined(__alpha__) ||
defined (__mips__) || defined(CONFIG_PPC)
but the function is still used without any condition.
</snip>

 From what he tells me, this remains an issue in the test10 release. I
disabled the entire feature from within xconfig, recompiled, and it
succeeded. If you need any more info, let me know and I'll see what I can do.

----------
Eric Reischer "You can't depend on your eyes
emr@engr.de.psu.edu if your imagination is out
of focus."
emr@ccil.org -- Mark Twain

----------

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Nov 07 2000 - 21:00:10 EST