Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Oct 2018 12:26:15 +0000 (UTC)
From:      Filippo Moretti <filippomore@yahoo.com>
To:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Problem compiling rust
Message-ID:  <1912901660.157423.1538828775273@mail.yahoo.com>
References:  <1912901660.157423.1538828775273.ref@mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
=C2=A0 extracting cargo-0.29.0-x86_64-unknown-freebsd/cargo/share/doc/cargo=
/README.md=C2=A0 extracting cargo-0.29.0-x86_64-unknown-freebsd/cargo/manif=
est.in=C2=A0 extracting cargo-0.29.0-x86_64-unknown-freebsd/cargo/etc/bash_=
completion.d/cargo=C2=A0 extracting cargo-0.29.0-x86_64-unknown-freebsd/car=
go/bin/cargo=C2=A0 extracting cargo-0.29.0-x86_64-unknown-freebsd/cargo/sha=
re/zsh/site-functions/_cargorunning: /usr/ports/lang/rust/work/rustc-1.29.1=
-src/build/x86_64-unknown-freebsd/stage0/bin/cargo build --manifest-path /u=
sr/ports/lang/rust/work/rustc-1.29.1-src/src/bootstrap/Cargo.toml --frozenT=
raceback (most recent call last):=C2=A0 File "/usr/ports/lang/rust/work/rus=
tc-1.29.1-src/x.py", line 20, in <module>=C2=A0 =C2=A0 bootstrap.main()=C2=
=A0 File "/usr/ports/lang/rust/work/rustc-1.29.1-src/src/bootstrap/bootstra=
p.py", line 843, in main=C2=A0 =C2=A0 bootstrap(help_triggered)=C2=A0 File =
"/usr/ports/lang/rust/work/rustc-1.29.1-src/src/bootstrap/bootstrap.py", li=
ne 819, in bootstrap=C2=A0 =C2=A0 build.build_bootstrap()=C2=A0 File "/usr/=
ports/lang/rust/work/rustc-1.29.1-src/src/bootstrap/bootstrap.py", line 646=
, in build_bootstrap=C2=A0 =C2=A0 run(args, env=3Denv, verbose=3Dself.verbo=
se)=C2=A0 File "/usr/ports/lang/rust/work/rustc-1.29.1-src/src/bootstrap/bo=
otstrap.py", line 148, in run=C2=A0 =C2=A0 raise RuntimeError(err)RuntimeEr=
ror: failed to run: /usr/ports/lang/rust/work/rustc-1.29.1-src/build/x86_64=
-unknown-freebsd/stage0/bin/cargo build --manifest-path /usr/ports/lang/rus=
t/work/rustc-1.29.1-src/src/bootstrap/Cargo.toml --frozen*** Error code 1
Stop.make[1]: stopped in /usr/ports/lang/rust*** Error code 1
Stop.make: stopped in /usr/ports/lang/rust[root@sting /usr/ports/lang/rust]=
#=C2=A0I always had this problem trying to compiling rust (amd64 alpha3),as=
 I only need it to compile firefox I wonder if it is possible to disable it=
s building.Thanks=C2=A0Filippo
From owner-freebsd-current@freebsd.org  Sat Oct  6 12:38:12 2018
Return-Path: <owner-freebsd-current@freebsd.org>
Delivered-To: freebsd-current@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id 30C8B10B8CFD
 for <freebsd-current@mailman.ysv.freebsd.org>;
 Sat,  6 Oct 2018 12:38:12 +0000 (UTC)
 (envelope-from greg@unrelenting.technology)
Received: from out.migadu.com (out.migadu.com [91.121.223.63])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client CN "smtp.migadu.com",
 Issuer "Let's Encrypt Authority X3" (verified OK))
 by mx1.freebsd.org (Postfix) with ESMTPS id 94CD3732EE
 for <freebsd-current@freebsd.org>; Sat,  6 Oct 2018 12:38:11 +0000 (UTC)
 (envelope-from greg@unrelenting.technology)
Received: (Migadu outbound); Sat, 06 Oct 2018 12:38:04 +0000
Authentication-Results: out.migadu.com; auth=pass (plain)
Received: from [192.168.1.141] ([62.122.208.146])
 by out.migadu.com (Haraka/2.8.16) with ESMTPSA id
 4DBA20CE-F3FF-4192-BC0D-BC79FBB68E39.1
 envelope-from <greg@unrelenting.technology> (authenticated bits=0)
 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 verify=FAIL);
 Sat, 06 Oct 2018 12:38:03 +0000
Date: Sat, 06 Oct 2018 15:38:00 +0300
From: Greg V <greg@unrelenting.technology>
Subject: Re: linux-c7 and opengl apps?
To: Theron <theron.tarigo@gmail.com>
Cc: FreeBSD Current <freebsd-current@freebsd.org>, x11-list freebsd
 <freebsd-x11@freebsd.org>
Message-Id: <1538829480.11691.0@smtp.migadu.com>
In-Reply-To: <dbff419a-b104-fb60-d0b3-0eecd7dbd0d1@gmail.com>
References: <CAECmPwvjJWNFELoeMcxGNFi_oXS5hWE4D2tTxi0TJpwBOriOrQ@mail.gmail.com>
 <dbff419a-b104-fb60-d0b3-0eecd7dbd0d1@gmail.com>
X-Mailer: geary/0.12.4
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1251; format=flowed
Content-Transfer-Encoding: quoted-printable
DKIM-Signature: v=1; a=rsa-sha256;
 bh=8aBVUM4Ox/pNV5WgKCkXbftK97IRdhwd4h9MzAyszVI=; c=relaxed/simple;
 d=unrelenting.technology; h=from:subject:date:to; s=default;
 b=Bmg6L99qo48ERfW6BY307mRXUWF+1mAVCMCQpYZ0NlwMtpTh3z72yKFKQsGriDH6F/dImxBGWyfeg3YG9ZdGnULJytkTckQm2zy2USMOVaFJbE7dP6llPQjsbYp2cfKtRrs7le28GKN9fjwQXIHIFMdC+3Zqwc5Whh8GqCuqQz0=
X-BeenThere: freebsd-current@freebsd.org
X-Mailman-Version: 2.1.27
Precedence: list
List-Id: Discussions about the use of FreeBSD-current
 <freebsd-current.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-current>, 
 <mailto:freebsd-current-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current/>;
List-Post: <mailto:freebsd-current@freebsd.org>
List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-current>, 
 <mailto:freebsd-current-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sat, 06 Oct 2018 12:38:12 -0000



On Fri, Oct 5, 2018 at 11:21 PM, Theron <theron.tarigo@gmail.com> wrote:
> % /compat/linux/opt/VirtualGL/bin/glxinfo | grep OpenGL
> libGL error: MESA-LOADER: failed to retrieve device information

Do you have linsysfs mounted?

Try reading /compat/linux/sys/class/drm/card0/device/uevent.

Mesa won't retrieve device information without linsysfs.
I wrote the linsysfs patch that exposed the info there so that recent=20
Mesa would work :)
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222375
(Wow, that was a year ago=85 interesting note from there: you might=20
need to set LIBGL_DRI3_DISABLE=3D1 for Linux apps)

Also, what's with the "/opt/VirtualGL"? Are you using mesa from=20
linux-c7 or something=85 weird?

> This problem has existed forever.  I am not sure it is actually a=20
> fault in Linux emulation, as these very same symptoms ("failed to=20
> retrieve device information" message, console freeze) existed back in=20
> FreeBSDDesktop/freebsd-base-graphics days when attempting to run=20
> purely FreeBSD OpenGL apps.  At the time the workaround was a patch=20
> to Mesa's GPU detection; the underlying kernel problem wasn't=20
> addressed.

There was a somewhat related issue (but not the same one, FreeBSD and=20
Linux versions of mesa/libdrm use different mechanisms to get device=20
info).
Mostly affected Wayland-EGL clients =97 they would try to access=20
/dev/dri/card408 instead of /dev/dri/card0, fail to get info and fall=20
back to software rendering.
I fixed it a while ago:=20
https://gitlab.freedesktop.org/mesa/mesa/commit/db8519a369261cdedda50852fac=
c45616d4eba28

But I never saw console freezes when Mesa couldn't properly detect the=20
GPU o_0
=




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1912901660.157423.1538828775273>