Date: Thu, 09 Jun 2022 13:39:31 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 264573] devel/emscripten: generated system library failed Message-ID: <bug-264573-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264573 Bug ID: 264573 Summary: devel/emscripten: generated system library failed Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: yuri@freebsd.org Reporter: freebsd@sysctl.cz Flags: maintainer-feedback?(yuri@freebsd.org) Assignee: yuri@freebsd.org 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=20 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 ca= ched in "/home/maxfx/.emscripten_cache/wasm/libcompiler_rt.a" for subsequent bui= lds) 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 subseq= uent builds) /usr/local/lib/emscripten/system/lib/libcxx/filesystem/directory_iterator.c= pp: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.c= pp: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.c= pp:257:17: error: unqualified call to 'std::move' [-Werror,-Wunqualified-std-cast-call] path root =3D move(__imp_->__root_); ^ std:: /usr/local/lib/emscripten/system/lib/libcxx/filesystem/directory_iterator.c= pp: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.c= pp:345:17: error: unqualified call to 'std::move' [-Werror,-Wunqualified-std-cast-call] path root =3D move(stack.top().__root_); ^ std:: /usr/local/lib/emscripten/system/lib/libcxx/filesystem/directory_iterator.c= pp: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.c= pp:390:21: error: unqualified call to 'std::move' [-Werror,-Wunqualified-std-cast-call] path at_ent =3D move(curr_it.__entry_.__p_); ^ std:: 7 errors generated. em++: error: '/usr/local/bin/clang++-devel -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=3D2 -D__EMSCRIPTEN_minor__=3D0 -D__EMSCRIPTEN_tiny__= =3D2 -D_LIBCPP_ABI_VERSION=3D2 -Dunix -D__unix -D__unix__ -Werror=3Dimplicit-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 -Xcl= ang -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_LIBCXXA= BI=3D1 -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.c= pp -Xclang -isystem/usr/local/lib/emscripten/system/include/SDL -c -o /tmp/emscripten_temp_f6ncafi7/directory_iterator.o -mllvm -combiner-global-alias-analysis=3Dfalse -mllvm -enable-emscripten-sjlj -mll= vm -disable-lsr' failed (1) multiprocessing.pool.RemoteTraceback:=20 """ Traceback (most recent call last): File "/usr/local/lib/python3.8/multiprocessing/pool.py", line 125, in wor= ker result =3D (True, func(*args, **kwds)) File "/usr/local/lib/python3.8/multiprocessing/pool.py", line 48, in maps= tar return list(map(*args)) File "/usr/local/lib/emscripten/tools/system_libs.py", line 80, in run_one_command shared.run_process(cmd, stdout=3Dstdout, stderr=3Dstderr, env=3Dsafe_en= v) File "/usr/local/lib/emscripten/tools/shared.py", line 205, in run_process ret =3D subprocess.run(cmd, check=3Dcheck, input=3Dinput, *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=3D1', '-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-deprecate= d']' 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 +=3D system_libs.calculate([f for _, f in sorted(temp_files)] + extra_files_to_link, in_temp, link_as_cxx, forced=3Dforced_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_p= ath return shared.Cache.get(self.get_filename(), self.build) File "/usr/local/lib/emscripten/tools/cache.py", line 127, in get temp =3D 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=3D1).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=3D1', '-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-deprecate= d']' returned non-zero exit status 1. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-264573-7788>