Skip to contentSkip to conversation

nf_nat_proto_sctp.c:(.text+0x6d173): undefined reference to `crc32c_le'

build bug Ingo Molnar 4 participants 5 messages Apr 21, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw
Quoted 3 lines

and after i restarted last night's QA run, within a few iterations a fourth build failure popped up:

and here's a fifth build failure in the networking code, triggered in our testing:

net/built-in.o: In function `sctp_manip_pkt':
nf_nat_proto_sctp.c:(.text+0x6d173): undefined reference to crc32c_le' nf_nat_proto_sctp.c:(.text+0x6d180): undefined reference to crc32c_le' nf_nat_proto_sctp.c:(.text+0x6d196): undefined reference to crc32c_le' nf_nat_proto_sctp.c:(.text+0x6d1c6): undefined reference to crc32c_le'

http://redhat.com/~mingo/misc/config-Mon_Apr_21_01_52_14_CEST_2008.bad

Ingo

maintainer
#1 lore raw

From: Ingo Molnar <[email protected]>
Date: Mon, 21 Apr 2008 08:22:44 +0200

Quoted 7 lines

net/built-in.o: In function `sctp_manip_pkt':
nf_nat_proto_sctp.c:(.text+0x6d173): undefined reference to crc32c_le' nf_nat_proto_sctp.c:(.text+0x6d180): undefined reference to crc32c_le' nf_nat_proto_sctp.c:(.text+0x6d196): undefined reference to crc32c_le' nf_nat_proto_sctp.c:(.text+0x6d1c6): undefined reference to crc32c_le'

http://redhat.com/~mingo/misc/config-Mon_Apr_21_01_52_14_CEST_2008.bad

Thanks for your report Ingo.

Patrick, I'm not so sure how to fix this, or even what's wrong.

NF_NAT_PROTO_SCTP does a proper select on LIBCRC32C, but somehow NF_NAT_PROTO_SCTP=y and LIBCRC32C=m.

I notice that IP_SCTP=m in this config. So perhaps the issue is the case where two features do a select on an infrastructure config option. Maybe whoever does the last 'select' gets to decide if the option gets set to 'y' or 'm'?

It's just a guess, as I still for the life of me can't figure out how these dependencies get sorted by the kbuild system in situations like this.

#2 lore raw
Quoted 11 lines · David Miller

From: Ingo Molnar <[email protected]>
Date: Mon, 21 Apr 2008 08:22:44 +0200

Quoted 7 lines

net/built-in.o: In function `sctp_manip_pkt':
nf_nat_proto_sctp.c:(.text+0x6d173): undefined reference to crc32c_le' nf_nat_proto_sctp.c:(.text+0x6d180): undefined reference to crc32c_le' nf_nat_proto_sctp.c:(.text+0x6d196): undefined reference to crc32c_le' nf_nat_proto_sctp.c:(.text+0x6d1c6): undefined reference to crc32c_le'

http://redhat.com/~mingo/misc/config-Mon_Apr_21_01_52_14_CEST_2008.bad

Quoted 7 lines

Thanks for your report Ingo.

Patrick, I'm not so sure how to fix this, or even what's wrong.

NF_NAT_PROTO_SCTP does a proper select on LIBCRC32C, but somehow NF_NAT_PROTO_SCTP=y and LIBCRC32C=m.
...

You added the select on Saturday after Pete Clements reported the same issue.

The select is not yet in Linus' tree.

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed
maintainer
#3 lore raw

From: Adrian Bunk <[email protected]>
Date: Mon, 21 Apr 2008 11:44:02 +0300

Quoted 16 lines · David Miller
Quoted 15 lines

From: Ingo Molnar <[email protected]>
Date: Mon, 21 Apr 2008 08:22:44 +0200

Quoted 7 lines

net/built-in.o: In function `sctp_manip_pkt':
nf_nat_proto_sctp.c:(.text+0x6d173): undefined reference to crc32c_le' nf_nat_proto_sctp.c:(.text+0x6d180): undefined reference to crc32c_le' nf_nat_proto_sctp.c:(.text+0x6d196): undefined reference to crc32c_le' nf_nat_proto_sctp.c:(.text+0x6d1c6): undefined reference to crc32c_le'

http://redhat.com/~mingo/misc/config-Mon_Apr_21_01_52_14_CEST_2008.bad

Thanks for your report Ingo.

Patrick, I'm not so sure how to fix this, or even what's wrong.

Quoted 8 lines
Quoted 3 lines

NF_NAT_PROTO_SCTP does a proper select on LIBCRC32C, but somehow NF_NAT_PROTO_SCTP=y and LIBCRC32C=m.
...

You added the select on Saturday after Pete Clements reported the same issue.

The select is not yet in Linus' tree.

Thanks for catching that Adrian.

#4 lore raw
Quoted 18 lines · David Miller

From: Adrian Bunk <[email protected]>
Date: Mon, 21 Apr 2008 11:44:02 +0300

Quoted 15 lines · David Miller
Quoted 14 lines

From: Ingo Molnar <[email protected]>
Date: Mon, 21 Apr 2008 08:22:44 +0200

Quoted 7 lines

net/built-in.o: In function `sctp_manip_pkt':
nf_nat_proto_sctp.c:(.text+0x6d173): undefined reference to crc32c_le' nf_nat_proto_sctp.c:(.text+0x6d180): undefined reference to crc32c_le' nf_nat_proto_sctp.c:(.text+0x6d196): undefined reference to crc32c_le' nf_nat_proto_sctp.c:(.text+0x6d1c6): undefined reference to crc32c_le'

http://redhat.com/~mingo/misc/config-Mon_Apr_21_01_52_14_CEST_2008.bad

Thanks for your report Ingo.

Patrick, I'm not so sure how to fix this, or even what's wrong.

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

NF_NAT_PROTO_SCTP does a proper select on LIBCRC32C, but somehow NF_NAT_PROTO_SCTP=y and LIBCRC32C=m.
...

You added the select on Saturday after Pete Clements reported the same issue.

The select is not yet in Linus' tree.

Thanks for catching that Adrian.

I've verified that Saturday's patch results in a correct looking config, with

CONFIG_NF_NAT_PROTO_SCTP=y
CONFIG_LIBCRC32C=y