Hi I'm trying to cross-compile pjsip as MIPS kernel module. It fails on the first file. $ make package/pjsip/compile V=99 make[1]: Entering directory `/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core' make[2]: Entering directory `/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/package/e2fsprogs' WARNING: skipping e2fsprogs -- package not selected WARNING: skipping uuidgen -- package not selected WARNING: skipping libblkid -- package not selected WARNING: skipping libext2fs -- package not selected WARNING: skipping tune2fs -- package not selected WARNING: skipping resize2fs -- package not selected WARNING: skipping badblocks -- package not selected WARNING: skipping blkid -- package not selected make[2]: Leaving directory `/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/package/e2fsprogs' make[2]: Entering directory `/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/package/pjsip' (cd /disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/build_dir/target-mips_r2_uClibc-0.9.30.1_easy336/pjsip-oss/pjproject-1.16; autoconf aconfigure.ac > aconfigure) (cd /disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/build_dir/target-mips_r2_uClibc-0.9.30.1_easy336/pjsip-oss/pjproject-1.16/./; if [ -x ./configure ]; then /opt/TWWfsw/bin/gfind /disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/build_dir/target-mips_r2_uClibc-0.9.30.1_easy336/pjsip-oss/pjproject-1.16/ -name config.guess | xargs -r chmod u+w; /opt/TWWfsw/bin/gfind /disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/build_dir/target-mips_r2_uClibc-0.9.30.1_easy336/pjsip-oss/pjproject-1.16/ -name config.guess | xargs -r -n1 cp /disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/scripts/config.guess; /opt/TWWfsw/bin/gfind /disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/build_dir/target-mips_r2_uClibc-0.9.30.1_easy336/pjsip-oss/pjproject-1.16/ -name config.sub | xargs -r chmod u+w; /opt/TWWfsw/bin/gfind /disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/build_dir/target-mips_r2_uClibc-0.9.30.1_easy336/pjsip-oss/pjproject-1.16/ -name config.sub | xargs -r -n1 cp /disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/scripts/config.sub; AR=mips-openwrt-linux-uclibc-ar AS="mips-openwrt-linux-uclibc-gcc -c -Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -msoft-float" LD=mips-openwrt-linux-uclibc-ld NM=mips-openwrt-linux-uclibc-nm CC="mips-openwrt-linux-uclibc-gcc" GCC="mips-openwrt-linux-uclibc-gcc" CXX="mips-openwrt-linux-uclibc-g++" RANLIB=mips-openwrt-linux-uclibc-ranlib STRIP=mips-openwrt-linux-uclibc-strip OBJCOPY=mips-openwrt-linux-uclibc-objcopy OBJDUMP=mips-openwrt-linux-uclibc-objdump SIZE=mips-openwrt-linux-uclibc-size CFLAGS="-Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -msoft-float " CXXFLAGS="-Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -msoft-float " CPPFLAGS="-I/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/include -I/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/staging_dir/target-mips_r2_uClibc-0.9.30.1/include -I/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/include -I/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/include " LDFLAGS="-L/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/lib -L/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/staging_dir/target-mips_r2_uClibc-0.9.30.1/lib -L/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib -L/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/lib " ./configure --target=mips-openwrt-linux --host=mips-openwrt-linux --build=x86_64-redhat-linux --program-prefix="" --program-suffix="" --prefix=/usr/pjsip-oss --exec-prefix=/usr/pjsip-oss --bindir=/usr/pjsip-oss/bin --sbindir=/usr/pjsip-oss/sbin --libexecdir=/usr/pjsip-oss/lib --sysconfdir=/etc --datadir=/usr/pjsip-oss/share --localstatedir=/var --mandir=/usr/pjsip-oss/man --infodir=/usr/pjsip-oss/info --disable-nls --enable-g711-codec --disable-l16-codec --disable-g7221-codec --disable-ilbc-coder --disable-libsamplerate --disable-ipp --disable-ssl --enable-oss --enable-sound ; fi; ) aconfigure: WARNING: unrecognized options: --disable-nls, --disable-ilbc-coder aconfigure: loading site script /disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/include/site/mips-openwrt-linux-uclibc checking build system type... x86_64-redhat-linux-gnu checking host system type... mips-openwrt-linux-gnu checking target system type... mips-openwrt-linux-gnu checking for mips-openwrt-linux-gcc... mips-openwrt-linux-uclibc-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 mips-openwrt-linux-uclibc-gcc accepts -g... yes checking for mips-openwrt-linux-uclibc-gcc option to accept ISO C89... none needed checking whether we are using the GNU C++ compiler... yes checking whether mips-openwrt-linux-uclibc-g++ accepts -g... yes checking for pthread_create in -lpthread... yes checking for puts in -lwsock32... no checking for puts in -lws2_32... no checking for puts in -lole32... no checking for puts in -lwinmm... no checking for puts in -lsocket... no checking for puts in -lrt... yes checking for puts in -lnsl... yes checking for uuid_generate in -luuid... yes checking for uuid_generate in -luuid... (cached) yes Setting PJ_M_NAME to mips checking memory alignment... 4 bytes (default) checking how to run the C preprocessor... mips-openwrt-linux-uclibc-gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -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 whether byte ordering is bigendian... (cached) yes Checking if floating point is disabled... no checking for fmod in -lm... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking assert.h usability... yes checking assert.h presence... yes checking for assert.h... yes checking ctype.h usability... yes checking ctype.h presence... yes checking for ctype.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking linux/socket.h usability... yes checking linux/socket.h presence... yes checking for linux/socket.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking malloc.h usability... yes checking malloc.h presence... yes checking for malloc.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking netinet/in_systm.h usability... yes checking netinet/in_systm.h presence... yes checking for netinet/in_systm.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking for netinet/ip.h... yes checking netinet/tcp.h usability... yes checking netinet/tcp.h presence... yes checking for netinet/tcp.h... yes checking ifaddrs.h usability... yes checking ifaddrs.h presence... yes checking for ifaddrs.h... yes checking for getifaddrs... yes checking semaphore.h usability... yes checking semaphore.h presence... yes checking for semaphore.h... yes checking setjmp.h usability... yes checking setjmp.h presence... yes checking for setjmp.h... yes checking stdarg.h usability... yes checking stdarg.h presence... yes checking for stdarg.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking stdio.h usability... yes checking stdio.h presence... yes checking for stdio.h... yes checking for stdint.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.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 sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/timeb.h usability... yes checking sys/timeb.h presence... yes checking for sys/timeb.h... yes checking for sys/types.h... (cached) yes checking sys/filio.h usability... no checking sys/filio.h presence... no checking for sys/filio.h... no checking sys/sockio.h usability... no checking sys/sockio.h presence... no checking for sys/sockio.h... no checking sys/utsname.h usability... yes checking sys/utsname.h presence... yes checking for sys/utsname.h... yes checking time.h usability... yes checking time.h presence... yes checking for time.h... yes checking for unistd.h... (cached) yes checking winsock.h usability... no checking winsock.h presence... no checking for winsock.h... no checking winsock2.h usability... no checking winsock2.h presence... no checking for winsock2.h... no checking for mswsock.h... no checking ws2tcpip.h usability... no checking ws2tcpip.h presence... no checking for ws2tcpip.h... no checking uuid/uuid.h usability... yes checking uuid/uuid.h presence... yes checking for uuid/uuid.h... yes checking for net/if.h... yes Setting PJ_OS_NAME to mips-openwrt-linux-gnu Setting PJ_HAS_ERRNO_VAR to 1 Setting PJ_HAS_HIGH_RES_TIMER to 1 Setting PJ_HAS_MALLOC to 1 Setting PJ_NATIVE_STRING_IS_UNICODE to 0 Setting PJ_ATOMIC_VALUE_TYPE to long checking if inet_aton() is available... yes checking if inet_pton() is available... yes checking if inet_ntop() is available... yes checking if getaddrinfo() is available... yes checking if sockaddr_in has sin_len member... no checking if socklen_t is available... yes checking if SO_ERROR is available... yes checking if pthread_rwlock_t is available... no checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... no checking if pthread_mutexattr_settype() is available... no checking if pthread_mutexattr_t has recursive member... no checking ioqueue backend... select() checking sys/soundcard.h usability... yes checking sys/soundcard.h presence... yes checking for sys/soundcard.h... yes checking linux/soundcard.h usability... yes checking linux/soundcard.h presence... yes checking for linux/soundcard.h... yes checking machine/soundcard.h usability... no checking machine/soundcard.h presence... no checking for machine/soundcard.h... no checking alsa/version.h usability... no checking alsa/version.h presence... no checking for alsa/version.h... no Checking sound device backend... unix Checking if small filter is disabled... no Checking if large filter is disabled... no Checking if Speex AEC is disabled...no Checking if L16 codecs are disabled...yes Checking if GSM codec is disabled...no Checking if G.722 codec is disabled...no Checking if G.722.1 codec is disabled...yes Checking if Speex codec is disabled...no Checking if iLBC codec is disabled...no checking for src_new in -lsamplerate... no Building libresample as shared library... no Skipping Intel IPP settings (not wanted) Checking if SSL support is disabled... yes checking for OpenCORE AMR-NB installations.. checking opencore-amrnb/interf_enc.h usability... no checking opencore-amrnb/interf_enc.h presence... no checking for opencore-amrnb/interf_enc.h... no checking for Encoder_Interface_init in -lopencore-amrnb... no checking if select() needs correct nfds... no (default) ** Decided that select() doesn't need correct nfds (please check) checking if pj_thread_create() should enforce stack size... no (default) checking if pj_thread_create() should allocate stack... no (default) ** Setting non-blocking recv() retval to EAGAIN (please check) ** Setting non-blocking connect() retval to EINPROGRESS (please check) aconfigure: creating ./config.status config.status: creating build.mak config.status: creating build/os-auto.mak config.status: creating build/cc-auto.mak config.status: creating pjlib/build/os-auto.mak config.status: creating pjlib-util/build/os-auto.mak config.status: creating pjmedia/build/os-auto.mak config.status: creating pjsip/build/os-auto.mak config.status: creating third_party/build/os-auto.mak config.status: creating third_party/build/portaudio/os-auto.mak config.status: creating pjlib/include/pj/compat/os_auto.h config.status: creating pjlib/include/pj/compat/m_auto.h config.status: creating pjmedia/include/pjmedia/config_auto.h config.status: creating pjmedia/include/pjmedia-codec/config_auto.h config.status: creating pjsip/include/pjsip/sip_autoconf.h aconfigure: WARNING: unrecognized options: --disable-nls, --disable-ilbc-coder Configurations for current target have been written to 'build.mak', and 'os-auto.mak' in various build directories, and pjlib/include/pj/compat/os_auto.h. Further customizations can be put in: - 'user.mak' - 'pjlib/include/pj/config_site.h' The next step now is to run 'make dep' and 'make'. touch /disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/build_dir/target-mips_r2_uClibc-0.9.30.1_easy336/pjsip-oss/pjproject-1.16/.configured_ CFLAGS=" -I/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/include -I/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/staging_dir/target-mips_r2_uClibc-0.9.30.1/include -I/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/include -I/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/include " LDFLAGS="-L/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/lib -L/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/staging_dir/target-mips_r2_uClibc-0.9.30.1/lib -L/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib -L/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/lib -L/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/lib -lgcc_s" make -C /disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/build_dir/target-mips_r2_uClibc-0.9.30.1_easy336/pjsip-oss/pjproject-1.16/. KERNEL_DIR="/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/build_dir/linux-lantiq_svip_be_easy336/linux-2.6.32.60" KERNEL_ARCH="mips" PJPROJECT_DIR="/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/build_dir/target-mips_r2_uClibc-0.9.30.1_easy336/pjsip-oss/pjproject-1.16" make[3]: Entering directory `/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/build_dir/target-mips_r2_uClibc-0.9.30.1_easy336/pjsip-oss/pjproject-1.16' for dir in pjlib/build pjlib-util/build pjnath/build third_party/build pjmedia/build pjsip/build pjsip-apps/build ; do \ if make -C $dir all; then \ true; \ else \ exit 1; \ fi; \ done make[6]: *** [silentoldconfig] Error 1 make[5]: *** [silentoldconfig] Error 2 make[4]: *** No rule to make target `mips'. Stop. make[4]: Entering directory `/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/build_dir/target-mips_r2_uClibc-0.9.30.1_easy336/pjsip-oss/pjproject-1.16/pjlib/build' echo Making ../lib/pjlib.ko Making ../lib/pjlib.ko make -f /disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/build_dir/target-mips_r2_uClibc-0.9.30.1_easy336/pjsip-oss/pjproject-1.16/build/rules.mak APP=PJLIB app=pjlib ../lib/pjlib.ko make[5]: Entering directory `/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/build_dir/target-mips_r2_uClibc-0.9.30.1_easy336/pjsip-oss/pjproject-1.16/pjlib/build' mkdir -p output/pjlib-mips-openwrt-linux-gnu mkdir -p output/pjlib-mips-openwrt-linux-gnu/compat mips-openwrt-linux-uclibc-gcc -c -Wall -DPJ_LINUX_KERNEL=1 -D__KERNEL__ -I/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/build_dir/linux-lantiq_svip_be_easy336/linux-2.6.32.60/include -iwithprefix include -nostdinc -msoft-float make[4]: Entering directory `/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/build_dir/linux-lantiq_svip_be_easy336/linux-2.6.32.60' scripts/kconfig/conf -s arch/x86/Kconfig * * Restart config... * * * General setup * Prompt for development and/or incomplete code/drivers (EXPERIMENTAL) [Y/n/?] y Local version - append to kernel release (LOCALVERSION) [] Automatically append version information to the version string (LOCALVERSION_AUTO) [N/y/?] n Kernel compression mode > 1. Gzip (KERNEL_GZIP) (NEW) 2. Bzip2 (KERNEL_BZIP2) (NEW) 3. LZMA (KERNEL_LZMA) (NEW) 4. LZO (KERNEL_LZO) (NEW) choice[1-4?]: aborted! Console input/output is redirected. Run 'make oldconfig' to update configuration. -I/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/include -I/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/staging_dir/target-mips_r2_uClibc-0.9.30.1/include -I/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/include -I/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/include -DMODULE make[4]: Leaving directory `/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/build_dir/linux-lantiq_svip_be_easy336/linux-2.6.32.60' -I/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/include -I/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/staging_dir/target-mips_r2_uClibc-0.9.30.1/include -I/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/include -I/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/include -I../include -DKBUILD_MODNAME=pjlib -DKBUILD_BASENAME=pjlib \ -o output/pjlib-mips-openwrt-linux-gnu/compat/sigjmp.o \ ../src/pj/compat/sigjmp.c /bin/sh: -c: line 0: unexpected EOF while looking for matching `'' /bin/sh: -c: line 3: syntax error: unexpected end of file make[5]: *** [output/pjlib-mips-openwrt-linux-gnu/compat/sigjmp.o] Error 2 make[5]: Leaving directory `/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/build_dir/target-mips_r2_uClibc-0.9.30.1_easy336/pjsip-oss/pjproject-1.16/pjlib/build' make[4]: *** [../lib/pjlib.ko] Error 2 make[4]: Leaving directory `/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/build_dir/target-mips_r2_uClibc-0.9.30.1_easy336/pjsip-oss/pjproject-1.16/pjlib/build' make[3]: *** [all] Error 1 make[3]: Leaving directory `/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/build_dir/target-mips_r2_uClibc-0.9.30.1_easy336/pjsip-oss/pjproject-1.16' make[2]: *** [/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/build_dir/target-mips_r2_uClibc-0.9.30.1_easy336/pjsip-oss/pjproject-1.16/.built] Error 2 make[2]: Leaving directory `/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core/package/pjsip' make[1]: *** [package/pjsip/compile] Error 2 make[1]: Leaving directory `/disk/fs1/tmp2/pukitis/zen_for_push/openwrt/core' make: *** [package/pjsip/compile] Error 2 Regards, Martins. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20140326/0b394b2c/attachment-0001.html>