Opened 17 months ago

Last modified 2 months ago

#29613 new defect

homebrew-macos-standard-gcc_spkg: givaro fails to build

Reported by: mkoeppe Owned by:
Priority: minor Milestone: sage-9.5
Component: packages: standard Keywords:
Cc: jhpalmieri, slelievre, dimpase, fbissey, cpernet Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: #30725 Stopgaps:

Status badges

Description (last modified by mkoeppe)

On homebrew-macos-standard-gcc_spkg, givaro fails to build:

/bin/bash ../libtool  --tag=CXX   --mode=link g++ -O2 -Wall -DNDEBUG -UGIVARO_DEBUG -UDEBUG -fabi-version=6   -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx 
-mavx2 -mfma -version-info 10:1:1 -no-undefined -L/Users/mkoeppe/s/sage/sage-rebasing/worktree-algebraic-2018-spring/.tox/local-homebrew-macos-standard-gcc_spkg/l
ocal/lib -Wl,-rpath,/Users/mkoeppe/s/sage/sage-rebasing/worktree-algebraic-2018-spring/.tox/local-homebrew-macos-standard-gcc_spkg/local/lib  -L/Users/mkoeppe/s/s
age/sage-rebasing/worktree-algebraic-2018-spring/.tox/local-homebrew-macos-standard-gcc_spkg/local/lib -Wl,-rpath,/Users/mkoeppe/s/sage/sage-rebasing/worktree-alg
ebraic-2018-spring/.tox/local-homebrew-macos-standard-gcc_spkg/local/lib  -o -rpath /Users/mkoeppe/s/sage/sage-rebasing/worktree-algebraic-2018-sprin
g/.tox/local-homebrew-macos-standard-gcc_spkg/local/lib dummy.lo kernel/gmp++/ kernel/bstruct/ kernel/integer/ kernel/m
emory/ kernel/rational/ kernel/system/ kernel/field/ library/tools/ library/poly1/libgi -lgmp -lgmpxx
libtool: link: g++ -dynamiclib  -o .libs/libgivaro.9.dylib  .libs/dummy.o   -Wl,-force_load,kernel/gmp++/.libs/libgmppp.a -Wl,-force_load,kernel/bstruct/.libs/libgivbstruct.a -Wl,-force_load,kernel/integer/.libs/libgivinteger.a -Wl,-force_load,kernel/memory/.libs/libgivmemory.a -Wl,-force_load,kernel/rational/.libs/libgivrational.a -Wl,-force_load,kernel/system/.libs/libgivsystem.a -Wl,-force_load,kernel/field/.libs/libgivfield.a -Wl,-force_load,library/tools/.libs/libgivtools.a -Wl,-force_load,library/poly1/.libs/libgivpoly1.a  -L/Users/mkoeppe/s/sage/sage-rebasing/worktree-algebraic-2018-spring/.tox/local-homebrew-macos-standard-gcc_spkg/local/lib -lgmp -lgmpxx  -O2 -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -mavx2 -mfma -Wl,-rpath -Wl,/Users/mkoeppe/s/sage/sage-rebasing/worktree-algebraic-2018-spring/.tox/local-homebrew-macos-standard-gcc_spkg/local/lib -Wl,-rpath -Wl,/Users/mkoeppe/s/sage/sage-rebasing/worktree-algebraic-2018-spring/.tox/local-homebrew-macos-standard-gcc_spkg/local/lib   -install_name  /Users/mkoeppe/s/sage/sage-rebasing/worktree-algebraic-2018-spring/.tox/local-homebrew-macos-standard-gcc_spkg/local/lib/libgivaro.9.dylib -compatibility_version 11 -current_version 11.1 -Wl,-single_module
Undefined symbols for architecture x86_64:
  "operator<<(std::basic_ostream<char, std::char_traits<char> >&, __mpz_struct const*)", referenced from:
      Givaro::Integer::print(std::basic_ostream<char, std::char_traits<char> >&) const in libgmppp.a(gmp++_int_io.o)
      Givaro::operator<<(std::basic_ostream<char, std::char_traits<char> >&, Givaro::Integer const&) in libgmppp.a(gmp++_int_io.o)
  "operator>>(std::basic_istream<char, std::char_traits<char> >&, __mpz_struct*)", referenced from:
      Givaro::operator>>(std::basic_istream<char, std::char_traits<char> >&, Givaro::Integer&) in libgmppp.a(gmp++_int_io.o)
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make[7]: *** [] Error 1

(from #29580).

Likewise with gcc-10 on homebrew.

Change History (13)

comment:1 Changed 17 months ago by jhpalmieri

  • Priority changed from major to minor

I think this is low priority: building with a Sage-built gcc instead of the system's clang is experimental and (as far as I know) not needed on any OS X system.

comment:2 Changed 17 months ago by mkoeppe

I agree

comment:3 Changed 17 months ago by mkoeppe

  • Milestone changed from sage-9.1 to sage-9.2

comment:4 Changed 11 months ago by mkoeppe

  • Milestone changed from sage-9.2 to sage-9.3

comment:5 Changed 8 months ago by mkoeppe

  • Cc fbissey added

comment:6 Changed 8 months ago by fbissey

Looks seriously broken to me. The way libtool is trying to build an link looks terrible.

comment:8 Changed 8 months ago by mkoeppe

  • Dependencies set to #30725

comment:9 Changed 8 months ago by mkoeppe

  • Description modified (diff)

comment:10 Changed 8 months ago by fbissey

I guess it doesn't hurt to try but as far as I can see, -lgmpxx is not missing from the linking line.

comment:11 Changed 8 months ago by mkoeppe

  • Cc cpernet added

Hopefully there will be a new release at some point...

comment:12 Changed 6 months ago by mkoeppe

  • Milestone changed from sage-9.3 to sage-9.4

Sage development has entered the release candidate phase for 9.3. Setting a new milestone for this ticket based on a cursory review of ticket status, priority, and last modification date.

comment:13 Changed 2 months ago by mkoeppe

  • Milestone changed from sage-9.4 to sage-9.5
Note: See TracTickets for help on using tickets.