Discussion:
arch/x86/lib/inat.c Error
(too old to reply)
Franklin Wei
2012-09-23 20:34:31 UTC
Permalink
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 ***@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
2012-09-24 08:00:14 UTC
Permalink
Post by Franklin Wei
Something wrong with lines 29-86
CC arch/x86/lib/inat.o
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:48: error: ‘inat_escape_tables’ undeclared (first
use in this function)
arch/x86/lib/inat.c:67: error: ‘inat_group_tables’ undeclared (first
use in this function)
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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Randy Dunlap
2012-09-25 01:16:58 UTC
Permalink
Here it is
Post by Borislav Petkov
Post by Franklin Wei
Something wrong with lines 29-86
CC arch/x86/lib/inat.o
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:48: error: ‘inat_escape_tables’ undeclared (first
use in this function)
arch/x86/lib/inat.c:67: error: ‘inat_group_tables’ undeclared (first
use in this function)
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.
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to ***@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
2012-09-25 09:13:35 UTC
Permalink
Post by Randy Dunlap
Post by Borislav Petkov
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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Franklin Wei
2012-09-25 22:30:54 UTC
Permalink
I found something:
My inat-tables.c is blank!
Going to get the source from Git and try again.
Thanks for the help!
Post by Borislav Petkov
Post by Randy Dunlap
Post by Borislav Petkov
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
$ 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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to ***@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
j***@gmail.com
2019-12-04 20:10:39 UTC
Permalink
Share it if you found a solution to the problem

Loading...