Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

arch/x86/lib/inat.c Error

168 views
Skip to first unread message

Franklin Wei

unread,
Sep 23, 2012, 4:34:31 PM9/23/12
to linux-...@vger.kernel.org
Something wrong with lines 29-86
Error message when compiling:
CC arch/x86/lib/inat.o
arch/x86/lib/inat.c: In function ‘inat_get_opcode_attribute’:
arch/x86/lib/inat.c:29: error: ‘inat_primary_table’ undeclared (first
use in this function)
arch/x86/lib/inat.c:29: error: (Each undeclared identifier is reported only once
arch/x86/lib/inat.c:29: error: for each function it appears in.)
arch/x86/lib/inat.c: In function ‘inat_get_escape_attribute’:
arch/x86/lib/inat.c:48: error: ‘inat_escape_tables’ undeclared (first
use in this function)
arch/x86/lib/inat.c: In function ‘inat_get_group_attribute’:
arch/x86/lib/inat.c:67: error: ‘inat_group_tables’ undeclared (first
use in this function)
arch/x86/lib/inat.c: In function ‘inat_get_avx_attribute’:
arch/x86/lib/inat.c:86: error: ‘inat_avx_tables’ undeclared (first use
in this function)
make[1]: *** [arch/x86/lib/inat.o] Error 1
make: *** [arch/x86/lib] Error 2
Kernel version is 3.6 rc6
Compiling on Debian Squeeze running on Macbook
Thanks in advance!
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majo...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Borislav Petkov

unread,
Sep 24, 2012, 4:00:14 AM9/24/12
to Franklin Wei, linux-...@vger.kernel.org, Masami Hiramatsu
On Sun, Sep 23, 2012 at 04:34:24PM -0400, Franklin Wei wrote:
> Something wrong with lines 29-86
> Error message when compiling:
> CC arch/x86/lib/inat.o
> arch/x86/lib/inat.c: In function ‘inat_get_opcode_attribute’:
> arch/x86/lib/inat.c:29: error: ‘inat_primary_table’ undeclared (first
> use in this function)
> arch/x86/lib/inat.c:29: error: (Each undeclared identifier is reported only once
> arch/x86/lib/inat.c:29: error: for each function it appears in.)
> arch/x86/lib/inat.c: In function ‘inat_get_escape_attribute’:
> arch/x86/lib/inat.c:48: error: ‘inat_escape_tables’ undeclared (first
> use in this function)
> arch/x86/lib/inat.c: In function ‘inat_get_group_attribute’:
> arch/x86/lib/inat.c:67: error: ‘inat_group_tables’ undeclared (first
> use in this function)
> arch/x86/lib/inat.c: In function ‘inat_get_avx_attribute’:
> arch/x86/lib/inat.c:86: error: ‘inat_avx_tables’ undeclared (first use
> in this function)
> make[1]: *** [arch/x86/lib/inat.o] Error 1
> make: *** [arch/x86/lib] Error 2

That's because all those _tables thingies are included from a
"inat-tables.c" in the same directory but it somehow doesn't get
included?!

Can we get your .config pls? Also, you're doing a "normal" kernel build
on the command line, right?

Thanks.

--
Regards/Gruss,
Boris.

Randy Dunlap

unread,
Sep 24, 2012, 9:16:58 PM9/24/12
to Franklin Wei, Borislav Petkov, linux-...@vger.kernel.org, Masami Hiramatsu
On 09/24/2012 04:04 PM, Franklin Wei wrote:

> Here it is
Your config builds OK for me.
Do you see this line in your build output before inat.c is built?


GEN arch/x86/lib/inat-tables.c


--
~Randy

Borislav Petkov

unread,
Sep 25, 2012, 5:13:35 AM9/25/12
to Randy Dunlap, Franklin Wei, linux-...@vger.kernel.org, Masami Hiramatsu
On Mon, Sep 24, 2012 at 06:16:50PM -0700, Randy Dunlap wrote:
> >> That's because all those _tables thingies are included from a
> >> "inat-tables.c" in the same directory but it somehow doesn't get
> >> included?!
> >>
> >> Can we get your .config pls? Also, you're doing a "normal" kernel build
> >> on the command line, right?
> >>
> >> Thanks.
>
>
> Your config builds OK for me.
> Do you see this line in your build output before inat.c is built?
>
>
> GEN arch/x86/lib/inat-tables.c

Yeah, this looks like stale files from the build or similar are not
being properly cleaned. Franklin, do the following:

$ cp .config /tmp/
$ make mrproper
$ cp /tmp/.config .
$ make oldconfig
$ make -j<num_cpus + 1>

to verify that a clean build actually fixes your issue.

Thanks.

--
Regards/Gruss,
Boris.

Franklin Wei

unread,
Sep 25, 2012, 6:30:54 PM9/25/12
to Borislav Petkov, Randy Dunlap, Franklin Wei, linux-...@vger.kernel.org, Masami Hiramatsu
I found something:
My inat-tables.c is blank!
Going to get the source from Git and try again.
Thanks for the help!

jajas...@gmail.com

unread,
Dec 4, 2019, 3:10:42 PM12/4/19
to
Share it if you found a solution to the problem
0 new messages