|
From: | Andreas Fink |
Subject: | Re: GNUStep runtime / libobjc2 build problems: tests failing or segfaulting |
Date: | Wed, 16 Jan 2019 11:40:37 +0100 |
Hello Sergjii I did reproduce this today with a freshly installed VM. Here is how I did it. I have llvm from this repo deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch-7 main deb-src http://apt.llvm.org/stretch/ llvm-toolchain-stretch-7 main deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch main deb-src http://apt.llvm.org/stretch/ llvm-toolchain-stretch main I also have the backport repo added. And installed a base system with no gui. and did install this way apt-get purge libblocksruntime-dev libblocksruntime0 apt-get install clang-8 lldb-8 llvm-8 libc++-8-dev lld-8 python-lldb-8 base-essential git subversion automake autoconf pkgconfig libtool pushd /usr/bin rm -f clang clang++ clang-cpp lldb ln -s clang-8 clang ln -s clang++-8 clang++ ln -s clang-cpp-8 clang-cpp ln -s lldb-8 lldb popd export CC=/usr/bin/clang-8 export CXX=/usr/bin/clang++-8 export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ export RUNTIME_VERSION=gnustep-2.0 mkdir gnustep cd gnustep git clone https://github.com/gnustep/scripts git clone https://github.com/gnustep/make git clone https://github.com/gnustep/libobjc2 git clone https://github.com/gnustep/base git clone https://github.com/gnustep/corebase git clone https://github.com/gnustep/gui git clone https://github.com/gnustep/back ./scripts/install-dependencies tar -xvzf libiconv-1.15.tar.gz cd libiconv-1.15 ./configure make make install cd .. cd swift-corelibs-libdispatch mkdir build cd build cmake .. -DCMAKE_C_COMPILER=${CC} -DCMAKE_CXX_COMPILER=${CXX} -DCMAKE_BUILD_TYPE=RelWithDebInfo make make install cd make export OBJCFLAGS="-fblocks" export LDLAGS="-L/usr/local/lib" ./configure \ --with-layout=fhs \ --disable-importing-config-file \ --enable-native-objc-exceptions \ --enable-objc-arc \ --enable-install-ld-so-conf \ --with-library-combo=ng-gnu-gnu \ --with-config-file=/usr/local/etc/GNUstep/GNUstep.conf \ --with-user-config-file='.GNUstep.conf' \ --with-user-defaults-dir='GNUstep/Library/Defaults' \ --with-objc-lib-flag="-l:libobjc.so.4.6" make install source /usr/local/etc/GNUstep/GNUstep.conf cd .. cd libobjc2 mkdir Build cd Build cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_STATIC_LIBOBJC=1 -DCMAKE_C_COMPILER=${CC} -DCMAKE_CXX_COMPILER=${CXX} -DTESTS=OFF make -j8 make install cd .. ldconfig cd base ./configure --with-config-file=/usr/local/etc/GNUstep/GNUstep.conf make -j8 make install cd ../.. ldconfig after this, I run make check and it results in 343 Failed files 8 Passed tests The constant strings error messages are however gone now. I had massive problems with memory in libobjc2 release 1.9. It seems a lot of objects are not freeing memory in my system in some cases even though they are properly deallocated I did not see any reference to the gcc objc library and its not even installed. I can give access to that system if needed. I only created this VM for testing this specific case.
|
[Prev in Thread] | Current Thread | [Next in Thread] |