From nobody Fri Jun 21 09:39:18 2024 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4W5C471CHHz5Ppbv for ; Fri, 21 Jun 2024 09:39:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4W5C466DBkz4LD2 for ; Fri, 21 Jun 2024 09:39:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718962758; a=rsa-sha256; cv=none; b=HtWEtmVxpjOkoDwbF2oJCraZFD+tcP9C+KfMFk3KJYOzZ6Ecv58HIzvqroQb99rcv43ZZG p44URPMBKnqr3DY73/OmOMD1BFG+jHG5jJ/1BhT6jkRMPMsy8zhP4rUdKAojGEB+H/BJZ5 UB+MeHDcODrkiy4VhjnnYI4+zjP2YcGZQ1pYXrAx62fkr/+d6QeUeSmF7/r8BGLpzebdYf VA5TKS/HsrcxaLe9FYZljtIAzFL7ScjgqX+T4jGVDaRjPnmCt+nxQcCv8nespHNy9ttNxC jjCctGND0Sf5Qc9WaO+839dUFKmljfiuMHGoiHU9W13wSIwbh963pg9wX4YX/w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718962758; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=eXzTTlDu1cMdLUSW2ONYB2RwhJPU3s7OlXMrcWHd7JQ=; b=v3JQOhfiPssNmoJawpRgxZUfoYxsWHh7aKn3bZ650VO0C2mj0sZdKrfDNBJ7srqwnxGm/s NhW4/wNCSw1t51073cJ/d5x5Qel8kC92pJfyA4wG0i/TwUkuMrU7TcDWRo5X4awH4vID2f Hn4jsgfZpFli2UgTvOZ4w4+0eJaKt2c7HVUM2CVvhV8cemoCTZLLnXhCISxeneD0pa3sWR m2dxaOxdhj11k3ODIrXSNV3S2bxpZgAy4XYcmdKI7Hza387sNSGpRvXp40m+DwdJowisze 8A1FZ+Bk0wBe4fwGujVauFMHgad2SDxH3HjxSISI9ly3pc0DAfIYh8r+Xm2KbA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4W5C465r4Yz13Hv for ; Fri, 21 Jun 2024 09:39:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 45L9dIPD031110 for ; Fri, 21 Jun 2024 09:39:18 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 45L9dIKp031109 for ports-bugs@FreeBSD.org; Fri, 21 Jun 2024 09:39:18 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 279889] devel/emscripten: Error: Cannot find module 'acorn' Date: Fri, 21 Jun 2024 09:39:18 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: saper@saper.info X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: yuri@freebsd.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279889 Bug ID: 279889 Summary: devel/emscripten: Error: Cannot find module 'acorn' 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: saper@saper.info Assignee: yuri@freebsd.org Flags: maintainer-feedback?(yuri@freebsd.org) emscripten-3.1.43_1 running on FreeBSD 15-CURRENT main-n270224-fb623aab3927 Name : emscripten Version : 3.1.43_1 Installed on : Fri Jun 21 02:32:23 2024 CEST Origin : devel/emscripten Architecture : FreeBSD:15:* Prefix : /usr/local Categories : www devel Licenses : NCSA or MIT Maintainer : yuri@FreeBSD.org WWW : https://emscripten.org/ Comment : LLVM-to-Web Compiler Annotations : build_timestamp: 2024-06-12T20:40:32+0000 built_by : poudriere-git-3.4.1-30-g79e3edcd port_checkout_unclean: no port_git_hash : 1ce58015ec0 ports_top_checkout_unclean: no ports_top_git_hash: be0f24e23b1 repo_type : binary repository : FreeBSD Flat size : 31.2MiB Description : Emscripten is a toolchain for compiling to asm.js and WebAssembly, built us= ing LLVM, that lets you run C and C++ on the web at near-native speed without plugins. I try to make new nodejs facility to compile all JS stuff into one ELF bina= ry that contains node + the app. I have checked out the following: radziecki> git log -1 --oneline 3c4f208 (HEAD -> main, tag: v1.0.0-alpha.6, origin/main, origin/HEAD) relea= se: 1.0.0-alpha.6 radziecki> git remote -v origin https://github.com/nodejs/postject (fetch) origin https://github.com/nodejs/postject (push) and using www/node20 and yarn to build it with "yarn build" I end up with t= he following during the final linking stage: [427/432] Building C object vendor/lief/CMakeFiles/LIB_LIEF.dir/mbed_tls/src/lief_mbed_tls/library/x509= _csr.c.o emcc: warning: LLVM version for clang executable "/usr/local/bin/clang-deve= l" appears incorrect (seeing "19.0", expected "17") [-Wversion-check] [428/432]=20 [429/432] Building C object vendor/lief/CMakeFiles/LIB_LIEF.dir/mbed_tls/src/lief_mbed_tls/library/x509= write_csr.c.o emcc: warning: LLVM version for clang executable "/usr/local/bin/clang-deve= l" appears incorrect (seeing "19.0", expected "17") [-Wversion-check] [430/432] Building C object vendor/lief/CMakeFiles/LIB_LIEF.dir/mbed_tls/src/lief_mbed_tls/library/x509= write_crt.c.o emcc: warning: LLVM version for clang executable "/usr/local/bin/clang-deve= l" appears incorrect (seeing "19.0", expected "17") [-Wversion-check] [431/432] Linking CXX static library vendor/lief/libLIEF.a [432/432] Linking CXX executable postject.js FAILED: postject.js=20 : && ccache /usr/local/lib/emscripten/em++ -O3 -DNDEBUG -sSINGLE_FILE -sMODULARIZE=3D1 -sALLOW_MEMORY_GROWTH -sINITIAL_MEMORY=3D268435456 -sMAXIMUM_MEMORY=3D4294967296 --bind CMakeFiles/postject.dir/src/postject.c= pp.o -o postject.js vendor/lief/libLIEF.a && : em++: warning: LLVM version for clang executable "/usr/local/bin/clang-deve= l" appears incorrect (seeing "19.0", expected "17") [-Wversion-check] cache:INFO: generating system asset: symbol_lists/af2dd0985b0d617a65fe09ff6f26ca078c0b4ff6.json... (this will be cached in "/usr/home/saper/.emscripten_cache/symbol_lists/af2dd0985b0d617a65fe09ff6f2= 6ca078c0b4ff6.json" for subsequent builds) cache:INFO: - ok cache:INFO: generating system library: sysroot/lib/wasm32-emscripten/libembind-rtti.a... (this will be cached in "/usr/home/saper/.emscripten_cache/sysroot/lib/wasm32-emscripten/libembind-= rtti.a" for subsequent builds) system_libs:INFO: compiled 1 inputs cache:INFO: - ok cache:INFO: generating system library: sysroot/lib/wasm32-emscripten/libstubs.a... (this will be cached in "/usr/home/saper/.emscripten_cache/sysroot/lib/wasm32-emscripten/libstubs.a" for subsequent builds) system_libs:INFO: compiled 2 inputs cache:INFO: - ok cache:INFO: generating system library: sysroot/lib/wasm32-emscripten/libc.a= ... (this will be cached in "/usr/home/saper/.emscripten_cache/sysroot/lib/wasm32-emscripten/libc.a" for subsequent builds) system_libs:INFO: compiled 1023 inputs cache:INFO: - ok cache:INFO: generating system library: sysroot/lib/wasm32-emscripten/libc++abi-noexcept.a... (this will be cached = in "/usr/home/saper/.emscripten_cache/sysroot/lib/wasm32-emscripten/libc++abi-= noexcept.a" for subsequent builds) system_libs:INFO: compiled 16 inputs cache:INFO: - ok em++: warning: unexpected binaryen version: 117 (expected 114) [-Wversion-check] node:internal/modules/cjs/loader:1148 throw err; ^ Error: Cannot find module 'acorn' Require stack: - /usr/local/lib/emscripten/tools/acorn-optimizer.js at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15) at Module._load (node:internal/modules/cjs/loader:986:27) at Module.require (node:internal/modules/cjs/loader:1233:19) at require (node:internal/modules/helpers:179:18) at Object. (/usr/local/lib/emscripten/tools/acorn-optimizer.js:5:15) at Module._compile (node:internal/modules/cjs/loader:1358:14) at Module._extensions..js (node:internal/modules/cjs/loader:1416:10) at Module.load (node:internal/modules/cjs/loader:1208:32) at Module._load (node:internal/modules/cjs/loader:1024:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12) { code: 'MODULE_NOT_FOUND', requireStack: [ '/usr/local/lib/emscripten/tools/acorn-optimizer.js' ] } Node.js v20.14.0 em++: error: '/tmp/yarn--1718931070591-0.4618112675740218/node /usr/local/lib/emscripten/tools/acorn-optimizer.js /tmp/emscripten_temp_e5ienxp6/postject.js unsignPointers -o /tmp/emscripten_temp_e5ienxp6/postject.jso1.js' failed (returned 1) ninja: build stopped: subcommand failed. Error:=20 at file:///big/sw/postject/scripts/build.mjs:33:8 exit code: 1 error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. Shall the additional component be installed with the port? I can see there are tools/acorn-optimizer.[m]js third_party/terser/ in https://github.com/emscripten-core/emscripten among other things... --=20 You are receiving this mail because: You are the assignee for the bug.=