Github messages for voidlinux
 help / color / mirror / Atom feed
* Re: New package: wsjtx
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-11802@inbox.vuxu.org>
@ 2019-05-30  3:49 ` voidlinux-github
  0 siblings, 0 replies; only message in thread
From: voidlinux-github @ 2019-05-30  3:49 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1923 bytes --]

New comment by acobaugh on void-packages repository

https://github.com/void-linux/void-packages/pull/11802#issuecomment-496316659
Comment:
There are 2 issues with cross-compiling this package:
1) wsjtx is a cmake "uber" project, with hamlib and wsjtx itself as sub-projects. I patched the parent CMakeLists.txt to set `--host` on the hamlib ./configure command. The patch also passes the toolchain file down to the wsjtx subproject
2) The toolchain file was overriding `CMAKE_FIND_ROOT_PATH`. This was preventing the wsjtx subproject from finding the previously built libraries. I've worked around this in a post_configure() by appending to the toolchain file a `list(APPEND list item)` to put the project's build directory back in.

I'm now running into an issue with qmake setting (I think) the wrong --isystem/-I, resulting in this error:
```
[ 69%] Building CXX object CMakeFiles/wsjt_qtmm.dir/Audio/BWFFile.cpp.o
In file included from /usr/aarch64-linux-gnu/usr/include/c++/8.3.0/ext/string_conversions.h:41,
                 from /usr/aarch64-linux-gnu/usr/include/c++/8.3.0/bits/basic_string.h:6400,
                 from /usr/aarch64-linux-gnu/usr/include/c++/8.3.0/string:52,
                 from /usr/aarch64-linux-gnu/usr/include/c++/8.3.0/stdexcept:39,
                 from /usr/aarch64-linux-gnu/usr/include/c++/8.3.0/array:39,
                 from /builddir/wsjtx-2.0.1/build/wsjtx-prefix/src/wsjtx/Audio/BWFFile.hpp:4,
                 from /builddir/wsjtx-2.0.1/build/wsjtx-prefix/src/wsjtx/Audio/BWFFile.cpp:1:
/usr/aarch64-linux-gnu/usr/include/c++/8.3.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
 #include_next <stdlib.h>
               ^~~~~~~~~~
```

I'm unsure of how to fix this latest error, or even if my other fixes are "kosher" w.r.t. good packaging practices. I've grep'd through srcpkgs and I can't find any other packages that run into this issue.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-05-30  3:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-11802@inbox.vuxu.org>
2019-05-30  3:49 ` New package: wsjtx voidlinux-github

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).