* [ISSUE] protobuf-c: binary disabled during cross-compiling
@ 2021-11-14 23:22 natrys
2021-11-14 23:29 ` ericonr
2021-11-14 23:30 ` [ISSUE] [CLOSED] " Johnnynator
0 siblings, 2 replies; 3+ messages in thread
From: natrys @ 2021-11-14 23:22 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 983 bytes --]
New issue by natrys on void-packages repository
https://github.com/void-linux/void-packages/issues/34084
Description:
I was building a nocross package (postgis) on aarch64, where the build somewhat confusingly failed because a dependency (protobuf-c) was missing its binary.
It appears that building the compiler binary was disabled for cross-compilation in the template, with reasoning being:
```
# buildprocess calls compiler while building, disable it on cross build
build_options="protoc"
desc_option_protoc="Build protoc-c compiler"
if [ -z "$CROSS_BUILD" ]; then
build_options_default="protoc"
fi
```
But I wonder if this is not a problem any more. To test, I have cross-compiled it with `protoc` option enabled on x86_64 host, and it seemed to build and then work fine on aarch64 target. Upstream issue tracker had resolved number of cross-compilation related issues since this, and I think this is expected to be fine now. Perhaps someone else can verify.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: protobuf-c: binary disabled during cross-compiling
2021-11-14 23:22 [ISSUE] protobuf-c: binary disabled during cross-compiling natrys
@ 2021-11-14 23:29 ` ericonr
2021-11-14 23:30 ` [ISSUE] [CLOSED] " Johnnynator
1 sibling, 0 replies; 3+ messages in thread
From: ericonr @ 2021-11-14 23:29 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 246 bytes --]
New comment by ericonr on void-packages repository
https://github.com/void-linux/void-packages/issues/34084#issuecomment-968385706
Comment:
if it's working, should be fine to remove the build option and just always build it, imo.
@ahesford
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ISSUE] [CLOSED] protobuf-c: binary disabled during cross-compiling
2021-11-14 23:22 [ISSUE] protobuf-c: binary disabled during cross-compiling natrys
2021-11-14 23:29 ` ericonr
@ 2021-11-14 23:30 ` Johnnynator
1 sibling, 0 replies; 3+ messages in thread
From: Johnnynator @ 2021-11-14 23:30 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 986 bytes --]
Closed issue by natrys on void-packages repository
https://github.com/void-linux/void-packages/issues/34084
Description:
I was building a nocross package (postgis) on aarch64, where the build somewhat confusingly failed because a dependency (protobuf-c) was missing its binary.
It appears that building the compiler binary was disabled for cross-compilation in the template, with reasoning being:
```
# buildprocess calls compiler while building, disable it on cross build
build_options="protoc"
desc_option_protoc="Build protoc-c compiler"
if [ -z "$CROSS_BUILD" ]; then
build_options_default="protoc"
fi
```
But I wonder if this is not a problem any more. To test, I have cross-compiled it with `protoc` option enabled on x86_64 host, and it seemed to build and then work fine on aarch64 target. Upstream issue tracker had resolved number of cross-compilation related issues since this, and I think this is expected to be fine now. Perhaps someone else can verify.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-11-14 23:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-14 23:22 [ISSUE] protobuf-c: binary disabled during cross-compiling natrys
2021-11-14 23:29 ` ericonr
2021-11-14 23:30 ` [ISSUE] [CLOSED] " Johnnynator
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).