_From @timotheecour on October 4, 2016 21:54_
/usr/bin/g++-5 -DHAVE_CONFIG_H -I. -I.. -I../gl -I../gl -I../lib -I/katrina/home/timothee/ubuntu1604/brew/include -isystem/katrina/home/timothee/ubuntu1604/brew/include -Os -w -pipe -march=native -c -o source-highlight-settings.o source-highlight-settings.cpp
/bin/bash ../libtool --tag=CXX --mode=link /usr/bin/g++-5 -Os -w -pipe -march=native -L/katrina/home/timothee/ubuntu1604/brew/lib64 -L/katrina/home/timothee/ubuntu1604/brew/lib -Wl,--dynamic-linker=/katrina/home/timothee/ubuntu1604/brew/lib/ld.so -Wl,-rpath,/katrina/home/timothee/ubuntu1604/brew/lib -o source-highlight-settings source-highlight-settings.o ../gl/libgnu.la ../lib/srchilite/libsource-highlight.la
libtool: link: /usr/bin/g++-5 -Os -w -pipe -march=native -Wl,--dynamic-linker=/katrina/home/timothee/ubuntu1604/brew/lib/ld.so -Wl,-rpath -Wl,/katrina/home/timothee/ubuntu1604/brew/lib -o .libs/source-highlight-settings source-highlight-settings.o -L/katrina/home/timothee/ubuntu1604/brew/lib64 -L/katrina/home/timothee/ubuntu1604/brew/lib ../gl/.libs/libgnu.a ../lib/srchilite/.libs/libsource-highlight.so -Wl,-rpath -Wl,/katrina/home/timothee/ubuntu1604/brew/Cellar/source-highlight/3.1.8_2/lib
../lib/srchilite/.libs/libsource-highlight.so: undefined reference to `boost::match_results<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > >::maybe_assign(boost::match_results<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > > const&)'
../lib/srchilite/.libs/libsource-highlight.so: undefined reference to `boost::re_detail_106100::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::construct_init(boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > > const&, boost::regex_constants::_match_flags)'
collect2: error: ld returned 1 exit status
Makefile:995: recipe for target 'source-highlight-settings' failed
make[1]: *** [source-highlight-settings] Error 1
make[1]: *** Waiting for unfinished jobs....
brew gist-logs source-highlight
https://gist.github.com/13a6384540f85b0ced2a8cdc83648b51
_Copied from original issue: Linuxbrew/brew#128_
Yeah, unfortunately it's been failing for a while now. https://github.com/Linuxbrew/homebrew-core/pull/438
I haven't had a lot of time to look into this issue, so a PR would be great if you figure out how to fix it.
Thanks a bunch for the bug report!
I think this is now resolved.
This is not solved here. Trying to install qt5 in linuxbrew on Debian/stretch, fails with this error,
``make[1]: Entering directory '/tmp/source-highlight-20190111-10680-gk1car/source-highlight-3.1.8/src'
gcc-7 -DHAVE_CONFIG_H -I. -I.. -I../gl -I../gl -I../lib -I/nfs/scistore12/clustersw/debian/stretch/linuxbrew/20190103/opt/boost/include -g -O2 -c -o check-regexp_cmd.o check-regexp_cmd.c
g++-7 -DHAVE_CONFIG_H -I. -I.. -I../gl -I../gl -I../lib -I/nfs/scistore12/clustersw/debian/stretch/linuxbrew/20190103/opt/boost/include -g -O2 -c -o check-regexp.o check-regexp.cpp
gcc-7 -DHAVE_CONFIG_H -I. -I.. -I../gl -I../gl -I../lib -I/nfs/scistore12/clustersw/debian/stretch/linuxbrew/20190103/opt/boost/include -g -O2 -c -o cmdline.o cmdline.c
g++-7 -DHAVE_CONFIG_H -I. -I.. -I../gl -I../gl -I../lib -I/nfs/scistore12/clustersw/debian/stretch/linuxbrew/20190103/opt/boost/include -g -O2 -c -o source-highlight.o source-highlight.cc
g++-7 -DHAVE_CONFIG_H -I. -I.. -I../gl -I../gl -I../lib -I/nfs/scistore12/clustersw/debian/stretch/linuxbrew/20190103/opt/boost/include -g -O2 -c -o source-highlight-settings.o source-highlight-settings.cpp
/bin/bash ../libtool --tag=CXX --mode=link g++-7 -g -O2 -L/nfs/scistore12/clustersw/debian/stretch/linuxbrew/20190103/opt/boost/lib -o source-highlight-settings source-highlight-settings.o ../gl/libgnu.la ../lib/srchilite/libsource-highlight.la
libtool: link: g++-7 -g -O2 -o .libs/source-highlight-settings source-highlight-settings.o -L/nfs/scistore12/clustersw/debian/stretch/linuxbrew/20190103/opt/boost/lib ../gl/.libs/libgnu.a ../lib/srchilite/.libs/libsource-highlight.so -Wl,-rpath -Wl,/nfs/scistore12/clustersw/debian/stretch/linuxbrew/20190103/Cellar/source-highlight/3.1.8_10/lib
/nfs/scistore12/clustersw/debian/stretch/linuxbrew/20190103/bin/ld: ../lib/srchilite/.libs/libsource-highlight.so: undefined reference toboost::re_detail_106800::cpp_regex_traits_implementation
/nfs/scistore12/clustersw/debian/stretch/linuxbrew/20190103/bin/ld: ../lib/srchilite/.libs/libsource-highlight.so: undefined reference to `boost::re_detail_106800::cpp_regex_traits_implementation
collect2: error: ld returned 1 exit status
Makefile:995: recipe for target 'source-highlight-settings' failed
make[1]: * [source-highlight-settings] Error 1
make[1]: Waiting for unfinished jobs....
make[1]: Leaving directory '/tmp/source-highlight-20190111-10680-gk1car/source-highlight-3.1.8/src'
Makefile:951: recipe for target 'install-recursive' failed
make: ** [install-recursive] Error 1
HOMEBREW_VERSION: 1.9.1-2-g29017d5
ORIGIN: https://github.com/Homebrew/brew
HEAD: 29017d50de6ccf18af5e022680e83a7f569c2762
Last commit: 9 hours ago
Core tap ORIGIN: https://github.com/Linuxbrew/homebrew-core
Core tap HEAD: 7385673c501081906caea83753b64873a4bbc44e
Core tap last commit: 67 minutes ago
```
Facing the same error (also with gcc8).
Technically it is a different error now, though.
undefined reference to boost::re_detail_106800::cpp_regex_traits_implementation<char>::transform[abi:cxx11](char const*, char const*) const
Maybe someone could open a bug on the source-highlight bug tracker? I do not have time to follow up on this myself.
just did: https://gitlab.com/saalen/highlight/issues/104 (was a bit tricky to search; would be nice if brew formula was edited to show that bug tracker ) <= TODO!
Closing this here as this is quite old now. There is again a new version of boost, I will re-evaluate the situation in the bottle building PR.
Most helpful comment
This is not solved here. Trying to install qt5 in linuxbrew on Debian/stretch, fails with this error,
``::transformabi:cxx11 const'::transform_primaryabi:cxx11 const'
make[1]: Entering directory '/tmp/source-highlight-20190111-10680-gk1car/source-highlight-3.1.8/src' gcc-7 -DHAVE_CONFIG_H -I. -I.. -I../gl -I../gl -I../lib -I/nfs/scistore12/clustersw/debian/stretch/linuxbrew/20190103/opt/boost/include -g -O2 -c -o check-regexp_cmd.o check-regexp_cmd.c g++-7 -DHAVE_CONFIG_H -I. -I.. -I../gl -I../gl -I../lib -I/nfs/scistore12/clustersw/debian/stretch/linuxbrew/20190103/opt/boost/include -g -O2 -c -o check-regexp.o check-regexp.cpp gcc-7 -DHAVE_CONFIG_H -I. -I.. -I../gl -I../gl -I../lib -I/nfs/scistore12/clustersw/debian/stretch/linuxbrew/20190103/opt/boost/include -g -O2 -c -o cmdline.o cmdline.c g++-7 -DHAVE_CONFIG_H -I. -I.. -I../gl -I../gl -I../lib -I/nfs/scistore12/clustersw/debian/stretch/linuxbrew/20190103/opt/boost/include -g -O2 -c -o source-highlight.o source-highlight.cc g++-7 -DHAVE_CONFIG_H -I. -I.. -I../gl -I../gl -I../lib -I/nfs/scistore12/clustersw/debian/stretch/linuxbrew/20190103/opt/boost/include -g -O2 -c -o source-highlight-settings.o source-highlight-settings.cpp /bin/bash ../libtool --tag=CXX --mode=link g++-7 -g -O2 -L/nfs/scistore12/clustersw/debian/stretch/linuxbrew/20190103/opt/boost/lib -o source-highlight-settings source-highlight-settings.o ../gl/libgnu.la ../lib/srchilite/libsource-highlight.la libtool: link: g++-7 -g -O2 -o .libs/source-highlight-settings source-highlight-settings.o -L/nfs/scistore12/clustersw/debian/stretch/linuxbrew/20190103/opt/boost/lib ../gl/.libs/libgnu.a ../lib/srchilite/.libs/libsource-highlight.so -Wl,-rpath -Wl,/nfs/scistore12/clustersw/debian/stretch/linuxbrew/20190103/Cellar/source-highlight/3.1.8_10/lib /nfs/scistore12/clustersw/debian/stretch/linuxbrew/20190103/bin/ld: ../lib/srchilite/.libs/libsource-highlight.so: undefined reference toboost::re_detail_106800::cpp_regex_traits_implementation/nfs/scistore12/clustersw/debian/stretch/linuxbrew/20190103/bin/ld: ../lib/srchilite/.libs/libsource-highlight.so: undefined reference to `boost::re_detail_106800::cpp_regex_traits_implementation
collect2: error: ld returned 1 exit status
Makefile:995: recipe for target 'source-highlight-settings' failed
make[1]: * [source-highlight-settings] Error 1
make[1]: Waiting for unfinished jobs....
make[1]: Leaving directory '/tmp/source-highlight-20190111-10680-gk1car/source-highlight-3.1.8/src'
Makefile:951: recipe for target 'install-recursive' failed
make: ** [install-recursive] Error 1
HOMEBREW_VERSION: 1.9.1-2-g29017d5
ORIGIN: https://github.com/Homebrew/brew
HEAD: 29017d50de6ccf18af5e022680e83a7f569c2762
Last commit: 9 hours ago
Core tap ORIGIN: https://github.com/Linuxbrew/homebrew-core
Core tap HEAD: 7385673c501081906caea83753b64873a4bbc44e
Core tap last commit: 67 minutes ago
```