You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Building mpb-1.9.0 on OS X, with guile and gcc supplied by fink (older machine, so older versions of those), fails:
CC mpb-medium.o
In file included from /sw/include/guile/2.0/libguile/__scm.h:479:0,
from /sw/include/guile/2.0/libguile.h:31,
from /sw/include/ctl.h:28,
from ./ctl-io.h:7,
from mpb.h:22,
from medium.c:27:
/sw/include/guile/2.0/libguile/gc.h: In function 'scm_cell':
/sw/include/guile/2.0/libguile/gc.h:51:33: warning: cast from function call of type 'void *' to non-matching type 'long unsigned int' [-Wbad-function-cast]
# define PTR2SCM(x) (SCM_PACK ((scm_t_bits) (x)))
^
/sw/include/guile/2.0/libguile/tags.h:105:32: note: in definition of macro 'SCM_PACK'
# define SCM_PACK(x) ((SCM) (x))
^
/sw/include/guile/2.0/libguile/gc.h:232:14: note: in expansion of macro 'PTR2SCM'
SCM cell = PTR2SCM (SCM_GC_MALLOC (sizeof (scm_t_cell)));
^
/sw/include/guile/2.0/libguile/gc.h: In function 'scm_double_cell':
/sw/include/guile/2.0/libguile/gc.h:51:33: warning: cast from function call of type 'void *' to non-matching type 'long unsigned int' [-Wbad-function-cast]
# define PTR2SCM(x) (SCM_PACK ((scm_t_bits) (x)))
^
/sw/include/guile/2.0/libguile/tags.h:105:32: note: in definition of macro 'SCM_PACK'
# define SCM_PACK(x) ((SCM) (x))
^
/sw/include/guile/2.0/libguile/gc.h:250:7: note: in expansion of macro 'PTR2SCM'
z = PTR2SCM (SCM_GC_MALLOC (2 * sizeof (scm_t_cell)));
^
/sw/include/guile/2.0/libguile/gc.h: In function 'scm_words':
/sw/include/guile/2.0/libguile/gc.h:51:33: warning: cast from function call of type 'void *' to non-matching type 'long unsigned int' [-Wbad-function-cast]
# define PTR2SCM(x) (SCM_PACK ((scm_t_bits) (x)))
^
/sw/include/guile/2.0/libguile/tags.h:105:32: note: in definition of macro 'SCM_PACK'
# define SCM_PACK(x) ((SCM) (x))
^
/sw/include/guile/2.0/libguile/gc.h:289:7: note: in expansion of macro 'PTR2SCM'
z = PTR2SCM (SCM_GC_MALLOC (sizeof (scm_t_bits) * n_words));
^
medium.c: In function 'make_medium':
medium.c:48:6: warning: implicit declaration of function 'CHK_MALLOC' [-Wimplicit-function-declaration]
CHK_MALLOC(m.subclass.medium_data, medium, 1);
^
medium.c:48:41: error: expected expression before 'medium'
CHK_MALLOC(m.subclass.medium_data, medium, 1);
^
I have a /sw/include/check.h from some other package, which is what's being #included, rather than the intended ../src/util/check.h, because -I/sw/include is ahead of -I../src/util. To make sure local headers are loaded regardless of what things might be installed externally, all local -I should come before external ones. So...
In mpb/Makefile.am, MY_CPPFLAGS should have $(GUILE_CPPFLAGS) at the end not the beginning.
In utils/Makefile.am, mpb@MPB_SUFFIX@_data_CPPFLAGS should have $(CTLGEOM_H_CPPFLAG) at the end not the beginning.
The text was updated successfully, but these errors were encountered:
Building mpb-1.9.0 on OS X, with guile and gcc supplied by fink (older machine, so older versions of those), fails:
If I
make V=1
, I see the compiler call is:I have a /sw/include/check.h from some other package, which is what's being #included, rather than the intended ../src/util/check.h, because -I/sw/include is ahead of -I../src/util. To make sure local headers are loaded regardless of what things might be installed externally, all local -I should come before external ones. So...
The text was updated successfully, but these errors were encountered: