Insufficient RPC options for crosstool-ng toolchain
I'm getting an error about a missing rpc_msg.h while building conntrack-tools. That package selects libtirpc if !BR2_TOOLCHAIN_HAS_NATIVE_RPC. I'm having BR build the toolchain using ct-ng; I looked at the toolchain-crosstool-ng/Config.in and it selects BR2_TOOLCHAIN_HAS_NATIVE_RPC because the ct-ng config that ships with BR uses glibc 2.9. My ct-ng config uses glibc 2.14, which doesn't have native RPC support.
I started to make a patch that allows for explicitly selecting BR2_TOOLCHAIN_HAS_NATIVE_RPC like the external-toolchain allows, but I ran across check_glibc function and the ext-toolchain-checked stamp and it looks like quite a lot, so I wanted to find out if you actually want all that for this fix.
Dear Shawn J. Goff,
Quoted 7 lines · Shawn J. Goff
I'm getting an error about a missing
rpc_msg.hwhile building conntrack-tools. That package selects libtirpc if !BR2_TOOLCHAIN_HAS_NATIVE_RPC. I'm having BR build the toolchain using ct-ng; I looked at the toolchain-crosstool-ng/Config.in and it selectsBR2_TOOLCHAIN_HAS_NATIVE_RPCbecause the ct-ng config that ships with BR uses glibc 2.9. My ct-ng config uses glibc 2.14, which doesn't have native RPC support.
Correct.
Quoted 2 lines
I started to make a patch that allows for explicitly selecting
BR2_TOOLCHAIN_HAS_NATIVE_RPClike the external-toolchain allows,
Seems like the good solution yes.
Quoted 4 lines
but I
ran acrosscheck_glibcfunction and the ext-toolchain-checked stamp and it looks like quite a lot, so I wanted to find out if you actually want all that for this fix.
What problems did you encounter exactly? It should be fairly similar to what we do for external toolchains I believe, no?
Thanks,
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
Quoted 14 lines · Thomas Petazzoni
Dear Shawn J. Goff,
Quoted 7 lines · Shawn J. Goff
I'm getting an error about a missing
rpc_msg.hwhile building conntrack-tools. That package selects libtirpc if !BR2_TOOLCHAIN_HAS_NATIVE_RPC. I'm having BR build the toolchain using ct-ng; I looked at the toolchain-crosstool-ng/Config.in and it selectsBR2_TOOLCHAIN_HAS_NATIVE_RPCbecause the ct-ng config that ships with BR uses glibc 2.9. My ct-ng config uses glibc 2.14, which doesn't have native RPC support.Correct.
Quoted 2 lines
I started to make a patch that allows for explicitly selecting
BR2_TOOLCHAIN_HAS_NATIVE_RPClike the external-toolchain allows,
Quoted 8 lines
Seems like the good solution yes.
Quoted 4 lines
but I
ran acrosscheck_glibcfunction and the ext-toolchain-checked stamp and it looks like quite a lot, so I wanted to find out if you actually want all that for this fix.What problems did you encounter exactly? It should be fairly similar to what we do for external toolchains I believe, no?
No problems, it just that when I started down the path, I thought it would be just an option, but there turned out to be this whole toolchain-checked thing behind it, so I wanted to make sure that is what's wanted before I do it.
Dear Shawn J. Goff,
Quoted 4 lines · Shawn J. Goff
No problems, it just that when I started down the path, I thought it would be just an option, but there turned out to be this whole toolchain-checked thing behind it, so I wanted to make sure that is what's wanted before I do it.
Yann will confirm or infirm, but since the glibc version selection is not done in Buildroot, but directly inside Crosstool-NG, there is no way for Buildroot to automatically now if the glibc of the toolchain will have RPC support or not. Therefore, the only practical solution is to have an option similar to the one we have in external toolchain, where we leave it to the user to say whether the toolchain generated by Crosstool-NG will have RPC support or not.
However, I haven't thought in detail about the detailed impact on the implementation.
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
Shawn, Thomas, All,
Quoted 10 lines · On Tuesday 05 February 2013 Thomas Petazzoni wrote:
Quoted 4 lines · Shawn J. Goff
No problems, it just that when I started down the path, I thought it would be just an option, but there turned out to be this whole toolchain-checked thing behind it, so I wanted to make sure that is what's wanted before I do it.
Yann will confirm or infirm, but since the glibc version selection is not done in Buildroot, but directly inside Crosstool-NG, there is no way for Buildroot to automatically now if the glibc of the toolchain will have RPC support or not.
Indeed.
Quoted 4 lines
Therefore, the only practical solution is
to have an option similar to the one we have in external toolchain, where we leave it to the user to say whether the toolchain generated by Crosstool-NG will have RPC support or not.
I can't see any other solution either.
Regards,
Yann E. MORIN.
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'