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

FreeBSD: fails to build on i386 #60

Open
nunotexbsd opened this issue Mar 29, 2023 · 1 comment
Open

FreeBSD: fails to build on i386 #60

nunotexbsd opened this issue Mar 29, 2023 · 1 comment

Comments

@nunotexbsd
Copy link

nunotexbsd commented Mar 29, 2023

0.8.0 fails to build on i386 (meson):
Don't have results for armv6, armv7 and other 32bit archs.

Full log: https://people.freebsd.org/~eduardo/logs/paps/124i386_paps-0.8.0.log

===>  Configuring for paps-0.8.0
The Meson build system
Version: 1.0.1
Source dir: /wrkdirs/usr/ports/print/paps/work/paps-0.8.0
Build dir: /wrkdirs/usr/ports/print/paps/work/paps-0.8.0/_build
Build type: native build
Project name: paps
Project version: 0.8.0
C compiler for the host machine: cc (clang 13.0.0 "FreeBSD clang version 13.0.0 (git@github.com:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303)")
C linker for the host machine: cc ld.lld 13.0.0
C++ compiler for the host machine: c++ (clang 13.0.0 "FreeBSD clang version 13.0.0 (git@github.com:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303)")
C++ linker for the host machine: c++ ld.lld 13.0.0
Host machine cpu family: x86
Host machine cpu: i386

<snip>

paps 0.8.0

  User defined options
    buildtype : release
    infodir   : share/info
    mandir    : man
    prefix    : /usr/local
    strip     : True
    b_colorout: never

<snip>

In file included from ../src/format_from_dict.h:25:
In file included from /usr/include/c++/v1/string:522:
In file included from /usr/include/c++/v1/algorithm:653:
In file included from /usr/include/c++/v1/functional:495:
In file included from /usr/include/c++/v1/__functional/bind_front.h:14:
In file included from /usr/include/c++/v1/__functional/perfect_forward.h:14:
/usr/include/c++/v1/tuple:1189:5: error: static_assert failed due to requirement 'value != __ambiguous' "type occurs more than once in type list"
    static_assert(value != __ambiguous, "type occurs more than once in type list");
    ^             ~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/v1/tuple:1201:14: note: in instantiation of template class 'std::__find_detail::__find_exactly_one_checked<int, int, std::string, double, int>' requested here
    : public __find_detail::__find_exactly_one_checked<_T1, _Args...> {
             ^
/usr/include/c++/v1/variant:1470:30: note: in instantiation of template class 'std::__find_exactly_one_t<int, int, std::string, double, int>' requested here
  return __holds_alternative<__find_exactly_one_t<_Tp, _Types...>::value>(__v);
                             ^
../src/format_from_dict.cc:38:7: note: in instantiation of function template specialization 'std::holds_alternative<int, int, std::string, double, int>' requested here
  if (holds_alternative<int>(scalar))
      ^
../src/format_from_dict.cc:52:7: error: no matching function for call to 'holds_alternative'
  if (holds_alternative<time_t>(scalar))
      ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/v1/variant:1469:16: note: candidate template ignored: substitution failure [with _Tp = int, _Types = <int, std::string, double, int>]
constexpr bool holds_alternative(const variant<_Types...>& __v) noexcept {
               ^
2 errors generated.
[ 66% 2/3] c++ -Isrc/paps.p -Isrc -I../src -I. -I.. -I/usr/local/include/pango-1.0 -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/harfbuzz -I/usr/local/include/freetype2 -I/usr/local/include/libpng16 -I/usr/local/include/fribidi -I/usr/local/include/cairo -I/usr/local/include/pixman-1 -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c++17 -O3 -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -pthread -D_THREAD_SAFE -MD -MQ src/paps.p/paps.cc.o -MF src/paps.p/paps.cc.o.d -o src/paps.p/paps.cc.o -c ../src/paps.cc
FAILED: src/paps.p/paps.cc.o
c++ -Isrc/paps.p -Isrc -I../src -I. -I.. -I/usr/local/include/pango-1.0 -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/harfbuzz -I/usr/local/include/freetype2 -I/usr/local/include/libpng16 -I/usr/local/include/fribidi -I/usr/local/include/cairo -I/usr/local/include/pixman-1 -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c++17 -O3 -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -pthread -D_THREAD_SAFE -MD -MQ src/paps.p/paps.cc.o -MF src/paps.p/paps.cc.o.d -o src/paps.p/paps.cc.o -c ../src/paps.cc
../src/paps.cc:1400:30: error: no viable overloaded '='
  document_info["num_pages"] = 0;
  ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
/usr/include/c++/v1/variant:1365:12: note: candidate function not viable: no known conversion from 'int' to 'const std::variant<int, std::string, double, int>' for 1st argument
  variant& operator=(const variant&) = default;
           ^
/usr/include/c++/v1/variant:1366:12: note: candidate function not viable: no known conversion from 'int' to 'std::variant<int, std::string, double, int>' for 1st argument
  variant& operator=(variant&&) = default;
           ^
/usr/include/c++/v1/variant:1377:12: note: candidate template ignored: substitution failure [with _Arg = int, $1 = 0]: no type named 'type' in 'std::invoke_result<std::__variant_detail::__all_overloads<std::__variant_detail::__overload<int, 0>, std::__variant_detail::__overload<std::string, 1>, std::__variant_detail::__overload<double, 2>, std::__variant_detail::__overload<int, 3>>, int, int>'
  variant& operator=(_Arg&& __arg) noexcept(
           ^
../src/paps.cc:1412:33: error: no viable overloaded '='
      document_info["page_idx"] = page_idx;
      ~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~
/usr/include/c++/v1/variant:1365:12: note: candidate function not viable: no known conversion from 'int' to 'const std::variant<int, std::string, double, int>' for 1st argument
(...)
@nunotexbsd
Copy link
Author

Is this a sign that all 32bit archs are affected?
I could update port only for 64bit until problem is fixed.

Thanks

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

1 participant