Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Oct 2018 02:55:13 +0900 (JST)
From:      Yasuhiro KIMURA <yasu@utahime.org>
To:        freebsd-ports@freebsd.org
Subject:   Build of python 3.7.1 succeeds with poudriere but fails with real system
Message-ID:  <20181022.025513.1479271575474930259.yasu@utahime.org>

next in thread | raw e-mail | index | archive | help
Hello.

With r482664 lang/python37 was updated to 3.7.1. So I updated ports
tree and built it. With poudriere build completed successfully. But
with real system build failed as following.

--- libpython3.so ---
cc -pthread -shared  -L/usr/local/lib  -fstack-protector  -Wl,--no-as-needed -o libpython3.so -Wl,-hlibpython3.so 
--- python ---
--- Programs/_testembed ---
--- python ---
cc -pthread  -L/usr/local/lib  -fstack-protector  -Wl,--export-dynamic -o python Programs/python.o -L. -lpython3.7m -lintl -ldl -L/usr/local/lib -lintl -lutil   -lm  
--- Programs/_testembed ---
cc -pthread  -L/usr/local/lib  -fstack-protector  -Wl,--export-dynamic -o Programs/_testembed Programs/_testembed.o -L. -lpython3.7m -lintl -ldl -L/usr/local/lib -lintl -lutil   -lm  
Programs/_testembed.o: In function `test_init_from_config':
_testembed.c:(.text+0xd28): undefined reference to `_Py_InitializeFromConfig'
Programs/_testembed.o: In function `test_init_dev_mode':
_testembed.c:(.text+0xe0f): undefined reference to `_Py_InitializeFromConfig'
Programs/_testembed.o: In function `test_init_isolated':
_testembed.c:(.text+0xeb3): undefined reference to `_Py_InitializeFromConfig'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
--- pybuilddir.txt ---
--- Programs/_testembed ---
*** [Programs/_testembed] Error code 1

make[1]: stopped in /usr0/freebsd/ports/work/usr0/freebsd/ports/head/lang/python37/work/Python-3.7.1
--- pybuilddir.txt ---
LD_LIBRARY_PATH=/usr0/freebsd/ports/work/usr0/freebsd/ports/head/lang/python37/work/Python-3.7.1 ./python -E -S -m sysconfig --generate-posix-vars ; if test $? -ne 0 ; then  echo "generate-posix-vars failed" ;  rm -f ./pybuilddir.txt ;  exit 1 ;  fi
1 error

make[1]: stopped in /usr0/freebsd/ports/work/usr0/freebsd/ports/head/lang/python37/work/Python-3.7.1
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr0/freebsd/ports/head/lang/python37
yasu@with[572]%

I tried on 11.2-RELEASE/12.0-BETA1 amd64 and got same result.

Does anyone else experienced this? Or are there anyone who succeeded
to build on real system?

Regards.

---
Yasuhiro KIMURA



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20181022.025513.1479271575474930259.yasu>