MacPorts
2017-07-04 21:23:52 UTC
#54421: blackbox @0.70.1 won't build on Snow Leopard, Mac OS X 10.6.8, (cxx_stdlib
= libc++) because – Clang 3.9 is too modern?
-------------------------+----------------------
Reporter: ballapete | Owner:
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.4.1
Keywords: snowleopard | Port: blackbox
-------------------------+----------------------
This is a very interesting case…
{{{
if /bin/sh ../libtool --tag=CXX --mode=compile
/opt/local/bin/clang++-mp-3.9 -DHAVE_CONFIG_H -I. -I. -I.. -DSHAPE
-DMITSHM -DXFT -DNLS -DLOCALEPATH=\"/opt/local/share/blackbox/nls\"
-I/opt/local/include -I/opt/local/include -I/usr/local/include
-I/opt/local/include -pipe -Os -stdlib=libc++ -arch x86_64
-I/opt/local/include -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -MT Menu.lo -MD -MP -MF ".deps/Menu.Tpo" -c
-o Menu.lo Menu.cc; \
then mv -f ".deps/Menu.Tpo" ".deps/Menu.Plo"; else rm -f
".deps/Menu.Tpo"; exit 1; fi
/opt/local/bin/clang++-mp-3.9 -DHAVE_CONFIG_H -I. -I. -I.. -DSHAPE
-DMITSHM -DXFT -DNLS -DLOCALEPATH=\"/opt/local/share/blackbox/nls\"
-I/opt/local/include -I/opt/local/include -I/usr/local/include
-I/opt/local/include -pipe -Os -stdlib=libc++ -arch x86_64
-I/opt/local/include -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -MT Menu.lo -MD -MP -MF .deps/Menu.Tpo -c
Menu.cc -o Menu.o
/opt/local/bin/clang++-mp-3.9 -DHAVE_CONFIG_H -I. -I. -I.. -DSHAPE
-DMITSHM -DXFT -DNLS -DLOCALEPATH=\"/opt/local/share/blackbox/nls\"
-I/opt/local/include -I/opt/local/include -I/usr/local/include
-I/opt/local/include -pipe -Os -stdlib=libc++ -arch x86_64
-I/opt/local/include -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -MT Application.lo -MD -MP -MF
.deps/Application.Tpo -c Application.cc -o Application.o
/opt/local/bin/clang++-mp-3.9 -DHAVE_CONFIG_H -I. -I. -I.. -DSHAPE
-DMITSHM -DXFT -DNLS -DLOCALEPATH=\"/opt/local/share/blackbox/nls\"
-I/opt/local/include -I/opt/local/include -I/usr/local/include
-I/opt/local/include -pipe -Os -stdlib=libc++ -arch x86_64
-I/opt/local/include -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -MT EWMH.lo -MD -MP -MF .deps/EWMH.Tpo -c
EWMH.cc -o EWMH.o
/opt/local/bin/clang++-mp-3.9 -DHAVE_CONFIG_H -I. -I. -I.. -DSHAPE
-DMITSHM -DXFT -DNLS -DLOCALEPATH=\"/opt/local/share/blackbox/nls\"
-I/opt/local/include -I/opt/local/include -I/usr/local/include
-I/opt/local/include -pipe -Os -stdlib=libc++ -arch x86_64
-I/opt/local/include -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -MT Display.lo -MD -MP -MF .deps/Display.Tpo
-c Display.cc -o Display.o
/opt/local/bin/clang++-mp-3.9 -DHAVE_CONFIG_H -I. -I. -I.. -DSHAPE
-DMITSHM -DXFT -DNLS -DLOCALEPATH=\"/opt/local/share/blackbox/nls\"
-I/opt/local/include -I/opt/local/include -I/usr/local/include
-I/opt/local/include -pipe -Os -stdlib=libc++ -arch x86_64
-I/opt/local/include -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -MT Bitmap.lo -MD -MP -MF .deps/Bitmap.Tpo
-c Bitmap.cc -o Bitmap.o
/opt/local/bin/clang++-mp-3.9 -DHAVE_CONFIG_H -I. -I. -I.. -DSHAPE
-DMITSHM -DXFT -DNLS -DLOCALEPATH=\"/opt/local/share/blackbox/nls\"
-I/opt/local/include -I/opt/local/include -I/usr/local/include
-I/opt/local/include -pipe -Os -stdlib=libc++ -arch x86_64
-I/opt/local/include -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -MT Color.lo -MD -MP -MF .deps/Color.Tpo -c
Color.cc -o Color.o
/opt/local/bin/clang++-mp-3.9 -DHAVE_CONFIG_H -I. -I. -I.. -DSHAPE
-DMITSHM -DXFT -DNLS -DLOCALEPATH=\"/opt/local/share/blackbox/nls\"
-I/opt/local/include -I/opt/local/include -I/usr/local/include
-I/opt/local/include -pipe -Os -stdlib=libc++ -arch x86_64
-I/opt/local/include -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -MT Image.lo -MD -MP -MF .deps/Image.Tpo -c
Image.cc -o Image.o
/opt/local/bin/clang++-mp-3.9 -DHAVE_CONFIG_H -I. -I. -I.. -DSHAPE
-DMITSHM -DXFT -DNLS -DLOCALEPATH=\"/opt/local/share/blackbox/nls\"
-I/opt/local/include -I/opt/local/include -I/usr/local/include
-I/opt/local/include -pipe -Os -stdlib=libc++ -arch x86_64
-I/opt/local/include -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -MT Font.lo -MD -MP -MF .deps/Font.Tpo -c
Font.cc -o Font.o
if /bin/sh ../libtool --tag=CXX --mode=compile
/opt/local/bin/clang++-mp-3.9 -DHAVE_CONFIG_H -I. -I. -I.. -DSHAPE
-DMITSHM -DXFT -DNLS -DLOCALEPATH=\"/opt/local/share/blackbox/nls\"
-I/opt/local/include -I/opt/local/include -I/usr/local/include
-I/opt/local/include -pipe -Os -stdlib=libc++ -arch x86_64
-I/opt/local/include -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -MT Pen.lo -MD -MP -MF ".deps/Pen.Tpo" -c -o
Pen.lo Pen.cc; \
then mv -f ".deps/Pen.Tpo" ".deps/Pen.Plo"; else rm -f
".deps/Pen.Tpo"; exit 1; fi
if /bin/sh ../libtool --tag=CXX --mode=compile
/opt/local/bin/clang++-mp-3.9 -DHAVE_CONFIG_H -I. -I. -I.. -DSHAPE
-DMITSHM -DXFT -DNLS -DLOCALEPATH=\"/opt/local/share/blackbox/nls\"
-I/opt/local/include -I/opt/local/include -I/usr/local/include
-I/opt/local/include -pipe -Os -stdlib=libc++ -arch x86_64
-I/opt/local/include -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -MT PixmapCache.lo -MD -MP -MF
".deps/PixmapCache.Tpo" -c -o PixmapCache.lo PixmapCache.cc; \
then mv -f ".deps/PixmapCache.Tpo" ".deps/PixmapCache.Plo"; else
rm -f ".deps/PixmapCache.Tpo"; exit 1; fi
Font.cc:207:26: warning: conversion from string literal to 'char *' is
deprecated [-Wc++11-compat-deprecated-writable-strings]
char **missing, *def = "-";
^
Menu.cc:366:5: error: no matching function for call to 'advance'
std::advance<ItemList::iterator, signed>(it, index);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/libexec/llvm-3.9/bin/../include/c++/v1/iterator:557:6: note:
candidate template ignored: invalid explicitly-specified argument for
template parameter '_InputIter'
void advance(_InputIter& __i,
^
Menu.cc:517:3: error: no matching function for call to 'advance'
std::advance<ItemList::iterator, signed>(it, index);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/libexec/llvm-3.9/bin/../include/c++/v1/iterator:557:6: note:
candidate template ignored: invalid explicitly-specified argument for
template parameter '_InputIter'
void advance(_InputIter& __i,
^
Menu.cc:1012:16: warning: 'XKeycodeToKeysym' is deprecated [-Wdeprecated-
declarations]
KeySym sym = XKeycodeToKeysym(_app.XDisplay(), event->keycode, 0);
^
/opt/local/include/X11/Xlib.h:1687:15: note: 'XKeycodeToKeysym' has been
explicitly marked deprecated here
extern KeySym XKeycodeToKeysym(
^
Menu.cc:1038:7: error: no matching function for call to 'advance'
std::advance<ItemList::const_iterator, signed>(anchor,
_active_index);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/libexec/llvm-3.9/bin/../include/c++/v1/iterator:557:6: note:
candidate template ignored: invalid explicitly-specified argument for
template parameter '_InputIter'
void advance(_InputIter& __i,
^
Menu.cc:1058:7: error: no matching function for call to 'advance'
std::advance<ItemList::const_reverse_iterator, signed>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/libexec/llvm-3.9/bin/../include/c++/v1/iterator:557:6: note:
candidate template ignored: invalid explicitly-specified argument for
template parameter '_InputIter'
void advance(_InputIter& __i,
^
1 warning and 4 errors generated.
if /bin/sh ../libtool --tag=CXX --mode=compile
/opt/local/bin/clang++-mp-3.9 -DHAVE_CONFIG_H -I. -I. -I.. -DSHAPE
-DMITSHM -DXFT -DNLS -DLOCALEPATH=\"/opt/local/share/blackbox/nls\"
-I/opt/local/include -I/opt/local/include -I/usr/local/include
-I/opt/local/include -pipe -Os -stdlib=libc++ -arch x86_64
-I/opt/local/include -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -MT Rect.lo -MD -MP -MF ".deps/Rect.Tpo" -c
-o Rect.lo Rect.cc; \
then mv -f ".deps/Rect.Tpo" ".deps/Rect.Plo"; else rm -f
".deps/Rect.Tpo"; exit 1; fi
make[2]: *** [Menu.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
}}}
When I do ` port -vd install blackbox configure.compiler=gcc-4.2` the
build succeeds…
--
Ticket URL: <https://trac.macports.org/ticket/54421>
MacPorts <https://www.macports.org/>
Ports system for macOS
= libc++) because – Clang 3.9 is too modern?
-------------------------+----------------------
Reporter: ballapete | Owner:
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.4.1
Keywords: snowleopard | Port: blackbox
-------------------------+----------------------
This is a very interesting case…
{{{
if /bin/sh ../libtool --tag=CXX --mode=compile
/opt/local/bin/clang++-mp-3.9 -DHAVE_CONFIG_H -I. -I. -I.. -DSHAPE
-DMITSHM -DXFT -DNLS -DLOCALEPATH=\"/opt/local/share/blackbox/nls\"
-I/opt/local/include -I/opt/local/include -I/usr/local/include
-I/opt/local/include -pipe -Os -stdlib=libc++ -arch x86_64
-I/opt/local/include -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -MT Menu.lo -MD -MP -MF ".deps/Menu.Tpo" -c
-o Menu.lo Menu.cc; \
then mv -f ".deps/Menu.Tpo" ".deps/Menu.Plo"; else rm -f
".deps/Menu.Tpo"; exit 1; fi
/opt/local/bin/clang++-mp-3.9 -DHAVE_CONFIG_H -I. -I. -I.. -DSHAPE
-DMITSHM -DXFT -DNLS -DLOCALEPATH=\"/opt/local/share/blackbox/nls\"
-I/opt/local/include -I/opt/local/include -I/usr/local/include
-I/opt/local/include -pipe -Os -stdlib=libc++ -arch x86_64
-I/opt/local/include -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -MT Menu.lo -MD -MP -MF .deps/Menu.Tpo -c
Menu.cc -o Menu.o
/opt/local/bin/clang++-mp-3.9 -DHAVE_CONFIG_H -I. -I. -I.. -DSHAPE
-DMITSHM -DXFT -DNLS -DLOCALEPATH=\"/opt/local/share/blackbox/nls\"
-I/opt/local/include -I/opt/local/include -I/usr/local/include
-I/opt/local/include -pipe -Os -stdlib=libc++ -arch x86_64
-I/opt/local/include -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -MT Application.lo -MD -MP -MF
.deps/Application.Tpo -c Application.cc -o Application.o
/opt/local/bin/clang++-mp-3.9 -DHAVE_CONFIG_H -I. -I. -I.. -DSHAPE
-DMITSHM -DXFT -DNLS -DLOCALEPATH=\"/opt/local/share/blackbox/nls\"
-I/opt/local/include -I/opt/local/include -I/usr/local/include
-I/opt/local/include -pipe -Os -stdlib=libc++ -arch x86_64
-I/opt/local/include -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -MT EWMH.lo -MD -MP -MF .deps/EWMH.Tpo -c
EWMH.cc -o EWMH.o
/opt/local/bin/clang++-mp-3.9 -DHAVE_CONFIG_H -I. -I. -I.. -DSHAPE
-DMITSHM -DXFT -DNLS -DLOCALEPATH=\"/opt/local/share/blackbox/nls\"
-I/opt/local/include -I/opt/local/include -I/usr/local/include
-I/opt/local/include -pipe -Os -stdlib=libc++ -arch x86_64
-I/opt/local/include -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -MT Display.lo -MD -MP -MF .deps/Display.Tpo
-c Display.cc -o Display.o
/opt/local/bin/clang++-mp-3.9 -DHAVE_CONFIG_H -I. -I. -I.. -DSHAPE
-DMITSHM -DXFT -DNLS -DLOCALEPATH=\"/opt/local/share/blackbox/nls\"
-I/opt/local/include -I/opt/local/include -I/usr/local/include
-I/opt/local/include -pipe -Os -stdlib=libc++ -arch x86_64
-I/opt/local/include -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -MT Bitmap.lo -MD -MP -MF .deps/Bitmap.Tpo
-c Bitmap.cc -o Bitmap.o
/opt/local/bin/clang++-mp-3.9 -DHAVE_CONFIG_H -I. -I. -I.. -DSHAPE
-DMITSHM -DXFT -DNLS -DLOCALEPATH=\"/opt/local/share/blackbox/nls\"
-I/opt/local/include -I/opt/local/include -I/usr/local/include
-I/opt/local/include -pipe -Os -stdlib=libc++ -arch x86_64
-I/opt/local/include -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -MT Color.lo -MD -MP -MF .deps/Color.Tpo -c
Color.cc -o Color.o
/opt/local/bin/clang++-mp-3.9 -DHAVE_CONFIG_H -I. -I. -I.. -DSHAPE
-DMITSHM -DXFT -DNLS -DLOCALEPATH=\"/opt/local/share/blackbox/nls\"
-I/opt/local/include -I/opt/local/include -I/usr/local/include
-I/opt/local/include -pipe -Os -stdlib=libc++ -arch x86_64
-I/opt/local/include -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -MT Image.lo -MD -MP -MF .deps/Image.Tpo -c
Image.cc -o Image.o
/opt/local/bin/clang++-mp-3.9 -DHAVE_CONFIG_H -I. -I. -I.. -DSHAPE
-DMITSHM -DXFT -DNLS -DLOCALEPATH=\"/opt/local/share/blackbox/nls\"
-I/opt/local/include -I/opt/local/include -I/usr/local/include
-I/opt/local/include -pipe -Os -stdlib=libc++ -arch x86_64
-I/opt/local/include -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -MT Font.lo -MD -MP -MF .deps/Font.Tpo -c
Font.cc -o Font.o
if /bin/sh ../libtool --tag=CXX --mode=compile
/opt/local/bin/clang++-mp-3.9 -DHAVE_CONFIG_H -I. -I. -I.. -DSHAPE
-DMITSHM -DXFT -DNLS -DLOCALEPATH=\"/opt/local/share/blackbox/nls\"
-I/opt/local/include -I/opt/local/include -I/usr/local/include
-I/opt/local/include -pipe -Os -stdlib=libc++ -arch x86_64
-I/opt/local/include -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -MT Pen.lo -MD -MP -MF ".deps/Pen.Tpo" -c -o
Pen.lo Pen.cc; \
then mv -f ".deps/Pen.Tpo" ".deps/Pen.Plo"; else rm -f
".deps/Pen.Tpo"; exit 1; fi
if /bin/sh ../libtool --tag=CXX --mode=compile
/opt/local/bin/clang++-mp-3.9 -DHAVE_CONFIG_H -I. -I. -I.. -DSHAPE
-DMITSHM -DXFT -DNLS -DLOCALEPATH=\"/opt/local/share/blackbox/nls\"
-I/opt/local/include -I/opt/local/include -I/usr/local/include
-I/opt/local/include -pipe -Os -stdlib=libc++ -arch x86_64
-I/opt/local/include -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -MT PixmapCache.lo -MD -MP -MF
".deps/PixmapCache.Tpo" -c -o PixmapCache.lo PixmapCache.cc; \
then mv -f ".deps/PixmapCache.Tpo" ".deps/PixmapCache.Plo"; else
rm -f ".deps/PixmapCache.Tpo"; exit 1; fi
Font.cc:207:26: warning: conversion from string literal to 'char *' is
deprecated [-Wc++11-compat-deprecated-writable-strings]
char **missing, *def = "-";
^
Menu.cc:366:5: error: no matching function for call to 'advance'
std::advance<ItemList::iterator, signed>(it, index);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/libexec/llvm-3.9/bin/../include/c++/v1/iterator:557:6: note:
candidate template ignored: invalid explicitly-specified argument for
template parameter '_InputIter'
void advance(_InputIter& __i,
^
Menu.cc:517:3: error: no matching function for call to 'advance'
std::advance<ItemList::iterator, signed>(it, index);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/libexec/llvm-3.9/bin/../include/c++/v1/iterator:557:6: note:
candidate template ignored: invalid explicitly-specified argument for
template parameter '_InputIter'
void advance(_InputIter& __i,
^
Menu.cc:1012:16: warning: 'XKeycodeToKeysym' is deprecated [-Wdeprecated-
declarations]
KeySym sym = XKeycodeToKeysym(_app.XDisplay(), event->keycode, 0);
^
/opt/local/include/X11/Xlib.h:1687:15: note: 'XKeycodeToKeysym' has been
explicitly marked deprecated here
extern KeySym XKeycodeToKeysym(
^
Menu.cc:1038:7: error: no matching function for call to 'advance'
std::advance<ItemList::const_iterator, signed>(anchor,
_active_index);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/libexec/llvm-3.9/bin/../include/c++/v1/iterator:557:6: note:
candidate template ignored: invalid explicitly-specified argument for
template parameter '_InputIter'
void advance(_InputIter& __i,
^
Menu.cc:1058:7: error: no matching function for call to 'advance'
std::advance<ItemList::const_reverse_iterator, signed>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/libexec/llvm-3.9/bin/../include/c++/v1/iterator:557:6: note:
candidate template ignored: invalid explicitly-specified argument for
template parameter '_InputIter'
void advance(_InputIter& __i,
^
1 warning and 4 errors generated.
if /bin/sh ../libtool --tag=CXX --mode=compile
/opt/local/bin/clang++-mp-3.9 -DHAVE_CONFIG_H -I. -I. -I.. -DSHAPE
-DMITSHM -DXFT -DNLS -DLOCALEPATH=\"/opt/local/share/blackbox/nls\"
-I/opt/local/include -I/opt/local/include -I/usr/local/include
-I/opt/local/include -pipe -Os -stdlib=libc++ -arch x86_64
-I/opt/local/include -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -MT Rect.lo -MD -MP -MF ".deps/Rect.Tpo" -c
-o Rect.lo Rect.cc; \
then mv -f ".deps/Rect.Tpo" ".deps/Rect.Plo"; else rm -f
".deps/Rect.Tpo"; exit 1; fi
make[2]: *** [Menu.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
}}}
When I do ` port -vd install blackbox configure.compiler=gcc-4.2` the
build succeeds…
--
Ticket URL: <https://trac.macports.org/ticket/54421>
MacPorts <https://www.macports.org/>
Ports system for macOS