Summary:ASTERISK-13506: Menuselect compiles X86 code on armv5tel
Reporter:kingofthemoles (kingofthemoles)Labels:
Date Opened:2009-02-03 11:29:53.000-0600Date Closed:2011-06-07 14:08:05
Versions:Frequency of
Description:Compiling on a NSLU2, running gentoo:

Sybil menuselect # uname -a
Linux Sybil #1 PREEMPT Mon Dec 24 17:32:03 UTC 2007 armv5tel XScale-IXP42x Family rev 1 (v5l) Linksys NSLU2 GNU/Linux

Compile fails:
gcc -o cmenuselect menuselect.o strcompat.o menuselect_curses.o mxml/libmxml.a -lncurses
menuselect.o: file not recognized: File format not recognized
collect2: ld returned 1 exit status
distcc[4720] ERROR: compile (null) on localhost failed
make: *** [cmenuselect] Error 1

Looks like it is building x86 and not arm?
Sybil menuselect # file menuselect.o
menuselect.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped


I am testing with svn, but this happens on 1.4 and 1.6 releases as well.
Comments:By: kingofthemoles (kingofthemoles) 2009-02-03 12:05:12.000-0600

Seems to be a distcc quirk.  I am happy to debug if you want, otherwise you can close this as I can now get a successful compile.

By: Jeff Peeler (jpeeler) 2009-02-06 13:55:22.000-0600

Please reopen if you find that your problem was not a result of using distcc.