marginasa Posted March 8, 2017 Report Share Posted March 8, 2017 Hi, I'm trying to build the systemc library using clang within MSYS $ clang -v clang version 3.9.1 (tags/RELEASE_391/final) Target: x86_64-w64-windows-gnu Thread model: posix InstalledDir: D:\Install\Msys2\mingw64\bin The configure options look as follows: ../configure --prefix=$SYSTEMC_LLVM --with-unix-layout CC=clang.exe CXX=clang++.exe CPP=`clang++.exe -E` CFLAGS=-stdlib=libstdc++ CXXFLAGS=-stdlib=libstdc++ CXXFLAGS=-std=c++11 LDFLAGS="-stdlib=libstdc++" --enable-pthreads --enable-debug The error I get is during compilation of sc_simcontext.cpp ... CXX sc_reset.lo CXX sc_sensitive.lo CXX sc_simcontext.lo In file included from ../../../../src/sysc/kernel/sc_simcontext.cpp:36: ../../../../src\sysc/kernel/sc_cor_pthread.h:43:28: error: typedef redefinition with different types ('sc_core::sc_cor_pkg_pthread' vs 'sc_core::sc_cor_pkg_fiber') typedef sc_cor_pkg_pthread sc_cor_pkg_t; ^ ../../../../src\sysc/kernel/sc_cor_fiber.h:48:26: note: previous definition is here typedef sc_cor_pkg_fiber sc_cor_pkg_t; I assume that I might be missing some defines to exclude the above seen redefinition but I cannot figure out which.. as with Visual Studio compiler (not clang) I have built the library. There are 3 defines across source code in 3 header files.. typedef sc_cor_pkg_fiber sc_cor_pkg_t; typedef sc_cor_pkg_qt sc_cor_pkg_t; typedef sc_cor_pkg_pthread sc_cor_pkg_t; Any hint is appretiated. Thanks. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.