DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 61MCKnN62742883 Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 61MCKnN62742883 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=Fyw8kT9v X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3E3C34B9DB46 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1771762848; bh=aNGwGxiT3PXHDW407+z+wfR5vOa+esCR2e02T14R9j8=; h=Resent-From:Resent-Date:Resent-To:Date:To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=Fyw8kT9v96rhUAw94U7vy3z22moTALzvOVPGUnLEouE/rwOUh98Sa7OnpuDpG9ZZb 8Ks+wn6iwBRnlkdbEdaK0MRKT3vBcCzkoPpgr9/+OaLzBLoxkqXc/hxPwhcA1mxnYF LB66q5PuW9xzpKlXWVHcjlM9b0UFksjJV4rR7sIg= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CF3094BA23C0 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org CF3094BA23C0 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1771762795; cv=none; b=txe/+3UEDdUO9+AndYTzvmE1D5M+yjepuvYFGwBRdAn2npREcDmMT5LvrX7n15pWk7Lbk6AQYEeWfb4Tk34qnC94rwdh8iQ16nrjtgpR2dKOvoCAidvnHkSQyo75Txc9o7B7s56Xji+pbCUbAX25rVxjTBCspgBi/n9lysXEgNg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1771762795; c=relaxed/simple; bh=AObpF1d4b+RrY6kGMpOoSBIyDhTRZ9uhlW7soY77ma4=; h=Date:From:To:Subject:Message-ID:MIME-Version; b=CMvN5UKcd+K9BcP8Oq5GGltkf2SidxpuG0TqLKFaUNv+F1AZxJklN1n+dymc4x0oANR+zFVc63NWKPJ/IPF1sHN9aAIpmn91MtWBUBNWFzQxDzZXU8pLUPGeETFWqPRJpy+bGKo4SwYZhqo4Z9pdB6Gq9ErmmLj8DjvUnNI2oLo= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CF3094BA23C0 Resent-From: Dr Bean Resent-Date: Sun, 22 Feb 2026 12:19:51 +0000 Resent-Message-ID: Resent-To: cygwin AT cygwin DOT com Date: Sun, 22 Feb 2026 12:15:19 +0000 To: cygwin AT cygwin DOT com Subject: rust library returns "Invalid target name: 'x86_64-pc-cygwin'" Message-ID: Mail-Followup-To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/2.2.14 (2025-02-20) X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Dr Bean via Cygwin Reply-To: Dr Bean Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 61MCKnN62742883 I'm trying to build tooi, a python mastodon TUI (https://codeberg.org/ihabunek/tooi), which depends on pydantic, a python-rust data validation module. Building with python-3.12, in a venv virtual environment, invoking `pip3 install .`, pydantic fails with the message, Building wheel for pydantic-core (pyproject.toml) ... error error: subprocess-exited-with-error × Building wheel for pydantic-core (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [22 lines of output] Running `maturin pep517 build-wheel -i /home/drbean/dot/browser/tooi/.venv.312/bin/python3 --compatibility off` 🍹 Building a mixed python/rust project 🔗 Found pyo3 bindings 🐍 Found CPython 3.12 at /home/drbean/dot/browser/tooi/.venv.312/bin/python3 📡 Using build options bindings from pyproject.toml Compiling proc-macro2 v1.0.86 Compiling unicode-ident v1.0.12 Compiling target-lexicon v0.13.2 error: failed to run custom build command for `target-lexicon v0.13.2` Caused by: process didn't exit successfully: `/tmp/pip-install-jvwnp9e1/pydantic-core_f4b932677649467ab031f90bc26a5065/target/release/build/target-lexicon-a0d8869a1d22c23b/build-script-build` (exit status: 101) --- stderr thread 'main' (1) panicked at /home/drbean/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/target-lexicon-0.13.2/build.rs:52:54: Invalid target name: 'x86_64-pc-cygwin' note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace warning: build failed, waiting for other jobs to finish... 💥 maturin failed Caused by: Failed to build a native library through cargo Caused by: Cargo build finished with "exit status: 101": `env -u CARGO PYO3_BUILD_EXTENSION_MODULE="1" PYO3_ENVIRONMENT_SIGNATURE="cpython-3.12-64bit" PYO3_PYTHON="/home/drbean/dot/browser/tooi/.venv.312/bin/python3" PYTHON_SYS_EXECUTABLE="/home/drbean/dot/browser/tooi/.venv.312/bin/python3" "cargo" "rustc" "--profile" "release" "--message-format" "json-render-diagnostics" "--manifest-path" "/tmp/pip-install-jvwnp9e1/pydantic-core_f4b932677649467ab031f90bc26a5065/Cargo.toml" "--lib" "--crate-type" "cdylib"` Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/home/drbean/dot/browser/tooi/.venv.312/bin/python3', '--compatibility', 'off'] returned non-zero exit status 1 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pydantic-core Successfully built toot-tooi Failed to build pydantic-core Running with RUST_BACKTRACE=1 and then RUST_BACKTRACE=full, produces the same output but in addition the backtrace, --->% error: failed to run custom build command for `target-lexicon v0.13.2` note: To improve backtraces for build dependencies, set the CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation. Caused by: process didn't exit successfully: `/tmp/pip-install-i6xwee_g/pydantic-core_d54b807af2e64234b3895bffc7166967/target/release/build/target-lexicon-a0d8869a1d22c23b/build-script-build` (exit status: 101) --- stderr thread 'main' (1) panicked at /home/drbean/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/target-lexicon-0.13.2/build.rs:52:54: Invalid target name: 'x86_64-pc-cygwin' stack backtrace: 0: 0x10045e9b0 - 1: 0x10048d1aa - 2: 0x1004186ff - 3: 0x10042a0e5 - 4: 0x100431ba2 - 5: 0x100431a1a - 6: 0x100432367 - 7: 0x100432132 - 8: 0x10042a21f - 9: 0x10040fece - 10: 0x10049db01 - 11: 0x1004091bd - 12: 0x10040ae1c - 13: 0x100408f9d - 14: 0x1004099b6 - 15: 0x1004094b9 - 16: 0x100401bac - 17: 0x10041c045 - 18: 0x100401b97 - 19: 0x10040d80f - 20: 0x7ffc3dbf80f3 - 21: 0x7ffc3dbf5cd5 - 22: 0x7ffc3dbf5d8b - 23: 0x0 - warning: build failed, waiting for other jobs to finish... ------>% Running with the advised CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG=true envar produces the same output as with no envars. Reading from a "Platform" dropdown on a target-lexicon doc page, https://docs.rs/crate/target-lexicon/latest the supported platforms appear to be aarch64-apple-darwin aarch64-unknown-linux-gnu i686-pc-windows-msvc x86_64-pc-windows-msvc x86_64-unknown-linux-gnu That is, no x86_64-pc-cygwin -- Greg "Dr Bean" Matheson Teaching: The last refuge of the manipulative. http://drbean.sdf.org --Dr Bean drbean AT freeshell DOT org -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple