I was just having a quick go at attempting to see if I could build SwiftShader 
for RISC OS from it’s git repository at:
https://swiftshader/googlesource.com/SwiftShader

and it crashed early on with:

*** buffer overflow detected ***: 
/home/alanb/gccsdk/cross/libexec/gcc/arm-unknown-riscos/4.7.4/cc1plus terminated

In file included from 
/home/alanb/gccsdk/cross/lib/gcc/arm-unknown-riscos/4.7.4/../../../../arm-unknown-riscos/include/c++/4.7.4/vector:64:0,
                 from 
/home/alanb/gccsdk/cross/lib/gcc/arm-unknown-riscos/4.7.4/../../../../arm-unknown-riscos/include/c++/4.7.4/bits/random.h:34,
                 from 
/home/alanb/gccsdk/cross/lib/gcc/arm-unknown-riscos/4.7.4/../../../../arm-unknown-riscos/include/c++/4.7.4/random:50,
                 from 
/home/alanb/gccsdk/cross/lib/gcc/arm-unknown-riscos/4.7.4/../../../../arm-unknown-riscos/include/c++/4.7.4/bits/stl_algo.h:67,
                 from 
/home/alanb/gccsdk/cross/lib/gcc/arm-unknown-riscos/4.7.4/../../../../arm-unknown-riscos/include/c++/4.7.4/algorithm:63,
                 from 
/home/alanb/gccsdk/build/swiftshader/SwiftShader/third_party/LLVM/include/llvm/ADT/ilist.h:41,
                 from 
/home/alanb/gccsdk/build/swiftshader/SwiftShader/third_party/LLVM/include/llvm/SymbolTableListTraits.h:28,
                 from 
/home/alanb/gccsdk/build/swiftshader/SwiftShader/third_party/LLVM/include/llvm/BasicBlock.h:18,
                 from 
/home/alanb/gccsdk/build/swiftshader/SwiftShader/third_party/LLVM/include/llvm/Support/CallSite.h:31,
                 from 
/home/alanb/gccsdk/build/swiftshader/SwiftShader/third_party/LLVM/include/llvm/Analysis/AliasSetTracker.h:20,
                 from 
/home/alanb/gccsdk/build/swiftshader/SwiftShader/third_party/LLVM/lib/Analysis/AliasSetTracker.cpp:14:
/home/alanb/gccsdk/cross/lib/gcc/arm-unknown-riscos/4.7.4/../../../../arm-unknown-riscos/include/c++/4.7.4/bits/stl_uninitialized.h:
 In function '_ForwardIterator 
std::__uninitialized_move_if_noexcept_a(_InputIterator, _InputIterator, 
_ForwardIterator, _Allocator&) [with _InputIterator = 
llvm::AssertingVH<llvm::Instruction>*; _ForwardIterator = 
llvm::AssertingVH<llvm::Instruction>*; _Allocator = 
std::allocator<llvm::AssertingVH<llvm::Instruction> >]':
/home/alanb/gccsdk/cross/lib/gcc/arm-unknown-riscos/4.7.4/../../../../arm-unknown-riscos/include/c++/4.7.4/bits/stl_uninitialized.h:284:5:
 internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gccsdk.riscos.info/> for instructions.
CMakeFiles/llvm.dir/build.make:86: recipe for target 
'CMakeFiles/llvm.dir/third_party/LLVM/lib/Analysis/AliasSetTracker.cpp.o' failed

I created a build directory in my swiftshader directory and ran cmake in it as 
follows:
cmake -DCMAKE_TOOLCHAIN_FILE=~/gccsdk/env/toolchain-riscos.cmake 
-DBINARY_SUFFIX=,e1f ..

I then attempted to build it with:
~/gccsdk/env/ro-make

I’m just looking at this out of curiosity, but wondered if this was a real bug 
or if I had done something wrong.

Any ideas?

Regards,
Alan
_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

Reply via email to