Hi,<br><br>I am using Ubuntu 32 bit OS with C118 Motorola phone.<br>You have written "<span style="" class="notranslate">remember to use 64." in your blog, however you use Kali OS.</span><br>Does it mean that osmocom doesn't support 32 bit Ubuntu?<br>Do I need to switch on 64 bits OS?<br><br><br>With regards<br>
Neetesh Saxena...<br><br><br>From: "LSX" <289039690@qq.com><br>Sent: Fri, 03 Jan 2014 09:12:06 <br>To: "neetesh  saxena" <saxenaneetesh061@rediffmail.com><br>Subject: 回复:Osmocom: assembler errors (swab.h)<br><div>你用的什么系统啊,有些系统好像是有这个问题,好像是版本的问题,不能用太新的版本我用的是kali 64 不存在这个问题</div><div>还有我的博客 你可以参照一下:<a href="http://www.rediffmail.com/cgi-bin/red.cgi?account_type=1&red=http://blog.lishixin.net&isImage=0&BlockImage=0&rediffng=0" target="_blank" rel="external">blog.lishixin.net</a></div><div><div><br></div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ 原始邮件 ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>发件人:</b> "neetesh  saxena";<saxenaneetesh061@rediffmail.com>;</div><div><b>发送时间:</b> 2014年1月2日(星期四) 晚上9:20</div><div><b>收件人:</b> "baseband-devel "<baseband-devel@lists.osmocom.org>; <wbr></div><div></div><div><b>主题:</b> Osmocom: assembler errors (swab.h)</div></div><div><br></div>Hi everyone,<br><br>Next time when I am trying to compile osmocom-bb source using "make" command it is showing two errors.<br>Even I have removed the complete directory where I had put osmocom-bb, toolchain, libosmocore. I tried two times as a fresh installation but still I am getting the errors.<br><br>Can anyone help me what to do? The details of the commands and the generated errors are as:<br><br>neetesh@neetesh-VirtualBox:~/GSMP$ git clone git://<a href="http://www.rediffmail.com/cgi-bin/red.cgi?account_type=1&red=http://git.osmocom.org%2Fosmocom-bb.git&isImage=0&BlockImage=0&rediffng=0" target="_blank" rel="external">git.osmocom.org/osmocom-bb.git</a><br>Cloning into 'osmocom-bb'...<br>remote: Counting objects: 19471, done.<br>remote: Compressing objects: 100% (6037/6037), done.<br>remote: Total 19471 (delta 13610), reused 18108 (delta 12508)<br>Receiving objects: 100% (19471/19471), 3.37 MiB | 1.07 MiB/s, done.<br>Resolving deltas: 100% (13610/13610), done.<br><br>neetesh@neetesh-VirtualBox:~/GSMP$ cd osmocom-bb/<br><br>neetesh@neetesh-VirtualBox:~/GSMP/osmocom-bb$ git pull --rebase<br>Current branch master is up to date.<br><br>neetesh@neetesh-VirtualBox:~/GSMP/osmocom-bb$ cd src/<br><br>neetesh@neetesh-VirtualBox:~/GSMP/osmocom-bb/src$ sudo make<br>cd shared/libosmocore && autoreconf -fi<br>libtoolize: putting auxiliary files in `.'.<br>libtoolize: copying file `./config.guess'<br>libtoolize: copying file `./config.sub'<br>libtoolize: copying file `./install-sh'<br>libtoolize: copying file `./<a href="http://www.rediffmail.com/cgi-bin/red.cgi?account_type=1&red=http://ltmain.sh&isImage=0&BlockImage=0&rediffng=0" target="_blank" rel="external">ltmain.sh</a>'<br>libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.<br>libtoolize: copying file `m4/libtool.m4'<br>libtoolize: copying file `m4/ltoptions.m4'<br>libtoolize: copying file `m4/ltsugar.m4'<br>libtoolize: copying file `m4/ltversion.m4'<br>libtoolize: copying file `m4/lt~obsolete.m4'<br><a href="http://www.rediffmail.com/cgi-bin/red.cgi?account_type=1&red=http://configure.ac%3A5&isImage=0&BlockImage=0&rediffng=0" target="_blank" rel="external">configure.ac:5</a>: installing `./missing'<br>src/<a href="http://www.rediffmail.com/cgi-bin/red.cgi?account_type=1&red=http://Makefile.am&isImage=0&BlockImage=0&rediffng=0" target="_blank" rel="external">Makefile.am</a>: installing `./depcomp'<br>mkdir shared/libosmocore/build-target<br>cd shared/libosmocore/build-target && ../configure \<br>            --host=arm-none-eabi --enable-embedded --disable-shared \<br>            --disable-tests ac_cv_header_sys_select_h=no \<br>            --disable-tests ac_cv_header_sys_socket_h=no \<br>        CFLAGS="-Os -ffunction-sections -I/home/neetesh/GSMP/osmocom-bb/src/target/firmware/include -nostartfiles -nodefaultlibs"<br>configure: WARNING: unrecognized options: --disable-tests, --disable-tests<br>configure: WARNING: if you wanted to set the --build type, don't use --host.<br>    If a cross compiler is detected then cross compile mode will be used<br>checking for a BSD-compatible install... /usr/bin/install -c<br>checking whether build environment is sane... yes<br>checking for arm-none-eabi-strip... no<br>checking for strip... strip<br>checking for a thread-safe mkdir -p... /bin/mkdir -p<br>checking for gawk... no<br>checking for mawk... mawk<br>checking whether make sets $(MAKE)... yes<br>checking whether make supports nested variables... yes<br>checking whether make sets $(MAKE)... (cached) yes<br>checking for arm-none-eabi-gcc... no<br>checking for gcc... gcc<br>checking whether the C compiler works... yes<br>checking for C compiler default output file name... a.out<br>checking for suffix of executables... <br>checking whether we are cross compiling... yes<br>checking for suffix of object files... o<br>checking whether we are using the GNU C compiler... yes<br>checking whether gcc accepts -g... yes<br>checking for gcc option to accept ISO C89... none needed<br>checking for style of include used by make... GNU<br>checking dependency style of gcc... gcc3<br>checking build system type... i686-pc-linux-gnu<br>checking host system type... arm-none-eabi<br>checking how to print strings... printf<br>checking for a sed that does not truncate output... /bin/sed<br>checking for grep that handles long lines and -e... /bin/grep<br>checking for egrep... /bin/grep -E<br>checking for fgrep... /bin/grep -F<br>checking for ld used by gcc... /usr/bin/ld<br>checking if the linker (/usr/bin/ld) is GNU ld... yes<br>checking for BSD- or MS-compatible name lister (nm)... no<br>checking for arm-none-eabi-dumpbin... no<br>checking for arm-none-eabi-link... no<br>checking for dumpbin... no<br>checking for link... link -dump<br>configure: WARNING: using cross tools not prefixed with host triplet<br>checking the name lister (nm) interface... BSD nm<br>checking whether ln -s works... yes<br>checking the maximum length of command line arguments... 805306365<br>checking whether the shell understands some XSI constructs... yes<br>checking whether the shell understands "+="... yes<br>checking how to convert i686-pc-linux-gnu file names to arm-none-eabi format... func_convert_file_noop<br>checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop<br>checking for /usr/bin/ld option to reload object files... -r<br>checking for arm-none-eabi-objdump... no<br>checking for objdump... objdump<br>checking how to recognize dependent libraries... unknown<br>checking for arm-none-eabi-dlltool... no<br>checking for dlltool... no<br>checking how to associate runtime and link libraries... printf %s\n<br>checking for arm-none-eabi-ar... no<br>checking for ar... ar<br>checking for archiver @FILE support... @<br>checking for arm-none-eabi-strip... strip<br>checking for arm-none-eabi-ranlib... no<br>checking for ranlib... ranlib<br>checking command to parse nm output from gcc object... ok<br>checking for sysroot... no<br>checking for arm-none-eabi-mt... no<br>checking for mt... mt<br>checking if mt is a manifest tool... no<br>checking how to run the C preprocessor... gcc -E<br>checking for ANSI C header files... yes<br>checking for sys/types.h... yes<br>checking for sys/stat.h... yes<br>checking for stdlib.h... yes<br>checking for string.h... yes<br>checking for memory.h... yes<br>checking for strings.h... yes<br>checking for inttypes.h... yes<br>checking for stdint.h... yes<br>checking for unistd.h... yes<br>checking for dlfcn.h... yes<br>checking for objdir... .libs<br>checking if gcc supports -fno-rtti -fno-exceptions... no<br>checking for gcc option to produce PIC... -fPIC -DPIC<br>checking if gcc PIC flag -fPIC -DPIC works... yes<br>checking if gcc static flag -static works... no<br>checking if gcc supports -c -o file.o... yes<br>checking if gcc supports -c -o file.o... (cached) yes<br>checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes<br>checking dynamic linker characteristics... no<br>checking how to hardcode library paths into programs... immediate<br>checking whether stripping libraries is possible... yes<br>checking if libtool supports shared libraries... no<br>checking whether to build shared libraries... no<br>checking whether to build static libraries... yes<br>checking for ANSI C header files... (cached) yes<br>checking execinfo.h usability... yes<br>checking execinfo.h presence... yes<br>checking for execinfo.h... yes<br>checking for sys/select.h... (cached) no<br>checking for sys/socket.h... (cached) no<br>checking syslog.h usability... yes<br>checking syslog.h presence... yes<br>checking for syslog.h... yes<br>checking ctype.h usability... yes<br>checking ctype.h presence... yes<br>checking for ctype.h... yes<br>checking for size_t... yes<br>checking for working alloca.h... no<br>checking for alloca... no<br>checking whether `alloca.c' needs Cray hooks... no<br>checking stack direction for C alloca... 0<br>checking for library containing dlopen... -ldl<br>checking for doxygen... false<br>checking if gcc supports -fvisibility=hidden... yes<br>checking whether struct tm has tm_gmtoff member... no<br>configure: creating ./config.status<br>config.status: creating libosmocore.pc<br>config.status: creating libosmocodec.pc<br>config.status: creating libosmovty.pc<br>config.status: creating libosmogsm.pc<br>config.status: creating libosmogb.pc<br>config.status: creating include/Makefile<br>config.status: creating src/Makefile<br>config.status: creating src/vty/Makefile<br>config.status: creating src/codec/Makefile<br>config.status: creating src/gsm/Makefile<br>config.status: creating src/gb/Makefile<br>config.status: creating tests/Makefile<br>config.status: creating utils/Makefile<br>config.status: creating Doxyfile.core<br>config.status: creating Doxyfile.gsm<br>config.status: creating Doxyfile.vty<br>config.status: creating Doxyfile.codec<br>config.status: creating Makefile<br>config.status: creating config.h<br>config.status: executing tests/atconfig commands<br>config.status: executing depfiles commands<br>config.status: executing libtool commands<br>configure: WARNING: unrecognized options: --disable-tests, --disable-tests<br>cd shared/libosmocore/build-target && make<br>make[1]: Entering directory `/home/neetesh/GSMP/osmocom-bb/src/shared/libosmocore/build-target'<br>echo UNKNOWN > ../.version-t && mv ../.version-t ../.version<br>make  all-recursive<br>make[2]: Entering directory `/home/neetesh/GSMP/osmocom-bb/src/shared/libosmocore/build-target'<br>Making all in include<br>make[3]: Entering directory `/home/neetesh/GSMP/osmocom-bb/src/shared/libosmocore/build-target/include'<br>  GEN    osmocom/core/crc16gen.h<br>  GEN    osmocom/core/crc16gen.h<br>  GEN    osmocom/core/crc32gen.h<br>  GEN    osmocom/core/crc32gen.h<br>  GEN    osmocom/core/crc64gen.h<br>  GEN    osmocom/core/crc64gen.h<br>  GEN    osmocom/core/crc8gen.h<br>  GEN    osmocom/core/crc8gen.h<br>make[3]: Leaving directory `/home/neetesh/GSMP/osmocom-bb/src/shared/libosmocore/build-target/include'<br>Making all in src<br>make[3]: Entering directory `/home/neetesh/GSMP/osmocom-bb/src/shared/libosmocore/build-target/src'<br>  GEN    crc8gen.c<br>  GEN    crc16gen.c<br>  GEN    crc32gen.c<br>  GEN    crc64gen.c<br>make  all-am<br>make[4]: Entering directory `/home/neetesh/GSMP/osmocom-bb/src/shared/libosmocore/build-target/src'<br>  CC     timer.lo<br>  CC     select.lo<br>  CC     signal.lo<br>  CC     msgb.lo<br>  CC     bits.lo<br>  CC     bitvec.lo<br>  CC     statistics.lo<br>../../src/statistics.c: In function 'osmo_counter_get_by_name':<br>../../src/statistics.c:72:3: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]<br>  CC     write_queue.lo<br>  CC     utils.lo<br>../../src/utils.c: In function 'get_string_value':<br>../../src/utils.c:49:3: warning: implicit declaration of function 'strcasecmp' [-Wimplicit-function-declaration]<br>  CC     socket.lo<br>  CC     logging.lo<br>../../src/logging.c: In function 'log_parse_category':<br>../../src/logging.c:151:3: warning: implicit declaration of function 'strcasecmp' [-Wimplicit-function-declaration]<br>../../src/logging.c: In function 'log_parse_category_mask':<br>../../src/logging.c:168:2: warning: implicit declaration of function 'strdup' [-Wimplicit-function-declaration]<br>../../src/logging.c:168:15: warning: incompatible implicit declaration of built-in function 'strdup' [enabled by default]<br>../../src/logging.c:175:2: warning: implicit declaration of function 'strtok' [-Wimplicit-function-declaration]<br>../../src/logging.c:175:17: warning: assignment makes pointer from integer without a cast [enabled by default]<br>../../src/logging.c:179:4: warning: implicit declaration of function 'strstr' [-Wimplicit-function-declaration]<br>../../src/logging.c:179:18: warning: incompatible implicit declaration of built-in function 'strstr' [enabled by default]<br>../../src/logging.c:194:4: warning: implicit declaration of function 'strncasecmp' [-Wimplicit-function-declaration]<br>../../src/logging.c:205:27: warning: assignment makes pointer from integer without a cast [enabled by default]<br>../../src/logging.c: In function '_file_output':<br>../../src/logging.c:446:2: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]<br>../../src/logging.c:446:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]<br>../../src/logging.c:447:2: warning: implicit declaration of function 'fflush' [-Wimplicit-function-declaration]<br>../../src/logging.c: In function 'log_target_create_file':<br>../../src/logging.c:520:2: warning: implicit declaration of function 'fopen' [-Wimplicit-function-declaration]<br>../../src/logging.c:520:23: warning: assignment makes pointer from integer without a cast [enabled by default]<br>../../src/logging.c: In function 'log_target_find':<br>../../src/logging.c:544:4: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]<br>../../src/logging.c: In function 'log_target_destroy':<br>../../src/logging.c:566:4: warning: implicit declaration of function 'fclose' [-Wimplicit-function-declaration]<br>../../src/logging.c: In function 'log_target_file_reopen':<br>../../src/logging.c:579:23: warning: assignment makes pointer from integer without a cast [enabled by default]<br>  CC     logging_syslog.lo<br>  CC     rate_ctr.lo<br>../../src/rate_ctr.c: In function 'rate_ctr_get_group_by_name_idx':<br>../../src/rate_ctr.c:153:3: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]<br>  CC     gsmtap_util.lo<br>In file included from /home/neetesh/GSMP/osmocom-bb/src/target/firmware/include/swab.h:5:0,<br>                 from /home/neetesh/GSMP/osmocom-bb/src/target/firmware/include/byteorder.h:12,<br>                 from /home/neetesh/GSMP/osmocom-bb/src/target/firmware/include/arpa/inet.h:2,<br>                 from ../../src/gsmtap_util.c:37:<br>/home/neetesh/GSMP/osmocom-bb/src/target/firmware/include/defines.h:5:0: warning: "__attribute_const__" redefined [enabled by default]<br><b>/usr/include/i386-linux-gnu/sys/cdefs.h:241:0: note: this is the location of the previous definition<br>/home/neetesh/GSMP/osmocom-bb/src/target/firmware/include/asm/swab.h: Assembler messages:<br>/home/neetesh/GSMP/osmocom-bb/src/target/firmware/include/asm/swab.h:32: Error: no such instruction: `eor %edx,%ecx,%ecx,ror'<br>make[4]: *** [gsmtap_util.lo] Error 1<br>make[4]: Leaving directory `/home/neetesh/GSMP/osmocom-bb/src/shared/libosmocore/build-target/src'<br>make[3]: *** [all] Error 2<br>make[3]: Leaving directory `/home/neetesh/GSMP/osmocom-bb/src/shared/libosmocore/build-target/src'<br>make[2]: *** [all-recursive] Error 1<br>make[2]: Leaving directory `/home/neetesh/GSMP/osmocom-bb/src/shared/libosmocore/build-target'<br>make[1]: *** [all] Error 2<br>make[1]: Leaving directory `/home/neetesh/GSMP/osmocom-bb/src/shared/libosmocore/build-target'<br>make: *** [shared/libosmocore/build-target/src/.libs/libosmocore.a] Error 2<br></b><br><br><br><br>With regards<br>
Neetesh Saxena...<br><br><table cellpadding="0" cellspacing="0"><tbody><tr><td><br></td><td><b></b></td></tr></tbody></table>
<br><a href='http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?'><img src="http://sigads.rediff.com/RealMedia/ads/adstream_nx.ads/www.rediffmail.com/signatureline.htm@Middle&rogue=(null)"></a><table cellpadding="0" cellspacing="0"><tbody><tr><td><div style="font-family: Arial, Helvetica, sans-serif; font-size:14px">Get your own <span style="padding-bottom: 0px; background-color: #cc0000; padding-left: 3px; padding-RIGHT: 3px; font-family: Arial, Helvetica, sans-serif; color: #ffffff; font-size: 12px; padding-top: 0px"><b>FREE</b></span> website,  <span style="padding-bottom: 0px; background-color: #c00; padding-left: 3px; padding-RIGHT: 3px; font-family: Arial, Helvetica, sans-serif; color: #ffffff; font-size: 12px; padding-top: 0px"><b>FREE</b></span> domain & <span style="padding-bottom: 0px; background-color: #c00; padding-left: 3px; padding-RIGHT: 3px; font-family: Arial, Helvetica, sans-serif; color: #ffffff; font-size: 12px; padding-top: 0px"><b>FREE</b></span> mobile app with Company email.  </div></td><td><a href='http://track.rediff.com/click?url=___http://businessemail.rediff.com/company-email-hosting-services?sc_cid=sign-1-10-13___&cmp=host&lnk=sign-1-10-13&nsrv1=host'><b>Know More ></b></a></td></tr></tbody></table></div>
<br><A HREF="http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?" target="_blank"><IMG SRC="http://sigads.rediff.com/RealMedia/ads/adstream_nx.ads/www.rediffmail.com/signatureline.htm@Middle"></A><table cellpadding="0" cellspacing="0"><tbody><tr><td><div style="font-family: Arial, Helvetica, sans-serif; font-size:14px">Get your own <span style="padding-bottom: 0px; background-color: #cc0000; padding-left: 3px; padding-RIGHT: 3px; font-family: Arial, Helvetica, sans-serif; color: #ffffff; font-size: 12px; padding-top: 0px"><b>FREE</b></span> website,  <span style="padding-bottom: 0px; background-color: #c00; padding-left: 3px; padding-RIGHT: 3px; font-family: Arial, Helvetica, sans-serif; color: #ffffff; font-size: 12px; padding-top: 0px"><b>FREE</b></span> domain & <span style="padding-bottom: 0px; background-color: #c00; padding-left: 3px; padding-RIGHT: 3px; font-family: Arial, Helvetica, sans-serif; color: #ffffff; font-size: 12px; padding-top: 0px"><b>FREE</b></span> mobile app with Company email.  </div></td><td><a href="http://track.rediff.com/click?url=___http://businessemail.rediff.com/company-email-hosting-services?sc_cid=sign-1-10-13___&cmp=host&lnk=sign-1-10-13&nsrv1=host" style="font-family: Arial, Helvetica, sans-serif; color: #fff; font-size: 14px; color:#0000cc" target="_blank"><b>Know More ></b></a><!-- <in-put type="button" cl-ass="button" on-click="parent.location='http://track.rediff.com/click?url=___http://businessemail.rediff.com/company-email-hosting-services?sc_cid=signature-23-9-13___&cmp=signature-23-9-13&lnk=mypagelogout&nsrv1=host'" value="Know more >"> </input> --></td></tr></tbody></table>