* [ISSUE] `build_helper=qemu` has no effect with `build_style=cmake`?
@ 2024-01-02 22:44 MIvanchev
2024-01-02 23:40 ` oreo639
` (10 more replies)
0 siblings, 11 replies; 12+ messages in thread
From: MIvanchev @ 2024-01-02 22:44 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 582 bytes --]
New issue by MIvanchev on void-packages repository
https://github.com/void-linux/void-packages/issues/48034
Description:
I'm trying to build LibreSprite here https://github.com/void-linux/void-packages/pull/48030 but the cross-compiling checks are failing because the build depends on a compiled binary. I'm setting `build_helper=qemu` in the template and the host dependency is added but QEMU is not used to run the custom command here: https://github.com/LibreSprite/LibreSprite/blob/v1.0/src/app/CMakeLists.txt#L10. Could it be that the `build_style` script is broken somehow?
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: `build_helper=qemu` has no effect with `build_style=cmake`?
2024-01-02 22:44 [ISSUE] `build_helper=qemu` has no effect with `build_style=cmake`? MIvanchev
@ 2024-01-02 23:40 ` oreo639
2024-01-02 23:40 ` oreo639
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: oreo639 @ 2024-01-02 23:40 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 449 bytes --]
New comment by oreo639 on void-packages repository
https://github.com/void-linux/void-packages/issues/48034#issuecomment-1874689646
Comment:
That is an issue with LibreSprite's cmake stuff.
The `add_custom_command()` calls do not specify a target with CROSSCOMPILING_EMULATOR enabled, so, from my understanding qemu won't be used.
See here for more information:
https://cmake.org/cmake/help/latest/variable/CMAKE_CROSSCOMPILING_EMULATOR.html
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: `build_helper=qemu` has no effect with `build_style=cmake`?
2024-01-02 22:44 [ISSUE] `build_helper=qemu` has no effect with `build_style=cmake`? MIvanchev
2024-01-02 23:40 ` oreo639
@ 2024-01-02 23:40 ` oreo639
2024-01-02 23:41 ` oreo639
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: oreo639 @ 2024-01-02 23:40 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 451 bytes --]
New comment by oreo639 on void-packages repository
https://github.com/void-linux/void-packages/issues/48034#issuecomment-1874689646
Comment:
That is an issue with LibreSprite's cmake stuff.
The `add_custom_command()` calls do not specify a target with CROSSCOMPILING_EMULATOR enabled, so, from my understanding qemu won't be used.
See here for more information:
https://cmake.org/cmake/help/latest/variable/CMAKE_CROSSCOMPILING_EMULATOR.html
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: `build_helper=qemu` has no effect with `build_style=cmake`?
2024-01-02 22:44 [ISSUE] `build_helper=qemu` has no effect with `build_style=cmake`? MIvanchev
2024-01-02 23:40 ` oreo639
2024-01-02 23:40 ` oreo639
@ 2024-01-02 23:41 ` oreo639
2024-01-03 2:02 ` chrysos349
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: oreo639 @ 2024-01-02 23:41 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 467 bytes --]
New comment by oreo639 on void-packages repository
https://github.com/void-linux/void-packages/issues/48034#issuecomment-1874689646
Comment:
That is an issue with LibreSprite's cmake stuff.
The `add_custom_command()` calls do not specify a target with CROSSCOMPILING_EMULATOR enabled (or any target), so, from my understanding qemu won't be used.
See here for more information:
https://cmake.org/cmake/help/latest/variable/CMAKE_CROSSCOMPILING_EMULATOR.html
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: `build_helper=qemu` has no effect with `build_style=cmake`?
2024-01-02 22:44 [ISSUE] `build_helper=qemu` has no effect with `build_style=cmake`? MIvanchev
` (2 preceding siblings ...)
2024-01-02 23:41 ` oreo639
@ 2024-01-03 2:02 ` chrysos349
2024-01-03 8:35 ` [ISSUE] [CLOSED] " MIvanchev
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: chrysos349 @ 2024-01-03 2:02 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 323 bytes --]
New comment by chrysos349 on void-packages repository
https://github.com/void-linux/void-packages/issues/48034#issuecomment-1874766228
Comment:
> Could it be that the `build_style` script is broken somehow?
no, it's not broken. see here - https://github.com/void-linux/void-packages/pull/48030#issuecomment-1874765705
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [ISSUE] [CLOSED] `build_helper=qemu` has no effect with `build_style=cmake`?
2024-01-02 22:44 [ISSUE] `build_helper=qemu` has no effect with `build_style=cmake`? MIvanchev
` (3 preceding siblings ...)
2024-01-03 2:02 ` chrysos349
@ 2024-01-03 8:35 ` MIvanchev
2024-01-03 8:35 ` MIvanchev
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: MIvanchev @ 2024-01-03 8:35 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 585 bytes --]
Closed issue by MIvanchev on void-packages repository
https://github.com/void-linux/void-packages/issues/48034
Description:
I'm trying to build LibreSprite here https://github.com/void-linux/void-packages/pull/48030 but the cross-compiling checks are failing because the build depends on a compiled binary. I'm setting `build_helper=qemu` in the template and the host dependency is added but QEMU is not used to run the custom command here: https://github.com/LibreSprite/LibreSprite/blob/v1.0/src/app/CMakeLists.txt#L10. Could it be that the `build_style` script is broken somehow?
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: `build_helper=qemu` has no effect with `build_style=cmake`?
2024-01-02 22:44 [ISSUE] `build_helper=qemu` has no effect with `build_style=cmake`? MIvanchev
` (4 preceding siblings ...)
2024-01-03 8:35 ` [ISSUE] [CLOSED] " MIvanchev
@ 2024-01-03 8:35 ` MIvanchev
2024-01-03 13:29 ` sgn
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: MIvanchev @ 2024-01-03 8:35 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 437 bytes --]
New comment by MIvanchev on void-packages repository
https://github.com/void-linux/void-packages/issues/48034#issuecomment-1875008154
Comment:
Thanks to you both @chrysos349 and @oreo639!! It worked but I was somehow expecting for the emulation to happen automatically. At least that's what the docs on this property say https://cmake.org/cmake/help/latest/prop_tgt/CROSSCOMPILING_EMULATOR.html but I guess one has to set it manually.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: `build_helper=qemu` has no effect with `build_style=cmake`?
2024-01-02 22:44 [ISSUE] `build_helper=qemu` has no effect with `build_style=cmake`? MIvanchev
` (5 preceding siblings ...)
2024-01-03 8:35 ` MIvanchev
@ 2024-01-03 13:29 ` sgn
2024-01-03 13:30 ` sgn
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: sgn @ 2024-01-03 13:29 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 865 bytes --]
New comment by sgn on void-packages repository
https://github.com/void-linux/void-packages/issues/48034#issuecomment-1875373916
Comment:
- No, it's not broken, `CROSSCOMPILING_EMULATOR` works
- No, your reading in https://cmake.org/cmake/help/latest/prop_tgt/CROSSCOMPILING_EMULATOR.html is not wrong, you're reading it correctly
- However, it's not simply like that.
- In order to ask cmake use `CROSSCOMPILING_EMULATOR` to run those foreign executable, you need to tell cmake to run a target, instead of running some random files.
For example: https://github.com/fcitx/fcitx5/blob/1bf0cebe286aeeb87f9b7ae7e4ad69107abb095a/src/modules/spell/CMakeLists.txt#L24-L45
In your case, remove `${CMAKE_BINARY_DIR}/bin/` from https://github.com/LibreSprite/LibreSprite/blob/e3c4506ebc8f5a25a3e558c9d482445b7bc193be/src/app/CMakeLists.txt#L12 may work (untested)
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: `build_helper=qemu` has no effect with `build_style=cmake`?
2024-01-02 22:44 [ISSUE] `build_helper=qemu` has no effect with `build_style=cmake`? MIvanchev
` (6 preceding siblings ...)
2024-01-03 13:29 ` sgn
@ 2024-01-03 13:30 ` sgn
2024-01-03 13:33 ` sgn
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: sgn @ 2024-01-03 13:30 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1032 bytes --]
New comment by sgn on void-packages repository
https://github.com/void-linux/void-packages/issues/48034#issuecomment-1875373916
Comment:
- No, it's not broken, `CROSSCOMPILING_EMULATOR` works
- No, your reading in https://cmake.org/cmake/help/latest/prop_tgt/CROSSCOMPILING_EMULATOR.html is not wrong, you're reading it correctly
- However, it's not simply like that.
- In order to ask cmake use `CROSSCOMPILING_EMULATOR` to run those foreign executable, you need to tell cmake to run a target, instead of running some random files.
For example: https://github.com/fcitx/fcitx5/blob/1bf0cebe286aeeb87f9b7ae7e4ad69107abb095a/src/modules/spell/CMakeLists.txt#L24-L45
In your case, remove `${CMAKE_BINARY_DIR}/bin/` from https://github.com/LibreSprite/LibreSprite/blob/e3c4506ebc8f5a25a3e558c9d482445b7bc193be/src/app/CMakeLists.txt#L12 may work (untested)
If not, you may need to do this dance: https://github.com/fcitx/fcitx5/blob/1bf0cebe286aeeb87f9b7ae7e4ad69107abb095a/src/modules/spell/CMakeLists.txt#L25C35-L25C35
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: `build_helper=qemu` has no effect with `build_style=cmake`?
2024-01-02 22:44 [ISSUE] `build_helper=qemu` has no effect with `build_style=cmake`? MIvanchev
` (7 preceding siblings ...)
2024-01-03 13:30 ` sgn
@ 2024-01-03 13:33 ` sgn
2024-01-03 13:41 ` sgn
2024-01-03 13:46 ` sgn
10 siblings, 0 replies; 12+ messages in thread
From: sgn @ 2024-01-03 13:33 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1022 bytes --]
New comment by sgn on void-packages repository
https://github.com/void-linux/void-packages/issues/48034#issuecomment-1875373916
Comment:
- No, it's not broken, `CROSSCOMPILING_EMULATOR` works
- No, your reading in https://cmake.org/cmake/help/latest/prop_tgt/CROSSCOMPILING_EMULATOR.html is not wrong, you're reading it correctly
- However, it's not simply like that.
- In order to ask cmake use `CROSSCOMPILING_EMULATOR` to run those foreign executable, you need to tell cmake to run a target, instead of running some random files.
For example: https://github.com/fcitx/fcitx5/blob/1bf0cebe286aeeb87f9b7ae7e4ad69107abb095a/src/modules/spell/CMakeLists.txt#L24-L45
In your case, remove `${CMAKE_BINARY_DIR}/bin/` from https://github.com/LibreSprite/LibreSprite/blob/e3c4506ebc8f5a25a3e558c9d482445b7bc193be/src/app/CMakeLists.txt#L12 may work (untested)
If not, you may need to do this dance: https://github.com/fcitx/fcitx5/blob/1bf0cebe286aeeb87f9b7ae7e4ad69107abb095a/src/modules/spell/CMakeLists.txt#L25
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: `build_helper=qemu` has no effect with `build_style=cmake`?
2024-01-02 22:44 [ISSUE] `build_helper=qemu` has no effect with `build_style=cmake`? MIvanchev
` (8 preceding siblings ...)
2024-01-03 13:33 ` sgn
@ 2024-01-03 13:41 ` sgn
2024-01-03 13:46 ` sgn
10 siblings, 0 replies; 12+ messages in thread
From: sgn @ 2024-01-03 13:41 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 856 bytes --]
New comment by sgn on void-packages repository
https://github.com/void-linux/void-packages/issues/48034#issuecomment-1875373916
Comment:
- No, it's not broken, `CROSSCOMPILING_EMULATOR` works
- No, your reading in https://cmake.org/cmake/help/latest/prop_tgt/CROSSCOMPILING_EMULATOR.html is not wrong, you're reading it correctly
- However, it's not simply like that.
- In order to ask cmake use `CROSSCOMPILING_EMULATOR` to run those foreign executable, you need to tell cmake to run a target, instead of running some random files.
For example: https://github.com/fcitx/fcitx5/blob/1bf0cebe286aeeb87f9b7ae7e4ad69107abb095a/src/modules/spell/CMakeLists.txt#L24-L45
In your case, remove `${CMAKE_BINARY_DIR}/bin/` from https://github.com/LibreSprite/LibreSprite/blob/e3c4506ebc8f5a25a3e558c9d482445b7bc193be/src/app/CMakeLists.txt#L12 may work
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: `build_helper=qemu` has no effect with `build_style=cmake`?
2024-01-02 22:44 [ISSUE] `build_helper=qemu` has no effect with `build_style=cmake`? MIvanchev
` (9 preceding siblings ...)
2024-01-03 13:41 ` sgn
@ 2024-01-03 13:46 ` sgn
10 siblings, 0 replies; 12+ messages in thread
From: sgn @ 2024-01-03 13:46 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1010 bytes --]
New comment by sgn on void-packages repository
https://github.com/void-linux/void-packages/issues/48034#issuecomment-1875373916
Comment:
- No, it's not broken, `CROSSCOMPILING_EMULATOR` works
- No, your reading in https://cmake.org/cmake/help/latest/prop_tgt/CROSSCOMPILING_EMULATOR.html is not wrong, you're reading it correctly
- However, it's not simply like that.
- In order to ask cmake use `CROSSCOMPILING_EMULATOR` to run those foreign executable, you need to tell cmake to run a target, instead of running some random files.
> This command will be added as a prefix to add_test(), add_custom_command(), and add_custom_target() commands **for built target system executables.**
For example: https://github.com/fcitx/fcitx5/blob/1bf0cebe286aeeb87f9b7ae7e4ad69107abb095a/src/modules/spell/CMakeLists.txt#L24-L45
In your case, remove `${CMAKE_BINARY_DIR}/bin/` from https://github.com/LibreSprite/LibreSprite/blob/e3c4506ebc8f5a25a3e558c9d482445b7bc193be/src/app/CMakeLists.txt#L12 may work
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2024-01-03 13:46 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-02 22:44 [ISSUE] `build_helper=qemu` has no effect with `build_style=cmake`? MIvanchev
2024-01-02 23:40 ` oreo639
2024-01-02 23:40 ` oreo639
2024-01-02 23:41 ` oreo639
2024-01-03 2:02 ` chrysos349
2024-01-03 8:35 ` [ISSUE] [CLOSED] " MIvanchev
2024-01-03 8:35 ` MIvanchev
2024-01-03 13:29 ` sgn
2024-01-03 13:30 ` sgn
2024-01-03 13:33 ` sgn
2024-01-03 13:41 ` sgn
2024-01-03 13:46 ` sgn
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).