Project

General

Profile

Actions

Bug #1462

open

../../src/utils.c:182:7: error: only weak aliases are supported in this configuration

Added by about 8 years ago. Updated about 8 years ago.

Status:
New
Priority:
High
Assignee:
-
Category:
OsmocomBB Layer 1 (Coding)
Target version:
-
Start date:
Due date:
% Done:

0%

Resolution:
Spec Reference:

Description

Build fails on OSX Lion

bash-3.2# make
mkdir shared/libosmocore/build-target
cd shared/libosmocore/build-target && ../configure \
--host=arm-elf --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/Users/blombo/osmocom-bb/src/target/firmware/include -nostartfiles -nodefaultlibs"
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-elf-strip... arm-elf-strip
checking for a thread-safe mkdir -p... ../install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make sets $(MAKE)... (cached) yes
checking for arm-elf-gcc... arm-elf-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 arm-elf-gcc accepts -g... yes
checking for arm-elf-gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of arm-elf-gcc... gcc3
checking build system type... x86_64-apple-darwin11.2.0
checking host system type... arm-unknown-elf
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by arm-elf-gcc... /Volumes/Speicher/opt/local/arm-elf/bin/ld
checking if the linker (/Volumes/Speicher/opt/local/arm-elf/bin/ld) is GNU ld... yes
checking for BSD
or MS-compatible name lister (nm)... /opt/local/bin//arm-elf-nm B
checking the name lister (/opt/local/bin//arm-elf-nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-apple-darwin11.2.0 file names to arm-unknown-elf format... func_convert_file_noop
checking how to convert x86_64-apple-darwin11.2.0 file names to toolchain format... func_convert_file_noop
checking for /Volumes/Speicher/opt/local/arm-elf/bin/ld option to reload object files... -r
checking for arm-elf-objdump... arm-elf-objdump
checking how to recognize dependent libraries... unknown
checking for arm-elf-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf s\n
checking for arm-elf-ar... arm-elf-ar
checking for archiver FILE support...
checking for arm-elf-strip... (cached) arm-elf-strip
checking for arm-elf-ranlib... arm-elf-ranlib
checking command to parse /opt/local/bin//arm-elf-nm -B output from arm-elf-gcc object... ok
checking for sysroot... no
checking for arm-elf-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... arm-elf-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... no
checking for objdir... .libs
checking if arm-elf-gcc supports -fno-rtti -fno-exceptions... no
checking for arm-elf-gcc option to produce PIC... -fPIC -DPIC
checking if arm-elf-gcc PIC flag -fPIC -DPIC works... yes
checking if arm-elf-gcc static flag -static works... yes
checking if arm-elf-gcc supports -c -o file.o... yes
checking if arm-elf-gcc supports -c -o file.o... (cached) yes
checking whether the arm-elf-gcc linker (/Volumes/Speicher/opt/local/arm-elf/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... no
checking execinfo.h presence... no
checking for execinfo.h... no
checking for sys/select.h... (cached) no
checking for sys/socket.h... (cached) no
checking syslog.h usability... no
checking syslog.h presence... no
checking for syslog.h... no
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... yes
checking for alloca... yes
checking for library containing dlopen... no
checking for doxygen... false
checking if arm-elf-gcc supports -fvisibility=hidden... yes
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 include/osmocom/Makefile
config.status: creating include/osmocom/vty/Makefile
config.status: creating include/osmocom/codec/Makefile
config.status: creating include/osmocom/crypt/Makefile
config.status: creating include/osmocom/gsm/Makefile
config.status: creating include/osmocom/gsm/protocol/Makefile
config.status: creating include/osmocom/core/Makefile
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 tests/Makefile
config.status: creating tests/timer/Makefile
config.status: creating tests/sms/Makefile
config.status: creating tests/msgfile/Makefile
config.status: creating tests/ussd/Makefile
config.status: creating tests/smscb/Makefile
config.status: creating tests/bits/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 depfiles commands
config.status: executing libtool commands
cd shared/libosmocore/build-target &x%x
make
make all-recursive
Making all in include
Making all in osmocom
Making all in codec
maker5: Nothing to be done for @all'.
Making all in crypt
maker5: Nothing to be done for @all'.
Making all in gsm
Making all in protocol
maker6: Nothing to be done for @all'.
maker6: Nothing to be done for @all-am'.
Making all in core
SED ../../../../include/osmocom/core/crcXXgen.h.tpl -> crc8gen.h
SED ../../../../include/osmocom/core/crcXXgen.h.tpl -> crc16gen.h
SED ../../../../include/osmocom/core/crcXXgen.h.tpl -> crc32gen.h
SED ../../../../include/osmocom/core/crcXXgen.h.tpl -> crc64gen.h
maker5: Nothing to be done for @all-am'.
maker4: Nothing to be done for @all-am'.
Making all in src
Making all in .
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_value_string':
../../src/utils.c:33:2: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'uint32_t' [-Wformat]
../../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_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:178:4: warning: implicit declaration of function 'strstr' [-Wimplicit-function-declaration]
../../src/logging.c:178:18: warning: incompatible implicit declaration of built-in function 'strstr' [enabled by default]
../../src/logging.c:203:27: warning: assignment makes pointer from integer without a cast [enabled by default]
../../src/logging.c: In function '_file_output':
../../src/logging.c:433:2: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]
../../src/logging.c:433:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
../../src/logging.c:434:2: warning: implicit declaration of function 'fflush' [-Wimplicit-function-declaration]
../../src/logging.c: In function 'log_target_create_file':
../../src/logging.c:506:2: warning: implicit declaration of function 'fopen' [-Wimplicit-function-declaration]
../../src/logging.c:506:23: warning: assignment makes pointer from integer without a cast [enabled by default]
../../src/logging.c: In function 'log_target_find':
../../src/logging.c:530:4: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
../../src/logging.c: In function 'log_target_destroy':
../../src/logging.c:552:4: warning: implicit declaration of function 'fclose' [-Wimplicit-function-declaration]
../../src/logging.c: In function 'log_target_file_reopen':
../../src/logging.c:565: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
CC crc16.lo
CC panic.lo
CC backtrace.lo
CC conv.lo
CC application.lo
CC rbtree.lo
SED ../../src/crcXXgen.c.tpl -> crc8gen.c
CC crc8gen.lo
SED ../../src/crcXXgen.c.tpl -> crc16gen.c
CC crc16gen.lo
SED ../../src/crcXXgen.c.tpl -> crc32gen.c
CC crc32gen.lo
SED ../../src/crcXXgen.c.tpl -> crc64gen.c
CC crc64gen.lo
CCLD libosmocore.la
Making all in vty
maker4: Nothing to be done for @all'.
Making all in codec
CC gsm610.lo
CC gsm620.lo
CC gsm660.lo
CC gsm690.lo
CCLD libosmocodec.la
Making all in gsm
CC a5.lo
CC rxlev_stat.lo
CC tlv_parser.lo
CC comp128.lo
CC gsm_utils.lo
../../../src/gsm/gsm_utils.c: In function 'gsm_7bit_encode':
../../../src/gsm/gsm_utils.c:253:13: warning: variable 'z' set but not used [-Wunused-but-set-variable]
CC rsl.lo
CC gsm48.lo
../../../src/gsm/gsm48.c: In function 'gsm48_mi_to_string':
../../../src/gsm/gsm48.c:348:4: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'uint32_t' [-Wformat]
CC gsm48_ie.lo
CC gsm0808.lo
CC sysinfo.lo
CC gprs_cipher_core.lo
CC gsm0480.lo
../../../src/gsm/gsm0480.c: In function 'parse_process_uss_req':
../../../src/gsm/gsm0480.c:405:7: warning: pointer targets in passing argument 1 of 'gsm_7bit_decode' differ in signedness [-Wpointer-sign]
../../../include/osmocom/gsm/gsm_utils.h:59:5: note: expected 'char ' but argument is of type 'uint8_t *'
CC abis_nm.lo
CC gsm0502.lo
CC gsm0411_utils.lo
CC gsm0411_smc.lo
CC gsm0411_smr.lo
CC lapd_core.lo
../../../src/gsm/lapd_core.c: In function 'lapd_acknowledge':
../../../src/gsm/lapd_core.c:710:38: warning: variable 't200_start' set but not used [-Wunused-but-set-variable]
../../../src/gsm/lapd_core.c: In function 'lapd_rx_u':
../../../src/gsm/lapd_core.c:835:5: warning: implicit declaration of function 'memcmp' [-Wimplicit-function-declaration]
CC lapdm.lo
CCLD libosmogsm.la
Making all in tests
maker4: Nothing to be done for @all-am'.
Making all in utils
maker3: Nothing to be done for @all'.
maker3: Nothing to be done for @all-am'.
mkdir shared/libosmocore/build-host
cd shared/libosmocore/build-host && ../configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ../install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make sets $(MAKE)... (cached) yes
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... no
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... x86_64-apple-darwin11.2.0
checking host system type... x86_64-apple-darwin11.2.0
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for BSD
or MS-compatible name lister (nm)... /usr/bin/nm
checking the name lister (/usr/bin/nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-apple-darwin11.2.0 file names to x86_64-apple-darwin11.2.0 format... func_convert_file_noop
checking how to convert x86_64-apple-darwin11.2.0 file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... no
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf s\n
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
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... -fno-common -DPIC
checking if gcc PIC flag -fno-common -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... darwin11.2.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
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 sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
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... yes
checking for alloca... yes
checking for library containing dlopen... none required
checking for doxygen... false
checking if gcc supports -fvisibility=hidden... yes
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 include/osmocom/Makefile
config.status: creating include/osmocom/vty/Makefile
config.status: creating include/osmocom/codec/Makefile
config.status: creating include/osmocom/crypt/Makefile
config.status: creating include/osmocom/gsm/Makefile
config.status: creating include/osmocom/gsm/protocol/Makefile
config.status: creating include/osmocom/core/Makefile
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 tests/Makefile
config.status: creating tests/timer/Makefile
config.status: creating tests/sms/Makefile
config.status: creating tests/msgfile/Makefile
config.status: creating tests/ussd/Makefile
config.status: creating tests/smscb/Makefile
config.status: creating tests/bits/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 depfiles commands
config.status: executing libtool commands
cd shared/libosmocore/build-host &x%x
make
make all-recursive
Making all in include
Making all in osmocom
Making all in vty
maker5: Nothing to be done for @all'.
Making all in codec
maker5: Nothing to be done for @all'.
Making all in crypt
maker5: Nothing to be done for @all'.
Making all in gsm
Making all in protocol
maker6: Nothing to be done for @all'.
maker6: Nothing to be done for @all-am'.
Making all in core
SED ../../../../include/osmocom/core/crcXXgen.h.tpl -> crc8gen.h
SED ../../../../include/osmocom/core/crcXXgen.h.tpl -> crc16gen.h
SED ../../../../include/osmocom/core/crcXXgen.h.tpl -> crc32gen.h
SED ../../../../include/osmocom/core/crcXXgen.h.tpl -> crc64gen.h
maker5: Nothing to be done for @all-am'.
maker4: Nothing to be done for @all-am'.
Making all in src
Making all in .
CC timer.lo
CC select.lo
CC signal.lo
CC msgb.lo
CC bits.lo
CC bitvec.lo
CC statistics.lo
CC write_queue.lo
CC utils.lo
../../src/utils.c:182:7: error: only weak aliases are supported in this configuration
maker4:
[utils.lo] Error 1
maker3:
[all-recursive] Error 1
maker2:
[all-recursive] Error 1
maker1:
[all] Error 2
make: *
* [shared/libosmocore/build-host/src/.libs/libosmocore.la] Error 2

Actions #1

Updated by laforge about 8 years ago

  • Assignee deleted (laforge)
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)