Skip to content

Instantly share code, notes, and snippets.

@purcell
Created March 30, 2012 19:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save purcell/2254314 to your computer and use it in GitHub Desktop.
Save purcell/2254314 to your computer and use it in GitHub Desktop.
Homebrew 0.9
==> Downloading http://www.complang.tuwien.ac.at/schani/metapixel/files/metapixel-1.0.2.tar.gz
Already downloaded: /Users/steve/Library/Caches/Homebrew/metapixel-1.0.2.tar.gz
/usr/bin/tar xf /Users/steve/Library/Caches/Homebrew/metapixel-1.0.2.tar.gz
==> make CC=/usr/bin/clang MACOS_LDOPTS=-L/usr/local/lib MACOS_CCOPTS=-Os -w -pipe -march=native -Qunused-arguments -I/usr/local/include
make CC=/usr/bin/clang MACOS_LDOPTS=-L/usr/local/lib MACOS_CCOPTS=-Os -w -pipe -march=native -Qunused-arguments -I/usr/local/include
/usr/bin/clang -Os -w -pipe -march=native -Qunused-arguments -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include/X11 -I. -Irwimg -Wall -O2 -DMETAPIXEL_VERSION=\"1.0.2\" -DRWIMG_JPEG -DRWIMG_PNG -DRWIMG_GIF -c metapixel.c
/usr/bin/clang -Os -w -pipe -march=native -Qunused-arguments -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include/X11 -I. -Irwimg -Wall -O2 -DMETAPIXEL_VERSION=\"1.0.2\" -DRWIMG_JPEG -DRWIMG_PNG -DRWIMG_GIF -c vector.c
/usr/bin/clang -Os -w -pipe -march=native -Qunused-arguments -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include/X11 -I. -Irwimg -Wall -O2 -DMETAPIXEL_VERSION=\"1.0.2\" -DRWIMG_JPEG -DRWIMG_PNG -DRWIMG_GIF -c zoom.c
/usr/bin/clang -Os -w -pipe -march=native -Qunused-arguments -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include/X11 -I. -Irwimg -Wall -O2 -DMETAPIXEL_VERSION=\"1.0.2\" -DRWIMG_JPEG -DRWIMG_PNG -DRWIMG_GIF -c lispreader.c
/usr/bin/clang -Os -w -pipe -march=native -Qunused-arguments -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include/X11 -I. -Irwimg -Wall -O2 -DMETAPIXEL_VERSION=\"1.0.2\" -DRWIMG_JPEG -DRWIMG_PNG -DRWIMG_GIF -c pools.c
/usr/bin/clang -Os -w -pipe -march=native -Qunused-arguments -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include/X11 -I. -Irwimg -Wall -O2 -DMETAPIXEL_VERSION=\"1.0.2\" -DRWIMG_JPEG -DRWIMG_PNG -DRWIMG_GIF -c allocator.c
/usr/bin/clang -Os -w -pipe -march=native -Qunused-arguments -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include/X11 -I. -Irwimg -Wall -O2 -DMETAPIXEL_VERSION=\"1.0.2\" -DRWIMG_JPEG -DRWIMG_PNG -DRWIMG_GIF -c getopt.c
/usr/bin/clang -Os -w -pipe -march=native -Qunused-arguments -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include/X11 -I. -Irwimg -Wall -O2 -DMETAPIXEL_VERSION=\"1.0.2\" -DRWIMG_JPEG -DRWIMG_PNG -DRWIMG_GIF -c getopt1.c
make -C rwimg
/usr/bin/clang -Os -w -pipe -march=native -Qunused-arguments -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include/X11 -I. -Irwimg -Wall -O2 -DMETAPIXEL_VERSION=\"1.0.2\" -DRWIMG_PNG -DRWIMG_JPEG -DRWIMG_GIF -g -c readimage.c
/usr/bin/clang -Os -w -pipe -march=native -Qunused-arguments -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include/X11 -I. -Irwimg -Wall -O2 -DMETAPIXEL_VERSION=\"1.0.2\" -DRWIMG_PNG -DRWIMG_JPEG -DRWIMG_GIF -g -c writeimage.c
/usr/bin/clang -Os -w -pipe -march=native -Qunused-arguments -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include/X11 -I. -Irwimg -Wall -O2 -DMETAPIXEL_VERSION=\"1.0.2\" -DRWIMG_JPEG -DRWIMG_PNG -DRWIMG_GIF -c convert.c
/usr/bin/clang -Os -w -pipe -march=native -Qunused-arguments -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include/X11 -I. -Irwimg -Wall -O2 -DMETAPIXEL_VERSION=\"1.0.2\" -DRWIMG_PNG -DRWIMG_JPEG -DRWIMG_GIF -g -c rwpng.c
/usr/bin/clang -Os -w -pipe -march=native -Qunused-arguments -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include/X11 -I. -Irwimg -Wall -O2 -DMETAPIXEL_VERSION=\"1.0.2\" -DRWIMG_PNG -DRWIMG_JPEG -DRWIMG_GIF -g -c rwjpeg.c
rwpng.c:60:29: error: incomplete definition of type 'struct png_struct_def'
if (setjmp(data->png_ptr->jmpbuf))
~~~~~~~~~~~~~^
/usr/X11R6/include/png.h:819:16: note: forward declaration of 'struct png_struct_def'
typedef struct png_struct_def png_struct;
^
rwpng.c:67:28: error: incomplete definition of type 'struct png_info_def'
*width = data->info_ptr->width;
~~~~~~~~~~~~~~^
/usr/X11R6/include/png.h:692:16: note: forward declaration of 'struct png_info_def'
typedef struct png_info_def png_info;
^
rwpng.c:68:29: error: incomplete definition of type 'struct png_info_def'
*height = data->info_ptr->height;
~~~~~~~~~~~~~~^
/usr/X11R6/include/png.h:692:16: note: forward declaration of 'struct png_info_def'
typedef struct png_info_def png_info;
^
rwpng.c:70:26: error: incomplete definition of type 'struct png_info_def'
assert(data->info_ptr->bit_depth == 8 || data->info_ptr->bit_depth == 16);
~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
/usr/X11R6/include/png.h:692:16: note: forward declaration of 'struct png_info_def'
typedef struct png_info_def png_info;
^
rwpng.c:70:60: error: incomplete definition of type 'struct png_info_def'
assert(data->info_ptr->bit_depth == 8 || data->info_ptr->bit_depth == 16);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
/usr/X11R6/include/png.h:692:16: note: forward declaration of 'struct png_info_def'
typedef struct png_info_def png_info;
^
rwpng.c:71:26: error: incomplete definition of type 'struct png_info_def'
assert(data->info_ptr->color_type == PNG_COLOR_TYPE_RGB || data->info_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA);
~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
/usr/X11R6/include/png.h:692:16: note: forward declaration of 'struct png_info_def'
typedef struct png_info_def png_info;
^
rwpng.c:71:78: error: incomplete definition of type 'struct png_info_def'
assert(data->info_ptr->color_type == PNG_COLOR_TYPE_RGB || data->info_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
/usr/X11R6/include/png.h:692:16: note: forward declaration of 'struct png_info_def'
typedef struct png_info_def png_info;
^
rwpng.c:72:26: error: incomplete definition of type 'struct png_info_def'
assert(data->info_ptr->interlace_type == PNG_INTERLACE_NONE);
~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
(__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
^
/usr/X11R6/include/png.h:692:16: note: forward declaration of 'struct png_info_def'
typedef struct png_info_def png_info;
^
rwpng.c:87:29: error: incomplete definition of type 'struct png_struct_def'
if (setjmp(data->png_ptr->jmpbuf))
~~~~~~~~~~~~~^
/usr/X11R6/include/png.h:819:16: note: forward declaration of 'struct png_struct_def'
typedef struct png_struct_def png_struct;
^
rwpng.c:90:23: error: incomplete definition of type 'struct png_info_def'
if (data->info_ptr->color_type == PNG_COLOR_TYPE_RGB)
~~~~~~~~~~~~~~^
/usr/X11R6/include/png.h:692:16: note: forward declaration of 'struct png_info_def'
typedef struct png_info_def png_info;
^
rwpng.c:95:23: error: incomplete definition of type 'struct png_info_def'
if (data->info_ptr->bit_depth == 16)
~~~~~~~~~~~~~~^
/usr/X11R6/include/png.h:692:16: note: forward declaration of 'struct png_info_def'
typedef struct png_info_def png_info;
^
rwpng.c:100:48: error: incomplete definition of type 'struct png_info_def'
row = (unsigned char*)malloc(data->info_ptr->width * spp * bps);
~~~~~~~~~~~~~~^
/usr/X11R6/include/png.h:692:16: note: forward declaration of 'struct png_info_def'
typedef struct png_info_def png_info;
^
rwpng.c:107:32: error: incomplete definition of type 'struct png_info_def'
for (j = 0; j < data->info_ptr->width; ++j)
~~~~~~~~~~~~~~^
/usr/X11R6/include/png.h:692:16: note: forward declaration of 'struct png_info_def'
typedef struct png_info_def png_info;
^
rwpng.c:109:27: error: incomplete definition of type 'struct png_info_def'
lines[i * data->info_ptr->width * 3 + j * 3 + channel] = row[j * spp * bps + channel * bps];
~~~~~~~~~~~~~~^
/usr/X11R6/include/png.h:692:16: note: forward declaration of 'struct png_info_def'
typedef struct png_info_def png_info;
^
rwpng.c:122:29: error: incomplete definition of type 'struct png_struct_def'
if (setjmp(data->png_ptr->jmpbuf))
~~~~~~~~~~~~~^
/usr/X11R6/include/png.h:819:16: note: forward declaration of 'struct png_struct_def'
typedef struct png_struct_def png_struct;
^
rwpng.c:151:29: error: incomplete definition of type 'struct png_struct_def'
if (setjmp(data->png_ptr->jmpbuf))
~~~~~~~~~~~~~^
/usr/X11R6/include/png.h:819:16: note: forward declaration of 'struct png_struct_def'
typedef struct png_struct_def png_struct;
^
rwpng.c:159:19: error: incomplete definition of type 'struct png_info_def'
data->info_ptr->width = width;
~~~~~~~~~~~~~~^
/usr/X11R6/include/png.h:692:16: note: forward declaration of 'struct png_info_def'
typedef struct png_info_def png_info;
^
rwpng.c:160:19: error: incomplete definition of type 'struct png_info_def'
data->info_ptr->height = height;
~~~~~~~~~~~~~~^
/usr/X11R6/include/png.h:692:16: note: forward declaration of 'struct png_info_def'
typedef struct png_info_def png_info;
^
rwpng.c:161:19: error: incomplete definition of type 'struct png_info_def'
data->info_ptr->valid = 0;
~~~~~~~~~~~~~~^
/usr/X11R6/include/png.h:692:16: note: forward declaration of 'struct png_info_def'
typedef struct png_info_def png_info;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[1]: *** [rwpng.o] Error 1
make[1]: *** Waiting for unfinished jobs....
/usr/bin/clang -Os -w -pipe -march=native -Qunused-arguments -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include/X11 -I. -Irwimg -Wall -O2 -DMETAPIXEL_VERSION=\"1.0.2\" -DRWIMG_JPEG -DRWIMG_PNG -DRWIMG_GIF -c imagesize.c
make: *** [librwimg] Error 2
make: *** Waiting for unfinished jobs....
==> Exit Status: 2
https://github.com/mxcl/master/blob/master/Library/Formula/metapixel.rb#L14
==> Build Environment
CPU: dual-core 64-bit penryn
MacOS: 10.7.3-x86_64
Xcode: 4.3.2
CC: /usr/bin/clang
CXX: /usr/bin/clang++ => /usr/bin/clang
LD: /usr/bin/clang
CFLAGS: -Os -w -pipe -march=native -Qunused-arguments
CXXFLAGS: -Os -w -pipe -march=native -Qunused-arguments
MAKEFLAGS: -j2
Error: Failed executing: make CC=/usr/bin/clang MACOS_LDOPTS=-L/usr/local/lib MACOS_CCOPTS=-Os\ -w\ -pipe\ -march=native\ -Qunused-arguments\ -I/usr/local/include (metapixel.rb:14)
If `brew doctor' does not help diagnose the issue, please report the bug:
https://github.com/mxcl/homebrew/wiki/reporting-bugs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment