tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Updating math/mpcomplex



On 29 January 2018 at 12:14, David Brownlee <abs%absd.org@localhost> wrote:
>
> With the latest pkgsrc math/mpcomplex fails to build for me with the following:
>
> /bin/sh ../libtool  --tag=CC    --mode=compile gcc -DHAVE_CONFIG_H  -I. -I..   -I/usr/pkg/include   -O2 -pipe -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -MT mul.lo -MD -MP -MF .deps/mul.Tpo -c -o mul.lo mul.c
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I/var/obj/pkg/math/mpcomplex/work/.buildlink/include -O2 -pipe -D_FORTIFY_SOURCE=2 -MT mul.lo -MD -MP -MF .deps/mul.Tpo -c mul.c  -fPIC -DPIC -o .libs/mul.o
> mul.c:175:1: error: conflicting types for 'mpfr_fmma'
>  mpfr_fmma (mpfr_ptr z, mpfr_srcptr a, mpfr_srcptr b, mpfr_srcptr c,
>  ^
> In file included from mpc.h:25:0,
>                  from mpc-impl.h:30,
>                  from mul.c:22:
> /var/obj/pkg/math/mpcomplex/work/.buildlink/include/mpfr.h:731:21: note: previous declaration of 'mpfr_fmma' was here
>  __MPFR_DECLSPEC int mpfr_fmma (mpfr_ptr, mpfr_srcptr, mpfr_srcptr, mpfr_srcptr,
>                      ^
>
> I'd updated from 1.0.3 to 1.1.0 locally and everything seems to work (my test case was building gcc48 to then build xentool48).
>
> Changelog below - any reason I shouldn't commit (and do I need to PKGREVISION biump anything - the new version updates from libmpc.so.3.0.0 to libmpc.so.3.1.0
>
> David
>
> Changes in version 1.1.0:
>   - Minimally required library versions: GMP 5.0.0 and MPFR 3.0.0
>   - Fixed issues with MPFR 4.0.0
>   - New functions: mpc_cmp_abs, mpc_rootofunity
>   - Improved speed for corner cases of mpc_asin, mpc_sin, see
>     http://lists.gforge.inria.fr/pipermail/mpc-discuss/2013-December/001266.html
>   - Rewrite of the testing framework
>   - New mpcbench tool, used with "make bench"
>   - Fixed handling of over- and underflows with directed rounding in the
>     "other direction" for mpc_cos, mpc_sin, mpc_exp and mpc_pow, see
>     http://lists.gforge.inria.fr/pipermail/mpc-discuss/2015-March/001336.html
>   - Fixed a bug in mpc_atan(0,y) with |y| near 1, see
>     http://lists.gforge.inria.fr/pipermail/mpc-discuss/2017-March/001404.html
>

Sorry - I meant to park that message in drafts until the build/test
had finished - gcc48 failed for me after mpcomplex was updated with:

/var/obj/pkg/lang/gcc48/work/build/./prev-gcc/xg++
-B/var/obj/pkg/lang/gcc48/work/build/./prev-gcc/
-B/usr/pkg/gcc48/x86_64--netbsd/bin/ -nostdinc++
-B/var/obj/pkg/lang/gcc48/work/build/prev-x86_64--netbsd/libstdc++-v3/src/.libs
-B/var/obj/pkg/lang/gcc48/work/build/prev-x86_64--netbsd/libstdc++-v3/libsupc++/.libs
-I/var/obj/pkg/lang/gcc48/work/build/prev-x86_64--netbsd/libstdc++-v3/include/x86_64--netbsd
-I/var/obj/pkg/lang/gcc48/work/build/prev-x86_64--netbsd/libstdc++-v3/include
-I/var/obj/pkg/lang/gcc48/work/gcc-4.8.5/libstdc++-v3/libsupc++
-L/var/obj/pkg/lang/gcc48/work/build/prev-x86_64--netbsd/libstdc++-v3/src/.libs
-L/var/obj/pkg/lang/gcc48/work/build/prev-x86_64--netbsd/libstdc++-v3/libsupc++/.libs
  -g -O2 -gtoggle -DIN_GCC   -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H
-static-libstdc++ -static-libgcc -Wl,-R/usr/pkg/lib   -o cc1
c/c-lang.o c-family/stub-objc.o attribs.o c/c-errors.o c/c-decl.o
c/c-typeck.o c/c-convert.o c/c-aux-info.o c/c-objc-common.o
c/c-parser.o c-family/c-common.o c-family/c-cppbuiltin.o
c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o
c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o
c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o
c-family/c-semantics.o c-family/c-ada-spec.o tree-mudflap.o i386-c.o
default-c.o \
  cc1-checksum.o libbackend.a main.o  libcommon-target.a libcommon.a
../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a
../libcpp/libcpp.a ./../intl/libintl.a
../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a
../libdecnumber/libdecnumber.a   -L/usr/pkg/lib -L/usr/pkg/lib
-L/usr/pkg/lib -lmpc -lmpfr -lgmp -rdynamic  -L../zlib -lz
/usr/pkg/lib/libmpfr.so: undefined reference to `__gttf2@GCC_3.0'
/usr/pkg/lib/libmpfr.so: undefined reference to `__extenddftf2@GCC_3.0'
/usr/pkg/lib/libmpfr.so: undefined reference to `__fixunstfdi@GCC_3.0'
/usr/pkg/lib/libmpfr.so: undefined reference to `__eqtf2@GCC_3.0'
/usr/pkg/lib/libmpfr.so: undefined reference to `__lttf2@GCC_3.0'
/usr/pkg/lib/libmpfr.so: undefined reference to `__letf2@GCC_3.0'
/usr/pkg/lib/libmpfr.so: undefined reference to `__addtf3@GCC_3.0'
/usr/pkg/lib/libmpfr.so: undefined reference to `__multf3@GCC_3.0'
/usr/pkg/lib/libmpfr.so: undefined reference to `__getf2@GCC_3.0'
/usr/pkg/lib/libmpfr.so: undefined reference to `__floatunditf@GCC_4.2.0'
/usr/pkg/lib/libmpfr.so: undefined reference to `__netf2@GCC_3.0'
/usr/pkg/lib/libmpfr.so: undefined reference to `__subtf3@GCC_3.0'
/usr/pkg/lib/libmpfr.so: undefined reference to `__trunctfdf2@GCC_3.0'
collect2: error: ld returned 1 exit status
../../gcc-4.8.5/gcc/c/Make-lang.in:78: recipe for target 'cc1' failed

Anyone have any thoughts?

David


Home | Main Index | Thread Index | Old Index