From owner-freebsd-hackers@freebsd.org Wed May 22 13:49:00 2019 Return-Path: Delivered-To: freebsd-hackers@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 1011F15ACB27 for ; Wed, 22 May 2019 13:49:00 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 7571D8684C for ; Wed, 22 May 2019 13:48:59 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 2EDFC15ACB26; Wed, 22 May 2019 13:48:59 +0000 (UTC) Delivered-To: hackers@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 1C10015ACB25 for ; Wed, 22 May 2019 13:48:59 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 15DDC8684B for ; Wed, 22 May 2019 13:48:57 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id x4MDmfjM056998 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 22 May 2019 16:48:44 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua x4MDmfjM056998 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id x4MDmfYj056997; Wed, 22 May 2019 16:48:41 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 22 May 2019 16:48:41 +0300 From: Konstantin Belousov To: Enji Cooper Cc: Daniel Braniss , hackers@freebsd.org, "Andrey V. Elsukov" Subject: Re: ERR#78 'function not implemented' Message-ID: <20190522134841.GZ2748@kib.kiev.ua> References: <6B0A65C2-5F53-47B3-8159-0AEA3E0C37C4@cs.huji.ac.il> <87ede120-b533-302d-6ffb-82fd735dce21@yandex.ru> <7C0C64B8-B2A4-4CE8-9A1A-9394A9E1550A@cs.huji.ac.il> <1419BF6D-9BF3-454B-A9BB-E7CB50D4B540@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1419BF6D-9BF3-454B-A9BB-E7CB50D4B540@gmail.com> User-Agent: Mutt/1.11.4 (2019-03-13) X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FROM, NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tom.home X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 May 2019 13:49:00 -0000 On Wed, May 22, 2019 at 06:16:03AM -0700, Enji Cooper wrote: > > > On May 22, 2019, at 05:57, Daniel Braniss wrote: > > > >> On 22 May 2019, at 11:38, Andrey V. Elsukov wrote: > >> > >> On 21.05.2019 19:03, Daniel Braniss wrote: > >>> Hi, > >>> Im using a freebsd-stable-11.1-STABLE to cross compile for arm, I have been doing it for some time > >>> without any issues, but today I decided to try out release.sh and it failes. > >>> I have run the ‘bad’ command: > >> > >>> -- UNKNOWN FreeBSD ELF64 SYSCALL 568 -- > >>> #568() ERR#78 'Function not implemented' > >>> SIGNAL 12 (SIGSYS) code=SI_KERNEL > >>> process killed, signal = 12 (core dumped) > >> > >> Hi, > >> > >> Your kernel is too old to be able run this binary. Syscall 568 is > >> funlinkat(2), it was introduced in r345982. > >> > >> https://svnweb.freebsd.org/base?view=revision&revision=345982 > >> > > hi, > > thanks, so that raises a new question: > > Q: to use release.sh one needs to be running the latest current? > > In theory, liblegacy and ITOOLS should be taking care of some of this. A binary is being run from the install which should be run from the system. > liblegacy only relevant when your target is the old host system. It cannot help with running binary built on newer system. > That being said, you should be running a more recent release of 11.x or stable/11. No. You cannot run 12 binaries on 11 at all (practically any binary would fail), and you cannot run some HEAD binaries on 12.