Hi, i tried hello world with emcc but i have problem with this: Name : emscripten Version : 2.0.3_1 Installed on : Wed Mar 23 16:24:11 2022 CET Origin : devel/emscripten Architecture : FreeBSD:12:* Prefix : /usr/local Categories : devel www Licenses : MIT, NCSA Maintainer : yuri@FreeBSD.org WWW : https://emscripten.org/ Comment : LLVM-to-Web Compiler emcc main.cpp emcc: warning: LLVM version appears incorrect (seeing "15.0", expected "12.0") [-Wversion-check] cache:INFO: generating system library: libc.a... (this will be cached in "/home/maxfx/.emscripten_cache/wasm/libc.a" for subsequent builds) cache:INFO: - ok cache:INFO: generating system library: libcompiler_rt.a... (this will be cached in "/home/maxfx/.emscripten_cache/wasm/libcompiler_rt.a" for subsequent builds) cache:INFO: - ok cache:INFO: generating system library: libc++-noexcept.a... (this will be cached in "/home/maxfx/.emscripten_cache/wasm/libc++-noexcept.a" for subsequent builds) /usr/local/lib/emscripten/system/lib/libcxx/filesystem/directory_iterator.cpp:174:57: error: unqualified call to 'std::move' [-Werror,-Wunqualified-std-cast-call] __root_(move(other.__root_)), ^ std:: /usr/local/lib/emscripten/system/lib/libcxx/filesystem/directory_iterator.cpp:175:58: error: unqualified call to 'std::move' [-Werror,-Wunqualified-std-cast-call] __entry_(move(other.__entry_)) { ^ std:: /usr/local/lib/emscripten/system/lib/libcxx/filesystem/directory_iterator.cpp:257:17: error: unqualified call to 'std::move' [-Werror,-Wunqualified-std-cast-call] path root = move(__imp_->__root_); ^ std:: /usr/local/lib/emscripten/system/lib/libcxx/filesystem/directory_iterator.cpp:291:25: error: unqualified call to 'std::move' [-Werror,-Wunqualified-std-cast-call] __imp_->__stack_.push(move(new_s)); ^ std:: /usr/local/lib/emscripten/system/lib/libcxx/filesystem/directory_iterator.cpp:345:17: error: unqualified call to 'std::move' [-Werror,-Wunqualified-std-cast-call] path root = move(stack.top().__root_); ^ std:: /usr/local/lib/emscripten/system/lib/libcxx/filesystem/directory_iterator.cpp:379:29: error: unqualified call to 'std::move' [-Werror,-Wunqualified-std-cast-call] __imp_->__stack_.push(move(new_it)); ^ std:: /usr/local/lib/emscripten/system/lib/libcxx/filesystem/directory_iterator.cpp:390:21: error: unqualified call to 'std::move' [-Werror,-Wunqualified-std-cast-call] path at_ent = move(curr_it.__entry_.__p_); ^ std:: 7 errors generated. em++: error: '/usr/local/bin/clang++-devel -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=2 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -Werror=implicit-function-declaration -Xclang -nostdsysteminc -Xclang -isystem/usr/local/lib/emscripten/system/include/libcxx -Xclang -isystem/usr/local/lib/emscripten/system/lib/libcxxabi/include -Xclang -isystem/usr/local/lib/emscripten/system/include/compat -Xclang -isystem/usr/local/lib/emscripten/system/include -Xclang -isystem/usr/local/lib/emscripten/system/include/libc -Xclang -isystem/usr/local/lib/emscripten/system/lib/libc/musl/arch/emscripten -Xclang -isystem/usr/local/lib/emscripten/system/local/include -Xclang -isystem/usr/local/lib/emscripten/system/include/SSE -Xclang -isystem/usr/local/lib/emscripten/system/include/neon -Xclang -isystem/usr/local/lib/emscripten/system/lib/compiler-rt/include -Xclang -isystem/usr/local/lib/emscripten/system/lib/libunwind/include -Xclang -isystem/home/maxfx/.emscripten_cache/wasm/include -DEMSCRIPTEN -fignore-exceptions -fno-inline-functions -Werror -DLIBCXX_BUILDING_LIBCXXABI=1 -D_LIBCPP_BUILDING_LIBRARY -Oz -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -fno-exceptions -c -o /tmp/emscripten_temp_f6ncafi7/directory_iterator.o /usr/local/lib/emscripten/system/lib/libcxx/filesystem/directory_iterator.cpp -Xclang -isystem/usr/local/lib/emscripten/system/include/SDL -c -o /tmp/emscripten_temp_f6ncafi7/directory_iterator.o -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr' failed (1) multiprocessing.pool.RemoteTraceback: """ Traceback (most recent call last): File "/usr/local/lib/python3.8/multiprocessing/pool.py", line 125, in worker result = (True, func(*args, **kwds)) File "/usr/local/lib/python3.8/multiprocessing/pool.py", line 48, in mapstar return list(map(*args)) File "/usr/local/lib/emscripten/tools/system_libs.py", line 80, in run_one_command shared.run_process(cmd, stdout=stdout, stderr=stderr, env=safe_env) File "/usr/local/lib/emscripten/tools/shared.py", line 205, in run_process ret = subprocess.run(cmd, check=check, input=input, *args, **kw) File "/usr/local/lib/python3.8/subprocess.py", line 516, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['/usr/local/lib/emscripten/em++', '-Werror', '-DLIBCXX_BUILDING_LIBCXXABI=1', '-D_LIBCPP_BUILDING_LIBRARY', '-Oz', '-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS', '-fno-exceptions', '-c', '/usr/local/lib/emscripten/system/lib/libcxx/filesystem/directory_iterator.cpp', '-o', '/tmp/emscripten_temp_f6ncafi7/directory_iterator.o', '-Wno-deprecated']' returned non-zero exit status 1. """ The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/local/lib/emscripten/emcc.py", line 3250, in <module> sys.exit(run(sys.argv)) File "/usr/local/lib/emscripten/emcc.py", line 2053, in run extra_files_to_link += system_libs.calculate([f for _, f in sorted(temp_files)] + extra_files_to_link, in_temp, link_as_cxx, forced=forced_stdlibs) File "/usr/local/lib/emscripten/tools/system_libs.py", line 1567, in calculate add_library(system_libs_map['libc++']) File "/usr/local/lib/emscripten/tools/system_libs.py", line 1507, in add_library libs_to_link.append((lib.get_path(), need_whole_archive)) File "/usr/local/lib/emscripten/tools/system_libs.py", line 334, in get_path return shared.Cache.get(self.get_filename(), self.build) File "/usr/local/lib/emscripten/tools/cache.py", line 127, in get temp = creator() File "/usr/local/lib/emscripten/tools/system_libs.py", line 381, in build create_lib(out_filename, self.build_objects()) File "/usr/local/lib/emscripten/tools/system_libs.py", line 375, in build_objects run_build_commands(commands) File "/usr/local/lib/emscripten/tools/system_libs.py", line 94, in run_build_commands pool.map_async(run_one_command, commands, chunksize=1).get(999999) File "/usr/local/lib/python3.8/multiprocessing/pool.py", line 771, in get raise self._value subprocess.CalledProcessError: Command '['/usr/local/lib/emscripten/em++', '-Werror', '-DLIBCXX_BUILDING_LIBCXXABI=1', '-D_LIBCPP_BUILDING_LIBRARY', '-Oz', '-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS', '-fno-exceptions', '-c', '/usr/local/lib/emscripten/system/lib/libcxx/filesystem/directory_iterator.cpp', '-o', '/tmp/emscripten_temp_f6ncafi7/directory_iterator.o', '-Wno-deprecated']' returned non-zero exit status 1.
(In reply to Martin Filla from comment #0) @Reporter Could you please provide additional information: - Is this an issue with the port or just compiling software? - Where is -werror coming from? - uname -a output - steps to reproduce
Hi Martin, Thanks for reporting this issue. The problem with this port is that new versions install files into locations that aren't standard, so it is difficult to update it. The current version is old. I'll see what I can do. Yuri
Port update is committed. Now the problem reported here is gone. Thanks for your report!
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=f4debe04892383ebcde865608396530cb3dc531b commit f4debe04892383ebcde865608396530cb3dc531b Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2022-06-10 06:23:24 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2022-06-10 06:24:21 +0000 devel/emscripten: Update 2.0.3 -> 3.1.13 PR: 264573 devel/emscripten/Makefile | 14 +- devel/emscripten/distinfo | 6 +- devel/emscripten/pkg-plist | 1928 ++++++++++++++++++++++++++------------------ 3 files changed, 1166 insertions(+), 782 deletions(-)