[lttng-dev] Compile failure on OSX 10.8

Christian Babeux christian.babeux at efficios.com
Fri Jun 21 11:54:16 EDT 2013


Hi Anand,

You might have to pass an additional host flag to configure e.g.:

./configure --host=i686-apple-darwin11

If I remember correctly, the compiler on OSX was compiled to run on a
64-bit platform but _only_ produce 32-bit binaries. Our configure
script wrongly detect an x86-64 host, so you need to force it to use
i686.

Could you post the output of your config.log?

Thanks,

Christian

On Fri, Jun 21, 2013 at 11:23 AM, Anand Buddhdev <anandb at ripe.net> wrote:
> Hi people,
>
> I'm trying to compile userspace-rcu 0.7.7 on OSX 10.8.4, and it's
> failing. The configure phase completes, but make fails like this:
>
> $ make
> make  all-recursive
> Making all in .
>   CC     wfqueue.lo
>   CC     wfstack.lo
>   CC     compat_arch_x86.lo
> /var/folders/9f/pv25pv1j7k54m9q11sz79w0h0000gn/T//cc2LG2nk.s:44:suffix
> or operands invalid for `pushf'
> /var/folders/9f/pv25pv1j7k54m9q11sz79w0h0000gn/T//cc2LG2nk.s:44:suffix
> or operands invalid for `pop'
> /var/folders/9f/pv25pv1j7k54m9q11sz79w0h0000gn/T//cc2LG2nk.s:55:suffix
> or operands invalid for `push'
> /var/folders/9f/pv25pv1j7k54m9q11sz79w0h0000gn/T//cc2LG2nk.s:55:suffix
> or operands invalid for `popf'
> /var/folders/9f/pv25pv1j7k54m9q11sz79w0h0000gn/T//cc2LG2nk.s:60:suffix
> or operands invalid for `pushf'
> /var/folders/9f/pv25pv1j7k54m9q11sz79w0h0000gn/T//cc2LG2nk.s:60:suffix
> or operands invalid for `pop'
> /var/folders/9f/pv25pv1j7k54m9q11sz79w0h0000gn/T//cc2LG2nk.s:65:suffix
> or operands invalid for `push'
> /var/folders/9f/pv25pv1j7k54m9q11sz79w0h0000gn/T//cc2LG2nk.s:65:suffix
> or operands invalid for `popf'
> make[2]: *** [compat_arch_x86.lo] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
>
> CC is just gcc, which is:
>
> $ gcc --version
> i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build
> 5658) (LLVM build 2336.11.00)
>
> Anyone know what the problem is, and how to fix it?
>
> Regards,
>
> Anand
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev



More information about the lttng-dev mailing list