On 11/29/16 12:19, Joshua Colp wrote:
> On Tue, Nov 29, 2016, at 07:15 AM, Barry Flanagan wrote:
>> On 29 November 2016 at 10:56, Jonathan H <[email protected]> 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.
> 

BTW, I had to disable it by defualt in the FreeBSD port, otherwise the
official binary packages would be broken on CPUs different from the ones
used by the FreeBSD project build cluster.

I think all linux distributions are/should do the same for default
package builds.

-- 
Guido Falsi <[email protected]>

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to