From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wg0-x22f.google.com ([2a00:1450:400c:c00::22f]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1YalFa-0001HO-PA for ptxdist@pengutronix.de; Wed, 25 Mar 2015 14:21:41 +0100 Received: by wgs2 with SMTP id 2so27263217wgs.1 for ; Wed, 25 Mar 2015 06:21:33 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <20150126134428.GA30319@pengutronix.de> Date: Wed, 25 Mar 2015 09:21:32 -0400 Message-ID: From: Jon Ringle Subject: Re: [ptxdist] Problems building libnl3 Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: "ptxdist@pengutronix.de" On Tue, Jan 27, 2015 at 11:22 PM, Jon Ringle wrote: > On Mon, Jan 26, 2015 at 8:44 AM, Michael Olbrich > wrote: >> >> Hi, >> >> On Wed, Jan 21, 2015 at 02:22:26PM -0500, Jon Ringle wrote: >> > After updating to ptxdist-2015-01.0, I am having a problem build libnl3. >> > I >> > tried rebuilding host-flex, hoping this might do the trick, but it did >> > not >> > help. >> > Any ideas? >> > >> > Jon >> > >> > ---------------------- >> > target: libnl3.compile >> > ---------------------- >> > >> > make[1]: Entering directory >> > >> > `/home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/build-target/libnl-3.2.25' >> > Making all in include >> > make[2]: Entering directory >> > >> > `/home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/build-target/libnl-3.2.25/include' >> > make[2]: Nothing to be done for `all'. >> > make[2]: Leaving directory >> > >> > `/home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/build-target/libnl-3.2.25/include' >> > Making all in lib >> > make[2]: Entering directory >> > >> > `/home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/build-target/libnl-3.2.25/lib' >> >> Is this from a clean build? I see some more stuff here: >> >> GEN route/cls/ematch_grammar.c >> GEN route/cls/ematch_syntax.c >> GEN route/pktloc_grammar.c >> GEN route/pktloc_syntax.c >> >> Can you send the output from "ptxdist clean libnl3 ; ptxdist -v compile >> libnl3"? Maybe we can see some more stuff there. $ ptxdist clean libnl3 ; ptxdist -v compile libnl3 -------------------- target: libnl3.clean -------------------- Deleting stage files: /home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/state/libnl3.extract /home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/state/libnl3.extract.post /home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/state/libnl3.get /home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/state/libnl3.libnl-3.2.25.tar.gz.stamp /home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/state/libnl3.prepare Deleting src dir: /home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/build-target/libnl-3.2.25 ------------------ target: libnl3.get ------------------ finished target libnl3.get ---------------------- target: libnl3.extract ---------------------- extract: pkg_src=/home/local/GRIDPOINT/jringle/ptxdist-src/libnl-3.2.25.tar.gz extract: pkg_extract_dir=ec1k-rootfs/platform-EC1K/build-target/libnl-3.2.25 patchin: no patches found finished target libnl3.extract --------------------------- target: libnl3.extract.post --------------------------- patchin: fixup: ec1k-rootfs/platform-EC1K/build-target/libnl-3.2.25/configure ec1k-rootfs/platform-EC1K/build-target/libnl-3.2.25/build-aux/ltmain.sh ec1k-rootfs/platform-EC1K/build-target/libnl-3.2.25/build-aux/config.sub patchin: fixup: done finished target libnl3.extract.post ---------------------- target: libnl3.prepare ---------------------- ptxdist: executing: PATH=/home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-cross/bin:/home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-cross/sbin:\/home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-host/lib/wrapper:/home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-host/bin:/home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-host/sbin:/home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/selected_toolchain:/usr/local/lib/ptxdist-2015.03.0_GP/bin:/home/local/GRIDPOINT/jringle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/OSELAS.Toolchain-2013.12.1/arm-v5te-linux-gnueabi/gcc-4.8.2-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/bin:/opt/arm-2009q1/bin PKG_CONFIG_PATH='' PKG_CONFIG_LIBDIR='/home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-target/lib/pkgconfig:/home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-target/usr/lib/pkgconfig:/home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-target/share/pkgconfig:/home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-target/usr/share/pkgconfig' SYSROOT='/home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-target' V=1 VERBOSE=1 AR=arm-v5te-linux-gnueabi-ar AS=arm-v5te-linux-gnueabi-as LD=arm-v5te-linux-gnueabi-ld NM=arm-v5te-linux-gnueabi-nm CC=arm-v5te-linux-gnueabi-gcc CXX=arm-v5te-linux-gnueabi-g++ CPP=arm-v5te-linux-gnueabi-cpp RANLIB=arm-v5te-linux-gnueabi-ranlib READELF=arm-v5te-linux-gnueabi-readelf OBJCOPY=arm-v5te-linux-gnueabi-objcopy OBJDUMP=arm-v5te-linux-gnueabi-objdump STRIP=arm-v5te-linux-gnueabi-strip DLLTOOL=arm-v5te-linux-gnueabi-dlltool GNAT=arm-v5te-linux-gnueabi-gnat GNATBIND=arm-v5te-linux-gnueabi-gnatbind GNATCHOP=arm-v5te-linux-gnueabi-gnatchop GNATCLEAN=arm-v5te-linux-gnueabi-gnatclean GNATFIND=arm-v5te-linux-gnueabi-gnatfind GNATKR=arm-v5te-linux-gnueabi-gnatkr GNATLINK=arm-v5te-linux-gnueabi-gnatlink GNATLS=arm-v5te-linux-gnueabi-gnatls GNATMAKE=arm-v5te-linux-gnueabi-gnatmake GNATNAME=arm-v5te-linux-gnueabi-gnatname GNATPREP=arm-v5te-linux-gnueabi-gnatprep GNATXREF=arm-v5te-linux-gnueabi-gnatxref CC_FOR_BUILD=gcc CPP_FOR_BUILD=gcc LINK_FOR_BUILD=gcc SYSROOT="/home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-target" PKG_CONFIG_PATH='' PKG_CONFIG_LIBDIR='/home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-target/lib/pkgconfig:/home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-target/usr/lib/pkgconfig:/home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-target/share/pkgconfig:/home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-target/usr/share/pkgconfig' PKG_CONFIG="/home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-cross/bin/arm-v5te-linux-gnueabi-pkg-config" enable_option_checking=fatal enable_maintainer_mode=no enable_static=no ac_cv_file__dev_random=yes ac_cv_file__proc_self_exe=yes ac_cv_file__proc_self_fd=yes ac_cv_file__proc_self_maps=yes ac_cv_func_dcgettext=yes ac_cv_func_getpgrp_void=yes ac_cv_func_getrlimit=yes ac_cv_func_malloc_0_nonnull=yes ac_cv_func_memcmp_clean=yes ac_cv_func_memcmp_working=yes ac_cv_func_nonposix_getgrgid_r=no ac_cv_func_nonposix_getpwuid_r=no ac_cv_func_posix_getgrgid_r=yes ac_cv_func_posix_getpwnam_r=yes ac_cv_func_posix_getpwuid_r=yes ac_cv_func_printf_unix98=yes ac_cv_func_realloc_0_nonnull=yes ac_cv_func_setgrent_void=yes ac_cv_func_setpgrp_void=yes ac_cv_func_setvbuf_reversed=no ac_cv_func_strstr=yes ac_cv_func_strtod=yes ac_cv_func_strtoul=yes ac_cv_func_vsnprintf_c99=yes ac_cv_func_wait3_rusage=yes ac_cv_have_abstract_sockets=yes ac_cv_lib_c_inet_aton=yes ac_cv_sizeof_long_double="8" ac_cv_sizeof_long_long=8 ac_cv_sysv_ipc=yes ac_cv_type_uintptr_t=yes bash_cv_func_ctype_nonascii=yes bash_cv_func_sigsetjmp=present bash_cv_func_strcoll_broken=no bash_cv_must_reinstall_sighandlers=no glib_cv_long_long_format="ll" gt_cv_func_gettext_libintl=yes ac_cv_func_fork=yes ac_cv_func_fork_works=yes ac_cv_func_iconv_open=yes ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=/usr/lib --host=arm-v5te-linux-gnueabi --build=x86_64-host-linux-gnu --disable-manpages --enable-shared --disable-static --disable-cli --enable-pthreads checking for a BSD-compatible install... /usr/local/lib/ptxdist-2015.03.0_GP/bin/install -c checking whether build environment is sane... yes checking for arm-v5te-linux-gnueabi-strip... arm-v5te-linux-gnueabi-strip checking for a thread-safe mkdir -p... /usr/local/lib/ptxdist-2015.03.0_GP/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking for style of include used by make... GNU checking for arm-v5te-linux-gnueabi-gcc... arm-v5te-linux-gnueabi-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-v5te-linux-gnueabi-gcc accepts -g... yes checking for arm-v5te-linux-gnueabi-gcc option to accept ISO C89... none needed checking dependency style of arm-v5te-linux-gnueabi-gcc... gcc3 checking for arm-v5te-linux-gnueabi-ar... arm-v5te-linux-gnueabi-ar checking the archiver (arm-v5te-linux-gnueabi-ar) interface... ar checking for arm-v5te-linux-gnueabi-gcc... (cached) arm-v5te-linux-gnueabi-gcc checking whether we are using the GNU C compiler... (cached) yes checking whether arm-v5te-linux-gnueabi-gcc accepts -g... (cached) yes checking for arm-v5te-linux-gnueabi-gcc option to accept ISO C89... (cached) none needed checking dependency style of arm-v5te-linux-gnueabi-gcc... (cached) gcc3 checking whether arm-v5te-linux-gnueabi-gcc and cc understand -c and -o together... yes checking build system type... x86_64-host-linux-gnu checking host system type... arm-v5te-linux-gnueabi checking how to print strings... printf checking for a sed that does not truncate output... /usr/local/lib/ptxdist-2015.03.0_GP/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 arm-v5te-linux-gnueabi-gcc... arm-v5te-linux-gnueabi-ld checking if the linker (arm-v5te-linux-gnueabi-ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... arm-v5te-linux-gnueabi-nm checking the name lister (arm-v5te-linux-gnueabi-nm) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 3458764513820540925 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert x86_64-host-linux-gnu file names to arm-v5te-linux-gnueabi format... func_convert_file_noop checking how to convert x86_64-host-linux-gnu file names to toolchain format... func_convert_file_noop checking for arm-v5te-linux-gnueabi-ld option to reload object files... -r checking for arm-v5te-linux-gnueabi-objdump... arm-v5te-linux-gnueabi-objdump checking how to recognize dependent libraries... pass_all checking for arm-v5te-linux-gnueabi-dlltool... arm-v5te-linux-gnueabi-dlltool checking how to associate runtime and link libraries... printf %s\n checking for arm-v5te-linux-gnueabi-ar... (cached) arm-v5te-linux-gnueabi-ar checking for archiver @FILE support... @ checking for arm-v5te-linux-gnueabi-strip... (cached) arm-v5te-linux-gnueabi-strip checking for arm-v5te-linux-gnueabi-ranlib... arm-v5te-linux-gnueabi-ranlib checking command to parse arm-v5te-linux-gnueabi-nm output from arm-v5te-linux-gnueabi-gcc object... ok checking for sysroot... no checking for arm-v5te-linux-gnueabi-mt... no checking for mt... mt configure: WARNING: using cross tools not prefixed with host triplet checking if mt is a manifest tool... no checking how to run the C preprocessor... arm-v5te-linux-gnueabi-cpp 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 arm-v5te-linux-gnueabi-gcc supports -fno-rtti -fno-exceptions... no checking for arm-v5te-linux-gnueabi-gcc option to produce PIC... -fPIC -DPIC checking if arm-v5te-linux-gnueabi-gcc PIC flag -fPIC -DPIC works... yes checking if arm-v5te-linux-gnueabi-gcc static flag -static works... yes checking if arm-v5te-linux-gnueabi-gcc supports -c -o file.o... yes checking if arm-v5te-linux-gnueabi-gcc supports -c -o file.o... (cached) yes checking whether the arm-v5te-linux-gnueabi-gcc linker (arm-v5te-linux-gnueabi-ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so 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... no checking for flex... flex checking for bison... bison -y checking for an ANSI C-conforming const... yes checking for inline... inline checking pkg-config is at least version 0.9.0... yes checking for CHECK... no configure: WARNING: *** Disabling building of unit tests checking for pow in -lm... yes checking for pthread_mutex_lock in -lpthread... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating libnl.sym config.status: creating libnl-3.0.pc config.status: creating libnl-route-3.0.pc config.status: creating libnl-genl-3.0.pc config.status: creating libnl-nf-3.0.pc config.status: creating libnl-cli-3.0.pc config.status: creating lib/Makefile config.status: creating include/Makefile config.status: creating src/Makefile config.status: creating src/lib/Makefile config.status: creating tests/Makefile config.status: creating man/Makefile config.status: creating python/Makefile config.status: creating python/setup.py config.status: creating python/doc/Makefile config.status: creating python/examples/Makefile config.status: creating python/netlink/Makefile config.status: creating python/netlink/genl/Makefile config.status: creating python/netlink/route/Makefile config.status: creating python/tests/Makefile config.status: creating include/netlink/version.h config.status: creating lib/defs.h config.status: executing depfiles commands config.status: executing libtool commands ------------------------------------------------------------------------------- NOTE There have been some changes starting with 3.2 regarding where and how libnl is being installed on the system in order to allow multiple libnl versions to be installed in parallel: - Headers will be installed in ${prefix}/include/libnl3, therefore you will need to add "-I/usr/include/libnl3" to CFLAGS - The library basename was renamed to libnl-3, i.e. the SO names become libnl-3.so., libnl-route-3.so, etc. - libtool versioning was assumed, to ease detection of compatible library versions. If you are using pkg-config for detecting and linking against the library things will continue magically as if nothing every happened. If you are linking manually you need to adapt your Makefiles or switch to using pkg-config files. ------------------------------------------------------------------------------- finished target libnl3.prepare ---------------------- target: libnl3.compile ---------------------- ptxdist: executing: PATH=/home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-cross/bin:/home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-cross/sbin:\/home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-host/lib/wrapper:/home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-host/bin:/home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-host/sbin:/home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/selected_toolchain:/usr/local/lib/ptxdist-2015.03.0_GP/bin:/home/local/GRIDPOINT/jringle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/OSELAS.Toolchain-2013.12.1/arm-v5te-linux-gnueabi/gcc-4.8.2-glibc-2.18-binutils-2.24-kernel-3.12-sanitized/bin:/opt/arm-2009q1/bin PKG_CONFIG_PATH='' PKG_CONFIG_LIBDIR='/home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-target/lib/pkgconfig:/home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-target/usr/lib/pkgconfig:/home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-target/share/pkgconfig:/home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-target/usr/share/pkgconfig' SYSROOT='/home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/sysroot-target' V=1 VERBOSE=1 make -C /home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/build-target/libnl-3.2.25 -j16 make[1]: Entering directory `/home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/build-target/libnl-3.2.25' Making all in include make[2]: Entering directory `/home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/build-target/libnl-3.2.25/include' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/build-target/libnl-3.2.25/include' Making all in lib make[2]: Entering directory `/home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/build-target/libnl-3.2.25/lib' /usr/local/lib/ptxdist-2015.03.0_GP/bin/mkdir -p route/cls; flex --header-file=route/cls/ematch_grammar.h -o route/cls/ematch_grammar.c route/cls/ematch_grammar.l /usr/local/lib/ptxdist-2015.03.0_GP/bin/mkdir -p route/cls; bison -y -d -o route/cls/ematch_syntax.c route/cls/ematch_syntax.y /usr/local/lib/ptxdist-2015.03.0_GP/bin/mkdir -p route; flex --header-file=route/pktloc_grammar.h -o route/pktloc_grammar.c route/pktloc_grammar.l /usr/local/lib/ptxdist-2015.03.0_GP/bin/mkdir -p route; bison -y -d -o route/pktloc_syntax.c route/pktloc_syntax.y flex: fatal internal error, exec failed flex: fatal internal error, exec failed make[2]: *** [route/pktloc_grammar.c] Error 141 make[2]: *** Waiting for unfinished jobs.... flex: fatal internal error, exec failed flex: fatal internal error, exec failed make[2]: *** [route/cls/ematch_grammar.c] Error 141 make[2]: Leaving directory `/home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/build-target/libnl-3.2.25/lib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/build-target/libnl-3.2.25' make: *** [/home/local/GRIDPOINT/jringle/code/gpec/ec1k-rootfs/platform-EC1K/state/libnl3.compile] Error 2 -- ptxdist mailing list ptxdist@pengutronix.de