From owner-freebsd-toolchain@FreeBSD.ORG Fri Jan 16 21:27:19 2015 Return-Path: Delivered-To: toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 583F0532; Fri, 16 Jan 2015 21:27:19 +0000 (UTC) Received: from mailrelay004.isp.belgacom.be (mailrelay004.isp.belgacom.be [195.238.6.170]) by mx1.freebsd.org (Postfix) with ESMTP id C289D12E; Fri, 16 Jan 2015 21:27:15 +0000 (UTC) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnYGAGaBuVRbsIcT/2dsb2JhbABagwaBKswfAoESRAEBAQEBfYQNAQU6HCMQCxgJJQ8qHgYTG4gVAdITAQEBAQEFAgEfj3kHhCkBBJdagRCKVYJpgz0ig289MYJDAQEB Received: from 19.135-176-91.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([91.176.135.19]) by relay.skynet.be with ESMTP; 16 Jan 2015 22:27:06 +0100 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.9/8.14.9) with ESMTP id t0GLR6ID007125; Fri, 16 Jan 2015 22:27:06 +0100 (CET) (envelope-from tijl@FreeBSD.org) Date: Fri, 16 Jan 2015 22:27:06 +0100 From: Tijl Coosemans To: Dewayne Geraghty Subject: Re: Installing openssl without gcc or binutils dependents Message-ID: <20150116222706.779ebbe1@kalimero.tijl.coosemans.org> In-Reply-To: <54B952FC.4020807@heuristicsystems.com.au> References: <54B952FC.4020807@heuristicsystems.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: toolchain@FreeBSD.org, "freebsd-ports@freebsd.org" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jan 2015 21:27:19 -0000 On Sat, 17 Jan 2015 05:05:48 +1100 Dewayne Geraghty wrote: > I would appreciate advise on the best approach to install openssl that > has been built with gcc48 without needing to install gcc and binutils > into the target machine? > > Background > Attempting to run sshd or openssl resulted in > signal 4, illegal instruction. > The target systems are i386 boxes running the VIA C3 chipset using 10.1 > Stable and packages built from svnlite update of ports from 2014-12-30. > > The suspect file is libcrypto.so.8. > > All systems are built using clang and custom compiler directives, in > this case, > -march=c3-2 -mtune=c3-2 > and other attempts of building used CPUTYPE=c3-2 which generated the > same signal 4 when run on the target platform; march=pentium3 had same > result. The build occurs within an i386 jail on an amd64 FreeBSD 10.1 > Stable, base system. > > Solution > Inserted into /usr/ports/security/openssl/Makefile > USE_GCC= yes > resulted in a successful installation and running of sshd and curl which > was the objective. However the openssl now has a dependency on gcc48 > and binutils, which wont fit into the embedded image of 64MB (and isn't > needed) > > I would prefer to use pkg tools to install applications rather than the > crude workaround of > tar -xpPf /kits/openssl-1.0.1_16.txz /usr/local/bin /usr/local/lib > > I suspect something in /usr/ports/Mk would need a flag ?? > > Advise appreciated... > > Kind regards, Dewayne. > PS Fortunate aside, geom_eli only requires openssl header files, > otherwise the base system would also require gcc48 for these target machines I'm sure toolchain@ would want to know what the faulting instruction is. Do you have a core dump that you can examine? -march=c3-2 enables SSE instructions. Are you sure your chip supports that? Maybe you need -march=c3.