`brew install libgda` error (10.8) #14108

Zearin opened this Issue Aug 10, 2012 · 6 comments


None yet

5 participants

Zearin commented Aug 10, 2012

Just got this error. Never had a Homebrew error like this before.

Not sure what to make of it, but I suspect it has something to do with upgrading to Mountain Lion, and then upgrading to the latest Xcode (which has new 10.8 tools and stuff)…

$ brew install libgda
Unlinking /usr/local/Cellar/libgpg-error/1.10... 7 links removed
Linking /usr/local/Cellar/libgpg-error/1.10... 7 symlinks created
==> Downloading http://ftp.gnome.org/pub/GNOME/sources/libgda/5.0/libgda-5.0.3.tar.xz
######################################################################## 100.0%
==> ./configure --enable-debug --prefix=/usr/local/Cellar/libgda/5.0.3 --disable-binreloc --without-java
==> make
Making all in po
make[1]: Entering directory `/private/tmp/homebrew-libgda-5.0.3-1OW6/libgda-5.0.3/po'
file=`echo ar | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file ar.po
file=`echo az | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file az.po
file=`echo ca | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file ca.po
file=`echo ca@valencia | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file ca@valencia.po
file=`echo cs | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file cs.po
file=`echo da | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file da.po
file=`echo de | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file de.po
file=`echo dz | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file dz.po
file=`echo el | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file el.po
file=`echo en_CA | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file en_CA.po
file=`echo en_GB | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file en_GB.po
file=`echo eo | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file eo.po
file=`echo es | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file es.po
file=`echo eu | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file eu.po
file=`echo fa | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file fa.po
file=`echo fi | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file fi.po
file=`echo fr | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file fr.po
file=`echo ga | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file ga.po
file=`echo gl | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file gl.po
file=`echo hr | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file hr.po
file=`echo hu | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file hu.po
file=`echo id | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file id.po
file=`echo it | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file it.po
file=`echo ja | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file ja.po
file=`echo ko | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file ko.po
file=`echo lt | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file lt.po
file=`echo mk | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file mk.po
file=`echo ml | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file ml.po
file=`echo ms | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file ms.po
file=`echo nb | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file nb.po
file=`echo ne | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file ne.po
file=`echo nl | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file nl.po
file=`echo oc | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file oc.po
file=`echo pa | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file pa.po
file=`echo pl | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file pl.po
file=`echo pt | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file pt.po
file=`echo pt_BR | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file pt_BR.po
file=`echo ru | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file ru.po
file=`echo rw | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file rw.po
file=`echo sk | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file sk.po
file=`echo sl | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file sl.po
file=`echo sq | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file sq.po
file=`echo sr | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file sr.po
file=`echo sr@Latn | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file sr@Latn.po
file=`echo sv | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file sv.po
file=`echo tr | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file tr.po
file=`echo uk | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file uk.po
file=`echo vi | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file vi.po
file=`echo zh_CN | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file zh_CN.po
file=`echo zh_HK | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file zh_HK.po
file=`echo zh_TW | sed 's,.*/,,'`.gmo \
      && rm -f $file && /usr/local/Cellar/gettext/ -o $file zh_TW.po
make[1]: Leaving directory `/private/tmp/homebrew-libgda-5.0.3-1OW6/libgda-5.0.3/po'
Making all in libgda
make[1]: Entering directory `/private/tmp/homebrew-libgda-5.0.3-1OW6/libgda-5.0.3/libgda'
Making all in sqlite
make[2]: Entering directory `/private/tmp/homebrew-libgda-5.0.3-1OW6/libgda-5.0.3/libgda/sqlite'
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -o gen_emb_string gen_emb_string.c
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -o mkkeywordhash -DGDA_DEBUG mkkeywordhash.c
gen_emb_string.c:24:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
1 error generated.
mkkeywordhash.c:6:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
make[2]: *** [gen_emb_string] Error 1
make[2]: *** Waiting for unfinished jobs....
1 error generated.
make[2]: *** [mkkeywordhash] Error 1
make[2]: Leaving directory `/private/tmp/homebrew-libgda-5.0.3-1OW6/libgda-5.0.3/libgda/sqlite'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/private/tmp/homebrew-libgda-5.0.3-1OW6/libgda-5.0.3/libgda'
make: *** [all-recursive] Error 1
config.log was copied to /Users/amrogers/Library/Logs/Homebrew
==> Build Environment
HEAD: 272dc86f4f2295a8cffe9de02f22cef0ab72edfe
CPU: dual-core 64-bit penryn
OS X: 10.8-x86_64
Xcode: 4.4.1
X11: XQuartz 2.7.2_rc3 in /opt/X11
CC: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
CXX: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ => /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
LD: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
CFLAGS: -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -isystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include
CXXFLAGS: -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -isystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include
CPPFLAGS: -I/usr/local/Cellar/readline/6.2.4/include -I/usr/local/Cellar/libffi/3.0.11/include -I/usr/local/Cellar/gettext/ -isystem /usr/local/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -isystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include
LDFLAGS: -L/usr/local/Cellar/readline/6.2.4/lib -L/usr/local/Cellar/libffi/3.0.11/lib -L/usr/local/Cellar/gettext/ -L/usr/local/lib -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/lib -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include
SDKROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk
CMAKE_PREFIX_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr
CMAKE_FRAMEWORK_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks
PKG_CONFIG_PATH: /usr/local/Cellar/libffi/3.0.11/lib/pkgconfig:/usr/local/Library/Homebrew/pkgconfig
ACLOCAL_PATH: /usr/local/Cellar/gettext/
OBJC: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
PATH: /usr/local/Cellar/readline/6.2.4/bin:/usr/local/Cellar/libffi/3.0.11/bin:/usr/local/Cellar/gettext/
Error: Failed executing: make (libgda.rb:24)
This may help you fix or report the issue if `brew doctor` does not:
adamv commented Aug 10, 2012
Xcode: 4.4.1

Please reinstall the Command Line Tools.

2bits commented Aug 10, 2012

Yes but we support XCode only. So @samueljohn Do you want to have a go at this one?
@Zearin You do seem to have a strange XQuartz, though. I have 2.7.2, but you have 2.7.2rc3?


I'll check this.
Honestly, Xcode-only system can only compile about 95% of all formulae right now (that is a very coarse guess).
Whenever I come across a problem, I try to fix it. Almost all problems are fixable by assuring that the CFLAGS etc. are used by the build system.


Confirmed. Right after def install, it needs a new line with ENV.libxml2.
@2bits can you open the PR?

2bits commented Aug 23, 2012

Might get to it. I'm busy around the house atm. Does it need a conditional, something like

  ENV.libxml2 if MacOS::xcode_only?

@2bits I can do it, too, if you are busy.
On systems with CLT, it compiles without ENV.libxml2 but because the software searches for libxml2 by itself in /usr/include. Therefore setting ENV.libxml2 would not hurt.

@jacknagel jacknagel added a commit that closed this issue Aug 23, 2012
@samueljohn samueljohn libgda: ENV.libxml2 needed if no CLT
Fixes #14108.
Closes #14408.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
@jacknagel jacknagel closed this in 9b07887 Aug 23, 2012
@Sharpie Sharpie pushed a commit to Sharpie/homebrew that referenced this issue Sep 12, 2012
@samueljohn samueljohn libgda: ENV.libxml2 needed if no CLT
Fixes #14108.
Closes #14408.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
@snakeyroc3 snakeyroc3 pushed a commit to snakeyroc3/homebrew that referenced this issue Dec 17, 2012
@samueljohn samueljohn libgda: ENV.libxml2 needed if no CLT
Fixes #14108.
Closes #14408.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
@xu-cheng xu-cheng locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.