Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#27035 closed defect (duplicate)

giac fails to build (clang/clang++)

Reported by: vdelecroix Owned by:
Priority: critical Milestone: sage-duplicate/invalid/wontfix
Component: packages: standard Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by vdelecroix)

duplicate of #25324

solve.cc:5751:23: error: non-constant-expression cannot be narrowed from type 'int' to 'short' in initializer list [-Wc++11-narrowing]
      order_t order_={order,lexvars};
                      ^~~~~
solve.cc:5751:23: note: insert an explicit cast to silence this issue
      order_t order_={order,lexvars};
                      ^~~~~
                      static_cast<short>( )
solve.cc:5751:29: error: non-constant-expression cannot be narrowed from type 'int' to 'unsigned char' in initializer list [-Wc++11-narrowing]
      order_t order_={order,lexvars};
                            ^~~~~~~
solve.cc:5751:29: note: insert an explicit cast to silence this issue
      order_t order_={order,lexvars};
                            ^~~~~~~
                            static_cast<unsigned char>( )
solve.cc:6962:21: error: non-constant-expression cannot be narrowed from type 'int' to 'short' in initializer list [-Wc++11-narrowing]
    order_t order_={order.val,0};
                    ^~~~~~~~~
solve.cc:6962:21: note: insert an explicit cast to silence this issue
    order_t order_={order.val,0};
                    ^~~~~~~~~
                    static_cast<short>( )

See also this message on sage-devel

Change History (4)

comment:1 Changed 2 years ago by dimpase

You need giac 1.5 on recent clangs. Please look up the giac upgrade ticket

comment:2 Changed 2 years ago by vdelecroix

  • Description modified (diff)
  • Milestone changed from sage-8.6 to sage-duplicate/invalid/wontfix
  • Status changed from new to needs_review

comment:3 Changed 2 years ago by embray

  • Resolution set to duplicate
  • Status changed from needs_review to closed

comment:4 Changed 2 years ago by dimpase

see #26315 for a tentative fix (with giac 1.5).

Note: See TracTickets for help on using tickets.