Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Jan 2015 22:27:06 +0100
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        Dewayne Geraghty <dewayne.geraghty@heuristicsystems.com.au>
Cc:        toolchain@FreeBSD.org, "freebsd-ports@freebsd.org" <freebsd-ports@FreeBSD.org>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 17 Jan 2015 05:05:48 +1100 Dewayne Geraghty <dewayne.geraghty@heuristicsystems.com.au> 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.



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