Closed vadi2 closed 5 years ago
<bits/libc-header-start.h>
looks like a gcc-specific header from your system /usr/include/string.h
, while emscripten uses clang and its own headers.
For some reason, make
passes -isystem /usr/include
to em++
, which, I suspect, makes it use system headers for GCC instead of its own headers for Clang, resulting in the error.
How did you create the Makefile
?
I use QMake to create the Makefile
, and I'm actually responsible for the -isystem /usr/include
! Without it, the includes that reside in /usr/include
weren't being found. I found it strange as I don't need to include it for clang/gcc builds, but including it got me further along until this error.
If I don't have /usr/include/
mentioned explicitly:
In file included from src/ctelnet.cpp:29:
src/ctelnet.h:42:10: fatal error: 'zlib.h' file not found
#include <zlib.h>
^~~~~~~~
In file included from src/AliasUnit.cpp:24:
In file included from src/Host.h:32:
In file included from src/TLuaInterpreter.h:44:
In file included from /usr/include/lua5.1/lauxlib.h:15:
In file included from /usr/include/lua5.1/lua.h:16:
/usr/include/lua5.1/luaconf.h:98:10: fatal error: 'lua5.1-deb-multiarch.h' file not found
#include "lua5.1-deb-multiarch.h"
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/discord.cpp:21:
In file included from src/discord.h:23:
In file included from src/Host.h:32:
In file included from src/TLuaInterpreter.h:44:
In file included from /usr/include/lua5.1/lauxlib.h:15:
In file included from /usr/include/lua5.1/lua.h:16:
/usr/include/lua5.1/luaconf.h:98:10: fatal error: 'lua5.1-deb-multiarch.h' file not found
#include "lua5.1-deb-multiarch.h"
^~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
shared:ERROR: compiler frontend failed to generate LLVM bitcode, halting
Makefile:38052: recipe for target 'AliasUnit.o' failed
make: *** [AliasUnit.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from src/ActionUnit.cpp:28:
src/TConsole.h:38:10: fatal error: 'hunspell/hunspell.h' file not found
#include <hunspell/hunspell.h>
^~~~~~~~~~~~~~~~~~~~~
1 error generated.
Yes, you don't need to include it for clang/gcc builds because it's the default for them. However, emcc overrides it and doesn't want to use system headers.
I'd suggest installing libraries to a specific directories instead of system-wide and passing corresponding -I
and -L
flags to emcc instead of -isystem
.
Alternatively, you can try -I
instead of -isystem
, but I doubt it will help.
I get these libraries from my packages - installing elsewhere isn't an option unless I compile everything by hand (not good). I'll try your suggestions, thank you!
Surprised others haven't ran into this - it seems like it'd be a common problem, unless I'm misunderstanding it?
Would you mind running with env variable EMCC_DEBUG=1
, like EMCC_DEBUG=1 make
?
I'm looking for a line like
emcc:DEBUG: running: C:/llvm/llvm-project/install/bin/clang++.exe -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=1 -D__EMSCRIPTEN_minor__=38 -D__EMSCRIPTEN_tiny__=39 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -Werror=implicit-function-declaration -Xclang -nostdsysteminc -Xclang -isystemC:\<truncated-here-and-there> -DEMSCRIPTEN -std=c++03 main.cpp -Xclang <truncated-here-and-there>
which tells what parameters clang++
received and in what order.
Yep! Here it is: https://ada-young.appspot.com/pastebin/p9hmU6r_
Looks good to me: emscripten's -isystem
go first and /usr/include
is not -I
. And what is the output if you return -isystem/usr/include
back, like it was in your first comment?
mvadi@volga:~/Programs/Mudlet/mudlet$ make clean
rm -f qrc_mudlet.cpp qrc_qm.cpp qrc_mudlet_fonts.cpp
rm -f moc_predefs.h
rm -f moc_irc.cpp moc_irccommand.cpp moc_ircconnection.cpp moc_ircmessage.cpp moc_ircnetwork.cpp moc_ircprotocol.cpp moc_ircmessagecomposer_p.cpp moc_ircbuffer.cpp moc_ircbuffermodel.cpp moc_ircchannel.cpp moc_ircuser.cpp moc_ircusermodel.cpp moc_ircbuffermodel_p.cpp moc_irccommandparser.cpp moc_irccommandqueue.cpp moc_irccompleter.cpp moc_irclagtimer.cpp moc_ircpalette.cpp moc_irctextformat.cpp moc_irccommandqueue_p.cpp moc_irclagtimer_p.cpp moc_edbee.cpp moc_chartextdocument.cpp moc_textbuffer.cpp moc_textdocument.cpp moc_textdocumentscopes.cpp moc_texteditorcommandmap.cpp moc_texteditorconfig.cpp moc_textlinedata.cpp moc_textrange.cpp moc_textsearcher.cpp moc_textundostack.cpp moc_texteditorcontroller.cpp moc_texteditorwidget.cpp moc_test.cpp moc_texteditorautocompletecomponent.cpp moc_texteditorcomponent.cpp moc_textmargincomponent.cpp moc_texteditorscrollarea.cpp moc_textrenderer.cpp moc_texttheme.cpp moc_ctelnet.cpp moc_discord.cpp moc_dlgAboutDialog.cpp moc_dlgActionMainArea.cpp moc_dlgAliasMainArea.cpp moc_dlgColorTrigger.cpp moc_dlgComposer.cpp moc_dlgConnectionProfiles.cpp moc_dlgIRC.cpp moc_dlgKeysMainArea.cpp moc_dlgMapper.cpp moc_dlgNotepad.cpp moc_dlgPackageExporter.cpp moc_dlgProfilePreferences.cpp moc_dlgRoomExits.cpp moc_dlgScriptsMainArea.cpp moc_dlgSourceEditorArea.cpp moc_dlgSystemMessageArea.cpp moc_dlgTimersMainArea.cpp moc_dlgTriggerEditor.cpp moc_dlgTriggerPatternEdit.cpp moc_dlgTriggersMainArea.cpp moc_dlgVarsMainArea.cpp moc_EAction.cpp moc_exitstreewidget.cpp moc_glwidget.cpp moc_Host.cpp moc_mudlet.cpp moc_T2DMap.cpp moc_TCommandLine.cpp moc_TConsole.cpp moc_TEasyButtonBar.cpp moc_TForkedProcess.cpp moc_TLabel.cpp moc_TLuaInterpreter.cpp moc_TMap.cpp moc_TSplitter.cpp moc_TSplitterHandle.cpp moc_TTextEdit.cpp moc_TToolBar.cpp moc_TTreeWidget.cpp moc_XMLexport.cpp
rm -f ui_about_dialog.h ui_actions_main_area.h ui_aliases_main_area.h ui_color_trigger.h ui_composer.h ui_connection_profiles.h ui_dlgPackageExporter.h ui_glyph_usage.h ui_irc.h ui_keybindings_main_area.h ui_main_window.h ui_mapper.h ui_notes_editor.h ui_profile_preferences.h ui_room_exits.h ui_scripts_main_area.h ui_source_editor_area.h ui_system_message_area.h ui_timers_main_area.h ui_triggers_main_area.h ui_trigger_editor.h ui_trigger_pattern_edit.h ui_vars_main_area.h
rm -f irc.o irccommand.o ircconnection.o irccore.o ircfilter.o ircmessage.o ircmessage_p.o ircmessagecomposer.o ircmessagedecoder.o ircnetwork.o ircprotocol.o rdf_utils.o ircmessagedecoder_none.o ircbuffer.o ircbuffermodel.o ircchannel.o ircmodel.o ircuser.o ircusermodel.o irccommandparser.o irccommandqueue.o irccompleter.o irclagtimer.o ircpalette.o irctextformat.o irctoken.o ircutil.o commentcommand.o copycommand.o cutcommand.o debugcommand.o duplicatecommand.o findcommand.o movelinecommand.o newlinecommand.o pastecommand.o redocommand.o removecommand.o replaceselectioncommand.o selectioncommand.o tabcommand.o undocommand.o factorycommandmap.o factorykeymap.o edbee.o baseplistparser.o jsonparser.o keymapparser.o textdocumentserializer.o tmlanguageparser.o tmthemeparser.o grammartextlexer.o change.o abstractrangedchange.o linedatachange.o linedatalistchange.o mergablechangegroup.o selectionchange.o textchange.o textchangewithcaret.o chartextbuffer.o chartextdocument.o dynamicvariables.o textautocompleteprovider.o textbuffer.o textdocument.o textdocumentfilter.o textdocumentscopes.o texteditorcommandmap.o texteditorconfig.o texteditorkeymap.o textgrammar.o textlexer.o textlinedata.o textrange.o textsearcher.o textundostack.o texteditorcommand.o texteditorcontroller.o texteditorwidget.o cascadingqvariantmap.o lineending.o lineoffsetvector.o debug_allocs.o debug_new.o rangelineiterator.o rangesetlineiterator.o regexp.o simpleprofiler.o test.o textcodec.o textcodecdetector.o util.o texteditorautocompletecomponent.o texteditorcomponent.o texteditorrenderer.o textmargincomponent.o textcaretcache.o texteditorscrollarea.o textrenderer.o textselection.o texttheme.o QsLogDest.o QsLog.o QsDebugOutput.o regcomp.o regenc.o regerror.o regexec.o regext.o reggnu.o regparse.o regposerr.o regposix.o regsyntax.o regtrav.o regversion.o st.o ascii.o big5.o cp949.o emacs_mule.o euc_jp.o euc_kr.o euc_tw.o gb18030.o gbk.o iso_8859_1.o iso_8859_10.o iso_8859_11.o iso_8859_13.o iso_8859_14.o iso_8859_15.o iso_8859_16.o iso_8859_2.o iso_8859_3.o iso_8859_4.o iso_8859_5.o iso_8859_6.o iso_8859_7.o iso_8859_8.o iso_8859_9.o koi8_r.o koi8_u.o shift_jis.o unicode.o us_ascii.o utf_16be.o utf_16le.o utf_32be.o utf_32le.o utf_8.o windows_1250.o windows_1251.o windows_1252.o windows_1253.o windows_1254.o windows_1257.o windows_31j.o ActionUnit.o AliasUnit.o ctelnet.o discord.o dlgAboutDialog.o dlgActionMainArea.o dlgAliasMainArea.o dlgColorTrigger.o dlgComposer.o dlgConnectionProfiles.o dlgIRC.o dlgKeysMainArea.o dlgMapper.o dlgNotepad.o dlgPackageExporter.o dlgProfilePreferences.o dlgRoomExits.o dlgScriptsMainArea.o dlgSourceEditorArea.o dlgSystemMessageArea.o dlgTimersMainArea.o dlgTriggerEditor.o dlgTriggerPatternEdit.o dlgTriggersMainArea.o dlgVarsMainArea.o EAction.o exitstreewidget.o FontManager.o glwidget.o Host.o HostManager.o ircmessageformatter.o KeyUnit.o LuaInterface.o main.o mudlet.o ScriptUnit.o T2DMap.o TAction.o TAlias.o TArea.o TBuffer.o TCommandLine.o TConsole.o TDebug.o TDockWidget.o TEasyButtonBar.o TFlipButton.o TForkedProcess.o TimerUnit.o TKey.o TLabel.o TLuaInterpreter.o TMap.o TriggerUnit.o TRoom.o TRoomDB.o TScript.o TSplitter.o TSplitterHandle.o TTabBar.o TTextEdit.o TTimer.o TToolBar.o TTreeWidget.o TTrigger.o TVar.o VarUnit.o XMLexport.o XMLimport.o mudlet.js_plugin_import.o qrc_mudlet.o qrc_qm.o qrc_mudlet_fonts.o moc_edbee.o moc_chartextdocument.o moc_textbuffer.o moc_textdocument.o moc_textdocumentscopes.o moc_texteditorcommandmap.o moc_texteditorconfig.o moc_textlinedata.o moc_textrange.o moc_textsearcher.o moc_textundostack.o moc_texteditorcontroller.o moc_texteditorwidget.o moc_test.o moc_texteditorautocompletecomponent.o moc_texteditorcomponent.o moc_textmargincomponent.o moc_texteditorscrollarea.o moc_textrenderer.o moc_texttheme.o moc_ctelnet.o moc_discord.o moc_dlgAboutDialog.o moc_dlgActionMainArea.o moc_dlgAliasMainArea.o moc_dlgColorTrigger.o moc_dlgComposer.o moc_dlgConnectionProfiles.o moc_dlgIRC.o moc_dlgKeysMainArea.o moc_dlgMapper.o moc_dlgNotepad.o moc_dlgPackageExporter.o moc_dlgProfilePreferences.o moc_dlgRoomExits.o moc_dlgScriptsMainArea.o moc_dlgSourceEditorArea.o moc_dlgSystemMessageArea.o moc_dlgTimersMainArea.o moc_dlgTriggerEditor.o moc_dlgTriggerPatternEdit.o moc_dlgTriggersMainArea.o moc_dlgVarsMainArea.o moc_EAction.o moc_exitstreewidget.o moc_glwidget.o moc_Host.o moc_mudlet.o moc_T2DMap.o moc_TCommandLine.o moc_TConsole.o moc_TEasyButtonBar.o moc_TForkedProcess.o moc_TLabel.o moc_TLuaInterpreter.o moc_TMap.o moc_TSplitter.o moc_TSplitterHandle.o moc_TTextEdit.o moc_TToolBar.o moc_TTreeWidget.o moc_XMLexport.o
rm -f *~ core *.core
vadi@volga:~/Programs/Mudlet/mudlet$ EMCC_DEBUG=1 make
/home/vadi/Programs/Qt/5.13.0/Src/qtbase/bin/uic src/ui/about_dialog.ui -o ui_about_dialog.h
/home/vadi/Programs/Qt/5.13.0/Src/qtbase/bin/uic src/ui/actions_main_area.ui -o ui_actions_main_area.h
/home/vadi/Programs/Qt/5.13.0/Src/qtbase/bin/uic src/ui/aliases_main_area.ui -o ui_aliases_main_area.h
/home/vadi/Programs/Qt/5.13.0/Src/qtbase/bin/uic src/ui/color_trigger.ui -o ui_color_trigger.h
/home/vadi/Programs/Qt/5.13.0/Src/qtbase/bin/uic src/ui/composer.ui -o ui_composer.h
/home/vadi/Programs/Qt/5.13.0/Src/qtbase/bin/uic src/ui/connection_profiles.ui -o ui_connection_profiles.h
/home/vadi/Programs/Qt/5.13.0/Src/qtbase/bin/uic src/ui/dlgPackageExporter.ui -o ui_dlgPackageExporter.h
/home/vadi/Programs/Qt/5.13.0/Src/qtbase/bin/uic src/ui/glyph_usage.ui -o ui_glyph_usage.h
/home/vadi/Programs/Qt/5.13.0/Src/qtbase/bin/uic src/ui/irc.ui -o ui_irc.h
/home/vadi/Programs/Qt/5.13.0/Src/qtbase/bin/uic src/ui/keybindings_main_area.ui -o ui_keybindings_main_area.h
/home/vadi/Programs/Qt/5.13.0/Src/qtbase/bin/uic src/ui/main_window.ui -o ui_main_window.h
/home/vadi/Programs/Qt/5.13.0/Src/qtbase/bin/uic src/ui/mapper.ui -o ui_mapper.h
/home/vadi/Programs/Qt/5.13.0/Src/qtbase/bin/uic src/ui/notes_editor.ui -o ui_notes_editor.h
/home/vadi/Programs/Qt/5.13.0/Src/qtbase/bin/uic src/ui/profile_preferences.ui -o ui_profile_preferences.h
/home/vadi/Programs/Qt/5.13.0/Src/qtbase/bin/uic src/ui/room_exits.ui -o ui_room_exits.h
/home/vadi/Programs/Qt/5.13.0/Src/qtbase/bin/uic src/ui/scripts_main_area.ui -o ui_scripts_main_area.h
/home/vadi/Programs/Qt/5.13.0/Src/qtbase/bin/uic src/ui/source_editor_area.ui -o ui_source_editor_area.h
/home/vadi/Programs/Qt/5.13.0/Src/qtbase/bin/uic src/ui/system_message_area.ui -o ui_system_message_area.h
/home/vadi/Programs/Qt/5.13.0/Src/qtbase/bin/uic src/ui/timers_main_area.ui -o ui_timers_main_area.h
/home/vadi/Programs/Qt/5.13.0/Src/qtbase/bin/uic src/ui/triggers_main_area.ui -o ui_triggers_main_area.h
/home/vadi/Programs/Qt/5.13.0/Src/qtbase/bin/uic src/ui/trigger_editor.ui -o ui_trigger_editor.h
/home/vadi/Programs/Qt/5.13.0/Src/qtbase/bin/uic src/ui/trigger_pattern_edit.ui -o ui_trigger_pattern_edit.h
/home/vadi/Programs/Qt/5.13.0/Src/qtbase/bin/uic src/ui/vars_main_area.ui -o ui_vars_main_area.h
ccache em++ -pipe -Wall -Wno-deprecated -Wno-unused-local-typedefs -Wno-unused-parameter -O3 -std=gnu++1y -w -s USE_PTHREADS=1 -s TOTAL_MEMORY=1GB -s PTHREAD_POOL_SIZE=4 -dM -E -o moc_predefs.h ../../Qt/5.13.0/Src/qtbase/mkspecs/features/data/dummy.cpp
shared:DEBUG: EM_CONFIG is located in /home/vadi/Programs/emsdk/.emscripten
shared:DEBUG: TEMP_DIR not defined in /home/vadi/Programs/emsdk/.emscripten, using /tmp
shared:DEBUG: PYTHON not defined in /home/vadi/Programs/emsdk/.emscripten, using "/usr/bin/python"
shared:DEBUG: JAVA not defined in /home/vadi/Programs/emsdk/.emscripten, using "java"
cache:DEBUG: PID 18617 acquiring multiprocess file lock to Emscripten cache at /home/vadi/Programs/emsdk/.emscripten_cache
cache:DEBUG: done
cache:DEBUG: PID 18617 released multiprocess file lock to Emscripten cache at /home/vadi/Programs/emsdk/.emscripten_cache
shared:DEBUG: check tells us to use asm.js backend
emcc:WARNING: invocation: /home/vadi/Programs/emsdk/emscripten/1.38.30/emcc.py -pipe -Wall -Wno-deprecated -Wno-unused-local-typedefs -Wno-unused-parameter -O3 -std=gnu++1y -w -s USE_PTHREADS=1 -s TOTAL_MEMORY=1GB -s PTHREAD_POOL_SIZE=4 -dM -E -o moc_predefs.h ../../Qt/5.13.0/Src/qtbase/mkspecs/features/data/dummy.cpp --emscripten-cxx (in /home/vadi/Programs/Mudlet/mudlet)
shared:DEBUG: successfully executed /home/vadi/Programs/emsdk/clang/e1.38.30_64bit/clang++ --version
root:DEBUG: Checking JS engine ['/home/vadi/Programs/emsdk/node/8.9.1_64bit/bin/node']
shared:DEBUG: successfully executed /home/vadi/Programs/emsdk/node/8.9.1_64bit/bin/node --version
shared:DEBUG: successfully executed /home/vadi/Programs/emsdk/clang/e1.38.30_64bit/llc --version
shared:DEBUG: successfully executed /home/vadi/Programs/emsdk/clang/e1.38.30_64bit/clang++ --version
shared:INFO: (Emscripten: Running sanity checks)
shared:DEBUG: successfully executed java -version
emcc:DEBUG: asm.js opts not forced by user or an option that depends them, and we do not intend to run the asm.js, so disabling and leaving opts to the binaryen optimizer
emcc:DEBUG: compiling to bitcode
emcc:DEBUG: emcc step "parse arguments and setup" took 0.23 seconds
cache:DEBUG: PID 18617 acquiring multiprocess file lock to Emscripten cache at /home/vadi/Programs/emsdk/.emscripten_cache/asmjs
cache:DEBUG: done
emcc:DEBUG: just preprocessor /home/vadi/Programs/emsdk/clang/e1.38.30_64bit/clang++ -target asmjs-unknown-emscripten -D__EMSCRIPTEN_major__=1 -D__EMSCRIPTEN_minor__=38 -D__EMSCRIPTEN_tiny__=30 -D_LIBCPP_ABI_VERSION=2 -Werror=implicit-function-declaration -nostdinc -Xclang -nobuiltininc -Xclang -nostdsysteminc -Xclang -isystem/home/vadi/Programs/emsdk/emscripten/1.38.30/system/include/libcxx -Xclang -isystem/home/vadi/Programs/emsdk/emscripten/1.38.30/system/lib/libcxxabi/include -Xclang -isystem/home/vadi/Programs/emsdk/emscripten/1.38.30/system/include/compat -Xclang -isystem/home/vadi/Programs/emsdk/emscripten/1.38.30/system/include -Xclang -isystem/home/vadi/Programs/emsdk/emscripten/1.38.30/system/include/SSE -Xclang -isystem/home/vadi/Programs/emsdk/emscripten/1.38.30/system/include/libc -Xclang -isystem/home/vadi/Programs/emsdk/emscripten/1.38.30/system/lib/libc/musl/arch/emscripten -Xclang -isystem/home/vadi/Programs/emsdk/emscripten/1.38.30/system/local/include -pipe -Wall -Wno-deprecated -Wno-unused-local-typedefs -Wno-unused-parameter -O3 -std=gnu++1y -w -dM -E -D__EMSCRIPTEN_PTHREADS__=1 -mllvm -disable-llvm-optzns ../../Qt/5.13.0/Src/qtbase/mkspecs/features/data/dummy.cpp -Xclang -disable-O0-optnone -Xclang -isystem/home/vadi/Programs/emsdk/emscripten/1.38.30/system/include/SDL -o moc_predefs.h
shared:DEBUG: executed /home/vadi/Programs/emsdk/clang/e1.38.30_64bit/clang++ -target asmjs-unknown-emscripten -D__EMSCRIPTEN_major__=1 -D__EMSCRIPTEN_minor__=38 -D__EMSCRIPTEN_tiny__=30 -D_LIBCPP_ABI_VERSION=2 -Werror=implicit-function-declaration -nostdinc -Xclang -nobuiltininc -Xclang -nostdsysteminc -Xclang -isystem/home/vadi/Programs/emsdk/emscripten/1.38.30/system/include/libcxx -Xclang -isystem/home/vadi/Programs/emsdk/emscripten/1.38.30/system/lib/libcxxabi/include -Xclang -isystem/home/vadi/Programs/emsdk/emscripten/1.38.30/system/include/compat -Xclang -isystem/home/vadi/Programs/emsdk/emscripten/1.38.30/system/include -Xclang -isystem/home/vadi/Programs/emsdk/emscripten/1.38.30/system/include/SSE -Xclang -isystem/home/vadi/Programs/emsdk/emscripten/1.38.30/system/include/libc -Xclang -isystem/home/vadi/Programs/emsdk/emscripten/1.38.30/system/lib/libc/musl/arch/emscripten -Xclang -isystem/home/vadi/Programs/emsdk/emscripten/1.38.30/system/local/include -pipe -Wall -Wno-deprecated -Wno-unused-local-typedefs -Wno-unused-parameter -O3 -std=gnu++1y -w -dM -E -D__EMSCRIPTEN_PTHREADS__=1 -mllvm -disable-llvm-optzns ../../Qt/5.13.0/Src/qtbase/mkspecs/features/data/dummy.cpp -Xclang -disable-O0-optnone -Xclang -isystem/home/vadi/Programs/emsdk/emscripten/1.38.30/system/include/SDL -o moc_predefs.h
cache:DEBUG: PID 18617 released multiprocess file lock to Emscripten cache at /home/vadi/Programs/emsdk/.emscripten_cache/asmjs
/home/vadi/Programs/Qt/5.13.0/Src/qtbase/bin/moc -DBUILD_IRC_CORE -DBUILD_IRC_MODEL -DBUILD_IRC_UTIL -DAPP_VERSION=\"3.22.1\" -DAPP_BUILD=\"-dev\" -DAPP_TARGET=\"mudlet\" -DINCLUDE_FONTS -DLUA_DEFAULT_PATH=\"/usr/local/share/mudlet/lua\" -DQS_LOG_LINE_NUMBERS_SHORT -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -DQT_UITOOLS_LIB -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB --include /home/vadi/Programs/Mudlet/mudlet/moc_predefs.h -I/home/vadi/Programs/Qt/5.13.0/Src/qtbase/mkspecs/wasm-emscripten -I/home/vadi/Programs/Mudlet/mudlet/src -I/home/vadi/Programs/Mudlet/mudlet/3rdparty/communi/src/core -I/home/vadi/Programs/Mudlet/mudlet/3rdparty/communi/include/IrcCore -I/home/vadi/Programs/Mudlet/mudlet/3rdparty/communi/src/model -I/home/vadi/Programs/Mudlet/mudlet/3rdparty/communi/include/IrcModel -I/home/vadi/Programs/Mudlet/mudlet/3rdparty/communi/src/util -I/home/vadi/Programs/Mudlet/mudlet/3rdparty/communi/include/IrcUtil -I/usr/include/lua5.1 -I/usr/include -I/home/vadi/Programs/Mudlet/mudlet/3rdparty/discord/rpc/include -I/home/vadi/Programs/Mudlet/mudlet/3rdparty/edbee-lib/edbee-lib -I/home/vadi/Programs/Mudlet/mudlet/3rdparty/edbee-lib/vendor/qslog -I/home/vadi/Programs/Mudlet/mudlet/3rdparty/edbee-lib/vendor/onig -I/home/vadi/Programs/Mudlet/mudlet/3rdparty/edbee-lib/vendor/onig/enc/unicode -I/home/vadi/Programs/Qt/5.13.0/Src/qtmultimedia/include -I/home/vadi/Programs/Qt/5.13.0/Src/qtbase/include -I/home/vadi/Programs/Qt/5.13.0/Src/qtmultimedia/include/QtMultimedia -I/home/vadi/Programs/Qt/5.13.0/Src/qtbase/include/QtMultimedia -I/home/vadi/Programs/Qt/5.13.0/Src/qttools/include -I/home/vadi/Programs/Qt/5.13.0/Src/qttools/include/QtUiTools -I/home/vadi/Programs/Qt/5.13.0/Src/qtbase/include/QtUiTools -I/home/vadi/Programs/Qt/5.13.0/Src/qtbase/include/QtOpenGL -I/home/vadi/Programs/Qt/5.13.0/Src/qtbase/include/QtWidgets -I/home/vadi/Programs/Qt/5.13.0/Src/qtbase/include/QtGui -I/home/vadi/Programs/Qt/5.13.0/Src/qtbase/include/QtNetwork -I/home/vadi/Programs/Qt/5.13.0/Src/qtbase/include/QtConcurrent -I/home/vadi/Programs/Qt/5.13.0/Src/qtbase/include/QtCore -I. -I/usr/include/c++/7.4.0 -I/usr/include/x86_64-linux-gnu/c++/7.4.0 -I/usr/include/c++/7.4.0/backward -I/usr/include/clang/6.0.0/include -I/usr/local/include -I/usr/include/x86_64-linux-gnu -I/usr/include 3rdparty/communi/include/IrcCore/irc.h -o moc_irc.cpp
ccache em++ -c -pipe -Wall -Wno-deprecated -Wno-unused-local-typedefs -Wno-unused-parameter -O3 -std=gnu++1y -w -s USE_PTHREADS=1 -s TOTAL_MEMORY=1GB -s PTHREAD_POOL_SIZE=4 -DBUILD_IRC_CORE -DBUILD_IRC_MODEL -DBUILD_IRC_UTIL -DAPP_VERSION=\"3.22.1\" -DAPP_BUILD=\"-dev\" -DAPP_TARGET=\"mudlet\" -DINCLUDE_FONTS -DLUA_DEFAULT_PATH=\"/usr/local/share/mudlet/lua\" -DQS_LOG_LINE_NUMBERS_SHORT -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -DQT_UITOOLS_LIB -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -Isrc -I. -I3rdparty/communi/src/core -I3rdparty/communi/include/IrcCore -I3rdparty/communi/src/model -I3rdparty/communi/include/IrcModel -I3rdparty/communi/src/util -I3rdparty/communi/include/IrcUtil -isystem /usr/include/lua5.1 -isystem /usr/include -I3rdparty/discord/rpc/include -I3rdparty/edbee-lib/edbee-lib -I3rdparty/edbee-lib/vendor/qslog -I3rdparty/edbee-lib/vendor/onig -I3rdparty/edbee-lib/vendor/onig/enc/unicode -I../../Qt/5.13.0/Src/qtmultimedia/include -I../../Qt/5.13.0/Src/qtbase/include -I../../Qt/5.13.0/Src/qtmultimedia/include/QtMultimedia -I../../Qt/5.13.0/Src/qtbase/include/QtMultimedia -I../../Qt/5.13.0/Src/qttools/include -I../../Qt/5.13.0/Src/qttools/include/QtUiTools -I../../Qt/5.13.0/Src/qtbase/include/QtUiTools -I../../Qt/5.13.0/Src/qtbase/include/QtOpenGL -I../../Qt/5.13.0/Src/qtbase/include/QtWidgets -I../../Qt/5.13.0/Src/qtbase/include/QtGui -I../../Qt/5.13.0/Src/qtbase/include/QtNetwork -I../../Qt/5.13.0/Src/qtbase/include/QtConcurrent -I../../Qt/5.13.0/Src/qtbase/include/QtCore -I. -I. -I/home/vadi/.emscripten_ports/openssl/include -I../../Qt/5.13.0/Src/qtbase/mkspecs/wasm-emscripten -o irc.o 3rdparty/communi/src/core/irc.cpp
shared:DEBUG: EM_CONFIG is located in /home/vadi/Programs/emsdk/.emscripten
shared:DEBUG: TEMP_DIR not defined in /home/vadi/Programs/emsdk/.emscripten, using /tmp
shared:DEBUG: PYTHON not defined in /home/vadi/Programs/emsdk/.emscripten, using "/usr/bin/python"
shared:DEBUG: JAVA not defined in /home/vadi/Programs/emsdk/.emscripten, using "java"
cache:DEBUG: PID 18676 acquiring multiprocess file lock to Emscripten cache at /home/vadi/Programs/emsdk/.emscripten_cache
cache:DEBUG: done
cache:DEBUG: PID 18676 released multiprocess file lock to Emscripten cache at /home/vadi/Programs/emsdk/.emscripten_cache
shared:DEBUG: check tells us to use asm.js backend
emcc:WARNING: invocation: /home/vadi/Programs/emsdk/emscripten/1.38.30/emcc.py -c -pipe -Wall -Wno-deprecated -Wno-unused-local-typedefs -Wno-unused-parameter -O3 -std=gnu++1y -w -s USE_PTHREADS=1 -s TOTAL_MEMORY=1GB -s PTHREAD_POOL_SIZE=4 -DBUILD_IRC_CORE -DBUILD_IRC_MODEL -DBUILD_IRC_UTIL -DAPP_VERSION="3.22.1" -DAPP_BUILD="-dev" -DAPP_TARGET="mudlet" -DINCLUDE_FONTS -DLUA_DEFAULT_PATH="/usr/local/share/mudlet/lua" -DQS_LOG_LINE_NUMBERS_SHORT -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -DQT_UITOOLS_LIB -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -Isrc -I. -I3rdparty/communi/src/core -I3rdparty/communi/include/IrcCore -I3rdparty/communi/src/model -I3rdparty/communi/include/IrcModel -I3rdparty/communi/src/util -I3rdparty/communi/include/IrcUtil -isystem /usr/include/lua5.1 -isystem /usr/include -I3rdparty/discord/rpc/include -I3rdparty/edbee-lib/edbee-lib -I3rdparty/edbee-lib/vendor/qslog -I3rdparty/edbee-lib/vendor/onig -I3rdparty/edbee-lib/vendor/onig/enc/unicode -I../../Qt/5.13.0/Src/qtmultimedia/include -I../../Qt/5.13.0/Src/qtbase/include -I../../Qt/5.13.0/Src/qtmultimedia/include/QtMultimedia -I../../Qt/5.13.0/Src/qtbase/include/QtMultimedia -I../../Qt/5.13.0/Src/qttools/include -I../../Qt/5.13.0/Src/qttools/include/QtUiTools -I../../Qt/5.13.0/Src/qtbase/include/QtUiTools -I../../Qt/5.13.0/Src/qtbase/include/QtOpenGL -I../../Qt/5.13.0/Src/qtbase/include/QtWidgets -I../../Qt/5.13.0/Src/qtbase/include/QtGui -I../../Qt/5.13.0/Src/qtbase/include/QtNetwork -I../../Qt/5.13.0/Src/qtbase/include/QtConcurrent -I../../Qt/5.13.0/Src/qtbase/include/QtCore -I. -I. -I/home/vadi/.emscripten_ports/openssl/include -I../../Qt/5.13.0/Src/qtbase/mkspecs/wasm-emscripten -o irc.o 3rdparty/communi/src/core/irc.cpp --emscripten-cxx (in /home/vadi/Programs/Mudlet/mudlet)
shared:DEBUG: successfully executed /home/vadi/Programs/emsdk/clang/e1.38.30_64bit/clang++ --version
root:DEBUG: Checking JS engine ['/home/vadi/Programs/emsdk/node/8.9.1_64bit/bin/node']
shared:DEBUG: successfully executed /home/vadi/Programs/emsdk/node/8.9.1_64bit/bin/node --version
shared:DEBUG: successfully executed /home/vadi/Programs/emsdk/clang/e1.38.30_64bit/llc --version
shared:DEBUG: successfully executed /home/vadi/Programs/emsdk/clang/e1.38.30_64bit/clang++ --version
shared:INFO: (Emscripten: Running sanity checks)
shared:DEBUG: successfully executed java -version
emcc:DEBUG: asm.js opts not forced by user or an option that depends them, and we do not intend to run the asm.js, so disabling and leaving opts to the binaryen optimizer
emcc:DEBUG: compiling to bitcode
emcc:DEBUG: emcc step "parse arguments and setup" took 0.12 seconds
cache:DEBUG: PID 18676 acquiring multiprocess file lock to Emscripten cache at /home/vadi/Programs/emsdk/.emscripten_cache/asmjs
cache:DEBUG: done
emcc:DEBUG: compiling source file: 3rdparty/communi/src/core/irc.cpp
emcc:DEBUG: running: /home/vadi/Programs/emsdk/clang/e1.38.30_64bit/clang++ -target asmjs-unknown-emscripten -D__EMSCRIPTEN_major__=1 -D__EMSCRIPTEN_minor__=38 -D__EMSCRIPTEN_tiny__=30 -D_LIBCPP_ABI_VERSION=2 -Werror=implicit-function-declaration -nostdinc -Xclang -nobuiltininc -Xclang -nostdsysteminc -Xclang -isystem/home/vadi/Programs/emsdk/emscripten/1.38.30/system/include/libcxx -Xclang -isystem/home/vadi/Programs/emsdk/emscripten/1.38.30/system/lib/libcxxabi/include -Xclang -isystem/home/vadi/Programs/emsdk/emscripten/1.38.30/system/include/compat -Xclang -isystem/home/vadi/Programs/emsdk/emscripten/1.38.30/system/include -Xclang -isystem/home/vadi/Programs/emsdk/emscripten/1.38.30/system/include/SSE -Xclang -isystem/home/vadi/Programs/emsdk/emscripten/1.38.30/system/include/libc -Xclang -isystem/home/vadi/Programs/emsdk/emscripten/1.38.30/system/lib/libc/musl/arch/emscripten -Xclang -isystem/home/vadi/Programs/emsdk/emscripten/1.38.30/system/local/include -c -pipe -Wall -Wno-deprecated -Wno-unused-local-typedefs -Wno-unused-parameter -O3 -std=gnu++1y -w -DBUILD_IRC_CORE -DBUILD_IRC_MODEL -DBUILD_IRC_UTIL -DAPP_VERSION="3.22.1" -DAPP_BUILD="-dev" -DAPP_TARGET="mudlet" -DINCLUDE_FONTS -DLUA_DEFAULT_PATH="/usr/local/share/mudlet/lua" -DQS_LOG_LINE_NUMBERS_SHORT -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -DQT_UITOOLS_LIB -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -Isrc -I. -I3rdparty/communi/src/core -I3rdparty/communi/include/IrcCore -I3rdparty/communi/src/model -I3rdparty/communi/include/IrcModel -I3rdparty/communi/src/util -I3rdparty/communi/include/IrcUtil -isystem /usr/include/lua5.1 -isystem /usr/include -I3rdparty/discord/rpc/include -I3rdparty/edbee-lib/edbee-lib -I3rdparty/edbee-lib/vendor/qslog -I3rdparty/edbee-lib/vendor/onig -I3rdparty/edbee-lib/vendor/onig/enc/unicode -I../../Qt/5.13.0/Src/qtmultimedia/include -I../../Qt/5.13.0/Src/qtbase/include -I../../Qt/5.13.0/Src/qtmultimedia/include/QtMultimedia -I../../Qt/5.13.0/Src/qtbase/include/QtMultimedia -I../../Qt/5.13.0/Src/qttools/include -I../../Qt/5.13.0/Src/qttools/include/QtUiTools -I../../Qt/5.13.0/Src/qtbase/include/QtUiTools -I../../Qt/5.13.0/Src/qtbase/include/QtOpenGL -I../../Qt/5.13.0/Src/qtbase/include/QtWidgets -I../../Qt/5.13.0/Src/qtbase/include/QtGui -I../../Qt/5.13.0/Src/qtbase/include/QtNetwork -I../../Qt/5.13.0/Src/qtbase/include/QtConcurrent -I../../Qt/5.13.0/Src/qtbase/include/QtCore -I. -I. -I/home/vadi/.emscripten_ports/openssl/include -I../../Qt/5.13.0/Src/qtbase/mkspecs/wasm-emscripten -D__EMSCRIPTEN_PTHREADS__=1 -mllvm -disable-llvm-optzns 3rdparty/communi/src/core/irc.cpp -Xclang -disable-O0-optnone -Xclang -isystem/home/vadi/Programs/emsdk/emscripten/1.38.30/system/include/SDL -c -o irc.o -emit-llvm
In file included from 3rdparty/communi/src/core/irc.cpp:29:
In file included from 3rdparty/communi/include/IrcCore/irc.h:32:
In file included from 3rdparty/communi/include/IrcCore/IrcGlobal:1:
In file included from 3rdparty/communi/include/IrcCore/ircglobal.h:32:
In file included from ../../Qt/5.13.0/Src/qtbase/include/QtCore/qglobal.h:1:
In file included from ../../Qt/5.13.0/Src/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:47:
In file included from /home/vadi/Programs/emsdk/emscripten/1.38.30/system/include/libcxx/utility:202:
In file included from /home/vadi/Programs/emsdk/emscripten/1.38.30/system/include/libcxx/cstring:61:
/usr/include/string.h:26:10: fatal error: 'bits/libc-header-start.h' file not found
#include <bits/libc-header-start.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
shared:DEBUG: executed /home/vadi/Programs/emsdk/clang/e1.38.30_64bit/clang++ -target asmjs-unknown-emscripten -D__EMSCRIPTEN_major__=1 -D__EMSCRIPTEN_minor__=38 -D__EMSCRIPTEN_tiny__=30 -D_LIBCPP_ABI_VERSION=2 -Werror=implicit-function-declaration -nostdinc -Xclang -nobuiltininc -Xclang -nostdsysteminc -Xclang -isystem/home/vadi/Programs/emsdk/emscripten/1.38.30/system/include/libcxx -Xclang -isystem/home/vadi/Programs/emsdk/emscripten/1.38.30/system/lib/libcxxabi/include -Xclang -isystem/home/vadi/Programs/emsdk/emscripten/1.38.30/system/include/compat -Xclang -isystem/home/vadi/Programs/emsdk/emscripten/1.38.30/system/include -Xclang -isystem/home/vadi/Programs/emsdk/emscripten/1.38.30/system/include/SSE -Xclang -isystem/home/vadi/Programs/emsdk/emscripten/1.38.30/system/include/libc -Xclang -isystem/home/vadi/Programs/emsdk/emscripten/1.38.30/system/lib/libc/musl/arch/emscripten -Xclang -isystem/home/vadi/Programs/emsdk/emscripten/1.38.30/system/local/include -c -pipe -Wall -Wno-deprecated -Wno-unused-local-typedefs -Wno-unused-parameter -O3 -std=gnu++1y -w -DBUILD_IRC_CORE -DBUILD_IRC_MODEL -DBUILD_IRC_UTIL -DAPP_VERSION="3.22.1" -DAPP_BUILD="-dev" -DAPP_TARGET="mudlet" -DINCLUDE_FONTS -DLUA_DEFAULT_PATH="/usr/local/share/mudlet/lua" -DQS_LOG_LINE_NUMBERS_SHORT -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -DQT_UITOOLS_LIB -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -Isrc -I. -I3rdparty/communi/src/core -I3rdparty/communi/include/IrcCore -I3rdparty/communi/src/model -I3rdparty/communi/include/IrcModel -I3rdparty/communi/src/util -I3rdparty/communi/include/IrcUtil -isystem /usr/include/lua5.1 -isystem /usr/include -I3rdparty/discord/rpc/include -I3rdparty/edbee-lib/edbee-lib -I3rdparty/edbee-lib/vendor/qslog -I3rdparty/edbee-lib/vendor/onig -I3rdparty/edbee-lib/vendor/onig/enc/unicode -I../../Qt/5.13.0/Src/qtmultimedia/include -I../../Qt/5.13.0/Src/qtbase/include -I../../Qt/5.13.0/Src/qtmultimedia/include/QtMultimedia -I../../Qt/5.13.0/Src/qtbase/include/QtMultimedia -I../../Qt/5.13.0/Src/qttools/include -I../../Qt/5.13.0/Src/qttools/include/QtUiTools -I../../Qt/5.13.0/Src/qtbase/include/QtUiTools -I../../Qt/5.13.0/Src/qtbase/include/QtOpenGL -I../../Qt/5.13.0/Src/qtbase/include/QtWidgets -I../../Qt/5.13.0/Src/qtbase/include/QtGui -I../../Qt/5.13.0/Src/qtbase/include/QtNetwork -I../../Qt/5.13.0/Src/qtbase/include/QtConcurrent -I../../Qt/5.13.0/Src/qtbase/include/QtCore -I. -I. -I/home/vadi/.emscripten_ports/openssl/include -I../../Qt/5.13.0/Src/qtbase/mkspecs/wasm-emscripten -D__EMSCRIPTEN_PTHREADS__=1 -mllvm -disable-llvm-optzns 3rdparty/communi/src/core/irc.cpp -Xclang -disable-O0-optnone -Xclang -isystem/home/vadi/Programs/emsdk/emscripten/1.38.30/system/include/SDL -c -o irc.o -emit-llvm
shared:ERROR: compiler frontend failed to generate LLVM bitcode, halting
cache:DEBUG: PID 18676 released multiprocess file lock to Emscripten cache at /home/vadi/Programs/emsdk/.emscripten_cache/asmjs
Makefile:21296: recipe for target 'irc.o' failed
make: *** [irc.o] Error 1
vadi@volga:~/Programs/Mudlet/mudlet$
Thanks. Would you mind checking that there is a readable header file at /home/vadi/Programs/emsdk/emscripten/1.38.30/system/include/libcxx/string.h
?
Of course!
vadi@volga:~/Programs/Mudlet/mudlet$ file /home/vadi/Programs/emsdk/emscripten/1.38.30/system/include/libcxx/string.h
/home/vadi/Programs/emsdk/emscripten/1.38.30/system/include/libcxx/string.h: C source, ASCII text
vadi@volga:~/Programs/Mudlet/mudlet$ cat /home/vadi/Programs/emsdk/emscripten/1.38.30/system/include/libcxx/string.h
// -*- C++ -*-
//===--------------------------- string.h ---------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef _LIBCPP_STRING_H
#define _LIBCPP_STRING_H
/*
string.h synopsis
Macros:
NULL
Types:
size_t
void* memcpy(void* restrict s1, const void* restrict s2, size_t n);
void* memmove(void* s1, const void* s2, size_t n);
char* strcpy (char* restrict s1, const char* restrict s2);
char* strncpy(char* restrict s1, const char* restrict s2, size_t n);
char* strcat (char* restrict s1, const char* restrict s2);
char* strncat(char* restrict s1, const char* restrict s2, size_t n);
int memcmp(const void* s1, const void* s2, size_t n);
int strcmp (const char* s1, const char* s2);
int strncmp(const char* s1, const char* s2, size_t n);
int strcoll(const char* s1, const char* s2);
size_t strxfrm(char* restrict s1, const char* restrict s2, size_t n);
const void* memchr(const void* s, int c, size_t n);
void* memchr( void* s, int c, size_t n);
const char* strchr(const char* s, int c);
char* strchr( char* s, int c);
size_t strcspn(const char* s1, const char* s2);
const char* strpbrk(const char* s1, const char* s2);
char* strpbrk( char* s1, const char* s2);
const char* strrchr(const char* s, int c);
char* strrchr( char* s, int c);
size_t strspn(const char* s1, const char* s2);
const char* strstr(const char* s1, const char* s2);
char* strstr( char* s1, const char* s2);
char* strtok(char* restrict s1, const char* restrict s2);
void* memset(void* s, int c, size_t n);
char* strerror(int errnum);
size_t strlen(const char* s);
*/
#include <__config>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
#pragma GCC system_header
#endif
#include_next <string.h>
// MSVCRT, GNU libc and its derivates may already have the correct prototype in
// <string.h>. This macro can be defined by users if their C library provides
// the right signature.
#if defined(__CORRECT_ISO_CPP_STRING_H_PROTO) || defined(_LIBCPP_MSVCRT) || \
defined(__sun__) || defined(_STRING_H_CPLUSPLUS_98_CONFORMANCE_)
#define _LIBCPP_STRING_H_HAS_CONST_OVERLOADS
#endif
#if defined(__cplusplus) && !defined(_LIBCPP_STRING_H_HAS_CONST_OVERLOADS) && defined(_LIBCPP_PREFERRED_OVERLOAD)
extern "C++" {
inline _LIBCPP_INLINE_VISIBILITY
char* __libcpp_strchr(const char* __s, int __c) {return (char*)strchr(__s, __c);}
inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_PREFERRED_OVERLOAD
const char* strchr(const char* __s, int __c) {return __libcpp_strchr(__s, __c);}
inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_PREFERRED_OVERLOAD
char* strchr( char* __s, int __c) {return __libcpp_strchr(__s, __c);}
inline _LIBCPP_INLINE_VISIBILITY
char* __libcpp_strpbrk(const char* __s1, const char* __s2) {return (char*)strpbrk(__s1, __s2);}
inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_PREFERRED_OVERLOAD
const char* strpbrk(const char* __s1, const char* __s2) {return __libcpp_strpbrk(__s1, __s2);}
inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_PREFERRED_OVERLOAD
char* strpbrk( char* __s1, const char* __s2) {return __libcpp_strpbrk(__s1, __s2);}
inline _LIBCPP_INLINE_VISIBILITY
char* __libcpp_strrchr(const char* __s, int __c) {return (char*)strrchr(__s, __c);}
inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_PREFERRED_OVERLOAD
const char* strrchr(const char* __s, int __c) {return __libcpp_strrchr(__s, __c);}
inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_PREFERRED_OVERLOAD
char* strrchr( char* __s, int __c) {return __libcpp_strrchr(__s, __c);}
inline _LIBCPP_INLINE_VISIBILITY
void* __libcpp_memchr(const void* __s, int __c, size_t __n) {return (void*)memchr(__s, __c, __n);}
inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_PREFERRED_OVERLOAD
const void* memchr(const void* __s, int __c, size_t __n) {return __libcpp_memchr(__s, __c, __n);}
inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_PREFERRED_OVERLOAD
void* memchr( void* __s, int __c, size_t __n) {return __libcpp_memchr(__s, __c, __n);}
inline _LIBCPP_INLINE_VISIBILITY
char* __libcpp_strstr(const char* __s1, const char* __s2) {return (char*)strstr(__s1, __s2);}
inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_PREFERRED_OVERLOAD
const char* strstr(const char* __s1, const char* __s2) {return __libcpp_strstr(__s1, __s2);}
inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_PREFERRED_OVERLOAD
char* strstr( char* __s1, const char* __s2) {return __libcpp_strstr(__s1, __s2);}
}
#endif
#endif // _LIBCPP_STRING_H
vadi@volga:~/Programs/Mudlet/mudlet$
Any ideas on this? Manually installing every package is a pain both locally and in CI, it wipes out the usefulness of having a package manager.
@vadi2 try passing -Xclang -isystem<path>
instead of -isystem<path>
to emcc
(i.e. prepend -Xclang
to each -isystem
that you want).
That worked! Thanks a lot for your assistance on this.
No... I spoke too soon. It doesn't find the libraries then:
ccache em++ -c -pipe -Wall -Wno-deprecated -Wno-unused-local-typedefs -Wno-unused-parameter -Xclang -isystem /usr/include/lua5.1 -Xclang -isystem /usr/include -O3 -std=gnu++1z -w -s USE_PTHREADS=1 -s TOTAL_MEMORY=1GB -s PTHREAD_POOL_SIZE=4 -DBUILD_IRC_CORE -DBUILD_IRC_MODEL -DBUILD_IRC_UTIL -DAPP_VERSION=\"3.22.1\" -DAPP_BUILD=\"-dev\" -DAPP_TARGET=\"mudlet\" -DINCLUDE_FONTS -DLUA_DEFAULT_PATH=\"/usr/local/share/mudlet/lua\" -DQS_LOG_LINE_NUMBERS -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -DQT_UITOOLS_LIB -DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -Isrc -I. -I3rdparty/communi/src/core -I3rdparty/communi/include/IrcCore -I3rdparty/communi/src/model -I3rdparty/communi/include/IrcModel -I3rdparty/communi/src/util -I3rdparty/communi/include/IrcUtil -I3rdparty/discord/rpc/include -I3rdparty/edbee-lib/edbee-lib -I3rdparty/edbee-lib/vendor/qslog -I3rdparty/edbee-lib/vendor/onig -I3rdparty/edbee-lib/vendor/onig/enc/unicode -I../../Qt/5.13.0/Src/qtmultimedia/include -I../../Qt/5.13.0/Src/qtbase/include -I../../Qt/5.13.0/Src/qtmultimedia/include/QtMultimedia -I../../Qt/5.13.0/Src/qtbase/include/QtMultimedia -I../../Qt/5.13.0/Src/qttools/include -I../../Qt/5.13.0/Src/qttools/include/QtUiTools -I../../Qt/5.13.0/Src/qtbase/include/QtUiTools -I../../Qt/5.13.0/Src/qtbase/include/QtOpenGL -I../../Qt/5.13.0/Src/qtbase/include/QtWidgets -I../../Qt/5.13.0/Src/qtbase/include/QtGui -I../../Qt/5.13.0/Src/qtbase/include/QtNetwork -I../../Qt/5.13.0/Src/qtbase/include/QtConcurrent -I../../Qt/5.13.0/Src/qtbase/include/QtCore -I. -I. -I/home/vadi/.emscripten_ports/openssl/include -I../../Qt/5.13.0/Src/qtbase/mkspecs/wasm-emscripten -o ActionUnit.o src/ActionUnit.cpp
In file included from src/ActionUnit.cpp:28:
src/TConsole.h:38:10: fatal error: 'hunspell/hunspell.h' file not found
#include <hunspell/hunspell.h>
^~~~~~~~~~~~~~~~~~~~~
1 error generated.
shared:ERROR: compiler frontend failed to generate LLVM bitcode, halting
Makefile:38576: recipe for target 'ActionUnit.o' failed
Anything possible here?
Does it help if you remove space between -isystem
and the following path? Like -Xclang -isystem/usr/include
Unfortunately that is not recognized:
ccache em++ -pipe -Wall -Wno-deprecated -Wno-unused-local-typedefs -Wno-unused-parameter -Xclang -isystem/usr/include/lua5.1 -Xclang-isystem /usr/include -O3 -std=gnu++1z -w -s USE_PTHREADS=1 -s TOTAL_MEMORY=1GB -s PTHREAD_POOL_SIZE=4 -dM -E -o moc_predefs.h ../../Qt/5.13.0/Src/qtbase/mkspecs/features/data/dummy.cpp
shared:DEBUG: EM_CONFIG is located in /home/vadi/Programs/emsdk/.emscripten
shared:DEBUG: TEMP_DIR not defined in /home/vadi/Programs/emsdk/.emscripten, using /tmp
shared:DEBUG: PYTHON not defined in /home/vadi/Programs/emsdk/.emscripten, using "/usr/bin/python"
shared:DEBUG: JAVA not defined in /home/vadi/Programs/emsdk/.emscripten, using "java"
cache:DEBUG: PID 10671 acquiring multiprocess file lock to Emscripten cache at /home/vadi/Programs/emsdk/.emscripten_cache
cache:DEBUG: done
cache:DEBUG: PID 10671 released multiprocess file lock to Emscripten cache at /home/vadi/Programs/emsdk/.emscripten_cache
shared:DEBUG: check tells us to use asm.js backend
emcc:WARNING: invocation: /home/vadi/Programs/emsdk/emscripten/1.38.30/emcc.py -pipe -Wall -Wno-deprecated -Wno-unused-local-typedefs -Wno-unused-parameter -Xclang -isystem/usr/include/lua5.1 -Xclang-isystem /usr/include -O3 -std=gnu++1z -w -s USE_PTHREADS=1 -s TOTAL_MEMORY=1GB -s PTHREAD_POOL_SIZE=4 -dM -E -o moc_predefs.h ../../Qt/5.13.0/Src/qtbase/mkspecs/features/data/dummy.cpp --emscripten-cxx (in /home/vadi/Programs/Mudlet/mudlet)
shared:DEBUG: successfully executed /home/vadi/Programs/emsdk/clang/e1.38.30_64bit/clang++ --version
root:DEBUG: Checking JS engine ['/home/vadi/Programs/emsdk/node/8.9.1_64bit/bin/node']
shared:DEBUG: successfully executed /home/vadi/Programs/emsdk/node/8.9.1_64bit/bin/node --version
shared:DEBUG: successfully executed /home/vadi/Programs/emsdk/clang/e1.38.30_64bit/llc --version
shared:DEBUG: successfully executed /home/vadi/Programs/emsdk/clang/e1.38.30_64bit/clang++ --version
shared:INFO: (Emscripten: Running sanity checks)
shared:DEBUG: successfully executed java -version
shared:DEBUG: Building.is_ar failed to test whether file '/usr/include' is a llvm archive file! Failed on exception: [Errno 21] Is a directory: '/usr/include'
shared:ERROR: /usr/include: Input file has an unknown suffix, don't know what to do with it!
Makefile:1967: recipe for target 'moc_predefs.h' failed
make: *** [moc_predefs.h] Error 1
-Xclang-isystem /usr/include
--->
-Xclang -isystem/usr/include
Like the one you have for /usr/include/lua5.1
Aha! Oversight on my part, sorry about that. It did work and proceeded further on until the next error. Thanks a lot (again!).
I'm trying to compile a Qt application with Emscripten 1.38.30 on Ubuntu 18.04 and getting this error deep in C++ includes:
What is going wrong?