Installing openssl without gcc or binutils dependents

Tijl Coosemans tijl at
Fri Jan 16 21:27:19 UTC 2015

On Sat, 17 Jan 2015 05:05:48 +1100 Dewayne Geraghty <dewayne.geraghty at> 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
> 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.

More information about the freebsd-ports mailing list