Hello,

I'm trying to compile math/sage (6.7) on FreeBSD/amd64 10.2-STABLE #0 r292989,
and I'm getting the following error message (see file sage-bug.txt).

The gist is this:

make[6]: Entering directory 
'/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/local/var/tmp/sage/build/zeromq-4.0.5/src/src'
  CXX    libzmq_la-address.lo
  CXX    libzmq_la-clock.lo
  CXX    libzmq_la-ctx.lo
ctx.cpp:39:20: fatal error: sodium.h: No such file or directory
 #include <sodium.h>

When configuring zeromq within sage, configure must get the option
--with-libsodium set to /usr/local, so that it picks up
/usr/local/include/sodium.h and /usr/local/lib/libsodium.so.* from
installed:

libsodium-1.0.3                Library to build higher-level cryptographic tools

Thank you for fixing this.

Kind regards,
-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
Script started on Wed Mar  9 23:22:34 2016

root@phenom:/usr/ports/math/sage # printenv
SCRIPT=/var/tmp/sage-bug.txt
TMUX_PANE=%2
TMUX=/tmp/tmux-0/default,999,0
TERM=screen
USER=root
LOGNAME=root
HOME=/root
SHELL=/bin/csh
BLOCKSIZE=K
MAIL=/var/mail/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin
HOSTTYPE=FreeBSD
VENDOR=amd
OSTYPE=FreeBSD
MACHTYPE=x86_64
SHLVL=2
PWD=/usr/ports/math/sage
GROUP=wheel
HOST=phenom.cordula.ws
EDITOR=vi
PAGER=more
CCACHE_DIR=/zvolenc/backup/.ccache
UBLIO_BLOCKSIZE=2097152
WRKDIRPREFIX=/zvolenc/backup/WORK
FORCE_PKG_REGISTER=true
MAKE_JOBS_UNSAFE=yes
SAGE_KEEP_BUILT_SPKGS=yes

root@phenom:/usr/ports/math/sage # uname -a
FreeBSD phenom.cordula.ws 10.2-STABLE FreeBSD 10.2-STABLE #0 r292989: Thu Dec 
31 18:13:49 CET 2015     r...@phenom.cordula.ws:/usr/obj/usr/src/sys/GENERIC  
amd64

root@phenom:/usr/ports/math/sage # make
===>  Building for sage-math-6.7
gmake[1]: Entering directory 
'/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7'
cd build && \
"../build/pipestatus" \
        "env SAGE_PARALLEL_SPKG_BUILD='' ./install all 2>&1" \
        "tee -a ../logs/install.log"
*** ALL ENVIRONMENT VARIABLES BEFORE BUILD: ***
.MAKE.LEVEL.ENV=MAKELEVEL
ARCH=ar
BLOCKSIZE=K
BSD_INSTALL_DATA=install  -m 0644
BSD_INSTALL_LIB=install  -s -m 444
BSD_INSTALL_MAN=install  -m 444
BSD_INSTALL_PROGRAM=install  -s -m 555
BSD_INSTALL_SCRIPT=install  -m 555
CC=cc
CCACHE_DIR=/zvolenc/backup/.ccache
CFLAGS=-pipe  -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing
CPP=cpp
CPPFLAGS=-DLIBICONV_PLUG
CXX=c++
CXXFLAGS=-pipe -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing  
-DLIBICONV_PLUG
DOT_SAGE=/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/tmp/.sage
EDITOR=vi
FORCE_PKG_REGISTER=true
GROUP=wheel
HAVE_COMPAT_IA32_KERN=YES 
HOME=/zvolenc/backup/WORK/zvolenc/ports/math/sage/work
HOST=phenom.cordula.ws
HOSTTYPE=FreeBSD
LDFLAGS= -fstack-protector
LIBDIR=/usr/lib
LIBS=
LOCALBASE=/usr/local
LOGNAME=root
MACHTYPE=x86_64
MAIL=/var/mail/root
MAKE=make -j1
MAKEFLAGS=w -- _PKG_CHECKED=1 _PERL5_FROM_BIN=5.20.3 _OSRELEASE=10.2-STABLE 
OSVERSION=1002505 OSREL=10.2 OPSYS=FreeBSD HAVE_COMPAT_IA32_KERN=YES\  ARCH=ar 
.MAKE.LEVEL.ENV=MAKELEVEL
MAKELEVEL=2
MAKEOVERRIDES=${-*-command-variables-*-}
MAKE_JOBS_UNSAFE=yes
MAKE_TERMERR=/dev/pts/5
MAKE_TERMOUT=/dev/pts/5
MANPREFIX=/usr/local
MFLAGS=-w
NO_LINT=YES
NO_PIE=yes
OPSYS=FreeBSD
OSREL=10.2
OSTYPE=FreeBSD
OSVERSION=1002505
PAGER=more
PATH=/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/src/bin:/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/local/bin:/usr/local/libexec/ccache:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin
PERL=/usr/local/bin/perl
PREFIX=/usr/local
PWD=/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/build
PYTHONPATH=/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/local
SAGE_ATLAS_LIB=/usr/local/lib
SAGE_EXTCODE=/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/local/share/sage/ext
SAGE_FAT_BINARY=yes
SAGE_KEEP_BUILT_SPKGS=yes
SAGE_LOCAL=/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/local
SAGE_LOGS=/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/logs/pkgs
SAGE_MP_LIBRARY=MPIR
SAGE_ORIG_PATH=/usr/local/libexec/ccache:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin
SAGE_ORIG_PATH_SET=True
SAGE_PARALLEL_SPKG_BUILD=
SAGE_PORT=yes
SAGE_ROOT=/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7
SAGE_SPKG_INST=/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/local/var/lib/sage/installed
SAGE_SRC=/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/src
SAGE_VERSION=6.7
SCRIPT=/var/tmp/sage-bug.txt
SHELL=/bin/sh
SHLVL=4
TERM=screen
TMUX=/tmp/tmux-0/default,999,0
TMUX_PANE=%2
UBLIO_BLOCKSIZE=2097152
USER=root
VENDOR=amd
WITHOUT_DEBUG_FILES=yes
WITHOUT_KERNEL_SYMBOLS=yes
WRKDIRPREFIX=/zvolenc/backup/WORK
XDG_CONFIG_HOME=/zvolenc/backup/WORK/zvolenc/ports/math/sage/work
XDG_DATA_HOME=/zvolenc/backup/WORK/zvolenc/ports/math/sage/work
_=/usr/bin/env
_OSRELEASE=10.2-STABLE
_PERL5_FROM_BIN=5.20.3
_PKG_CHECKED=1
***********************************************
make[2]: Entering directory 
'/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/build'
make -j1 base
make[3]: Entering directory 
'/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/build'
make[3]: Nothing to be done for 'base'.
make[3]: Leaving directory 
'/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/build'
env SAGE_BUILD_TOOLCHAIN=yes make -j1 toolchain
make[3]: Entering directory 
'/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/build'
make[3]: Nothing to be done for 'toolchain'.
make[3]: Leaving directory 
'/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/build'
make -j1 toolchain-deps
make[3]: Entering directory 
'/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/build'
make -j1 
/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/local/var/lib/sage/installed/zlib-1.2.8.p0
make[4]: Entering directory 
'/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/build'
make[4]: 
'/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/local/var/lib/sage/installed/zlib-1.2.8.p0'
 is up to date.
make[4]: Leaving directory 
'/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/build'
make -j1 
/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/local/var/lib/sage/installed/mpir-2.7.0-alpha12
make[4]: Entering directory 
'/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/build'
make[4]: 
'/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/local/var/lib/sage/installed/mpir-2.7.0-alpha12'
 is up to date.
make[4]: Leaving directory 
'/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/build'
make -j1 
/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/local/var/lib/sage/installed/mpfr-3.1.2.p0
make[4]: Entering directory 
'/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/build'
make[4]: 
'/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/local/var/lib/sage/installed/mpfr-3.1.2.p0'
 is up to date.
make[4]: Leaving directory 
'/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/build'
make -j1 
/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/local/var/lib/sage/installed/mpc-1.0.2.p0
make[4]: Entering directory 
'/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/build'
make[4]: 
'/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/local/var/lib/sage/installed/mpc-1.0.2.p0'
 is up to date.
make[4]: Leaving directory 
'/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/build'
make -j1 
/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/local/var/lib/sage/installed/ppl-1.1
make[4]: Entering directory 
'/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/build'
make[4]: 
'/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/local/var/lib/sage/installed/ppl-1.1'
 is up to date.
make[4]: Leaving directory 
'/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/build'
make[3]: Leaving directory 
'/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/build'
make -j1 all-sage
make[3]: Entering directory 
'/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/build'
/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/build/pipestatus 
"sage-spkg -f zeromq-4.0.5 2>&1" "tee -a 
/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/logs/pkgs/zeromq-4.0.5.log"
Found local metadata for zeromq-4.0.5
Found local sources at 
/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/upstream/zeromq-4.0.5.tar.gz
Checksum: a664ec63661a848ef46114029156a0a6006feecd vs 
a664ec63661a848ef46114029156a0a6006feecd
zeromq-4.0.5
====================================================
Moving old directory zeromq-4.0.5 to 
/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/local/var/tmp/sage/build/old...
Setting up build directory for zeromq-4.0.5
Finished set up
===>   FreeBSD 10 autotools fix applied to src/config/libtool.m4
===>   FreeBSD 10 autotools fix applied to src/acinclude.m4
===>   FreeBSD 10 autotools fix applied to src/configure
===>   FreeBSD 10 autotools fix applied to src/aclocal.m4
****************************************************
Host system:
FreeBSD phenom.cordula.ws 10.2-STABLE FreeBSD 10.2-STABLE #0 r292989: Thu Dec 
31 18:13:49 CET 2015     r...@phenom.cordula.ws:/usr/obj/usr/src/sys/GENERIC  
amd64
****************************************************
C compiler: gcc
C compiler version:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/local/libexec/gcc/x86_64-unknown-freebsd10.2/4.9.2/lto-wrapper
Target: x86_64-unknown-freebsd10.2
Configured with: ../src/configure 
--prefix=/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/local 
--with-local-prefix=/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/local
 --with-gmp=/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/local 
--with-mpfr=/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/local 
--with-mpc=/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/local 
--with-system-zlib --disable-multilib --disable-nls 
--enable-languages=c,c++,fortran --disable-libitm  
Thread model: posix
gcc version 4.9.2 (GCC) 
****************************************************
patching file tools/curve_keygen.c
patching file tools/curve_keygen.cpp
patching file tools/Makefile.am
patching file tools/Makefile.in
patching file configure.ac
patching file src/Makefile.am
patching file configure
Hunk #1 succeeded at 623 (offset -20 lines).
Hunk #2 succeeded at 17631 (offset -12 lines).
Hunk #3 succeeded at 19842 (offset -14 lines).
Hunk #4 succeeded at 20324 (offset -22 lines).
patching file src/Makefile.in
Hunk #1 succeeded at 472 (offset -32 lines).
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... config/install-sh -c -d

(...)

config.status: creating src/platform.hpp
config.status: executing depfiles commands
config.status: executing libtool commands
make[4]: Entering directory 
'/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/local/var/tmp/sage/build/zeromq-4.0.5/src'
Making all in src
make[5]: Entering directory 
'/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/local/var/tmp/sage/build/zeromq-4.0.5/src/src'
make  all-am
make[6]: Entering directory 
'/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/local/var/tmp/sage/build/zeromq-4.0.5/src/src'
  CXX    libzmq_la-address.lo
  CXX    libzmq_la-clock.lo
  CXX    libzmq_la-ctx.lo
ctx.cpp:39:20: fatal error: sodium.h: No such file or directory
 #include <sodium.h>
                    ^
compilation terminated.
Makefile:680: recipe for target 'libzmq_la-ctx.lo' failed
make[6]: *** [libzmq_la-ctx.lo] Error 1
make[6]: Leaving directory 
'/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/local/var/tmp/sage/build/zeromq-4.0.5/src/src'
Makefile:485: recipe for target 'all' failed
make[5]: *** [all] Error 2
make[5]: Leaving directory 
'/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/local/var/tmp/sage/build/zeromq-4.0.5/src/src'
Makefile:331: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory 
'/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/local/var/tmp/sage/build/zeromq-4.0.5/src'
Failed to build zeromq

real    0m13.830s
user    0m5.767s
sys     0m6.859s
************************************************************************
Error installing package zeromq-4.0.5
************************************************************************
Please email sage-devel (http://groups.google.com/group/sage-devel)
explaining the problem and including the relevant part of the log file
  
/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/logs/pkgs/zeromq-4.0.5.log
Describe your computer, operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/local/var/tmp/sage/build/zeromq-4.0.5
 and type 'make' or whatever is appropriate.
Instead, the following commands setup all environment variables
correctly and load a subshell for you to debug the error:
  (cd 
'/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/local/var/tmp/sage/build/zeromq-4.0.5'
 && '/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/sage' --sh)
When you are done debugging, you can type "exit" to leave the subshell.
************************************************************************
Makefile:766: recipe for target 
'/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/local/var/lib/sage/installed/zeromq-4.0.5'
 failed
make[3]: *** 
[/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/local/var/lib/sage/installed/zeromq-4.0.5]
 Error 1
make[3]: Leaving directory 
'/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/build'
Makefile:420: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory 
'/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/build'

real    0m14.807s
user    0m6.301s
sys     0m7.357s
***************************************************************
Error building Sage.

The following package(s) may have failed to build:

package: zeromq-4.0.5
log file: 
/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/logs/pkgs/zeromq-4.0.5.log
build directory: 
/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7/local/var/tmp/sage/build/zeromq-4.0.5

The build directory may contain configuration files and other potentially
helpful information. WARNING: if you now run 'make' again, the build
directory will, by default, be deleted. Set the environment variable
SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this.

Makefile:19: recipe for target 'build' failed
gmake[1]: *** [build] Error 1
gmake[1]: Leaving directory 
'/zvolenc/backup/WORK/zvolenc/ports/math/sage/work/sage-6.7'
*** Error code 1

Stop.
make: stopped in /zvolenc/ports/math/sage
root@phenom:/usr/ports/math/sage # 
_______________________________________________
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to