Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 624192 - dev-libs/beecrypt-4.2.1-r4 fails to compile tests with clang-3.9.1 (../.libs/libbeecrypt.so: undefined reference to `__kmpc_fork_call')
Summary: dev-libs/beecrypt-4.2.1-r4 fails to compile tests with clang-3.9.1 (../.libs/...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Deadline: 2019-06-18
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: NeedPatch, PMASKED
Depends on:
Blocks: systemwide-clang
  Show dependency tree
 
Reported: 2017-07-08 02:43 UTC by moxian
Modified: 2019-06-20 08:01 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info =beecrypt-4.2.1 (file_624192.txt,5.40 KB, text/plain)
2017-07-08 02:43 UTC, moxian
Details
CC=clang-3.9 CXX=clang++-3.9 emerge -1 dev-libs/beecrypt build.log (beecrypt-4.2.1-r4:20170708-033750.log,123.14 KB, text/x-log)
2017-07-08 02:44 UTC, moxian
Details
CC=gcc-5.4.0 CXX=g++-5.4.0 emerge -1 dev-libs/beecrypt build.log (beecrypt-4.2.1-r4:20170708-031637.log,195.33 KB, text/x-log)
2017-07-08 02:45 UTC, moxian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description moxian 2017-07-08 02:43:18 UTC
Created attachment 481794 [details]
emerge --info =beecrypt-4.2.1

dev-libs/beecrypt-4.2.1-r4 fails to compile with clang-3.9.1, but does so nicely with gcc-5.4.0.

From build.log:

make[2]: Entering directory '/var/tmp/portage/dev-libs/beecrypt-4.2.1-r4/work/beecrypt-4.2.1/tests'
clang-3.9 -DHAVE_CONFIG_H -I. -I.. -I../include  -DOPTIMIZE_X86_64  -O2 -pipe -march=native -ggdb -DNDEBUG -Wa,--noexecstack -c -o testmd5.o testmd5.c
/bin/sh ../libtool  --tag=CC   --mode=link clang-3.9  -O2 -pipe -march=native -ggdb -DNDEBUG -Wa,--noexecstack  -Wl,-O1 -Wl,--as-needed  -o testmd5 testmd5.o ../libbeecrypt.la -lrt -lpthread -ldl 
libtool: link: clang-3.9 -O2 -pipe -march=native -ggdb -DNDEBUG -Wa,--noexecstack -Wl,-O1 -o .libs/testmd5 testmd5.o  -Wl,--as-needed ../.libs/libbeecrypt.so -lgomp -lrt -lpthread -ldl
clang-3.9: warning: argument unused during compilation: '-Wa,--noexecstack'
../.libs/libbeecrypt.so: undefined reference to `__kmpc_for_static_init_4'
../.libs/libbeecrypt.so: undefined reference to `__kmpc_fork_call'
../.libs/libbeecrypt.so: undefined reference to `__kmpc_for_static_fini'
clang-3.9: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [Makefile:824: testmd5] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-libs/beecrypt-4.2.1-r4/work/beecrypt-4.2.1/tests'
make[1]: *** [Makefile:1285: check-am] Error 2
make[1]: Leaving directory '/var/tmp/portage/dev-libs/beecrypt-4.2.1-r4/work/beecrypt-4.2.1/tests'
make: *** [Makefile:667: check-recursive] Error 1
 * ERROR: dev-libs/beecrypt-4.2.1-r4::gentoo failed (test phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=dev-libs/beecrypt-4.2.1-r4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/beecrypt-4.2.1-r4::gentoo'`.
 * The complete build log is located at '/var/log/portage/build/dev-libs/beecrypt-4.2.1-r4:20170708-033750.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-libs/beecrypt-4.2.1-r4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/beecrypt-4.2.1-r4/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/beecrypt-4.2.1-r4/work/beecrypt-4.2.1'
 * S: '/var/tmp/portage/dev-libs/beecrypt-4.2.1-r4/work/beecrypt-4.2.1'
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME=""
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info =beecrypt-4.2.1


Full build logs for both clang and gcc attached.
Comment 1 moxian 2017-07-08 02:44:06 UTC
Created attachment 481796 [details]
CC=clang-3.9 CXX=clang++-3.9 emerge -1 dev-libs/beecrypt build.log
Comment 2 moxian 2017-07-08 02:45:02 UTC
Created attachment 481798 [details]
CC=gcc-5.4.0 CXX=g++-5.4.0 emerge -1 dev-libs/beecrypt build.log
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-06-20 08:01:45 UTC
Removed.