From nobody Thu Jul 18 10:59:07 2024 X-Original-To: freebsd-questions@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 4WPqZB6ljhz5RF4p for ; Thu, 18 Jul 2024 10:59:30 +0000 (UTC) (envelope-from dch@skunkwerks.at) Received: from fhigh1-smtp.messagingengine.com (fhigh1-smtp.messagingengine.com [103.168.172.152]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4WPqZB4tgQz4lkc for ; Thu, 18 Jul 2024 10:59:30 +0000 (UTC) (envelope-from dch@skunkwerks.at) Authentication-Results: mx1.freebsd.org; none Received: from compute9.internal (compute9.nyi.internal [10.202.2.228]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 11CB511403AA; Thu, 18 Jul 2024 06:59:29 -0400 (EDT) Received: from imap44 ([10.202.2.94]) by compute9.internal (MEProxy); Thu, 18 Jul 2024 06:59:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skunkwerks.at; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm3; t=1721300369; x= 1721386769; bh=h2FTfJMk2jZXv07RPCGAQYSyHb9IRaV24SqRY8v8bbU=; b=r x5UQtYwEAGmSHNixMhKiS2+wAJZXWWxEGF2qob2CTsvMT8hPA1HViehfOTZXjvLl UH1u6z+n1Myi6WtiRBT+STjpBJnpk+sFAoHyzm1/2SvaUaF8xOaTu744RvMGhTA/ 6Tn2UKYNu4OumlVLu0YVIYfh1ON5fKDbD2ZudeyDTLQXfyfaleJjX9cBOhvsS2cK 4Efu+lshCiimz2DByaM3Yz0LwORHeXpWYjodzZvHP6sbz+epxeGqgR7hQF2ljxnz aziI8jq9o3ju+SLFd61vpQTw/ICGI/H9KqTfQR1ahef8kyG4M1+SSEAlTh692i/c XUwWGWbcxhI32ZjL4Rozw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1721300369; x=1721386769; bh=h2FTfJMk2jZXv07RPCGAQYSyHb9I RaV24SqRY8v8bbU=; b=F25wS78PQli2RJwhLasylk/TIZA17FO26ED6/T64tKqS GbKFuTTO3t3lGc1Ji5+XmpxMHFdQU05TJNEYAhAxCGDsCeHNEbW4ZC8vj++L4CUg 9CUuptvwxx/+P3ckumAqNhHOdJPoq71rAQQiIg/1eclRKVraHfHp0tMBObK0ufmA 9PXgaYlk7BBV7y7FdFEgJWyCOoScHcBbbE+0s8v7wF0m3GJiObmYNcpa/GLe3RNo A7dxCLua3Zvc0I9P1cntbcBWbJRsibZjJlz2IaSMPGjjpRkAVV5vnXU4cJeJwwbo xz5BQ/qISunU0bSj1D/C5vp3EMdUb105ZGmwzv914Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrgeelgdefgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvfevufgtsehttd ertderredtnecuhfhrohhmpedfffgrvhgvucevohhtthhlvghhuhgsvghrfdcuoegutghh sehskhhunhhkfigvrhhkshdrrghtqeenucggtffrrghtthgvrhhnpeekueekfeejkeegud efgfevuddtudefveehkedugffhuefgvdegtdevteduheduheenucffohhmrghinhepfhhr vggvsghsugdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpegutghhsehskhhunhhkfigvrhhkshdrrght X-ME-Proxy: Feedback-ID: ic0e84090:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 9BB0D36A0074; Thu, 18 Jul 2024 06:59:27 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-568-g843fbadbe-fm-20240701.003-g843fbadb List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 Message-Id: In-Reply-To: <20240718063713.6788d6ad@dismail.de> References: <20240718063713.6788d6ad@dismail.de> Date: Thu, 18 Jul 2024 10:59:07 +0000 From: "Dave Cottlehuber" To: LuMiWa Cc: freebsd-questions Subject: Re: machine/endian.h' file not found Content-Type: text/plain X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:209242, ipnet:103.168.172.0/24, country:US] X-Rspamd-Queue-Id: 4WPqZB4tgQz4lkc On Thu, 18 Jul 2024, at 10:37, LuMiWa wrote: > Hi, > > I did try to compile drm-515-kmod from ports on FreeBSD 14.1-RELEASE p2 > which is upgraded from 14.0 (freebsd-update upgrade) and I got: > > --- dma-buf-kmod.o --- > In file included from > /usr/ports/graphics/drm-515-kmod/work/drm-kmod-drm_v5.15.160_0/drivers/dma-buf/dma-buf-kmod.c:30: > In file included from /usr/src/sys/sys/param.h:116: > /usr/src/sys/sys/types.h:45:10: fatal error: 'machine/endian.h' file > not found > 45 | #include > | ^~~~~~~~~~~~~~~~~~ > 1 error generated. > *** [dma-buf-kmod.o] Error code 1 hi lumiwa this should be in /usr/include/machine/endian.h (along with a lot of other things in /usr/include). This needs to match /usr/src obviously as well to the running kernel. running `freebsd-update IDS` may help you find out what's missing, `freebsd-version -kru` will tell you if the running kernel and userland match or not. The reference files can be grabbed from https://download.freebsd.org/ftp/releases/amd64/amd64/14.1-RELEASE/src.txz & https://download.freebsd.org/ftp/releases/amd64/amd64/14.1-RELEASE/base.txz but you'll need to be avoid unpacking these over the top of a running system to avoid breaking things. `tar -C /tmp/...` is helpful. A+ Dave