2002-03-29 08:38:32

by DAVID CHRISTENSEN

[permalink] [raw]
Subject: Modular Frustration w/2.4.18!

I don't understand it! I cannot seem to get the modules to compile on
my box! Every time I modify the config to make something compile NOT as
a module, the make breaks somewhere else! ARRRRGHHH!

The lay of the land:
gcc-cpp-2.96-0.76mdk
gcc-2.96-0.76mdk
gcc-c++-2.96-0.76mdk
libgcc3.0-3.0.4-2mdk


I can do a "make bzImage" and that compiles just fine:
>>>SNIP
tools/build -b bbootsect bsetup compressed/bvmlinux.out CURRENT > bzImage
Root device is (8, 21)
Boot sector 512 bytes.
Setup is 4796 bytes.
System is 718 kB
make[1]: Leaving directory `/usr/src/linux-2.4.18-6mdk/arch/i386/boot'
[root@pluto linux]#


Then when I get to making the modules... BOOM!
>>>SNIP
In file included from /usr/src/linux-2.4.18-6mdk/include/linux/highmem.h:5,
from
/usr/src/linux-2.4.18-6mdk/include/linux/pagemap.h:16,
from /usr/src/linux-2.4.18-6mdk/include/linux/locks.h:8,
from
/usr/src/linux-2.4.18-6mdk/include/linux/devfs_fs_kernel.h:6,
from floppy.c:169:
/usr/src/linux-2.4.18-6mdk/include/asm/pgalloc.h: In function
`get_pgd_fast':
/usr/src/linux-2.4.18-6mdk/include/asm/pgalloc.h:78:
`boot_cpu_data_Rsmp_0657d037' undeclared (first use in this function)
/usr/src/linux-2.4.18-6mdk/include/asm/pgalloc.h:78: (Each undeclared
identifier is reported only once
/usr/src/linux-2.4.18-6mdk/include/asm/pgalloc.h:78: for each function
it appears in.)
/usr/src/linux-2.4.18-6mdk/include/asm/pgalloc.h: In function
`free_pgd_fast':
/usr/src/linux-2.4.18-6mdk/include/asm/pgalloc.h:89:
`boot_cpu_data_Rsmp_0657d037' undeclared (first use in this function)
/usr/src/linux-2.4.18-6mdk/include/asm/pgalloc.h: In function
`pte_alloc_one_fast':
/usr/src/linux-2.4.18-6mdk/include/asm/pgalloc.h:127:
`boot_cpu_data_Rsmp_0657d037' undeclared (first use in this function)
/usr/src/linux-2.4.18-6mdk/include/asm/pgalloc.h: In function
`pte_free_fast':
/usr/src/linux-2.4.18-6mdk/include/asm/pgalloc.h:137:
`boot_cpu_data_Rsmp_0657d037' undeclared (first use in this function)
make[2]: *** [floppy.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.18-6mdk/drivers/block'
make[1]: *** [_modsubdir_block] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.18-6mdk/drivers'
make: *** [_mod_drivers] Error 2


2002-03-29 09:08:52

by Keith Owens

[permalink] [raw]
Subject: Re: Modular Frustration w/2.4.18!

On Thu, 28 Mar 2002 23:03:36 -0800,
"David Christensen" <[email protected]> wrote:
>I don't understand it! I cannot seem to get the modules to compile on
>my box! Every time I modify the config to make something compile NOT as
>a module, the make breaks somewhere else! ARRRRGHHH!

Try http://www.tux.org/lkml/#s8-8.

2002-04-01 16:57:51

by Andrey Klochko

[permalink] [raw]
Subject: Re: Modular Frustration w/2.4.18!

Try to do "make dep" and then "make bzImage modules"

Andrey

David Christensen wrote:

> I don't understand it! I cannot seem to get the modules to compile on
> my box! Every time I modify the config to make something compile NOT
> as a module, the make breaks somewhere else! ARRRRGHHH!
>
> The lay of the land:
> gcc-cpp-2.96-0.76mdk
> gcc-2.96-0.76mdk
> gcc-c++-2.96-0.76mdk
> libgcc3.0-3.0.4-2mdk

snip

>
> /usr/src/linux-2.4.18-6mdk/include/asm/pgalloc.h:78: (Each undeclared
> identifier is reported only once
> /usr/src/linux-2.4.18-6mdk/include/asm/pgalloc.h:78: for each function
> it appears in.)
> /usr/src/linux-2.4.18-6mdk/include/asm/pgalloc.h: In function
> `free_pgd_fast':
> /usr/src/linux-2.4.18-6mdk/include/asm/pgalloc.h:89:
> `boot_cpu_data_Rsmp_0657d037' undeclared (first use in this function)
> /usr/src/linux-2.4.18-6mdk/include/asm/pgalloc.h: In function
> `pte_alloc_one_fast':
> /usr/src/linux-2.4.18-6mdk/include/asm/pgalloc.h:127:
> `boot_cpu_data_Rsmp_0657d037' undeclared (first use in this function)
> /usr/src/linux-2.4.18-6mdk/include/asm/pgalloc.h: In function
> `pte_free_fast':
> /usr/src/linux-2.4.18-6mdk/include/asm/pgalloc.h:137:
> `boot_cpu_data_Rsmp_0657d037' undeclared (first use in this function)
> make[2]: *** [floppy.o] Error 1
> make[2]: Leaving directory `/usr/src/linux-2.4.18-6mdk/drivers/block'
> make[1]: *** [_modsubdir_block] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.4.18-6mdk/drivers'
> make: *** [_mod_drivers] Error 2
>
> -
> To unsubscribe from this list: send the line "unsubscribe
> linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/