all latest compiled from these sources:

git clone https://git.llvm.org/git/llvm.git/
cd llvm/tools
git clone https://git.llvm.org/git/clang.git/
cd ../projects
git clone https://git.llvm.org/git/compiler-rt.git/
git clone https://git.llvm.org/git/openmp.git/
git clone https://git.llvm.org/git/libcxx.git/
git clone https://git.llvm.org/git/libcxxabi.git/
git clone https://git.llvm.org/git/test-suite.git/
git clone https://git.llvm.org/git/lld.git/ <https://git.llvm.org/git/lld.git/>

wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.15.tar.gz
git clone https://github.com/apple/swift-corelibs-libdispatch
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 <https://github.com/gnustep/back>

clang compiled with these options

        cmake .. -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS=lld 


these environment variables are set

export CC=/usr/local/bin/clang
export CXX=/usr/local/bin/clang++
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
export LD=ld.lld


libdispatch:
        cmake .. -DCMAKE_C_COMPILER=/usr/local/bin/clang 
-DCMAKE_CXX_COMPILER=/usr/local/bin/clang++ -DCMAKE_LINKER=/usr/local/bin/ld.lld

gnustep-make:
    ./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 \

libobjc2:
        cmake .. -DBUILD_STATIC_LIBOBJC=1 
-DCMAKE_C_COMPILER=/usr/local/bin/clang 
-DCMAKE_CXX_COMPILER=/usr/local/bin/clang++ -DCMAKE_LINKER=/usr/local/bin/ld.lld


gnustep-base:
        ./configure --with-config-file=/usr/local/etc/GNUstep/GNUstep.conf 

if I add --disable-libdispatch --disable-mixedabi here it compiles but then the 
error appears in my own code as well when blocks are used.




> On 31 Aug 2018, at 10:15, David Chisnall <gnus...@theravensnest.org> wrote:
> 
> Hi Andreas,
> 
> What runtime version are you targeting and what compiler are you using? It 
> appears that the block descriptor is including a full type encoding without 
> mangling it, which doesn't work on most ELF platforms because the @ symbol is 
> used as a separator between symbol name and version.
> 
> David
> 
> On 30/08/2018 22:22, Andreas Fink wrote:
>> anyone having a hint where this is coming from:
>> [root@localhost base]# make install
>> This is gnustep-make 2.7.0. Type 'make print-gnustep-make-help' for help.
>> Running in gnustep-make version 2 strict mode.
>> Making all in Source ...
>> Making all in Additions ...
>> Making all for subproject Additions...
>> make[4]: Nothing to be done for 'internal-subproject-compile'.
>> Making all in subprojects of library libgnustep-base...
>> Making all for subproject Additions...
>> make[5]: Nothing to be done for 'internal-subproject-compile'.
>> Making all for subproject unix...
>> make[5]: Nothing to be done for 'internal-subproject-compile'.
>> Making all for library libgnustep-base...
>>  Linking library libgnustep-base ...
>> */usr/bin/ld: ./obj/libgnustep-base.so.1.25.1: version node not found for 
>> symbol __block_descriptor_40_e8_32r_e15_v32@?0@8Q16^C24l*
>> /usr/bin/ld: failed to set dynamic section sizes: Bad value
>> clang-8: error: linker command failed with exit code 1 (use -v to see 
>> invocation)
>> /usr/local/share/GNUstep/Makefiles/Instance/library.make:293: recipe for 
>> target 'obj/libgnustep-base.so.1.25.1' failed
>> make[4]: *** [obj/libgnustep-base.so.1.25.1] Error 1
>> /usr/local/share/GNUstep/Makefiles/Instance/library.make:278: recipe for 
>> target 'internal-library-all_' failed
>> make[3]: *** [internal-library-all_] Error 2
>> /usr/local/share/GNUstep/Makefiles/Master/rules.make:297: recipe for target 
>> 'libgnustep-base.all.library.variables' failed
>> make[2]: *** [libgnustep-base.all.library.variables] Error 2
>> /usr/local/share/GNUstep/Makefiles/Master/library.make:37: recipe for target 
>> 'internal-all' failed
>> make[1]: *** [internal-all] Error 2
>> /usr/local/share/GNUstep/Makefiles/Master/serial-subdirectories.make:53: 
>> recipe for target 'internal-all' failed
>> make: *** [internal-all] Error 2
>> _______________________________________________
>> Discuss-gnustep mailing list
>> Discuss-gnustep@gnu.org
>> https://lists.gnu.org/mailman/listinfo/discuss-gnustep
> 

_______________________________________________
Discuss-gnustep mailing list
Discuss-gnustep@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to