[asterisk-users] Any reason Asterisk won't start without a rebuild on a cloned VPS?

Joshua Colp jcolp at digium.com
Tue Nov 29 05:19:40 CST 2016

On Tue, Nov 29, 2016, at 07:15 AM, Barry Flanagan wrote:
> On 29 November 2016 at 10:56, Jonathan H <lardconcepts at gmail.com> wrote:
> > Any ideas why a VPS, cloned from another instance (DigitalOcean
> > "droplets" if it matters), won't run on the new instance?
> >
> > Everything else is the same; region, memory, disk, hypervisor version etc.
> >
> You probably need to select  "DONT_OPTIMIZE"  in make menuselect under
> "Compiler Flags". This is generally required for VPS or any situation
> where
> the binary might be used on a slightly different CPU.

Close! The compiler flag to disable is BUILD_NATIVE. It instructs GCC to
build optimized for the CPU, if the binary is moved to a CPU that
differs - it may or may not work depending on how close they are.

Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org

More information about the asterisk-users mailing list