From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CBE9A158086 for ; Sat, 16 Oct 2021 18:27:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0CE4FE08BD; Sat, 16 Oct 2021 18:27:33 +0000 (UTC) Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7BFF3E0894 for ; Sat, 16 Oct 2021 18:27:32 +0000 (UTC) Received: by mail-qt1-x82f.google.com with SMTP id r17so11808965qtx.10 for ; Sat, 16 Oct 2021 11:27:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=gX+pVYgMF6lr8m25QTnZwaVGZoU5uCJhGZUD//Tq+Xo=; b=GYGIbMPor+GMO7QsfRjxgSxVUOMxgk0QjJGlwP4I7ZsY2/6L3XYHVCdp7h/MmDxt5p wdZ9ovmHjIOhv2jaKnt1aUcOmLk2Omc5n2+7sPQzGW6tq0iIy/xHRbFR/6XcKM9vyl8b opzCAhKThTWztKcT4xKU3my6QvhK0GZp0QJ6Q2lqoiWke8yh9VL61Tz6F2P/KDm2LlWz 65qhWfL1lZnkm0HNrz08/W7H1i831JA7ZuYe95N9dBqPAKoUMzU0j3jBse6rQQ3gVvQU vwIWYF2WImvEVOIeLFhD8+OFO844zNP7qOGtfg3/lszNxdKfWlcP5ivo7XmUI8Z3oWHi 5aDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=gX+pVYgMF6lr8m25QTnZwaVGZoU5uCJhGZUD//Tq+Xo=; b=Krl04z4BmOo2oR820LuGX85wA6oRCJfJ2ZppmxjNU6l779eSEZ9OWQ6wUfOUrCabF4 VpDbAo5PFdUngCdvSUNV58Yo14VVQMKeVfLZ38maMZ7FvP6KfFMyXnpBaqZOEfFax+1i eSh+EY1+ZmCYI4sJYcEVLLO5lS2OmTBHGNE//SwL+XoVnnTmpVM2NPlTOvB3xnTE7abh hGbdkPwK+Kpy9jIRY8QTxxjbWsg9DKLqQx6bSQRowfqU2bmiBgyX7H63D8vmtObfUVCn TO0iHXrJkadPGDoPWZUSs1bsvgfBGoylfBhsjTV2xexFCAm4XlRrDhJfsM4eUhb9K5QX Fa2Q== X-Gm-Message-State: AOAM5316ljpZ9UevQt0YqhkZTUTDKHnGlHqmS9IR8kduygpMigRiwsl+ kIly8VI6eYdAoR+JIC1nMx45zq3QD3uJ/7WbbW86UZa7r6s= X-Google-Smtp-Source: ABdhPJwubCAJsik+VE2VCyxFO7HVmXi5rnOQR844gkvdVOPjp6qloguRfCWVF0GpiUkylrVkwpA/k/qPnBBHpRMeGKg= X-Received: by 2002:ac8:24e:: with SMTP id o14mr20278262qtg.183.1634408851308; Sat, 16 Oct 2021 11:27:31 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 References: In-Reply-To: From: Mark Knecht Date: Sat, 16 Oct 2021 11:27:20 -0700 Message-ID: Subject: Re: [gentoo-user] Re: tensorflow-2.5.0-r1 compilation failed To: Gentoo User Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Archives-Salt: de617526-e203-4f1c-85be-b8a31537b82f X-Archives-Hash: 27f216a9654a209ffb321163ab9dfe67 On Sat, Oct 16, 2021 at 11:06 AM gevisz wrote: > > =D1=81=D0=B1, 16 =D0=BE=D0=BA=D1=82. 2021 =D0=B3. =D0=B2 20:40, Mark Knec= ht : > > > > On Sat, Oct 16, 2021 at 9:50 AM gevisz wrote: > > > > > > To make things worse, I've got an "Illegal instruction (core dumped)" > > > error after installing and trying to run tensorflow from Ubuntu 20.04 > > > which is installed on the same computer. > > > > > > > What processor by chance are you using. Probably a year back > > Google started requiring processors with AVX2 and FMA instructions. > > > > I can no longer run it on my Intel i7 980 Extreme unless I build from > > source which is just too painful. It's the main reason I'm starting > > to finally plan a new machine purchase. > > > > cat /proc/cpuinfo | grep flags > > I have googled and also think that the above error on Ubuntu 20.04 is > due to the old processor. > I have an AMD Phenom II X4 processor on that computer. The main > problem, however, is that > I get an error when compiling tensorflow in Gentoo. > > The CPU flags are the following: fpu vme de pse tsc msr pae mce cx8 > apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht > syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow > constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid pni monitor > cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a > misalignsse 3dnowprefetch osvw ibs skinit wdt hw_pstate vmmcall npt > lbrv svm_lock nrip_save > So yes, in my experience your Ubuntu experiment using precompiled tensorflow is probably due to failure due to missing instructions in that processor. My experience compiling tensorflow was that it's fit and miss with lots of bazel problems. However, that's mostly from 2 years ago. (I bought my current house 2 years ago and the work I did was at the previous house.) There were a LOT of issues getting it compiled, and for clarity I was compiling on Ubuntu not Gentoo. That said my best results were using build instructions where you were insider of a Docker instance but you had to match things like python revisions in the Docker image with the one you were going to use in your environment outside of Docker. Generally this meant running TF in a specific python virtual environment and not just in your login. I wish you the best of luck. In the end I was able to buy a reasonably priced product that used TF but had the part I couldn't run in a library I could just remove. I lose certain features in the product but can reinsert that library when I get a new machine. Best of luck, Mark