* [Buildroot] External toolchain improvements [not found] <mailman.0.1246405094.1110.buildroot@busybox.net> @ 2009-06-30 23:50 ` Lionel Landwerlin 2009-06-30 23:54 ` Lionel Landwerlin 1 sibling, 0 replies; 13+ messages in thread From: Lionel Landwerlin @ 2009-06-30 23:50 UTC (permalink / raw) To: buildroot Hi Thomas, I'm interested by your patches, I'm using a STLinux external toolchain (Linux for SH4 SetTop Boxes). The problem is that copying only libraries is not enough to build even a simple program like this one : int main (void) { return 0; } With my current toolchain, I also need : * crt1.o crti.o crtn.o * All headers from the libc & linux After that, I also have problems with packages using pkg-config. Pkg-config returns paths relatives to the build directory ( -L/usr/lib for example). This tries to link with ^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] External toolchain improvements [not found] <mailman.0.1246405094.1110.buildroot@busybox.net> 2009-06-30 23:50 ` [Buildroot] External toolchain improvements Lionel Landwerlin @ 2009-06-30 23:54 ` Lionel Landwerlin 2009-07-01 14:05 ` Thomas Petazzoni 1 sibling, 1 reply; 13+ messages in thread From: Lionel Landwerlin @ 2009-06-30 23:54 UTC (permalink / raw) To: buildroot Hi Thomas, I'm interested by your patches, I'm using a STLinux external toolchain (Linux for SH4 SetTop Boxes). The problem is that copying only libraries is not enough to build even a simple program like this one : int main (void) { return 0; } With my current toolchain, I also need : * crt1.o crti.o crtn.o * All headers from the libc & linux After that, I also have problems with packages using pkg-config. Pkg-config returns paths relatives to the build directory ( -L/usr/lib for example). Gcc tries to link with host libraries... We probably need a double --sysroot parameter to look first where the toolchain is installed and then in the given sysroot path. Regards, -- Lionel Landwerlin <lionel.landwerlin@openwide.fr> ^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] External toolchain improvements 2009-06-30 23:54 ` Lionel Landwerlin @ 2009-07-01 14:05 ` Thomas Petazzoni 2009-07-01 21:43 ` Lionel Landwerlin 0 siblings, 1 reply; 13+ messages in thread From: Thomas Petazzoni @ 2009-07-01 14:05 UTC (permalink / raw) To: buildroot Hi Lionel, Le Wed, 01 Jul 2009 01:54:33 +0200, Lionel Landwerlin <lionel.landwerlin@openwide.fr> a ?crit : > I'm interested by your patches, I'm using a STLinux external toolchain > (Linux for SH4 SetTop Boxes). Ok. Nice to see interest in external toolchain support, which is still experimental, as you saw. > The problem is that copying only libraries is not enough to build > even a simple program like this one : I'm not sure which Buildroot version you're using, but 2009.05 and current Git don't only copy the libraries. Here is what we do : 1) Copy + strip the libraries to the target space (project_build_ARCH/PROJECT/root). Only the files needed for execution need to be copied to the target space. 2) Copy the full sysroot to the staging space (build_ARCH/staging_dir). This is done in toolchain/external-toolchain/ext-took.mk. > int main (void) { return 0; } > > With my current toolchain, I also need : > > * crt1.o crti.o crtn.o > * All headers from the libc & linux In current Buildroot, all these are copied to the staging directory. In an example build, I have : $ find . -name '*crt*' ./build_arm/staging_dir/usr/lib/Scrt1.o ./build_arm/staging_dir/usr/lib/crt1.o ./build_arm/staging_dir/usr/lib/crti.o ./build_arm/staging_dir/usr/lib/crtn.o $ find build_arm/staging_dir/ -name '*.h' | head -5 build_arm/staging_dir/usr/include/neteconet/ec.h build_arm/staging_dir/usr/include/strings.h build_arm/staging_dir/usr/include/ttyent.h build_arm/staging_dir/usr/include/pty.h build_arm/staging_dir/usr/include/mntent.h > After that, I also have problems with packages using pkg-config. > Pkg-config returns paths relatives to the build directory ( -L/usr/lib > for example). Gcc tries to link with host libraries... This should theorically not happen since we should pass --sysroot to every gcc/ld compilation step, and therefore all paths should be interpreted relative to the sysroot (which is in fact the staging dir). > We probably need a double --sysroot parameter to look first where the > toolchain is installed and then in the given sysroot path. Could you give more details about what you're doing : * Buildroot version * Buildroot .config file * Error messages * External toolchain used Thanks ! Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com ^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] External toolchain improvements 2009-07-01 14:05 ` Thomas Petazzoni @ 2009-07-01 21:43 ` Lionel Landwerlin 2009-07-02 12:50 ` Thomas Petazzoni 0 siblings, 1 reply; 13+ messages in thread From: Lionel Landwerlin @ 2009-07-01 21:43 UTC (permalink / raw) To: buildroot Le mercredi 01 juillet 2009 ? 16:05 +0200, Thomas Petazzoni a ?crit : > Hi Lionel, > > Le Wed, 01 Jul 2009 01:54:33 +0200, > Lionel Landwerlin <lionel.landwerlin@openwide.fr> a ?crit : > > > I'm interested by your patches, I'm using a STLinux external toolchain > > (Linux for SH4 SetTop Boxes). > > Ok. Nice to see interest in external toolchain support, which is still > experimental, as you saw. > > > The problem is that copying only libraries is not enough to build > > even a simple program like this one : > > I'm not sure which Buildroot version you're using, but 2009.05 and > current Git don't only copy the libraries. Here is what we do : > > 1) Copy + strip the libraries to the target space > (project_build_ARCH/PROJECT/root). Only the files needed for > execution need to be copied to the target space. > > 2) Copy the full sysroot to the staging space (build_ARCH/staging_dir). Ok, I had another look at the ext-tool.mk makefile, and the sysroot dir is not copied because of the locale... This current command to get the sysroot dir is : SYSROOT_DIR=`$(TARGET_CC) -v 2>&1 | grep ^Configured | tr " " "\n" | grep -- "--with-sysroot" | cut -f2 -d=`; which call (in my case) sh4-linux-gcc using the default locale and as my email address could suggest, my current locale is fr_FR.UTF-8. So grep ^Configured just fails. Please apply the attached patch to your external-toolchain branch. > > This is done in toolchain/external-toolchain/ext-took.mk. > > > int main (void) { return 0; } > > > > With my current toolchain, I also need : > > > > * crt1.o crti.o crtn.o > > * All headers from the libc & linux > > In current Buildroot, all these are copied to the staging directory. In > an example build, I have : > > $ find . -name '*crt*' > ./build_arm/staging_dir/usr/lib/Scrt1.o > ./build_arm/staging_dir/usr/lib/crt1.o > ./build_arm/staging_dir/usr/lib/crti.o > ./build_arm/staging_dir/usr/lib/crtn.o > > $ find build_arm/staging_dir/ -name '*.h' | head -5 > build_arm/staging_dir/usr/include/neteconet/ec.h > build_arm/staging_dir/usr/include/strings.h > build_arm/staging_dir/usr/include/ttyent.h > build_arm/staging_dir/usr/include/pty.h > build_arm/staging_dir/usr/include/mntent.h > > > After that, I also have problems with packages using pkg-config. > > Pkg-config returns paths relatives to the build directory ( -L/usr/lib > > for example). Gcc tries to link with host libraries... > > This should theorically not happen since we should pass --sysroot to > every gcc/ld compilation step, and therefore all paths should be > interpreted relative to the sysroot (which is in fact the staging dir). > > > We probably need a double --sysroot parameter to look first where the > > toolchain is installed and then in the given sysroot path. > > Could you give more details about what you're doing : > > * Buildroot version Your external-toolchain branch > * Buildroot .config file Attached > * Error messages I will try to retry with the fix on the locale first. > * External toolchain used SH4 toolchain from STLinux-2.3 distribution, available freely at the stlinux.com website. > > Thanks ! > You're welcome ! -- Lionel Landwerlin <lionel.landwerlin@openwide.fr> -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-Fix-sysroot-copy-when-current-locale-is-not-set-to-e.patch Type: text/x-patch Size: 1112 bytes Desc: not available URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20090701/c9f9c487/attachment-0001.bin> -------------- next part -------------- # # Automatically generated make config: don't edit # Wed Jul 1 01:17:33 2009 # BR2_HAVE_DOT_CONFIG=y BR2_VERSION="2009.08-git" # BR2_alpha is not set # BR2_arm is not set # BR2_armeb is not set # BR2_avr32 is not set # BR2_cris is not set # BR2_ia64 is not set # BR2_i386 is not set # BR2_m68k is not set # BR2_mips is not set # BR2_mipsel is not set # BR2_nios2 is not set # BR2_powerpc is not set BR2_sh=y # BR2_sh64 is not set # BR2_sparc is not set # BR2_sparc64 is not set # BR2_x86_64 is not set # BR2_sh2a_nofpueb is not set # BR2_sh2eb is not set # BR2_sh3 is not set # BR2_sh3eb is not set BR2_sh4=y # BR2_sh4eb is not set BR2_ARCH="sh4" BR2_ENDIAN="LITTLE" # # Target options # # # Project Options # BR2_PROJECT="uclibc" BR2_HOSTNAME="uclibc" BR2_BANNER="Welcome to Buildroot" # # Preset Devices # # BR2_TARGET_AMD is not set # # Generic System Support # # BR2_TARGET_GENERIC_ACCESS_POINT is not set # BR2_TARGET_GENERIC_FIREWALL is not set # # Generic development system requires a toolchain with WCHAR and PROGRAM_INVOCATION support # # BR2_TARGET_GENERIC_GETTY is not set # # Build options # BR2_WGET="wget --passive-ftp -nd" BR2_SVN_CO="svn co" BR2_SVN_UP="svn up" BR2_GIT="git clone" BR2_ZCAT="gzip -d -c" BR2_BZCAT="bzcat" BR2_TAR_OPTIONS="" BR2_DL_DIR="$(BASE_DIR)/dl" BR2_COPYTO="" # # Mirrors and Download locations # BR2_PRIMARY_SITE="" BR2_BACKUP_SITE="http://buildroot.net/downloads/sources/" BR2_SOURCEFORGE_MIRROR="easynews" BR2_KERNEL_MIRROR="http://www.kernel.org/pub/" BR2_GNU_MIRROR="http://ftp.gnu.org/pub/gnu" BR2_DEBIAN_MIRROR="http://ftp.debian.org" # # Atmel Mirrors # BR2_ATMEL_MIRROR="ftp://www.at91.com/pub/buildroot/" BR2_AT91_PATCH_MIRROR="http://maxim.org.za/AT91RM9200/2.6/" BR2_STAGING_DIR="$(BUILD_DIR)/staging_dir" # BR2_FPU_SUFFIX is not set BR2_TOPDIR_PREFIX="" BR2_TOPDIR_SUFFIX="" BR2_GNU_BUILD_SUFFIX="pc-linux-gnu" BR2_GNU_TARGET_SUFFIX="linux-uclibc" BR2_JLEVEL=1 # BR2_PREFER_IMA is not set # BR2_DEPRECATED is not set BR2_RECENT=y # BR2_CONFIG_CACHE is not set # BR2_ENABLE_DEBUG is not set BR2_STRIP_strip=y # BR2_STRIP_sstrip is not set # BR2_STRIP_none is not set # BR2_OPTIMIZE_0 is not set # BR2_OPTIMIZE_1 is not set # BR2_OPTIMIZE_2 is not set # BR2_OPTIMIZE_3 is not set BR2_OPTIMIZE_S=y # BR2_PREFER_STATIC_LIB is not set # BR2_HAVE_MANPAGES is not set # BR2_HAVE_INFOPAGES is not set # BR2_HAVE_DOCUMENTATION is not set # BR2_HAVE_DEVFILES is not set BR2_UPDATE_CONFIG=y # # Toolchain # # BR2_TOOLCHAIN_BUILDROOT is not set BR2_TOOLCHAIN_EXTERNAL=y # BR2_TOOLCHAIN_EXTERNAL_SOURCE is not set # BR2_TOOLCHAIN_SOURCE is not set BR2_EXT_GCC_VERSION_4_1_2=y BR2_EXT_GCC_VERSION_4_2_1=y BR2_EXT_GCC_VERSION_4_2_2=y BR2_EXT_GCC_VERSION_4_2_3=y BR2_EXT_BINUTILS_VERSION_2_17=y BR2_EXT_BINUTILS_VERSION_2_18=y BR2_EXT_UCLIBC_VERSION_0_9_28_3=y BR2_EXT_UCLIBC_VERSION_0_9_29=y BR2_EXT_UCLIBC_VERSION_0_9_30=y BR2_EXT_UCLIBC_VERSION_0_9_30_1=y # BR2_TOOLCHAIN_EXTERNAL_UCLIBC is not set BR2_TOOLCHAIN_EXTERNAL_GLIBC=y # BR2_TOOLCHAIN_EXTERNAL_STRIP is not set # # Gdb Options # # BR2_PACKAGE_GDB is not set # BR2_PACKAGE_GDB_SERVER is not set # BR2_PACKAGE_GDB_HOST is not set # # Common Toolchain Options # BR2_LARGEFILE=y BR2_INET_IPV6=y BR2_INET_RPC=y BR2_ENABLE_LOCALE=y # BR2_ENABLE_LOCALE_PURGE is not set BR2_USE_WCHAR=y # BR2_USE_SSP is not set # BR2_PTHREADS_NONE is not set # BR2_PTHREADS is not set # BR2_PTHREADS_OLD is not set BR2_PTHREADS_NATIVE=y # BR2_INSTALL_LIBSTDCPP is not set BR2_TARGET_OPTIMIZATION="-O2 -pipe" BR2_TOOLCHAIN_EXTERNAL_PATH="/opt/STM/STLinux-2.3/devkit/sh4" BR2_TOOLCHAIN_EXTERNAL_PREFIX="$(ARCH)-linux" # # Package Selection for the target # # BR2_PACKAGE_BUSYBOX is not set # # The minimum needed to build a uClibc development system # BR2_PACKAGE_BASH=y # BR2_PACKAGE_BZIP2 is not set # # coreutils requires a toolchain with WCHAR and PROGRAM_INVOCATION support # # BR2_PACKAGE_DIFFUTILS is not set # BR2_PACKAGE_FINDUTILS is not set # BR2_PACKAGE_FLEX is not set # BR2_PACKAGE_GAWK is not set # BR2_PACKAGE_GCC_TARGET is not set # BR2_PACKAGE_GREP is not set # BR2_PACKAGE_MAKE is not set # BR2_PACKAGE_PATCH is not set # BR2_PACKAGE_SED is not set # # tar requires a toolchain with WCHAR and PROGRAM_INVOCATION support # # # Other development stuff # # BR2_PACKAGE_AUTOCONF is not set # BR2_PACKAGE_AUTOMAKE is not set # BR2_PACKAGE_BISON is not set # BR2_PACKAGE_CCACHE_TARGET is not set # BR2_PACKAGE_CVS is not set # BR2_PACKAGE_DISTCC is not set # BR2_PACKAGE_DMALLOC is not set # BR2_PACKAGE_FAKEROOT is not set BR2_HOST_FAKEROOT=y BR2_PACKAGE_GETTEXT=y BR2_PACKAGE_LIBINTL=y # BR2_PACKAGE_LIBGMP is not set # BR2_PACKAGE_GPERF is not set # BR2_PACKAGE_LIBMPFR is not set # BR2_PACKAGE_LIBTOOL is not set # BR2_PACKAGE_M4 is not set # # oprofile requires a toolchain with C++ support enabled # # BR2_PACKAGE_PKG_CONFIG is not set # BR2_PACKAGE_READLINE is not set # BR2_PACKAGE_PCRE is not set # # Other stuff # # BR2_PACKAGE_AT is not set # BR2_PACKAGE_BEECRYPT is not set # BR2_PACKAGE_BERKELEYDB is not set # BR2_PACKAGE_BSDIFF is not set # BR2_PACKAGE_BOOTUTILS is not set # BR2_PACKAGE_CUPS is not set # BR2_PACKAGE_CUSTOMIZE is not set # BR2_PACKAGE_DASH is not set # BR2_PACKAGE_FILE is not set # BR2_PACKAGE_GAMIN is not set # # icu requires a toolchain with C++ support and WCHAR enabled # # BR2_PACKAGE_KEXEC is not set # BR2_PACKAGE_LESS is not set # BR2_PACKAGE_LIBCONFIG is not set # BR2_PACKAGE_LIBCONFUSE is not set # BR2_PACKAGE_LIBDAEMON is not set # BR2_PACKAGE_LIBELF is not set # BR2_PACKAGE_LIBEVENT is not set # BR2_PACKAGE_LIBGCRYPT is not set # BR2_PACKAGE_LIBGPG_ERROR is not set BR2_PACKAGE_LIBICONV=y # BR2_PACKAGE_LIBIDN is not set BR2_PACKAGE_LIBLOCKFILE=y # BR2_PACKAGE_LIBOIL is not set # BR2_PACKAGE_LIBSYSFS is not set BR2_PACKAGE_LOCKFILE_PROGS=y # BR2_PACKAGE_LOGROTATE is not set # BR2_PACKAGE_LSOF is not set # BR2_PACKAGE_LTP-TESTSUITE is not set # BR2_PACKAGE_LTRACE is not set # BR2_PACKAGE_MEMSTAT is not set # BR2_PACKAGE_MODULE_INIT_TOOLS is not set # BR2_PACKAGE_NG_SPICE_REWORK is not set # BR2_PACKAGE_POPT is not set # BR2_PACKAGE_PROCPS is not set # BR2_PACKAGE_PSMISC is not set # BR2_PACKAGE_SCREEN is not set # BR2_PACKAGE_SHARED_MIME_INFO is not set # BR2_PACKAGE_STARTUP_NOTIFICATION is not set # BR2_PACKAGE_STRACE is not set # BR2_PACKAGE_SUDO is not set # BR2_PACKAGE_SYSKLOGD is not set # BR2_PACKAGE_SYSVINIT is not set # BR2_PACKAGE_UTIL-LINUX is not set # BR2_PACKAGE_WHICH is not set # # Database # # # Mysql client requires a toolchain with C++ support enabled # # BR2_PACKAGE_SQLITE is not set # # Text editors # # BR2_PACKAGE_ED is not set # BR2_PACKAGE_NANO is not set # BR2_PACKAGE_UEMACS is not set # BR2_PACKAGE_VIM is not set # # Networking # # # Networking applications # # BR2_PACKAGE_ARGUS is not set # BR2_PACKAGE_AVAHI is not set # BR2_PACKAGE_AXEL is not set # BR2_PACKAGE_BOA is not set # BR2_PACKAGE_BIND is not set # BR2_PACKAGE_BRIDGE is not set # BR2_PACKAGE_ISC_DHCP is not set # BR2_PACKAGE_DNSMASQ is not set # BR2_PACKAGE_DROPBEAR is not set # BR2_PACKAGE_ETHTOOL is not set # BR2_PACKAGE_HASERL is not set # BR2_PACKAGE_IFPLUGD is not set # # iperf requires a toolchain with C++ support enabled # BR2_PACKAGE_IPROUTE2=y # BR2_PACKAGE_IPSEC_TOOLS is not set BR2_PACKAGE_IPTABLES=y # BR2_PACKAGE_KISMET is not set # BR2_PACKAGE_L2TP is not set # BR2_PACKAGE_LIBCGI is not set # # libcgicc requires a toolchain with C++ support enabled # BR2_PACKAGE_LIBCURL=y # BR2_PACKAGE_CURL is not set # BR2_PACKAGE_LIBDNET is not set # BR2_PACKAGE_LIBEXOSIP2 is not set # BR2_PACKAGE_LIBOSIP2 is not set # BR2_PACKAGE_LIBPCAP is not set # BR2_PACKAGE_LIBSOUP is not set # BR2_PACKAGE_LIBUPNP is not set # BR2_PACKAGE_LIGHTTPD is not set # BR2_PACKAGE_LINKS is not set # BR2_PACKAGE_LRZSZ is not set # BR2_PACKAGE_MDNSRESPONDER is not set # BR2_PACKAGE_MIIDIAG is not set # BR2_PACKAGE_MROUTED is not set # BR2_PACKAGE_MUTT is not set # BR2_PACKAGE_NBD is not set # BR2_PACKAGE_NCFTP is not set # BR2_PACKAGE_NEON is not set # BR2_PACKAGE_NETCAT is not set # BR2_PACKAGE_NETKITBASE is not set # BR2_PACKAGE_NETKITTELNET is not set # BR2_PACKAGE_NETPLUG is not set # BR2_PACKAGE_NETSNMP is not set # BR2_PACKAGE_NFS_UTILS is not set # BR2_PACKAGE_NTP is not set # BR2_PACKAGE_OLSR is not set # BR2_PACKAGE_OPENNTPD is not set # BR2_PACKAGE_OPENSSH is not set # BR2_PACKAGE_OPENSSL is not set # BR2_PACKAGE_OPENVPN is not set # BR2_PACKAGE_PORTMAP is not set # BR2_PACKAGE_PPPD is not set # BR2_PACKAGE_RADVD is not set # BR2_PACKAGE_RP_PPPOE is not set # BR2_PACKAGE_PPTP_LINUX is not set # BR2_PACKAGE_PROFTPD is not set # # quagga suite # # BR2_PACKAGE_QUAGGA_ZEBRA is not set # BR2_PACKAGE_QUAGGA_BGPD is not set # BR2_PACKAGE_QUAGGA_RIPD is not set # BR2_PACKAGE_QUAGGA_RIPNGD is not set # BR2_PACKAGE_QUAGGA_OSPFD is not set # BR2_PACKAGE_QUAGGA_OSPF6D is not set # BR2_PACKAGE_QUAGGA_WATCHQUAGGA is not set # BR2_PACKAGE_QUAGGA_ISISD is not set # BR2_PACKAGE_RSYNC is not set # BR2_PACKAGE_SAMBA is not set # BR2_PACKAGE_SOCAT is not set # BR2_PACKAGE_STUNNEL is not set # BR2_PACKAGE_TCPDUMP is not set # BR2_PACKAGE_DHCPDUMP is not set # BR2_PACKAGE_TFTPD is not set # BR2_PACKAGE_THTTPD is not set # BR2_PACKAGE_TINYHTTPD is not set # BR2_PACKAGE_TN5250 is not set # BR2_PACKAGE_TTCP is not set # BR2_PACKAGE_UDPCAST is not set # BR2_PACKAGE_VPNC is not set # BR2_PACKAGE_VSFTPD is not set # BR2_PACKAGE_VTUN is not set # BR2_PACKAGE_WEBIF is not set # BR2_PACKAGE_WGET is not set # BR2_PACKAGE_WIRELESS_TOOLS is not set # BR2_PACKAGE_WPA_SUPPLICANT is not set # # Hardware handling / blockdevices and filesystem maintenance # BR2_PACKAGE_DBUS=y # BR2_DBUS_EXPAT is not set BR2_DBUS_LIBXML2=y BR2_PACKAGE_DBUS_GLIB=y # BR2_PACKAGE_DEVMEM2 is not set # BR2_PACKAGE_DM is not set # BR2_PACKAGE_DMRAID is not set BR2_PACKAGE_E2FSPROGS=y BR2_PACKAGE_E2FSPROGS_BADBLOCKS=y BR2_PACKAGE_E2FSPROGS_BLKID=y BR2_PACKAGE_E2FSPROGS_CHATTR=y BR2_PACKAGE_E2FSPROGS_DUMPE2FS=y BR2_PACKAGE_E2FSPROGS_E2FSCK=y BR2_PACKAGE_E2FSPROGS_E2LABEL=y BR2_PACKAGE_E2FSPROGS_FILEFRAG=y BR2_PACKAGE_E2FSPROGS_FINDFS=y BR2_PACKAGE_E2FSPROGS_FSCK=y BR2_PACKAGE_E2FSPROGS_LOGSAVE=y BR2_PACKAGE_E2FSPROGS_LSATTR=y BR2_PACKAGE_E2FSPROGS_MKE2FS=y BR2_PACKAGE_E2FSPROGS_MKLOSTFOUND=y BR2_PACKAGE_E2FSPROGS_TUNE2FS=y BR2_PACKAGE_E2FSPROGS_UUIDGEN=y # BR2_PACKAGE_EEPROG is not set # BR2_PACKAGE_FCONFIG is not set # BR2_PACKAGE_FIS is not set # BR2_PACKAGE_LIBFUSE is not set # BR2_PACKAGE_GADGETFS_TEST is not set # BR2_PACKAGE_HAL is not set # BR2_PACKAGE_HDPARM is not set # BR2_PACKAGE_HOTPLUG is not set # BR2_PACKAGE_HWDATA is not set # BR2_PACKAGE_I2C_TOOLS is not set # BR2_PACKAGE_INPUT_TOOLS is not set BR2_PACKAGE_IOSTAT=y # BR2_PACKAGE_LIBAIO is not set # BR2_PACKAGE_LIBRAW1394 is not set BR2_PACKAGE_LIBUSB=y # BR2_PACKAGE_LM_SENSORS is not set # BR2_PACKAGE_LVM2 is not set # BR2_PACKAGE_MDADM is not set # BR2_PACKAGE_MEMTESTER is not set BR2_PACKAGE_MKDOSFS=y BR2_PACKAGE_MTD=y BR2_PACKAGE_MTD_UTILS=y # BR2_PACKAGE_MTD_20061007 is not set # BR2_PACKAGE_MTD_20050122 is not set # BR2_PACKAGE_MTD_UTILS_GIT is not set # # MTD tools selection # # BR2_PACKAGE_MTD_DOCFDISK is not set # BR2_PACKAGE_MTD_DOC_LOADBIOS is not set BR2_PACKAGE_MTD_FLASHCP=y BR2_PACKAGE_MTD_FLASH_ERASE=y BR2_PACKAGE_MTD_FLASH_ERASEALL=y BR2_PACKAGE_MTD_FLASH_INFO=y BR2_PACKAGE_MTD_FLASH_LOCK=y BR2_PACKAGE_MTD_FLASH_UNLOCK=y BR2_PACKAGE_MTD_FTL_CHECK=y BR2_PACKAGE_MTD_FTL_FORMAT=y BR2_PACKAGE_MTD_JFFS2DUMP=y BR2_PACKAGE_MTD_MKFSJFFS2=y # BR2_PACKAGE_MTD_MKFSJFFS is not set BR2_PACKAGE_MTD_MTD_DEBUG=y BR2_PACKAGE_MTD_NANDDUMP=y BR2_PACKAGE_MTD_NANDWRITE=y # BR2_PACKAGE_MTD_NFTL_FORMAT is not set # BR2_PACKAGE_MTD_NFTLDUMP is not set BR2_PACKAGE_MTD_SUMTOOL=y # BR2_PACKAGE_NTFS_3G is not set BR2_PACKAGE_PCIUTILS=y BR2_PACKAGE_SETSERIAL=y # BR2_PACKAGE_SFDISK is not set # BR2_PACKAGE_SMARTMONTOOLS is not set # BR2_PACKAGE_UDEV is not set BR2_PACKAGE_UDEV_VOLUME_ID=y BR2_PACKAGE_UDEV_SCSI_ID=y BR2_PACKAGE_USBMOUNT=y BR2_PACKAGE_USBUTILS=y # BR2_PACKAGE_WIPE is not set # BR2_PACKAGE_XFSPROGS is not set # # Audio and video libraries and applications # # BR2_PACKAGE_ALSA_LIB is not set # # asterisk - disabled (required openssl and mpg123) # # BR2_PACKAGE_AUMIX is not set # BR2_PACKAGE_FLAC is not set # BR2_PACKAGE_GSTREAMER is not set # BR2_PACKAGE_LIBID3TAG is not set # BR2_PACKAGE_LIBMAD is not set # BR2_PACKAGE_LIBMPD is not set # BR2_PACKAGE_LIBOGG is not set # BR2_PACKAGE_LIBSNDFILE is not set # BR2_PACKAGE_LIBTHEORA is not set # BR2_PACKAGE_LIBVORBIS is not set # BR2_PACKAGE_MADPLAY is not set # BR2_PACKAGE_MPG123 is not set # BR2_PACKAGE_MPLAYER is not set # BR2_PACKAGE_SPEEX is not set # BR2_PACKAGE_FESTIVAL is not set # # taglib requires a toolchain with C++ support enabled # # BR2_PACKAGE_VLC is not set # # Graphic libraries and applications (graphic/text) # # # text rendering libraries # BR2_PACKAGE_NCURSES=y # BR2_PACKAGE_NCURSES_TARGET_PANEL is not set # BR2_PACKAGE_NCURSES_TARGET_FORM is not set # BR2_PACKAGE_NCURSES_TARGET_MENU is not set # BR2_PACKAGE_NCURSES_TARGET_HEADERS is not set # BR2_PACKAGE_NEWT is not set # BR2_PACKAGE_SLANG is not set # # text rendering applications # # BR2_PACKAGE_DIALOG is not set # # graphic libraries # BR2_PACKAGE_DIRECTFB=y # BR2_PACKAGE_DIRECTFB_MULTI is not set # BR2_PACKAGE_DIRECTFB_LINUXINPUT is not set # BR2_PACKAGE_DIRECTFB_KEYBOARD is not set # BR2_PACKAGE_DIRECTFB_SERIALMOUSE is not set BR2_PACKAGE_DIRECTFB_PNG=y # BR2_PACKAGE_DIRECTFB_TSLIB is not set BR2_PACKAGE_DIRECTFB_GIF=y BR2_PACKAGE_DIRECTFB_JPEG=y BR2_PACKAGE_DIRECTFB_EXAMPLES=y BR2_PACKAGE_DIRECTFB_EXAMPLES_ANDI=y BR2_PACKAGE_DIRECTFB_EXAMPLES_BLTLOAD=y BR2_PACKAGE_DIRECTFB_EXAMPLES_CPULOAD=y BR2_PACKAGE_DIRECTFB_EXAMPLES_DATABUFFER=y BR2_PACKAGE_DIRECTFB_EXAMPLES_DIOLOAD=y BR2_PACKAGE_DIRECTFB_EXAMPLES_DOK=y BR2_PACKAGE_DIRECTFB_EXAMPLES_DRIVERTEST=y BR2_PACKAGE_DIRECTFB_EXAMPLES_FIRE=y BR2_PACKAGE_DIRECTFB_EXAMPLES_FLIP=y BR2_PACKAGE_DIRECTFB_EXAMPLES_FONTS=y BR2_PACKAGE_DIRECTFB_EXAMPLES_INPUT=y BR2_PACKAGE_DIRECTFB_EXAMPLES_JOYSTICK=y BR2_PACKAGE_DIRECTFB_EXAMPLES_KNUCKLES=y BR2_PACKAGE_DIRECTFB_EXAMPLES_LAYER=y BR2_PACKAGE_DIRECTFB_EXAMPLES_NEO=y BR2_PACKAGE_DIRECTFB_EXAMPLES_NETLOAD=y BR2_PACKAGE_DIRECTFB_EXAMPLES_PALETTE=y BR2_PACKAGE_DIRECTFB_EXAMPLES_PARTICLE=y BR2_PACKAGE_DIRECTFB_EXAMPLES_PORTER=y BR2_PACKAGE_DIRECTFB_EXAMPLES_STRESS=y BR2_PACKAGE_DIRECTFB_EXAMPLES_TEXTURE=y BR2_PACKAGE_DIRECTFB_EXAMPLES_VIDEO=y BR2_PACKAGE_DIRECTFB_EXAMPLES_VIDEO_PARTICLE=y BR2_PACKAGE_DIRECTFB_EXAMPLES_WINDOW=y # BR2_PACKAGE_FBDUMP is not set # BR2_PACKAGE_IMAGEMAGICK is not set BR2_PACKAGE_JPEG=y # BR2_PACKAGE_LIBART is not set BR2_PACKAGE_LIBPNG=y BR2_PACKAGE_LIBUNGIF=y # BR2_PACKAGE_LINUX_FUSION is not set # BR2_PACKAGE_LITE is not set BR2_PACKAGE_PIXMAN=y # BR2_PACKAGE_SAWMAN is not set # BR2_PACKAGE_SDL is not set # BR2_PACKAGE_TIFF is not set # # busybox graphic applications # # # --> May be broken in busybox # # BR2_PACKAGE_FBV is not set # BR2_PACKAGE_FBSET is not set # # other GUIs # # # qtopia4 requires a toolchain with C++ support enabled # BR2_PACKAGE_XSERVER_none=y # BR2_PACKAGE_XSERVER_xorg is not set # BR2_PACKAGE_XSERVER_tinyx is not set # # xorg requires a toolchain with C++, LOCALE, LARGEFILE and WCHAR support # # # X libraries and helper libraries # BR2_PACKAGE_ATK=y BR2_PACKAGE_CAIRO=y BR2_PACKAGE_CAIRO_PS=y BR2_PACKAGE_CAIRO_PDF=y # BR2_PACKAGE_CAIRO_PNG is not set # BR2_PACKAGE_CAIRO_SVG is not set BR2_PACKAGE_PANGO=y # BR2_PACKAGE_LIBDRM is not set # BR2_PACKAGE_LIBERATION is not set # BR2_PACKAGE_LIBGLADE is not set # BR2_PACKAGE_LIBGLIB12 is not set BR2_PACKAGE_LIBGLIB2=y BR2_PACKAGE_LIBGTK2=y BR2_PACKAGE_LIBGTK2_ENGINES=y # # GTK Themes # # BR2_PACKAGE_GTK2_THEME_HICOLOR is not set BR2_PACKAGE_LIBSEXY=y # BR2_PACKAGE_OPENMOTIF is not set BR2_PACKAGE_FONTCONFIG=y BR2_PACKAGE_FREETYPE=y # BR2_PACKAGE_TSLIB is not set # # webkit requires a toolchain with C++ support and WCHAR enabled # # # X Window managers # # BR2_PACKAGE_MATCHBOX is not set # # X applications # # BR2_PACKAGE_ALSAMIXERGUI is not set # # dillo - disabled (requires jpeg,libglib12,libgtk12,zlib,libpng and Xorg(7)) # # BR2_PACKAGE_GQVIEW is not set # BR2_PACKAGE_GMPC is not set # BR2_PACKAGE_GOB2 is not set # BR2_PACKAGE_GTKPERF is not set # BR2_PACKAGE_LEAFPAD is not set # # midori - disabled (requires Xorg(7)) # # BR2_PACKAGE_PCMANFM is not set # BR2_PACKAGE_SYLPHEED is not set # BR2_PACKAGE_TORSMO is not set # BR2_PACKAGE_X11VNC is not set # BR2_PACKAGE_XPDF is not set # BR2_PACKAGE_XSTROKE is not set # BR2_PACKAGE_XVKBD is not set # # Compressors / decompressors # # BR2_PACKAGE_GZIP is not set BR2_PACKAGE_LZO=y BR2_PACKAGE_LZOP=y # # lzma requires a toolchain with C++ support # # BR2_PACKAGE_LZMA_HOST is not set BR2_PACKAGE_ZLIB=y # BR2_PACKAGE_ZLIB_TARGET_HEADERS is not set # # Package managers # # BR2_PACKAGE_IPKG is not set # BR2_PACKAGE_PORTAGE is not set # BR2_PACKAGE_RPM is not set # # Interpreter languages / Scripting # # BR2_PACKAGE_LUA is not set # BR2_PACKAGE_MICROPERL is not set # BR2_PACKAGE_PYTHON is not set BR2_PACKAGE_RUBY=y # BR2_PACKAGE_TCL is not set # BR2_PACKAGE_PHP is not set # # XML handling # BR2_PACKAGE_EXPAT=y # BR2_PACKAGE_EZXML is not set BR2_PACKAGE_LIBXML2=y # BR2_PACKAGE_LIBXSLT is not set # # xerces-c++ requires a toolchain with C++ support enabled # # # Java # # BR2_PACKAGE_CLASSPATH is not set # # Games # # BR2_PACKAGE_GNUCHESS is not set # BR2_PACKAGE_MAGICCUBE4D is not set # BR2_PACKAGE_PRBOOM is not set # BR2_PACKAGE_RUBIX is not set # BR2_PACKAGE_VICE is not set # BR2_PACKAGE_XBOARD is not set # # Target filesystem options # BR2_ROOTFS_PREFIX="rootfs" BR2_ROOTFS_SUFFIX="" # # filesystem for target device # # BR2_TARGET_ROOTFS_CRAMFS is not set # BR2_TARGET_ROOTFS_CLOOP is not set # BR2_TARGET_ROOTFS_EXT2 is not set # BR2_TARGET_ROOTFS_JFFS2 is not set # BR2_TARGET_ROOTFS_SQUASHFS is not set BR2_TARGET_ROOTFS_TAR=y # BR2_TARGET_ROOTFS_TAR_NONE is not set BR2_TARGET_ROOTFS_TAR_GZIP=y # BR2_TARGET_ROOTFS_TAR_BZIP2 is not set # BR2_TARGET_ROOTFS_TAR_LZMA is not set BR2_TARGET_ROOTFS_TAR_OPTIONS="" BR2_TARGET_ROOTFS_TAR_COPYTO="" # BR2_TARGET_ROOTFS_CPIO is not set # BR2_TARGET_ROOTFS_INITRAMFS is not set # BR2_TARGET_ROOTFS_ROMFS is not set # # bootloader for target device # # BR2_TARGET_UBOOT is not set # # Kernel # BR2_KERNEL_none=y # BR2_KERNEL_LINUX_ADVANCED is not set # BR2_KERNEL_LINUX is not set # BR2_KERNEL_HURD is not set ^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] External toolchain improvements 2009-07-01 21:43 ` Lionel Landwerlin @ 2009-07-02 12:50 ` Thomas Petazzoni 2009-07-03 6:01 ` Lionel Landwerlin 2009-07-13 19:26 ` Lionel Landwerlin 0 siblings, 2 replies; 13+ messages in thread From: Thomas Petazzoni @ 2009-07-02 12:50 UTC (permalink / raw) To: buildroot Hi, Le Wed, 01 Jul 2009 23:43:34 +0200, Lionel Landwerlin <lionel.landwerlin@openwide.fr> a ?crit : > Ok, I had another look at the ext-tool.mk makefile, and the sysroot > dir is not copied because of the locale... > > This current command to get the sysroot dir is : > > SYSROOT_DIR=`$(TARGET_CC) -v 2>&1 | grep ^Configured | tr " " "\n" | > grep -- "--with-sysroot" | cut -f2 -d=`; > > which call (in my case) sh4-linux-gcc using the default locale and as > my email address could suggest, my current locale is fr_FR.UTF-8. So > grep ^Configured just fails. > > Please apply the attached patch to your external-toolchain branch. Ok, thanks for patch. I should probably add a little bit of error checking in this external toolchain thing. > > * Buildroot version > > Your external-toolchain branch Which doesn't exist anymore since it has been merged in the official Buildroot :-) But ok, fine, I know what you're using. > > * Error messages > > I will try to retry with the fix on the locale first. For sure if Buildroot didn't properly copy the sysroot to the staging dir, the rest of the compilation could not work. That said, your configuration file enables a relatively large set of packages that I haven't tested with the external toolchain configuration. Most if not all of the packages using the Makefile.autotools.in machinery should build flawlessly, but the packages using their own stuff in the .mk might break. Don't hesitate to report the breakage with the associated error messages (or the full build output), it's usually relatively easy to fix. Thanks! Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com ^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] External toolchain improvements 2009-07-02 12:50 ` Thomas Petazzoni @ 2009-07-03 6:01 ` Lionel Landwerlin 2009-07-03 8:13 ` Thomas Petazzoni 2009-07-13 19:26 ` Lionel Landwerlin 1 sibling, 1 reply; 13+ messages in thread From: Lionel Landwerlin @ 2009-07-03 6:01 UTC (permalink / raw) To: buildroot Le jeudi 02 juillet 2009 ? 14:50 +0200, Thomas Petazzoni a ?crit : > Hi, > > Le Wed, 01 Jul 2009 23:43:34 +0200, > Lionel Landwerlin <lionel.landwerlin@openwide.fr> a ?crit : > > > Ok, I had another look at the ext-tool.mk makefile, and the sysroot > > dir is not copied because of the locale... > > > > This current command to get the sysroot dir is : > > > > SYSROOT_DIR=`$(TARGET_CC) -v 2>&1 | grep ^Configured | tr " " "\n" | > > grep -- "--with-sysroot" | cut -f2 -d=`; > > > > which call (in my case) sh4-linux-gcc using the default locale and as > > my email address could suggest, my current locale is fr_FR.UTF-8. So > > grep ^Configured just fails. > > > > Please apply the attached patch to your external-toolchain branch. > > Ok, thanks for patch. I should probably add a little bit of error > checking in this external toolchain thing. > > > > * Buildroot version > > > > Your external-toolchain branch > > Which doesn't exist anymore since it has been merged in the official > Buildroot :-) > > But ok, fine, I know what you're using. I'm now up to date on the last git. > > > > * Error messages > > > > I will try to retry with the fix on the locale first. > > For sure if Buildroot didn't properly copy the sysroot to the staging > dir, the rest of the compilation could not work. > > That said, your configuration file enables a relatively large set of > packages that I haven't tested with the external toolchain > configuration. Most if not all of the packages using the > Makefile.autotools.in machinery should build flawlessly, but the > packages using their own stuff in the .mk might break. Don't hesitate > to report the breakage with the associated error messages (or the full > build output), it's usually relatively easy to fix. Ok, so I just rerun buildroot again with full staging directory copied from the external toolchain, and I got that when compiling glib2 : libtool: install: (cd /home/djdeath/src/buildroot/buildroot/build_sh4/libglib2-2.20.1/gmodule; /bin/sh /home/djdeath/src/buildroot/buildroot/build_sh4/libglib2-2.20.1/libtool --tag CC --mode=relink /opt/STM/STLinux-2.3/devkit/sh4/bin/sh4-linux-gcc -O2 -O2 --sysroot /home/djdeath/src/buildroot/buildroot/build_sh4/staging_dir/ -O2 -O2 --sysroot /home/djdeath/src/buildroot/buildroot/build_sh4/staging_dir/ -Wall -version-info 2000:1:2000 -export-dynamic --sysroot /home/djdeath/src/buildroot/buildroot/build_sh4/staging_dir/ -o libgmodule-2.0.la -rpath /usr/lib gmodule.lo -ldl ../glib/libglib-2.0.la -lintl -inst-prefix-dir /home/djdeath/src/buildroot/buildroot/project_build_sh4/uclibc/root) libtool: relink: /opt/STM/STLinux-2.3/devkit/sh4/bin/sh4-linux-gcc -O2 -O2 --sysroot /home/djdeath/src/buildroot/buildroot/build_sh4/staging_dir/ -shared .libs/gmodule.o -Wl,-rpath -Wl,/home/djdeath/src/buildroot/buildroot/build_sh4/staging_dir/usr/lib -ldl -L/home/djdeath/src/buildroot/buildroot/project_build_sh4/uclibc/root/usr/lib -L/usr/lib -lglib-2.0 -L/home/djdeath/src/buildroot/buildroot/build_sh4/staging_dir/usr/lib -L/home/djdeath/src/buildroot/buildroot/project_build_sh4/uclibc/root/home/djdeath/src/buildroot/buildroot/build_sh4/staging_dir/usr/lib -lintl -lc -Wl,-soname -Wl,libgmodule-2.0.so.0 -o .libs/libgmodule-2.0.so.0.2000.1 /usr/lib/libdl.so: file not recognized: File format not recognized collect2: ld returned 1 exit status libtool: install: error: relink `libgmodule-2.0.la' with the above command before installing it make[6]: *** [install-libLTLIBRARIES] Erreur 1 make[6]: quittant le r?pertoire ? /home/djdeath/src/buildroot/buildroot/build_sh4/libglib2-2.20.1/gmodule ? make[5]: *** [install-am] Erreur 2 make[5]: quittant le r?pertoire ? /home/djdeath/src/buildroot/buildroot/build_sh4/libglib2-2.20.1/gmodule ? make[4]: *** [install] Erreur 2 make[4]: quittant le r?pertoire ? /home/djdeath/src/buildroot/buildroot/build_sh4/libglib2-2.20.1/gmodule ? make[3]: *** [install-recursive] Erreur 1 make[3]: quittant le r?pertoire ? /home/djdeath/src/buildroot/buildroot/build_sh4/libglib2-2.20.1 ? make[2]: *** [install] Erreur 2 make[2]: quittant le r?pertoire ? /home/djdeath/src/buildroot/buildroot/build_sh4/libglib2-2.20.1 ? make[1]: *** [install-strip] Erreur 2 make[1]: quittant le r?pertoire ? /home/djdeath/src/buildroot/buildroot/build_sh4/libglib2-2.20.1 ? make: *** [/home/djdeath/src/buildroot/buildroot/project_build_sh4/uclibc/autotools-stamps/libglib2_target_installed] Erreur 2 As you can see, there is a -L/usr/lib and -rpath /usr/lib. -- Lionel Landwerlin <lionel.landwerlin@openwide.fr> ^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] External toolchain improvements 2009-07-03 6:01 ` Lionel Landwerlin @ 2009-07-03 8:13 ` Thomas Petazzoni 2009-07-03 21:24 ` Lionel Landwerlin 2009-07-06 0:51 ` Lionel Landwerlin 0 siblings, 2 replies; 13+ messages in thread From: Thomas Petazzoni @ 2009-07-03 8:13 UTC (permalink / raw) To: buildroot Le Fri, 03 Jul 2009 08:01:43 +0200, Lionel Landwerlin <lionel.landwerlin@openwide.fr> a ?crit : > /usr/lib/libdl.so: file not recognized: File format not recognized Arf, libtool crap. Can you try with LIBGLIB2_LIBTOOL_PATCH = YES LIBGLIB2_AUTORECONF = YES in package/libglib2/libglib2.mk ? This will try to fix ltmain.sh to workaround cross-compiling issues. Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com ^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] External toolchain improvements 2009-07-03 8:13 ` Thomas Petazzoni @ 2009-07-03 21:24 ` Lionel Landwerlin 2009-07-06 0:51 ` Lionel Landwerlin 1 sibling, 0 replies; 13+ messages in thread From: Lionel Landwerlin @ 2009-07-03 21:24 UTC (permalink / raw) To: buildroot Le vendredi 03 juillet 2009 ? 10:13 +0200, Thomas Petazzoni a ?crit : > Le Fri, 03 Jul 2009 08:01:43 +0200, > Lionel Landwerlin <lionel.landwerlin@openwide.fr> a ?crit : > > > /usr/lib/libdl.so: file not recognized: File format not recognized > > Arf, libtool crap. > > Can you try with > > LIBGLIB2_LIBTOOL_PATCH = YES > LIBGLIB2_AUTORECONF = YES > > in package/libglib2/libglib2.mk ? > > This will try to fix ltmain.sh to workaround cross-compiling issues. The patch can not be applied cleanly. I finished it at hand. Then the reconfiguration of the build scripts fails too : -------------------------------> autoreconf: running: /home/djdeath/src/buildroot/buildroot/build_sh4/host_dir/usr/bin/autoconf --include=/home/djdeath/src/buildroot/buildroot/build_sh4/staging_dir/usr/share/aclocal --force configure.in:493: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works, ...): suspicious cache-id, must contain _cv_ to be cached ../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from... ../../lib/autoconf/general.m4:1994: AC_CACHE_CHECK is expanded from... aclocal.m4:1766: AC_LIBTOOL_COMPILER_OPTION is expanded from... aclocal.m4:6054: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from... aclocal.m4:3834: _LT_AC_LANG_C_CONFIG is expanded from... aclocal.m4:3833: AC_LIBTOOL_LANG_C_CONFIG is expanded from... aclocal.m4:1214: AC_LIBTOOL_SETUP is expanded from... aclocal.m4:1194: _AC_PROG_LIBTOOL is expanded from... aclocal.m4:1159: AC_PROG_LIBTOOL is expanded from... aclocal.m4:7599: AM_PROG_LIBTOOL is expanded from... configure.in:493: the top level configure.in:493: warning: AC_CACHE_VAL(lt_prog_compiler_static_works, ...): suspicious cache-id, must contain _cv_ to be cached aclocal.m4:1811: AC_LIBTOOL_LINKER_OPTION is expanded from... configure.in:493: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_CXX, ...): suspicious cache-id, must contain _cv_ to be cached aclocal.m4:3911: _LT_AC_LANG_CXX_CONFIG is expanded from... aclocal.m4:3910: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from... aclocal.m4:2959: _LT_AC_TAGCONFIG is expanded from... configure.in:493: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_CXX, ...): suspicious cache-id, must contain _cv_ to be cached configure.in:493: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_F77, ...): suspicious cache-id, must contain _cv_ to be cached aclocal.m4:5133: _LT_AC_LANG_F77_CONFIG is expanded from... aclocal.m4:5132: AC_LIBTOOL_LANG_F77_CONFIG is expanded from... configure.in:493: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_F77, ...): suspicious cache-id, must contain _cv_ to be cached configure.in:493: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_GCJ, ...): suspicious cache-id, must contain _cv_ to be cached aclocal.m4:5242: _LT_AC_LANG_GCJ_CONFIG is expanded from... aclocal.m4:5241: AC_LIBTOOL_LANG_GCJ_CONFIG is expanded from... configure.in:493: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_GCJ, ...): suspicious cache-id, must contain _cv_ to be cached autoreconf: running: /home/djdeath/src/buildroot/buildroot/build_sh4/host_dir/usr/bin/autoheader --include=/home/djdeath/src/buildroot/buildroot/build_sh4/staging_dir/usr/share/aclocal --force configure.in:493: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works, ...): suspicious cache-id, must contain _cv_ to be cached ../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from... ../../lib/autoconf/general.m4:1994: AC_CACHE_CHECK is expanded from... aclocal.m4:1766: AC_LIBTOOL_COMPILER_OPTION is expanded from... aclocal.m4:6054: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from... aclocal.m4:3834: _LT_AC_LANG_C_CONFIG is expanded from... aclocal.m4:3833: AC_LIBTOOL_LANG_C_CONFIG is expanded from... aclocal.m4:1214: AC_LIBTOOL_SETUP is expanded from... aclocal.m4:1194: _AC_PROG_LIBTOOL is expanded from... aclocal.m4:1159: AC_PROG_LIBTOOL is expanded from... aclocal.m4:7599: AM_PROG_LIBTOOL is expanded from... configure.in:493: the top level configure.in:493: warning: AC_CACHE_VAL(lt_prog_compiler_static_works, ...): suspicious cache-id, must contain _cv_ to be cached aclocal.m4:1811: AC_LIBTOOL_LINKER_OPTION is expanded from... configure.in:493: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_CXX, ...): suspicious cache-id, must contain _cv_ to be cached aclocal.m4:3911: _LT_AC_LANG_CXX_CONFIG is expanded from... aclocal.m4:3910: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from... aclocal.m4:2959: _LT_AC_TAGCONFIG is expanded from... configure.in:493: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_CXX, ...): suspicious cache-id, must contain _cv_ to be cached configure.in:493: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_F77, ...): suspicious cache-id, must contain _cv_ to be cached aclocal.m4:5133: _LT_AC_LANG_F77_CONFIG is expanded from... aclocal.m4:5132: AC_LIBTOOL_LANG_F77_CONFIG is expanded from... configure.in:493: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_F77, ...): suspicious cache-id, must contain _cv_ to be cached configure.in:493: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_GCJ, ...): suspicious cache-id, must contain _cv_ to be cached aclocal.m4:5242: _LT_AC_LANG_GCJ_CONFIG is expanded from... aclocal.m4:5241: AC_LIBTOOL_LANG_GCJ_CONFIG is expanded from... configure.in:493: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_GCJ, ...): suspicious cache-id, must contain _cv_ to be cached autoreconf: running: automake --add-missing --copy --force-missing configure.in:493: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works, ...): suspicious cache-id, must contain _cv_ to be cached ../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from... ../../lib/autoconf/general.m4:1994: AC_CACHE_CHECK is expanded from... aclocal.m4:1766: AC_LIBTOOL_COMPILER_OPTION is expanded from... aclocal.m4:6054: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from... aclocal.m4:3834: _LT_AC_LANG_C_CONFIG is expanded from... aclocal.m4:3833: AC_LIBTOOL_LANG_C_CONFIG is expanded from... aclocal.m4:1214: AC_LIBTOOL_SETUP is expanded from... aclocal.m4:1194: _AC_PROG_LIBTOOL is expanded from... aclocal.m4:1159: AC_PROG_LIBTOOL is expanded from... aclocal.m4:7599: AM_PROG_LIBTOOL is expanded from... configure.in:493: the top level configure.in:493: warning: AC_CACHE_VAL(lt_prog_compiler_static_works, ...): suspicious cache-id, must contain _cv_ to be cached aclocal.m4:1811: AC_LIBTOOL_LINKER_OPTION is expanded from... configure.in:493: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_CXX, ...): suspicious cache-id, must contain _cv_ to be cached aclocal.m4:3911: _LT_AC_LANG_CXX_CONFIG is expanded from... aclocal.m4:3910: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from... aclocal.m4:2959: _LT_AC_TAGCONFIG is expanded from... configure.in:493: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_CXX, ...): suspicious cache-id, must contain _cv_ to be cached configure.in:493: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_F77, ...): suspicious cache-id, must contain _cv_ to be cached aclocal.m4:5133: _LT_AC_LANG_F77_CONFIG is expanded from... aclocal.m4:5132: AC_LIBTOOL_LANG_F77_CONFIG is expanded from... configure.in:493: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_F77, ...): suspicious cache-id, must contain _cv_ to be cached configure.in:493: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_GCJ, ...): suspicious cache-id, must contain _cv_ to be cached aclocal.m4:5242: _LT_AC_LANG_GCJ_CONFIG is expanded from... aclocal.m4:5241: AC_LIBTOOL_LANG_GCJ_CONFIG is expanded from... configure.in:493: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_GCJ, ...): suspicious cache-id, must contain _cv_ to be cached gtk-doc.make:7: GTK_DOC_USE_LIBTOOL does not appear in AM_CONDITIONAL docs/reference/gio/Makefile.am:107: `gtk-doc.make' included from here gtk-doc.make:50: ENABLE_GTK_DOC does not appear in AM_CONDITIONAL docs/reference/gio/Makefile.am:107: `gtk-doc.make' included from here gtk-doc.make:175: ENABLE_GTK_DOC does not appear in AM_CONDITIONAL docs/reference/gio/Makefile.am:107: `gtk-doc.make' included from here gtk-doc.make:26: EXTRA_DIST multiply defined in condition TRUE ... docs/reference/gio/Makefile.am:107: `gtk-doc.make' included from here Makefile.decl:8: ... `EXTRA_DIST' previously defined here docs/reference/gio/Makefile.am:1: `Makefile.decl' included from here gtk-doc.make:7: GTK_DOC_USE_LIBTOOL does not appear in AM_CONDITIONAL docs/reference/glib/Makefile.am:73: `gtk-doc.make' included from here gtk-doc.make:50: ENABLE_GTK_DOC does not appear in AM_CONDITIONAL docs/reference/glib/Makefile.am:73: `gtk-doc.make' included from here gtk-doc.make:175: ENABLE_GTK_DOC does not appear in AM_CONDITIONAL docs/reference/glib/Makefile.am:73: `gtk-doc.make' included from here gtk-doc.make:26: EXTRA_DIST multiply defined in condition TRUE ... docs/reference/glib/Makefile.am:73: `gtk-doc.make' included from here Makefile.decl:8: ... `EXTRA_DIST' previously defined here docs/reference/glib/Makefile.am:2: `Makefile.decl' included from here docs/reference/glib/Makefile.am:92: `%'-style pattern rules are a GNU make extension gtk-doc.make:7: GTK_DOC_USE_LIBTOOL does not appear in AM_CONDITIONAL docs/reference/gobject/Makefile.am:61: `gtk-doc.make' included from here gtk-doc.make:50: ENABLE_GTK_DOC does not appear in AM_CONDITIONAL docs/reference/gobject/Makefile.am:61: `gtk-doc.make' included from here gtk-doc.make:175: ENABLE_GTK_DOC does not appear in AM_CONDITIONAL docs/reference/gobject/Makefile.am:61: `gtk-doc.make' included from here gtk-doc.make:26: EXTRA_DIST multiply defined in condition TRUE ... docs/reference/gobject/Makefile.am:61: `gtk-doc.make' included from here Makefile.decl:8: ... `EXTRA_DIST' previously defined here docs/reference/gobject/Makefile.am:2: `Makefile.decl' included from here docs/reference/gobject/Makefile.am:74: `%'-style pattern rules are a GNU make extension autoreconf: automake failed with exit status: 1 make: *** [/home/djdeath/src/buildroot/buildroot/build_sh4/libglib2-2.20.1/.stamp_autoconfigured] Erreur 1 <------------------------------- This is strange, because autoreconf uses automake from the host instead of /home/djdeath/src/buildroot/buildroot/build_sh4/host_dir/usr/bin/automake, just like it's done for autoheader/autoconf/aclocal. -- Lionel Landwerlin <lionel.landwerlin@openwide.fr> ^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] External toolchain improvements 2009-07-03 8:13 ` Thomas Petazzoni 2009-07-03 21:24 ` Lionel Landwerlin @ 2009-07-06 0:51 ` Lionel Landwerlin 1 sibling, 0 replies; 13+ messages in thread From: Lionel Landwerlin @ 2009-07-06 0:51 UTC (permalink / raw) To: buildroot Le vendredi 03 juillet 2009 ? 10:13 +0200, Thomas Petazzoni a ?crit : > Le Fri, 03 Jul 2009 08:01:43 +0200, > Lionel Landwerlin <lionel.landwerlin@openwide.fr> a ?crit : > > > /usr/lib/libdl.so: file not recognized: File format not recognized > > Arf, libtool crap. > > Can you try with > > LIBGLIB2_LIBTOOL_PATCH = YES > LIBGLIB2_AUTORECONF = YES > > in package/libglib2/libglib2.mk ? > > This will try to fix ltmain.sh to workaround cross-compiling issues. > I finally succeeded in building glib2... I had to patch the configure.in and the gtk-doc.make files against a problem when reconfiguring the scripts. GTK_DOC seems to be the main problem. I successfully built the following packages : atk-1.22.0 directfb-1.4.0 fontconfig-2.6.0 libungif-4.1.4 perl-5.8.8 zlib-1.2.3 cairo-1.6.4 dbus-glib-0.80 expat-2.0.1 freetype-2.3.9 jpeg-6b libpng-1.2.35 libxml2-2.6.32 pixman-0.10.0 dbus-1.2.12 gettext-0.16.1 libglib2-2.20.1 I'm now stuck with a dbus-glib build error : make[7]: Entering directory `/home/djdeath/src/buildroot/buildroot/build_sh4/dbus-glib-0.80/dbus/examples' /opt/STM/STLinux-2.3/devkit/sh4/bin/sh4-linux-gcc -O2 -O2 --sysroot /home/djdeath/src/buildroot/buildroot/build_sh4/staging_dir/ -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../.. -I../../dbus -I/home/djdeath/src/buildroot/buildroot/build_sh4/staging_dir/usr/include/dbus-1.0 -I/home/djdeath/src/buildroot/buildroot/build_sh4/staging_dir/usr/lib/dbus-1.0/include -I/home/djdeath/src/buildroot/buildroot/build_sh4/staging_dir/usr/include/glib-2.0 -I/home/djdeath/src/buildroot/buildroot/build_sh4/staging_dir/usr/lib/glib-2.0/include -DDBUS_COMPILATION -DDBUS_API_SUBJECT_TO_CHANGE=1 -O2 -O2 --sysroot /home/djdeath/src/buildroot/buildroot/build_sh4/staging_dir/ -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wfloat-equal -Wsign-compare -MT example-service.o -MD -MP -MF .deps/example-service.Tpo -c -o example-service.o example-service.c In file included from example-service.c:57: example-service-glue.h:5: error: 'dbus_glib_marshal_some_object_BOOLEAN__STRING_POINTER_POINTER' undeclared here (not in a function) example-service-glue.h:6: error: 'dbus_glib_marshal_some_object_BOOLEAN__POINTER_POINTER' undeclared here (not in a function) make[7]: *** [example-service.o] Error 1 It's a bit late, so I will check that later this week. Any suggestion is welcome. Except patches I've done for the GTK_DOC stuff in glib (I mostly commented lines), you can find other patches in attachment. Regards, -- Lionel Landwerlin <lionel.landwerlin@openwide.fr> -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-Fix-sysroot-copy-when-current-locale-is-not-set-to-e.patch Type: text/x-patch Size: 1116 bytes Desc: not available URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20090706/b1ba422a/attachment.bin> -------------- next part -------------- A non-text attachment was scrubbed... Name: 0002-glib2-libtool-broken.patch Type: text/x-patch Size: 1039 bytes Desc: not available URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20090706/b1ba422a/attachment-0001.bin> -------------- next part -------------- A non-text attachment was scrubbed... Name: 0003-Avoid-ATK-to-use-glib-genmarshal-from-staging-direct.patch Type: text/x-patch Size: 785 bytes Desc: not available URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20090706/b1ba422a/attachment-0002.bin> -------------- next part -------------- A non-text attachment was scrubbed... Name: 0004-dbus-libtool-broken.patch Type: text/x-patch Size: 785 bytes Desc: not available URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20090706/b1ba422a/attachment-0003.bin> -------------- next part -------------- A non-text attachment was scrubbed... Name: 0005-dbus-glib-libtool-broken.patch Type: text/x-patch Size: 860 bytes Desc: not available URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20090706/b1ba422a/attachment-0004.bin> -------------- next part -------------- A non-text attachment was scrubbed... Name: 0006-Avoid-FONTCONFIG-to-use-bin-sh-from-staging-director.patch Type: text/x-patch Size: 2258 bytes Desc: not available URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20090706/b1ba422a/attachment-0005.bin> -------------- next part -------------- A non-text attachment was scrubbed... Name: 0007-directfb-libtool-broken.patch Type: text/x-patch Size: 949 bytes Desc: not available URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20090706/b1ba422a/attachment-0006.bin> ^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] External toolchain improvements 2009-07-02 12:50 ` Thomas Petazzoni 2009-07-03 6:01 ` Lionel Landwerlin @ 2009-07-13 19:26 ` Lionel Landwerlin 2009-07-14 14:41 ` Thomas Petazzoni 1 sibling, 1 reply; 13+ messages in thread From: Lionel Landwerlin @ 2009-07-13 19:26 UTC (permalink / raw) To: buildroot Le jeudi 02 juillet 2009 ? 14:50 +0200, Thomas Petazzoni a ?crit : > Hi, > > Le Wed, 01 Jul 2009 23:43:34 +0200, > Lionel Landwerlin <lionel.landwerlin@openwide.fr> a ?crit : > > > * Buildroot version > > > > Your external-toolchain branch > > Which doesn't exist anymore since it has been merged in the official > Buildroot :-) Just a word about the choice to put the EXTERNAL_LIBS variable in toolchain/external-toolchain/ext-tool.mk. I don't think it's a good choice. For example, my current toolchain includes a glibc version 2.6. This make the ld-linux loader name /lib/ld-linux.so.2 instead of /lib/ld-linux.so.3. Modifying an enormous variable inside kconfig is painful, but I think it's better to let this variable configurable rather than encourage the buildroot user to modify an unfriendly makefile (toolchain/external-toolchain/ext-tool.mk). > But ok, fine, I know what you're using. > > Thanks! > > Thomas > -- Thanks again for your support. Regards, -- Lionel Landwerlin <lionel.landwerlin@openwide.fr> ^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] External toolchain improvements 2009-07-13 19:26 ` Lionel Landwerlin @ 2009-07-14 14:41 ` Thomas Petazzoni 2009-07-14 19:51 ` Lionel Landwerlin 0 siblings, 1 reply; 13+ messages in thread From: Thomas Petazzoni @ 2009-07-14 14:41 UTC (permalink / raw) To: buildroot Hello Lionel, Le Mon, 13 Jul 2009 21:26:02 +0200, Lionel Landwerlin <lionel.landwerlin@openwide.fr> a ?crit : > Just a word about the choice to put the EXTERNAL_LIBS variable in > toolchain/external-toolchain/ext-tool.mk. I don't think it's a good > choice. For example, my current toolchain includes a glibc version > 2.6. This make the ld-linux loader name /lib/ld-linux.so.2 instead > of /lib/ld-linux.so.3. > > Modifying an enormous variable inside kconfig is painful, but I think > it's better to let this variable configurable rather than encourage > the buildroot user to modify an unfriendly makefile > (toolchain/external-toolchain/ext-tool.mk). This is also something I've discovered recently. I'd like to spend some time to see if it's still possible to auto-detect the version of the libraries to copy. If it doesn't work, then I fallback to the previous solution, which I don't find really nice. Sincerly, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com ^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] External toolchain improvements 2009-07-14 14:41 ` Thomas Petazzoni @ 2009-07-14 19:51 ` Lionel Landwerlin 0 siblings, 0 replies; 13+ messages in thread From: Lionel Landwerlin @ 2009-07-14 19:51 UTC (permalink / raw) To: buildroot Le mardi 14 juillet 2009 ? 16:41 +0200, Thomas Petazzoni a ?crit : > Hello Lionel, > > Le Mon, 13 Jul 2009 21:26:02 +0200, > Lionel Landwerlin <lionel.landwerlin@openwide.fr> a ?crit : > > > Just a word about the choice to put the EXTERNAL_LIBS variable in > > toolchain/external-toolchain/ext-tool.mk. I don't think it's a good > > choice. For example, my current toolchain includes a glibc version > > 2.6. This make the ld-linux loader name /lib/ld-linux.so.2 instead > > of /lib/ld-linux.so.3. > > > > Modifying an enormous variable inside kconfig is painful, but I think > > it's better to let this variable configurable rather than encourage > > the buildroot user to modify an unfriendly makefile > > (toolchain/external-toolchain/ext-tool.mk). > > This is also something I've discovered recently. I'd like to spend some > time to see if it's still possible to auto-detect the version of the > libraries to copy. If it doesn't work, then I fallback to the previous > solution, which I don't find really nice. > > Sincerly, I just successed in building webkit on top of directfb with an external toolchain. We should also think to copy the libstdc++ files when selected from the config file. Regards, -- Lionel Landwerlin <lionel.landwerlin@openwide.fr> ^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] External toolchain improvements @ 2009-06-01 16:54 Thomas Petazzoni 0 siblings, 0 replies; 13+ messages in thread From: Thomas Petazzoni @ 2009-06-01 16:54 UTC (permalink / raw) To: buildroot Hi, About one month ago, I posted two patches that try to improve external toolchain support. I've rebased these patches and pushed them to a public Git repository, in a branch called external-toolchain : http://git.buildroot.net/~tpetazzoni/git/buildroot/commit/?h=external-toolchain I'm asking for a review of these patches (is the feature worthwhile, is it well implemented, etc.), and maybe inclusion of these patches if they are suitable. Also, please don't hesitate to report any issue with the patches: I'm not yet completely familiar with Git, so I may have done mistakes when generating/publishing the patches. Thanks, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com ^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2009-07-14 19:51 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.0.1246405094.1110.buildroot@busybox.net>
2009-06-30 23:50 ` [Buildroot] External toolchain improvements Lionel Landwerlin
2009-06-30 23:54 ` Lionel Landwerlin
2009-07-01 14:05 ` Thomas Petazzoni
2009-07-01 21:43 ` Lionel Landwerlin
2009-07-02 12:50 ` Thomas Petazzoni
2009-07-03 6:01 ` Lionel Landwerlin
2009-07-03 8:13 ` Thomas Petazzoni
2009-07-03 21:24 ` Lionel Landwerlin
2009-07-06 0:51 ` Lionel Landwerlin
2009-07-13 19:26 ` Lionel Landwerlin
2009-07-14 14:41 ` Thomas Petazzoni
2009-07-14 19:51 ` Lionel Landwerlin
2009-06-01 16:54 Thomas Petazzoni
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox