Subject: bug#12063: build error

From: Karsten Rodenacker <[email-masked]>
Date: Fri, 27 Jul 2012 00:58:38 +0200

I am trying to install (with homebrew) libtool (as a dependent of mind) and get a compile error

libtool: compile:  /usr/bin/clang -DHAVE_CONFIG_H -I. -I./libsrc -I./volume_io/Include -I./volume_io/Include -I./progs/Proglib -I./conversion/Acr_nema -I./libsrc2 -isystem /usr/local/include -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8 -c libsrc2/grpattr.c -o libsrc2/grpattr.o >/dev/null 2>&1
/bin/sh ./libtool --tag=CC   --mode=compile /usr/bin/clang -DHAVE_CONFIG_H -I. -I./libsrc -I./volume_io/Include -I./volume_io/Include -I./progs/Proglib -I./conversion/Acr_nema -I./libsrc2  -isystem /usr/local/include  -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8 -c -o libsrc2/hyper.lo libsrc2/hyper.c
libtool: compile:  /usr/bin/clang -DHAVE_CONFIG_H -I. -I./libsrc -I./volume_io/Include -I./volume_io/Include -I./progs/Proglib -I./conversion/Acr_nema -I./libsrc2 -isystem /usr/local/include -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8 -c libsrc2/hyper.c  -fno-common -DPIC -o libsrc2/.libs/hyper.o
libsrc2/hyper.c:773:4: error: non-void function 'miget_real_value_hyperslab' should return a value [-Wreturn-type]
          return;
          ^
1 error generated.
make[1]: *** [libsrc2/hyper.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [install-recursive] Error 1

==> Build Environment
HOMEBREW_VERSION: 0.9.2
HEAD: affc4c88ff92a8ff83b468fa8e5a9892e98a80e2
CPU: dual-core 64-bit penryn
OS X: 10.8-x86_64
Xcode: 4.4
CLT: 4.4.0.0.1.1249367152
X11:  @ /opt/X11
CC: /usr/bin/clang
CXX: /usr/bin/clang++ => /usr/bin/clang
LD: /usr/bin/clang
CFLAGS: -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8
CXXFLAGS: -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8
CPPFLAGS: -isystem /usr/local/include
LDFLAGS: -L/usr/local/lib
MACOSX_DEPLOYMENT_TARGET: 10.8
MAKEFLAGS: -j2
Error: Failed executing: make install (minc.rb:25)

regards
Karsten