make error 1 on osx
Closed this issue · 2 comments
Hi John,
With Mac OS X 10.6.8 (10K540), on HEAD (5e22125..), make exits with:
markdown_parser.c: In function ‘yy_SourceContents’:
markdown_parser.c:2027: warning: label ‘l166’ defined but not used
make: *** [markdown_parser.o] Error 1
On my RHEL 5.4 box, there is the same warning but it continues to build successfully.
FYI,
Isao
% gcc -v
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5666.3~123/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)
on RHEL
$ cat /etc/redhat-release
Red Hat Enterprise Linux Client release 5.4 (Tikanga)
$ gcc -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)
I think the culprit is --enable-werror, which must be a new default?
Try CFLAGS="$CFLAGS --disable-werror" make
John
+++ isao [Jul 25 11 14:38 ]:
Hi John,
With Mac OS X 10.6.8 (10K540), on HEAD (5e22125..), make exits with:
markdown_parser.c: In function ‘yy_SourceContents’: markdown_parser.c:2027: warning: label ‘l166’ defined but not used make: *** [markdown_parser.o] Error 1
On my RHEL 5.4 box, there is the same warning but it continues to build successfully.
FYI,
Isao
% gcc -v
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5666.3~123/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)on RHEL
$ cat /etc/redhat-release
Red Hat Enterprise Linux Client release 5.4 (Tikanga)$ gcc -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)
turns out, it's my bad. I didn't have glib installed (which I have seemingly always had around before, for unrelated reasons).
make works after I do brew install glib
thanks for the fast reply-- again!