Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boost & aarch64 #27398

Open
unspecd opened this issue Dec 24, 2020 · 2 comments
Open

Boost & aarch64 #27398

unspecd opened this issue Dec 24, 2020 · 2 comments
Assignees

Comments

@unspecd
Copy link
Contributor

unspecd commented Dec 24, 2020

System

  • xuname:
    Void 5.10.2_1 x86_64-musl GenuineIntel uptodate rrrnFFFFFFFFF
  • package:
    boost-1.72.0_4, gnucash-4.2_3

I'm trying to build gnucash for aarch64-musl:

[ 96%] Linking CXX executable ../bin/gnucash
/usr/lib/gcc/aarch64-linux-musl/9.3.0/../../../../aarch64-linux-musl/bin/ld: ../lib/gnucash/libgnc-csv-import.so: undefined reference to `boost::icu_regex_traits::isctype(int, unsigned long) const'
/usr/lib/gcc/aarch64-linux-musl/9.3.0/../../../../aarch64-linux-musl/bin/ld: ../lib/gnucash/libgnc-csv-import.so: undefined reference to `boost::re_detail_107200::icu_regex_traits_implementation::do_transform(int const*, int const*, icu_67::Collator const*) const'
/usr/lib/gcc/aarch64-linux-musl/9.3.0/../../../../aarch64-linux-musl/bin/ld: ../lib/gnucash/libgnc-csv-import.so: undefined reference to `boost::basic_regex<int, boost::icu_regex_traits>::do_assign(int const*, int const*, unsigned int)'

Steps to reproduce the behavior

$ cd $(xdistdir)
$ git checkout 06a99096ea
$ sed -i srcpkgs/gnucash/template -e '/nocross/d'
$ echo 'make_build_args="gnucash"' >> srcpkgs/gnucash/template
$ echo 'hostmakedepends+=" glib-devel"' >> srcpkgs/gnucash/template
$ echo 'makedepends+=" libatomic_ops-devel"' >> srcpkgs/gnucash/template
$ ./xbps-src -a aarch64-musl build gnucash
@unspecd
Copy link
Contributor Author

unspecd commented Dec 24, 2020

#27320 (comment)

@unspecd
Copy link
Contributor Author

unspecd commented Dec 24, 2020

Here is a minimal non-working example:

// regex.cpp
#include <boost/regex.hpp>
#include <boost/regex/icu.hpp>

int main()
{
    std::string str = "";
    auto expr = boost::make_u32regex(str);
    //std::string str_no_symbols = boost::u32regex_replace(str, expr, "");

    return 0;
}
$ $(xdistdir)/masterdir/bin/aarch64-linux-musl-g++ \
    --sysroot=$(xdistdir)/masterdir/usr/aarch64-linux-musl -o regex regex.cpp -lboost_regex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants