leaningtech-dev team mailing list archive
-
leaningtech-dev team
-
Mailing list archive
-
Message #00298
[Bug 1517618] [NEW] can't build simple app / linking error
Public bug reported:
Dummy program:
===
void webMain() [[client]]
{
}
===
Cause this error: ERROR: Linking globals named '_ZTVSt9bad_alloc':
symbol multiply defined!
More details:
/opt/cheerp/bin/clang++ -O3 -target cheerp main.cpp -o main.bc -v
clang version 3.7.0 (https://github.com/leaningtech/cheerp-clang 77eca1ea55c8e2bba8732131697734cc4de60283) (https://github.com/leaningtech/cheerp-llvm 77fab8d5331f12b814f0aaf09d4e17f933f60401)
Target: cheerp--webbrowser
Thread model: posix
"/opt/cheerp/bin/clang-3.7" -cc1 -triple cheerp--webbrowser -emit-llvm-bc -disable-free -disable-llvm-verifier -main-file-name main.cpp -mrelocation-model static -mthread-model posix -mdisable-fp-elim -fmath-errno -no-integrated-as -mconstructor-aliases -v -dwarf-column-info -resource-dir /opt/cheerp/bin/../lib/clang/3.7.0 -c-isystem /home/valexey/Projects/cheerp/cheerp-libcxx/cheerp-libcxxabi/include -cxx-isystem /home/valexey/Projects/cheerp/cheerp-libcxx/include -internal-isystem /opt/cheerp/include/c++/v1 -internal-isystem /opt/cheerp/bin/../lib/clang/3.7.0/include -internal-externc-isystem /opt/cheerp/include -internal-externc-isystem /opt/cheerp/include/client -O3 -fdeprecated-macro -fno-dwarf-directory-asm -fdebug-compilation-dir /home/valexey/Projects/formula/c++ -ferror-limit 19 -fmessage-length 211 -mstackrealign -fno-rtti -fno-threadsafe-statics -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o /tmp/main-2b8fed.bc -x c++ main.cpp
clang -cc1 version 3.7.0 based upon LLVM 3.7.0svn default target x86_64-unknown-linux-gnu
#include "..." search starts here:
#include <...> search starts here:
/home/valexey/Projects/cheerp/cheerp-libcxx/include
/opt/cheerp/include/c++/v1
/opt/cheerp/bin/../lib/clang/3.7.0/include
/opt/cheerp/include
/opt/cheerp/include/client
/opt/cheerp/include/common
End of search list.
"/opt/cheerp/bin/llvm-link" -o /tmp/main-f3743b.bc /tmp/main-2b8fed.bc /opt/cheerp/lib/libc.bc /opt/cheerp/lib/libm.bc /opt/cheerp/lib/libc++.bc /opt/cheerp/lib/libc++abi.bc
ERROR: Linking globals named '_ZTVSt9bad_alloc': symbol multiply defined!
clang-3.7: error: linker command failed with exit code 1 (use -v to see invocation)
** Affects: cheerp
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of
Leaningtech Team, which is subscribed to Cheerp.
https://bugs.launchpad.net/bugs/1517618
Title:
can't build simple app / linking error
Status in Cheerp:
New
Bug description:
Dummy program:
===
void webMain() [[client]]
{
}
===
Cause this error: ERROR: Linking globals named '_ZTVSt9bad_alloc':
symbol multiply defined!
More details:
/opt/cheerp/bin/clang++ -O3 -target cheerp main.cpp -o main.bc -v
clang version 3.7.0 (https://github.com/leaningtech/cheerp-clang 77eca1ea55c8e2bba8732131697734cc4de60283) (https://github.com/leaningtech/cheerp-llvm 77fab8d5331f12b814f0aaf09d4e17f933f60401)
Target: cheerp--webbrowser
Thread model: posix
"/opt/cheerp/bin/clang-3.7" -cc1 -triple cheerp--webbrowser -emit-llvm-bc -disable-free -disable-llvm-verifier -main-file-name main.cpp -mrelocation-model static -mthread-model posix -mdisable-fp-elim -fmath-errno -no-integrated-as -mconstructor-aliases -v -dwarf-column-info -resource-dir /opt/cheerp/bin/../lib/clang/3.7.0 -c-isystem /home/valexey/Projects/cheerp/cheerp-libcxx/cheerp-libcxxabi/include -cxx-isystem /home/valexey/Projects/cheerp/cheerp-libcxx/include -internal-isystem /opt/cheerp/include/c++/v1 -internal-isystem /opt/cheerp/bin/../lib/clang/3.7.0/include -internal-externc-isystem /opt/cheerp/include -internal-externc-isystem /opt/cheerp/include/client -O3 -fdeprecated-macro -fno-dwarf-directory-asm -fdebug-compilation-dir /home/valexey/Projects/formula/c++ -ferror-limit 19 -fmessage-length 211 -mstackrealign -fno-rtti -fno-threadsafe-statics -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o /tmp/main-2b8fed.bc -x c++ main.cpp
clang -cc1 version 3.7.0 based upon LLVM 3.7.0svn default target x86_64-unknown-linux-gnu
#include "..." search starts here:
#include <...> search starts here:
/home/valexey/Projects/cheerp/cheerp-libcxx/include
/opt/cheerp/include/c++/v1
/opt/cheerp/bin/../lib/clang/3.7.0/include
/opt/cheerp/include
/opt/cheerp/include/client
/opt/cheerp/include/common
End of search list.
"/opt/cheerp/bin/llvm-link" -o /tmp/main-f3743b.bc /tmp/main-2b8fed.bc /opt/cheerp/lib/libc.bc /opt/cheerp/lib/libm.bc /opt/cheerp/lib/libc++.bc /opt/cheerp/lib/libc++abi.bc
ERROR: Linking globals named '_ZTVSt9bad_alloc': symbol multiply defined!
clang-3.7: error: linker command failed with exit code 1 (use -v to see invocation)
To manage notifications about this bug go to:
https://bugs.launchpad.net/cheerp/+bug/1517618/+subscriptions
Follow ups