Github messages for voidlinux
 help / color / mirror / Atom feed
From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: Re: New package: wsjtx
Date: Thu, 30 May 2019 05:49:24 +0200	[thread overview]
Message-ID: <20190530034924.Eume90NWM-FDSkMY31yU-F8i-E8tEQ7hAsHmhsZ3-B8@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-11802@inbox.vuxu.org>

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

           reply	other threads:[~2019-05-30  3:49 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-11802@inbox.vuxu.org>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190530034924.Eume90NWM-FDSkMY31yU-F8i-E8tEQ7hAsHmhsZ3-B8@z \
    --to=voidlinux-github@inbox.vuxu.org \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).