adymo / homebrew-kde

Homebrew tap with some KDE packages. For now contains KDevelop and Kate
BSD 2-Clause "Simplified" License
106 stars 33 forks source link

kate compiler error #23

Closed andreasgerstmayr closed 10 years ago

andreasgerstmayr commented 10 years ago

Today I installed kdevelop (successfully), but after start it tells me kate is required. Unfortunately kate doesn't build:

brew install -vd kate:

Linking CXX executable kwrite.app/Contents/MacOS/kwrite
[ 16%] Undefined symbols for architecture x86_64:
  "KWrite::staticMetaObject", referenced from:
      KWriteApp::activeView() in kwriteapp.o
Building CXX object kate/app/CMakeFiles/kateinterfaces.dir/katepluginmanager.o
  "KWrite::loadURL(KUrl const&)", referenced from:
      KWriteApp::init() in kwriteapp.o
  "KWrite::restore()", referenced from:
      KWriteApp::init() in kwriteapp.o
  "KWrite::winList", referenced from:
      KWriteApp::init() in kwriteapp.o
  "KWrite::KWrite(KTextEditor::Document*)", referenced from:
      KWriteApp::init() in kwriteapp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [kwrite/kwrite.app/Contents/MacOS/kwrite] Error 1
make[1]: *** [kwrite/CMakeFiles/kwrite.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

[....]

make: *** [all] Error 2
/usr/local/Library/Homebrew/formula.rb:611:in `system'
BuildError: Failed executing: make 

brew doctor (probably unrelated):

Warning: Setting DYLD_* vars can break dynamic linking.
Set variables:
    DYLD_LIBRARY_PATH

Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:

    /usr/local/kde4/bin/kde4-config

Error: Failed to import: base_kde_formula
formulae require at least a URL

brew --config:

HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew.git
HEAD: c6fc4e5b6d9b0952209d91946f77bee8d6ed3aaa
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit ivybridge
OS X: 10.9.2-x86_64
Xcode: 5.1
CLT: 5.1.0.0.1.1393561416
GCC-4.2: build 5666
Clang: 5.1 build 503
X11: 2.7.5 => /opt/X11
System Ruby: 1.8.7-358
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby

cmake output: https://gist.github.com/andihit/9748041

Any idea why it doesn't compile on my machine?

natebrunette commented 10 years ago

I also can't install kate:

[ 48%] Building CXX object part/CMakeFiles/katepartinterfaces.dir/snippet/snippet.o
[ 48%] Building CXX object part/CMakeFiles/katepartinterfaces.dir/snippet/editrepository.o
[ 48%] Building CXX object part/CMakeFiles/katepartinterfaces.dir/snippet/editsnippet.o
[ 48%] Building CXX object part/CMakeFiles/katepartinterfaces.dir/kte5/documentcursor.o
Linking CXX shared library ../lib/libkatepartinterfaces.dylib
[ 48%] Built target katepartinterfaces
make: *** [all] Error 2
==> Formula
Tap: adymo/kde
Path: /usr/local/Library/Taps/adymo-kde/kate.rb
==> Configuration
HOMEBREW_VERSION: 0.9.5
HEAD: b5979d76173d202c6754b5a553047dec4c6a7829
CPU: quad-core 64-bit ivybridge
OS X: 10.9.2-x86_64
Xcode: 5.1
CLT: 5.1.0.0.1.1393561416
X11: N/A
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j4
CMAKE_PREFIX_PATH: /usr/local/opt/gettext:/usr/local/opt/readline:/usr/local/opt/sqlite:/usr/local/opt/libffi:/usr/local/opt/kde-phonon:/usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
CMAKE_FRAMEWORK_PATH: /usr/local/opt/qt/Frameworks
PKG_CONFIG_PATH: /usr/local/opt/xz/lib/pkgconfig:/usr/local/opt/pcre/lib/pkgconfig:/usr/local/opt/libpng/lib/pkgconfig:/usr/local/opt/qt/lib/pkgconfig:/usr/local/opt/raptor/lib/pkgconfig:/usr/local/opt/rasqal/lib/pkgconfig:/usr/local/opt/sqlite/lib/pkgconfig:/usr/local/opt/redland/lib/pkgconfig:/usr/local/opt/soprano/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig:/usr/local/opt/glib/lib/pkgconfig:/usr/local/opt/attica/lib/pkgconfig:/usr/local/opt/d-bus/lib/pkgconfig:/usr/local/opt/qjson/lib/pkgconfig:/usr/local/opt/libdbusmenu-qt/lib/pkgconfig:/usr/local/opt/kde-phonon/lib/pkgconfig:/usr/local/opt/libical/lib/pkgconfig:/usr/local/opt/shared-desktop-ontologies/share/pkgconfig:/usr/local/opt/shared-mime-info/share/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.9
ACLOCAL_PATH: /usr/local/opt/gettext/share/aclocal:/usr/local/share/aclocal
PATH: /usr/local/Library/ENV/4.3:/usr/local/opt/xz/bin:/usr/local/opt/gettext/bin:/usr/local/opt/pcre/bin:/usr/local/opt/jpeg/bin:/usr/local/opt/giflib/bin:/usr/local/opt/libpng/bin:/usr/local/opt/qt/bin:/usr/local/opt/raptor/bin:/usr/local/opt/rasqal/bin:/usr/local/opt/unixodbc/bin:/usr/local/opt/sqlite/bin:/usr/local/opt/redland/bin:/usr/local/opt/soprano/bin:/usr/local/opt/glib/bin:/usr/local/opt/shared-mime-info/bin:/usr/local/opt/d-bus/bin:/usr/local/opt/docbook-xsl/bin:/usr/local/opt/doxygen/bin:/usr/local/opt/kdelibs/bin:/usr/local/opt/nepomuk-core/bin:/usr/local/opt/gnupg/bin:/usr/local/opt/libgpg-error/bin:/usr/local/opt/libassuan/bin:/usr/local/opt/pth/bin:/usr/local/opt/gpgme/bin:/usr/local/opt/mysql/bin:/usr/local/opt/kdepimlibs/bin:/usr/local/opt/kde-runtime/bin:/usr/local/opt/cmake/bin:/usr/local/opt/automoc4/bin:/usr/bin:/bin:/usr/sbin:/sbin

Config:

HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew.git
HEAD: b5979d76173d202c6754b5a553047dec4c6a7829
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit ivybridge
OS X: 10.9.2-x86_64
Xcode: 5.1
CLT: 5.1.0.0.1.1393561416
Clang: 5.1 build 503
X11: N/A
System Ruby: 1.8.7-358
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby

Let me know if you need any other logging.

ghost commented 10 years ago

Same issue as natebrunette here

andreasgerstmayr commented 10 years ago

(the error I get is actually the same as yours, I just ran it with more debug output because the standard output looks useless) so the issue isn't my local config and it's reproducible :)

ghost commented 10 years ago

Yes, and hopefully is fixable. Unfortunately it seems that also building directly from the sources gives me the same error

adymo commented 10 years ago

Fixed. Just missing export macro. Any volunteers for an upstream fix?