[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
clang compile error in grub.cc
From: |
Hanspeter Niederstrasser |
Subject: |
clang compile error in grub.cc |
Date: |
Sat, 23 Feb 2013 00:45:04 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
On OS X 10.7, using Apple-clang 4.2 (the default compiler), the build
fails withthis error (git head, but also occurs in 2.14, 2.15, & 2.17
releases):
make[1]: Entering directory `/src/lilypond/lily'
rm -f ./out/grob.dep; DEPENDENCIES_OUTPUT="./out/grob.dep ./out/grob.o"
clang++ -c -Woverloaded-virtual -I/sw/include -I/sw/include/python2.7
-I/sw/include/python2.7 -fno-strict-aliasing -g -g -fwrapv -fwrapv
-I/sw/include -DHAVE_CONFIG_H -DNDEBUG -I./include -I./out
-I../flower/include -I../flower/./out -I../flower/include -O2
-finline-functions -g -pipe -I/sw/include -I/sw/include -D_THREAD_SAFE
-I/sw/include/freetype2 -I/sw/include -I/sw/include/pango-1.0
-I/sw/include/freetype2 -I/sw/include -I/sw/include/glib-2.0
-I/sw/lib/glib-2.0/include -Wno-pmf-conversions -W -Wall -Wconversion
-o out/grob.o grob.cc
clang: warning: unknown warning option '-Wno-pmf-conversions'; did you
mean '-Wno-int-conversions'?
warning: unknown warning option '-Wno-pmf-conversions'; did you mean
'-Wno-int-conversions'? [-Wunknown-warning-option]
In file included from grob.cc:20:
In file included from ./include/grob.hh:23:
In file included from ./include/box.hh:10:
In file included from ./include/smobs.hh:23:
In file included from ./include/lily-guile.hh:27:
In file included from /sw/include/libguile.h:24:
/sw/include/gmp.h:1791:30: warning: operand of ? changes signedness:
'const int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion]
return __GMP_ABS (__gmp_z->_mp_size);
~~~~~~ ~~~~~~~~~^~~~~~~~
/sw/include/gmp.h:444:37: note: expanded from macro '__GMP_ABS'
#define __GMP_ABS(x) ((x) >= 0 ? (x) : -(x))
^
/sw/include/gmp.h:1791:10: warning: operand of ? changes signedness:
'int' to 'size_t' (aka 'unsigned long') [-Wsign-conversion]
return __GMP_ABS (__gmp_z->_mp_size);
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/sw/include/gmp.h:444:42: note: expanded from macro '__GMP_ABS'
#define __GMP_ABS(x) ((x) >= 0 ? (x) : -(x))
^~~~
In file included from grob.cc:32:
In file included from ./include/music.hh:24:
In file included from ./include/moment.hh:24:
../flower/include/rational.hh:49:41: warning: implicit conversion
changes signedness: 'unsigned long long' to 'I64' (aka 'long long')
[-Wsign-conversion]
I64 numerator () const { return sign_ * num_; }
~~~~~~ ~~~~~~^~~~~~
../flower/include/rational.hh:49:35: warning: implicit conversion
changes signedness: 'const int' to 'unsigned long long'
[-Wsign-conversion]
I64 numerator () const { return sign_ * num_; }
^~~~~ ~
../flower/include/rational.hh:50:37: warning: implicit conversion
changes signedness: 'const U64' (aka 'const unsigned long long') to
'I64' (aka 'long long') [-Wsign-conversion]
I64 denominator () const { return den_; }
~~~~~~ ^~~~
In file included from grob.cc:38:
In file included from ./include/system.hh:23:
./include/column-x-positions.hh:26:1: warning: 'Column_x_positions'
defined as a struct here but previously declared as a class
[-Wmismatched-tags]
struct Column_x_positions
^
./include/lily-proto.hh:57:1: note: did you mean struct here?
class Column_x_positions;
^~~~~
struct
grob.cc:90:5: error: array initializer must be an initializer list
: dim_cache_ (s.dim_cache_)
^
grob.cc:757:10: warning: indirection of non-volatile null pointer will
be deleted, not trap [-Wnull-dereference]
return scm_is_symbol (nm) ? ly_symbol2string (nm) : this->class_name
();
^~~~~~~~~~~~~~~~~~
/sw/include/libguile/symbols.h:28:39: note: expanded from macro
'scm_is_symbol'
#define scm_is_symbol(x) (!SCM_IMP (x) \
^~~~~~~~~~~
/sw/include/libguile/tags.h:387:27: note: expanded from macro 'SCM_IMP'
#define SCM_IMP(x) (6 & SCM_UNPACK (x))
^~~~~~~~~~~~~~
/sw/include/libguile/tags.h:122:45: note: expanded from macro
'SCM_UNPACK'
# define SCM_UNPACK(x) ((scm_t_bits) (0? (*(SCM*)0=(x)): x))
^~~~~~~~
grob.cc:757:10: note: consider using __builtin_trap() or qualifying
pointer with 'volatile'
return scm_is_symbol (nm) ? ly_symbol2string (nm) : this->class_name
();
^
/sw/include/libguile/symbols.h:28:39: note: expanded from macro
'scm_is_symbol'
#define scm_is_symbol(x) (!SCM_IMP (x) \
^
/sw/include/libguile/tags.h:387:27: note: expanded from macro 'SCM_IMP'
#define SCM_IMP(x) (6 & SCM_UNPACK (x))
^
/sw/include/libguile/tags.h:122:45: note: expanded from macro
'SCM_UNPACK'
# define SCM_UNPACK(x) ((scm_t_bits) (0? (*(SCM*)0=(x)): x))
^
grob.cc:757:10: warning: indirection of non-volatile null pointer will
be deleted, not trap [-Wnull-dereference]
return scm_is_symbol (nm) ? ly_symbol2string (nm) : this->class_name
();
^~~~~~~~~~~~~~~~~~
/sw/include/libguile/symbols.h:29:42: note: expanded from macro
'scm_is_symbol'
&& (SCM_TYP7 (x) ==
scm_tc7_symbol))
^~~~~~~~~~~~
/sw/include/libguile/tags.h:427:38: note: expanded from macro 'SCM_TYP7'
#define SCM_TYP7(x) (0x7f & SCM_CELL_TYPE (x))
^~~~~~~~~~~~~~~~~
/sw/include/libguile/gc.h:222:26: note: expanded from macro
'SCM_CELL_TYPE'
#define SCM_CELL_TYPE(x) SCM_CELL_WORD_0 (x)
^~~~~~~~~~~~~~~~~~~
note: (skipping 5 expansions in backtrace; use -fmacro-backtrace-limit=0
to see all)
/sw/include/libguile/tags.h:122:45: note: expanded from macro
'SCM_UNPACK'
# define SCM_UNPACK(x) ((scm_t_bits) (0? (*(SCM*)0=(x)): x))
^~~~~~~~
/sw/include/libguile/tags.h:122:55: note: expanded from macro
'SCM_UNPACK'
# define SCM_UNPACK(x) ((scm_t_bits) (0? (*(SCM*)0=(x)): x))
~~~~~~~ ^
/sw/include/libguile/gc.h:187:42: note: expanded from macro
'SCM_VALIDATE_CELL'
# define SCM_VALIDATE_CELL(cell, expr) (expr)
^
grob.cc:757:10: note: consider using __builtin_trap() or qualifying
pointer with 'volatile'
return scm_is_symbol (nm) ? ly_symbol2string (nm) : this->class_name
();
^
/sw/include/libguile/symbols.h:29:42: note: expanded from macro
'scm_is_symbol'
&& (SCM_TYP7 (x) ==
scm_tc7_symbol))
^
/sw/include/libguile/tags.h:427:38: note: expanded from macro 'SCM_TYP7'
#define SCM_TYP7(x) (0x7f & SCM_CELL_TYPE (x))
^
/sw/include/libguile/gc.h:222:26: note: expanded from macro
'SCM_CELL_TYPE'
#define SCM_CELL_TYPE(x) SCM_CELL_WORD_0 (x)
^
note: (skipping 5 expansions in backtrace; use -fmacro-backtrace-limit=0
to see all)
/sw/include/libguile/tags.h:122:45: note: expanded from macro
'SCM_UNPACK'
# define SCM_UNPACK(x) ((scm_t_bits) (0? (*(SCM*)0=(x)): x))
^
/sw/include/libguile/tags.h:122:55: note: expanded from macro
'SCM_UNPACK'
# define SCM_UNPACK(x) ((scm_t_bits) (0? (*(SCM*)0=(x)): x))
^
/sw/include/libguile/gc.h:187:42: note: expanded from macro
'SCM_VALIDATE_CELL'
# define SCM_VALIDATE_CELL(cell, expr) (expr)
^
grob.cc:757:10: warning: indirection of non-volatile null pointer will
be deleted, not trap [-Wnull-dereference]
return scm_is_symbol (nm) ? ly_symbol2string (nm) : this->class_name
();
^~~~~~~~~~~~~~~~~~
/sw/include/libguile/symbols.h:29:42: note: expanded from macro
'scm_is_symbol'
&& (SCM_TYP7 (x) ==
scm_tc7_symbol))
^~~~~~~~~~~~
/sw/include/libguile/tags.h:427:38: note: expanded from macro 'SCM_TYP7'
#define SCM_TYP7(x) (0x7f & SCM_CELL_TYPE (x))
^~~~~~~~~~~~~~~~~
/sw/include/libguile/gc.h:222:26: note: expanded from macro
'SCM_CELL_TYPE'
#define SCM_CELL_TYPE(x) SCM_CELL_WORD_0 (x)
^~~~~~~~~~~~~~~~~~~
note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0
to see all)
/sw/include/libguile/gc.h:168:35: note: expanded from macro
'SCM_GC_CELL_WORD'
#define SCM_GC_CELL_WORD(x, n) (SCM_UNPACK (SCM_GC_CELL_OBJECT ((x),
(n))))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~
/sw/include/libguile/tags.h:122:45: note: expanded from macro
'SCM_UNPACK'
# define SCM_UNPACK(x) ((scm_t_bits) (0? (*(SCM*)0=(x)): x))
^~~~~~~~
/sw/include/libguile/gc.h:187:42: note: expanded from macro
'SCM_VALIDATE_CELL'
# define SCM_VALIDATE_CELL(cell, expr) (expr)
^
grob.cc:757:10: note: consider using __builtin_trap() or qualifying
pointer with 'volatile'
return scm_is_symbol (nm) ? ly_symbol2string (nm) : this->class_name
();
^
/sw/include/libguile/symbols.h:29:42: note: expanded from macro
'scm_is_symbol'
&& (SCM_TYP7 (x) ==
scm_tc7_symbol))
^
/sw/include/libguile/tags.h:427:38: note: expanded from macro 'SCM_TYP7'
#define SCM_TYP7(x) (0x7f & SCM_CELL_TYPE (x))
^
/sw/include/libguile/gc.h:222:26: note: expanded from macro
'SCM_CELL_TYPE'
#define SCM_CELL_TYPE(x) SCM_CELL_WORD_0 (x)
^
note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0
to see all)
/sw/include/libguile/gc.h:168:35: note: expanded from macro
'SCM_GC_CELL_WORD'
#define SCM_GC_CELL_WORD(x, n) (SCM_UNPACK (SCM_GC_CELL_OBJECT ((x),
(n))))
^
/sw/include/libguile/tags.h:122:45: note: expanded from macro
'SCM_UNPACK'
# define SCM_UNPACK(x) ((scm_t_bits) (0? (*(SCM*)0=(x)): x))
^
/sw/include/libguile/gc.h:187:42: note: expanded from macro
'SCM_VALIDATE_CELL'
# define SCM_VALIDATE_CELL(cell, expr) (expr)
^
grob.cc:757:10: warning: indirection of non-volatile null pointer will
be deleted, not trap [-Wnull-dereference]
return scm_is_symbol (nm) ? ly_symbol2string (nm) : this->class_name
();
^~~~~~~~~~~~~~~~~~
/sw/include/libguile/symbols.h:29:42: note: expanded from macro
'scm_is_symbol'
&& (SCM_TYP7 (x) ==
scm_tc7_symbol))
^~~~~~~~~~~~
/sw/include/libguile/tags.h:427:38: note: expanded from macro 'SCM_TYP7'
#define SCM_TYP7(x) (0x7f & SCM_CELL_TYPE (x))
^~~~~~~~~~~~~~~~~
/sw/include/libguile/gc.h:222:26: note: expanded from macro
'SCM_CELL_TYPE'
#define SCM_CELL_TYPE(x) SCM_CELL_WORD_0 (x)
^~~~~~~~~~~~~~~~~~~
note: (skipping 5 expansions in backtrace; use -fmacro-backtrace-limit=0
to see all)
/sw/include/libguile/tags.h:122:45: note: expanded from macro
'SCM_UNPACK'
# define SCM_UNPACK(x) ((scm_t_bits) (0? (*(SCM*)0=(x)): x))
^~~~~~~~
/sw/include/libguile/tags.h:122:60: note: expanded from macro
'SCM_UNPACK'
# define SCM_UNPACK(x) ((scm_t_bits) (0? (*(SCM*)0=(x)): x))
~~~~~~~ ^
/sw/include/libguile/gc.h:187:42: note: expanded from macro
'SCM_VALIDATE_CELL'
# define SCM_VALIDATE_CELL(cell, expr) (expr)
^
grob.cc:757:10: note: consider using __builtin_trap() or qualifying
pointer with 'volatile'
return scm_is_symbol (nm) ? ly_symbol2string (nm) : this->class_name
();
^
/sw/include/libguile/symbols.h:29:42: note: expanded from macro
'scm_is_symbol'
&& (SCM_TYP7 (x) ==
scm_tc7_symbol))
^
/sw/include/libguile/tags.h:427:38: note: expanded from macro 'SCM_TYP7'
#define SCM_TYP7(x) (0x7f & SCM_CELL_TYPE (x))
^
/sw/include/libguile/gc.h:222:26: note: expanded from macro
'SCM_CELL_TYPE'
#define SCM_CELL_TYPE(x) SCM_CELL_WORD_0 (x)
^
note: (skipping 5 expansions in backtrace; use -fmacro-backtrace-limit=0
to see all)
/sw/include/libguile/tags.h:122:45: note: expanded from macro
'SCM_UNPACK'
# define SCM_UNPACK(x) ((scm_t_bits) (0? (*(SCM*)0=(x)): x))
^
/sw/include/libguile/tags.h:122:60: note: expanded from macro
'SCM_UNPACK'
# define SCM_UNPACK(x) ((scm_t_bits) (0? (*(SCM*)0=(x)): x))
^
/sw/include/libguile/gc.h:187:42: note: expanded from macro
'SCM_VALIDATE_CELL'
# define SCM_VALIDATE_CELL(cell, expr) (expr)
^
11 warnings and 1 error generated.
I got to this point by first using the patch from
http://code.google.com/p/lilypond/issues/detail?id=2088 to get around an earlier
clang failure.
- clang compile error in grub.cc,
Hanspeter Niederstrasser <=