Bug 214696 - databases/galera fails with CCACHE on 103amd64
Summary: databases/galera fails with CCACHE on 103amd64
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-21 01:05 UTC by Walter Schwarzenfeld
Modified: 2017-04-14 12:32 UTC (History)
1 user (show)

See Also:


Attachments
svn-diff-galera.txt (1.42 KB, text/plain)
2017-02-06 21:39 UTC, Walter Schwarzenfeld
no flags Details
svn-diff-galera.new (1.80 KB, text/plain)
2017-02-07 03:22 UTC, Walter Schwarzenfeld
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Walter Schwarzenfeld freebsd_triage 2016-11-21 01:05:27 UTC
Galera fails on 103amd64 with GCC:

g++49 -o gcache/src/test -m64 -lboost_program_options -lboost_system -Wl,-rpath,/usr/local/lib -fstack-protector -Wl,-rpath=/usr/local/lib/gcc49 -L/usr/local/lib/gcc49 gcache/src/test.o -L/usr/local/lib gcache/src/libgcache.a galerautils/src/libgalerautils++.a galerautils/src/libgalerautils.a -lpthread -lrt -lexecinfo -lssl -lcrypto
/usr/bin/ld: undefined reference to symbol `_ZNSt3__18ios_base5clearEj' (try adding -lc++)
//usr/lib/libc++.so.1: could not read symbols: Bad value
clang: error: linker command failed with exit code 1 (use -v to see invocation)
scons: *** [gcache/src/test] Error 1
scons: building terminated because of errors.
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

It works fine, if I ocmment out USE_GCC=yes in the Makefile.
Comment 1 Walter Schwarzenfeld freebsd_triage 2017-02-06 20:04:06 UTC
I tested today again. It was a CCACHE error. With NO_CCACHE=yes it 
builds without problems.
Comment 2 Walter Schwarzenfeld freebsd_triage 2017-02-06 21:26:17 UTC
Works also with CCACHE, if I remove 
if 'CCACHE_DIR' in os.environ:
    env['ENV']['CCACHE_DIR'] = os.environ['CCACHE_DIR']
if 'CCACHE_CPP2' in os.environ:
    env['ENV']['CCACHE_CPP2'] = os.environ['CCACHE_CPP2']

from SConstruct.

I made it per Hand, found in the moment no way for a patch.
Comment 3 Walter Schwarzenfeld freebsd_triage 2017-02-06 21:39:52 UTC
Created attachment 179684 [details]
svn-diff-galera.txt
Comment 4 Walter Schwarzenfeld freebsd_triage 2017-02-06 21:40:26 UTC
Found a possible way.
Comment 5 Walter Schwarzenfeld freebsd_triage 2017-02-07 03:21:56 UTC
Testbuilds with poudriere on 10.3amd64 and i386 ok.  
Correct svn-diff cause of an portlint warning.
Comment 6 Walter Schwarzenfeld freebsd_triage 2017-02-07 03:22:48 UTC
Created attachment 179689 [details]
svn-diff-galera.new
Comment 7 Walter Schwarzenfeld freebsd_triage 2017-04-14 12:32:59 UTC
Was a PATH problem with CCACHE. No Bug.