gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiling GNUstep with clang


From: Vincent R.
Subject: Re: Compiling GNUstep with clang
Date: Sat, 13 Jul 2013 12:54:48 +0200
User-agent: Roundcube Webmail/0.6

Ok so now I am using the following steps (in my previous attempt I wasn't compiling libc++) but
at the end I get a crash inside plmerge :

mkdir objc2cs && cd objc2cs
mkdir clang && cd clang
svn co http://llvm.org/svn/llvm-project/llvm/branches/release_33 llvm
cd llvm/tools
svn co http://llvm.org/svn/llvm-project/cfe/branches/release_33 clang
cd ../../llvm/projects
svn co http://llvm.org/svn/llvm-project/compiler-rt/branches/release_33 compiler-rt

# compile llvm/clang
cd ../..
mkdir build
cd build
../llvm/configure --enable-optimized
make -j2

# export clang env. var
export PATH=$PATH:$HOME/Projects/objc2cs/build/Release+Asserts/bin
export CC=clang
export CXX=clang++

# compile libc++
cd ../../..
svn co http://llvm.org/svn/llvm-project/libcxx/branches/release_33 libcxx
cd libcxx
mkdir build && cd build
cmake .. -G "Unix Makefiles" -DLIBCXX_CXX_ABI=libsupc++ -DLIBCXX_LIBSUPCXX_INCLUDE_PATHS="/usr/include/c++/4.7/;/usr/include/x86_64-linux-gnu/c++/4.7/" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$HOME/Developer/objc2cs/clang/build/Release+Asserts
make && sudo -E make install

-------------------------
GNUStep

mkdir gnustep && cd gnustep
svn co http://svn.gna.org/svn/gnustep/modules/core
svn co http://svn.gna.org/svn/gnustep/libs/libobjc2/trunk libobjc2

cd core/make
./configure --enable-debug-by-default --with-layout=gnustep --prefix=/GNUstep
make && sudo -E make install
. /GNUstep/System/Library/Makefiles/GNUstep.sh

cd ../../libobjc2
mkdir build && cd build
cmake ..
make install


cd ../../core/make
./configure --enable-debug-by-default --enable-objc-nonfragile-abi --with-layout=gnustep --prefix=/GNUstep
make && sudo -E make install
. /GNUstep/System/Library/Makefiles/GNUstep.sh

cd ../base
./configure --disable-mixedabi --disable-unicodeconstants --prefix=/GNUstep
make messages=yes && sudo -E make install

cd ../gui
./configure --prefix=/GNUstep && make && sudo -E make install

cd ../back
./configure --enable-graphics=cairo --prefix=/GNUstep && make && sudo -E make install


if [ -r "libgnustep-back-023Info.plist" ]; then \
plmerge libgnustep-back-023.bundle/Resources/Info-gnustep.plist libgnustep-back-023Info.plist; \
        fi
plmerge: Uncaught exception (null), reason: -initWithBytes:lenth:encoding given nul bytes
Aborted
make[3]: *** [libgnustep-back-023.bundle/Resources/Info-gnustep.plist] Error 134 make[3]: *** Deleting file `libgnustep-back-023.bundle/Resources/Info-gnustep.plist'
make[2]: *** [libgnustep-back-023.all.bundle.variables] Error 2
make[1]: *** [internal-all] Error 2
make[1]: Leaving directory `/home/vincent/objc2cs/gnustep/core/back/Source'


I tried to debug but ut's not easy because even if I have stripped libobjc2 I generally end up inside all the objc machinery, however at the end I think the problem comes from the NSString with utf8 because the last line before the crash is inside
NSPathUtilities

 if ([c count] > 0)
    {
      /*
       * The dictionary should be empty ... report problems
       */
      fprintf(stderr, "Configuration contains unknown keys - %s\n",
        [[[c allKeys] description] UTF8String]);
    }

The problem seems to be the UTF8String...
I tried to put a breakpoint inside but it didn't work.
During my first build attempt there was a message about missing local en_EN-8859 or something like that but I don't manage to get this message
again so maybe it could come from that.












reply via email to

[Prev in Thread] Current Thread [Next in Thread]