Osmocom: assembler errors (swab.h)

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/baseband-devel@lists.osmocom.org/.

neetesh saxena saxenaneetesh061 at rediffmail.com
Thu Jan 2 13:20:44 UTC 2014


Hi everyone,

Next time when I am trying to compile osmocom-bb source using "make" command it is showing two errors.
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.

Can anyone help me what to do? The details of the commands and the generated errors are as:

neetesh at neetesh-VirtualBox:~/GSMP$ git clone git://git.osmocom.org/osmocom-bb.git
Cloning into 'osmocom-bb'...
remote: Counting objects: 19471, done.
remote: Compressing objects: 100% (6037/6037), done.
remote: Total 19471 (delta 13610), reused 18108 (delta 12508)
Receiving objects: 100% (19471/19471), 3.37 MiB | 1.07 MiB/s, done.
Resolving deltas: 100% (13610/13610), done.

neetesh at neetesh-VirtualBox:~/GSMP$ cd osmocom-bb/

neetesh at neetesh-VirtualBox:~/GSMP/osmocom-bb$ git pull --rebase
Current branch master is up to date.

neetesh at neetesh-VirtualBox:~/GSMP/osmocom-bb$ cd src/

neetesh at neetesh-VirtualBox:~/GSMP/osmocom-bb/src$ sudo make
cd shared/libosmocore && autoreconf -fi
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./config.guess'
libtoolize: copying file `./config.sub'
libtoolize: copying file `./install-sh'
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
configure.ac:5: installing `./missing'
src/Makefile.am: installing `./depcomp'
mkdir shared/libosmocore/build-target
cd shared/libosmocore/build-target && ../configure \
            --host=arm-none-eabi --enable-embedded --disable-shared \
            --disable-tests ac_cv_header_sys_select_h=no \
            --disable-tests ac_cv_header_sys_socket_h=no \
        CFLAGS="-Os -ffunction-sections -I/home/neetesh/GSMP/osmocom-bb/src/target/firmware/include -nostartfiles -nodefaultlibs"
configure: WARNING: unrecognized options: --disable-tests, --disable-tests
configure: WARNING: if you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-none-eabi-strip... no
checking for strip... strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make sets $(MAKE)... (cached) yes
checking for arm-none-eabi-gcc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... i686-pc-linux-gnu
checking host system type... arm-none-eabi
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... no
checking for arm-none-eabi-dumpbin... no
checking for arm-none-eabi-link... no
checking for dumpbin... no
checking for link... link -dump
configure: WARNING: using cross tools not prefixed with host triplet
checking the name lister (nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 805306365
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i686-pc-linux-gnu file names to arm-none-eabi format... func_convert_file_noop
checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for arm-none-eabi-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... unknown
checking for arm-none-eabi-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for arm-none-eabi-ar... no
checking for ar... ar
checking for archiver @FILE support... @
checking for arm-none-eabi-strip... strip
checking for arm-none-eabi-ranlib... no
checking for ranlib... ranlib
checking command to parse nm output from gcc object... ok
checking for sysroot... no
checking for arm-none-eabi-mt... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... no
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for ANSI C header files... (cached) yes
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking for sys/select.h... (cached) no
checking for sys/socket.h... (cached) no
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking for size_t... yes
checking for working alloca.h... no
checking for alloca... no
checking whether `alloca.c' needs Cray hooks... no
checking stack direction for C alloca... 0
checking for library containing dlopen... -ldl
checking for doxygen... false
checking if gcc supports -fvisibility=hidden... yes
checking whether struct tm has tm_gmtoff member... no
configure: creating ./config.status
config.status: creating libosmocore.pc
config.status: creating libosmocodec.pc
config.status: creating libosmovty.pc
config.status: creating libosmogsm.pc
config.status: creating libosmogb.pc
config.status: creating include/Makefile
config.status: creating src/Makefile
config.status: creating src/vty/Makefile
config.status: creating src/codec/Makefile
config.status: creating src/gsm/Makefile
config.status: creating src/gb/Makefile
config.status: creating tests/Makefile
config.status: creating utils/Makefile
config.status: creating Doxyfile.core
config.status: creating Doxyfile.gsm
config.status: creating Doxyfile.vty
config.status: creating Doxyfile.codec
config.status: creating Makefile
config.status: creating config.h
config.status: executing tests/atconfig commands
config.status: executing depfiles commands
config.status: executing libtool commands
configure: WARNING: unrecognized options: --disable-tests, --disable-tests
cd shared/libosmocore/build-target && make
make[1]: Entering directory `/home/neetesh/GSMP/osmocom-bb/src/shared/libosmocore/build-target'
echo UNKNOWN > ../.version-t && mv ../.version-t ../.version
make  all-recursive
make[2]: Entering directory `/home/neetesh/GSMP/osmocom-bb/src/shared/libosmocore/build-target'
Making all in include
make[3]: Entering directory `/home/neetesh/GSMP/osmocom-bb/src/shared/libosmocore/build-target/include'
  GEN    osmocom/core/crc16gen.h
  GEN    osmocom/core/crc16gen.h
  GEN    osmocom/core/crc32gen.h
  GEN    osmocom/core/crc32gen.h
  GEN    osmocom/core/crc64gen.h
  GEN    osmocom/core/crc64gen.h
  GEN    osmocom/core/crc8gen.h
  GEN    osmocom/core/crc8gen.h
make[3]: Leaving directory `/home/neetesh/GSMP/osmocom-bb/src/shared/libosmocore/build-target/include'
Making all in src
make[3]: Entering directory `/home/neetesh/GSMP/osmocom-bb/src/shared/libosmocore/build-target/src'
  GEN    crc8gen.c
  GEN    crc16gen.c
  GEN    crc32gen.c
  GEN    crc64gen.c
make  all-am
make[4]: Entering directory `/home/neetesh/GSMP/osmocom-bb/src/shared/libosmocore/build-target/src'
  CC     timer.lo
  CC     select.lo
  CC     signal.lo
  CC     msgb.lo
  CC     bits.lo
  CC     bitvec.lo
  CC     statistics.lo
../../src/statistics.c: In function 'osmo_counter_get_by_name':
../../src/statistics.c:72:3: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
  CC     write_queue.lo
  CC     utils.lo
../../src/utils.c: In function 'get_string_value':
../../src/utils.c:49:3: warning: implicit declaration of function 'strcasecmp' [-Wimplicit-function-declaration]
  CC     socket.lo
  CC     logging.lo
../../src/logging.c: In function 'log_parse_category':
../../src/logging.c:151:3: warning: implicit declaration of function 'strcasecmp' [-Wimplicit-function-declaration]
../../src/logging.c: In function 'log_parse_category_mask':
../../src/logging.c:168:2: warning: implicit declaration of function 'strdup' [-Wimplicit-function-declaration]
../../src/logging.c:168:15: warning: incompatible implicit declaration of built-in function 'strdup' [enabled by default]
../../src/logging.c:175:2: warning: implicit declaration of function 'strtok' [-Wimplicit-function-declaration]
../../src/logging.c:175:17: warning: assignment makes pointer from integer without a cast [enabled by default]
../../src/logging.c:179:4: warning: implicit declaration of function 'strstr' [-Wimplicit-function-declaration]
../../src/logging.c:179:18: warning: incompatible implicit declaration of built-in function 'strstr' [enabled by default]
../../src/logging.c:194:4: warning: implicit declaration of function 'strncasecmp' [-Wimplicit-function-declaration]
../../src/logging.c:205:27: warning: assignment makes pointer from integer without a cast [enabled by default]
../../src/logging.c: In function '_file_output':
../../src/logging.c:446:2: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]
../../src/logging.c:446:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
../../src/logging.c:447:2: warning: implicit declaration of function 'fflush' [-Wimplicit-function-declaration]
../../src/logging.c: In function 'log_target_create_file':
../../src/logging.c:520:2: warning: implicit declaration of function 'fopen' [-Wimplicit-function-declaration]
../../src/logging.c:520:23: warning: assignment makes pointer from integer without a cast [enabled by default]
../../src/logging.c: In function 'log_target_find':
../../src/logging.c:544:4: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
../../src/logging.c: In function 'log_target_destroy':
../../src/logging.c:566:4: warning: implicit declaration of function 'fclose' [-Wimplicit-function-declaration]
../../src/logging.c: In function 'log_target_file_reopen':
../../src/logging.c:579:23: warning: assignment makes pointer from integer without a cast [enabled by default]
  CC     logging_syslog.lo
  CC     rate_ctr.lo
../../src/rate_ctr.c: In function 'rate_ctr_get_group_by_name_idx':
../../src/rate_ctr.c:153:3: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
  CC     gsmtap_util.lo
In file included from /home/neetesh/GSMP/osmocom-bb/src/target/firmware/include/swab.h:5:0,
                 from /home/neetesh/GSMP/osmocom-bb/src/target/firmware/include/byteorder.h:12,
                 from /home/neetesh/GSMP/osmocom-bb/src/target/firmware/include/arpa/inet.h:2,
                 from ../../src/gsmtap_util.c:37:
/home/neetesh/GSMP/osmocom-bb/src/target/firmware/include/defines.h:5:0: warning: "__attribute_const__" redefined [enabled by default]
/usr/include/i386-linux-gnu/sys/cdefs.h:241:0: note: this is the location of the previous definition
/home/neetesh/GSMP/osmocom-bb/src/target/firmware/include/asm/swab.h: Assembler messages:
/home/neetesh/GSMP/osmocom-bb/src/target/firmware/include/asm/swab.h:32: Error: no such instruction: `eor %edx,%ecx,%ecx,ror'
make[4]: *** [gsmtap_util.lo] Error 1
make[4]: Leaving directory `/home/neetesh/GSMP/osmocom-bb/src/shared/libosmocore/build-target/src'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/neetesh/GSMP/osmocom-bb/src/shared/libosmocore/build-target/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/neetesh/GSMP/osmocom-bb/src/shared/libosmocore/build-target'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/neetesh/GSMP/osmocom-bb/src/shared/libosmocore/build-target'
make: *** [shared/libosmocore/build-target/src/.libs/libosmocore.a] Error 2




With regards

Neetesh Saxena...



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/baseband-devel/attachments/20140102/0bebb7e6/attachment.htm>


More information about the baseband-devel mailing list