**** BEGIN LOGGING AT Tue Jun 07 02:59:57 2011 Jun 07 05:27:21 build #39 of ar7 is complete: Failure [failed shell_4] Build details are at http://buildbot.openwrt.org:8010/builders/ar7/builds/39 Jun 07 05:53:04 build #39 of sibyte is complete: Failure [failed shell_4] Build details are at http://buildbot.openwrt.org:8010/builders/sibyte/builds/39 Jun 07 06:26:12 build #38 of avr32 is complete: Failure [failed shell_4] Build details are at http://buildbot.openwrt.org:8010/builders/avr32/builds/38 Jun 07 06:46:45 build #49 of at91 is complete: Failure [failed compile_4] Build details are at http://buildbot.openwrt.org:8010/builders/at91/builds/49 Jun 07 06:47:27 build #48 of ubicom32 is complete: Failure [failed compile_3] Build details are at http://buildbot.openwrt.org:8010/builders/ubicom32/builds/48 Jun 07 06:57:57 build #44 of ramips is complete: Success [build successful] Build details are at http://buildbot.openwrt.org:8010/builders/ramips/builds/44 Jun 07 07:21:17 build #43 of rb532 is complete: Failure [failed shell_4] Build details are at http://buildbot.openwrt.org:8010/builders/rb532/builds/43 Jun 07 08:37:42 mirko * r27122 /trunk/toolchain/gcc/patches/linaro/860-fix_extension_elimination.patch: [toolchain/gcc] remove empty file (patch went upstream and file didn't get deleted but only cleared) Jun 07 08:51:32 russell--: no Jun 07 09:06:20 MarkV: You're Mr Mentovai? Jun 07 09:12:14 I'm experiencing ICE's (gcc internal errors) with gcc 4.5.x with linaro enhancements when compiling openssl with -O3 - let's see whether this is the same with different flags / archs... Jun 07 09:12:27 (it's armv5te btw) Jun 07 09:13:27 KanjiMonster: that is unfortunate. Jun 07 09:14:48 or, at least, it might be Jun 07 09:15:14 mirko: I think "markmentovai" (as in "markmentovai [~markmento@nat/google/x-muzakeoxsujkpgnv] has quit IRC: Quit: markmentovai") is mark mentovai ;) Jun 07 09:16:56 russell--: unfortunately phy_drivers do not have the concept of platform_data Jun 07 09:18:11 somehow the 493g needs to be configured differently from the 450g Jun 07 09:19:18 unfortunately, i need to go fall asleep now Jun 07 09:47:44 Hauke: http://inuyasha.ath.cx/~jonas/0001-SSB-Add-Serial-Flash-support.patch - this doesn't compile in this state as this misses some more or less trivial changes: it uses the mtd_init_partitions from the parallel flash driver; and the parallel flash driver needs to check the chipco.capabilities for parallel flash, too Jun 07 09:49:26 Hauke: the mtd_partition_init should probably an mtd_partition_parser like ar7part for mainline inclusion Jun 07 09:50:34 KanjiMonster: I haven't had a closer look at the flash stuff yet, but the actual parallel flash driver needs some work before it could be included into mainline Jun 07 09:51:30 KanjiMonster: if you would like to work on the flash driver feel free to do so Jun 07 09:51:49 I will not do anything till the weekend in that area Jun 07 10:00:26 Hauke: like? yes, should? no - I should first finish the other things I started - maybe later ;) Jun 07 10:02:09 Hauke: also there's still some #ifdef CONFIG_MTD_PARTITIONS in there, this should go away for mainline as this is now implicit with MTD Jun 07 10:25:12 mirko * r27123 /packages/libs/tokyocabinet/ (4 files in 2 dirs): [packages] add library 'tokyocabinet' - thanks to Obinou Jun 07 10:25:15 mirko * r27124 /packages/net/seeks/ (8 files in 3 dirs): [packages] add package 'seeks' - thanks to Obinou Jun 07 12:49:11 hello Jun 07 12:49:54 what do i have to change in uboot after upgrading flash chip from 4 to 8mb? Jun 07 13:02:01 <[florian]> if the flash size is not hardcoded, nothing Jun 07 13:02:13 <[florian]> supposing that your flash can be queried using cfi, it should be transparent Jun 07 13:08:03 router model? Jun 07 14:00:00 Is there a way to put into an OpenWRT Makefile package so that it won't get compiled after X package has been compiled. That's if X package is also enabled. Jun 07 14:00:28 yeah, its called a dependency Jun 07 14:01:07 If I use dependency, then it will also compile package X which is not needed. Jun 07 14:01:37 why do you need it then? Jun 07 14:03:44 For instance, I ported unixodbc to OpenWRT. If I enable unixodbc as well as erlang packages (needed by FreeSWITCH), erlang package will break the compilation after unixodbc first gets compiled. I have to manually clean unixodbc and manually compile erlang and unixodbc packages in that order for both packages to get compiled without a problem. Jun 07 14:04:03 you should fix the root cause then Jun 07 14:04:17 enforcing dependencies will not help Jun 07 14:04:36 someday a hypothetical package comes along which breaks it again Jun 07 14:09:58 jow_laptop: I wish I know how to fix this problem. I am hoping you and/or anyone here can help. Anyway, here (http://pastebin.com/4jdsRpHC) is the log. Jun 07 14:10:32 /usr/include/pthread.h Jun 07 14:10:38 it pulls in host headers again Jun 07 14:11:49 jow_laptop: That is from erlang package. However, it doesn't seem to do that if unixodbc package isn't compiled first. Jun 07 14:12:30 this suggests that unixodb installs a *.pc or *-config file in staging_dir/target-*/ which contains invalid cflags or ldflags Jun 07 14:12:40 if you remember you already had this with others Jun 07 14:13:09 jow_laptop: But, I didn't get it resolved and forgot about it until now. Jun 07 14:13:34 a *.la file could cause this too Jun 07 14:14:37 whats in staging_dir/target-*/root-*/usr/lib/pkgconfig ? Jun 07 14:16:25 also is there a staging_dir/target-*/root-*/usr/bin/odbc_config ? Jun 07 14:16:47 or an odbc_config in any other dir within staging_dir/ ? Jun 07 14:18:04 jow_laptop: There is a staging_dir/target-arm_v5te_uClibc-0.9.32_eabi/usr/bin/odbc_config file Jun 07 14:18:11 ok, paste it Jun 07 14:18:37 jow_laptop: It is an ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), not stripped Jun 07 14:18:49 ok Jun 07 14:19:03 anything else? Jun 07 14:19:29 oh Jun 07 14:19:40 and it looks like the macports have the exact same problem as you Jun 07 14:19:48 https://trac.macports.org/ticket/16139 Jun 07 14:25:15 jow_laptop: According to the link you provided (macports), we need to create a new patch for erlang package on otp_src_R13A/lib/odbc/configure or otp_src_R13A/lib/odbc/configure.in file. Jun 07 14:25:26 yes Jun 07 14:27:38 jow_laptop: I took a look at the otp_src_R13A/lib/odbc/configure.in file on line #145, it allows to specify the odbc directory using with_odbc switch. Jun 07 14:28:08 let me download the source Jun 07 14:29:37 jow_laptop: With this, perhaps all we need is to add with_odbc="..." variable on the OpenWRT Makefile for erlang package. Jun 07 14:29:42 maybe we should update to R14B first? Jun 07 14:29:57 jow_laptop: Perhaps, taht is even better. Jun 07 14:30:33 jow_laptop: Once you update to R14B, I will give a try to compile it with unixodbc present. Jun 07 14:31:07 jow_laptop: If that works, then I can contact Travis to add unixodbc for me to maintain. Jun 07 14:33:48 ok, in the menawhile try adding with_odbc="$(STAGING_DIR)/usr" to the CONFIGURE_VARS Jun 07 14:44:16 jow_laptop: The BUILD_LOG still shows the same error messages with using the /usr/include/pthread.h file. But, the V=99 screen capture shows differences as seen here (http://pastebin.com/kHFYxXcT). Jun 07 14:46:48 jow_laptop: The screen capture shows error compilation on erlang package for host. So, perhaps we need to set the with_odbc="${STAGING_DIR_HOST}/usr/lib" Jun 07 15:05:39 jow_laptop: I just realized the mistake I made. I put the with_odbc="$(STAGING_DIR)/usr" in the HOST_CONFIGURE_VARS. Now, that I put the with_odbc="$(STAGING_DIR)/usr" in the CONFIGURE_VARS, the compilation finished without a problem. Jun 07 15:37:09 hauke * r27125 /trunk/package/kernel/modules/block.mk: kernel: fix call of kmod-pata-cs5535 and kmod-pata-cs5536 Jun 07 15:39:32 hauke * r27126 /trunk/package/kernel/modules/block.mk: kernel: fix description of kmod-pata-cs5535 and kmod-pata-cs5536 Jun 07 16:15:27 hi Jun 07 16:15:33 any u-boot gurus here? Jun 07 16:50:35 hi Jun 07 16:50:37 ping nbd Jun 07 16:53:32 tripolar: pong Jun 07 16:53:53 nbd can you apply the patch i sent to the ml for the network init script? Jun 07 16:54:16 or what do i have to change to get it applied? Jun 07 16:55:09 "flash wearout v2"? Jun 07 16:56:26 yeah Jun 07 16:57:20 looks good enough, i'll commit it Jun 07 16:57:24 thanks Jun 07 17:01:07 nbd * r27127 /trunk/package/base-files/files/etc/init.d/network: Jun 07 17:01:07 base-files: do not write to /etc/config/wireless at boot time unless a new interface was found Jun 07 17:01:07 eliminates unnecessary flash write cycles at every boot Jun 07 17:01:07 patch by Peter Wagner (tripolar) Jun 07 17:01:36 btw. please send future patches in a format that can be used with git-am - with proper subject, description and signed-off-by Jun 07 17:02:48 nbd can i create a patch like this? Jun 07 17:02:53 nbd how can i create a patch like this? Jun 07 17:03:33 your subject line should be : Jun 07 17:04:02 then the message body should be a long description (not repeating stuff from the short one) Jun 07 17:04:23 and then you can either keep your patch as an attachment, or send it inline (but careful about line wrapping) Jun 07 17:04:53 okay next time i'll do it Jun 07 17:07:32 nbd * r27128 /trunk/target/linux/ar71xx/base-files/etc/inittab: ar71xx: override inittab to enable login on ttyATH0 Jun 07 17:40:17 tripolar: easiest is to use git - it can even send emails for you ;) Jun 07 17:40:59 KanjiMonster yeah, git is really nice Jun 07 17:41:18 the learning curve is quite steep though Jun 07 17:43:11 xMff: if I have a host in /etc/hosts with 5 names, ping segfaults. Four names is ok. Jun 07 17:43:27 xMff: will you try it? something like this: '192.168.1.1 one two three four five' Jun 07 17:47:01 netprince: 192.168.1.2 a b c d e r - works here Jun 07 17:47:44 netprince true - i get no segfault but Jun 07 17:47:45 ping e Jun 07 17:47:45 ping: bad address 'e' Jun 07 17:47:55 a b c d works Jun 07 17:49:16 netprince: what uclibc version? Jun 07 17:55:02 tripolar: try pinging an internet address, not something from the hosts file Jun 07 17:55:35 netprince works Jun 07 17:55:39 xMff: uclibcxx - 0.2.2-3 Jun 07 17:55:59 netprince: the other one Jun 07 17:57:10 netprince: I can't reproduce it on current trunk and on rc5 Jun 07 17:57:15 netprince: opkg list|grep "libc " Jun 07 17:57:27 but I recall some old dns related uclibc issues Jun 07 17:57:41 libc - 0.9.32-71 Jun 07 17:57:48 xMff can you ping the fifth name when u add a host with at least 5 aliases? Jun 07 17:57:58 yes Jun 07 17:58:16 xMff: im on trunk and here it doesnt work - compiled a few hours ago Jun 07 17:58:27 trunk here too Jun 07 17:58:30 ar71xx Jun 07 17:59:03 ah, I can reproduce it; it needs 6+ aliases though Jun 07 17:59:13 or names Jun 07 17:59:22 sorry, my test device is rc5 too Jun 07 17:59:25 ping e -> segmentation fault Jun 07 17:59:28 will reflash it Jun 07 17:59:33 (on trunk) Jun 07 17:59:42 there is more weird stuff going on Jun 07 17:59:56 dnsmasq has broken ptr records since a while Jun 07 17:59:58 maybe related Jun 07 18:00:13 if there's only 5, then ping e works Jun 07 18:00:36 KanjiMonster: I hadn't tried pinging the sixth name, it segfaults as well, nice catch Jun 07 18:00:52 KanjiMonster: same for me - but i dont get a segfault i only have ping: bad address 'e' for at least 6 aliases and "e" is on the 5th place Jun 07 18:01:04 if I put in 5 names, I cant lookup names not in the hosts file Jun 07 18:04:26 xMff but doesnt a ping e - look in the host file first befor it connects to the dns server? Jun 07 18:04:51 it all goes through crappy uclibc code Jun 07 18:05:32 xMff maybe updating uclibc fixes the problem Jun 07 18:05:48 so far uclibc updates always introduced problems Jun 07 18:07:14 I'll take a look at it Jun 07 18:12:20 hey Jun 07 18:12:41 bah I hate compiling gdb Jun 07 18:12:48 its more gnu autoshit than actual compilation Jun 07 18:13:12 can you give mw some advices about uboot and mtds? Jun 07 18:13:40 does uboot know anything about mtds? Jun 07 18:27:14 netprince: #define MAXALIASES (4) Jun 07 18:28:35 maxtokes is 6 (addr + name + maxaliases) Jun 07 18:51:09 netprince: hmm, this smells like a miscompilation Jun 07 18:51:25 I just replaced uclibc with a debug build and now I get "bad address" Jun 07 18:55:23 * xMff retries with -O2 -ggdb3 Jun 07 19:03:10 okay Jun 07 19:03:14 -O0 -> fine Jun 07 19:03:18 -Os -> segfault Jun 07 19:03:49 gcc seems to remove some boundary checks Jun 07 19:04:48 lets pinpoint it... Jun 07 19:06:30 xMff: not nice, but definitely interesting find Jun 07 19:09:56 wait Jun 07 19:12:02 there seems to be some unclean buffer or something Jun 07 19:12:16 __read_etc_hosts_r() is called twice Jun 07 19:12:19 the first time its okay Jun 07 19:12:37 the second time the last char * token is set to 0x80 instead of 0x0 Jun 07 19:12:47 which leads to the segfault Jun 07 19:13:12 I'm impressed, it would have taken me 2 days to figure that out Jun 07 19:14:19 I should write a howto debug uclibc Jun 07 19:14:27 ts actually quite easy Jun 07 19:16:44 here's the first and second invocation: http://pastebin.com/7wphHYnD Jun 07 19:16:56 I now suspect the error somewhere in config_read() Jun 07 19:29:16 hm question Jun 07 19:29:34 the offending buffer is allocated on the stack with alloca() Jun 07 19:29:49 are there any guarantees about that being zeroed out? Jun 07 19:30:39 afaik not Jun 07 20:03:12 xMff: no, its not guaranted ,its not adviced to use alloca(), use calloc() instead. Jun 07 20:03:40 well its what uclibc uses Jun 07 20:04:49 well. its smaller, thats the reason probaly ? Jun 07 20:05:15 I just try to track down an improperly cleared buffer Jun 07 20:05:30 and I have difficulties seeing through the pointer forest :) Jun 07 20:06:36 char ***tokens = (char **) parser->data; memset(*tokens, 0, sizeof(*tokens[0]) * ntokens); <-- this does not seem to properly clear out the tokens array Jun 07 20:06:49 if poss, try to zero it manually (with memset() maybe? ) Jun 07 20:07:14 hm Jun 07 20:07:51 char *** is a pointer to an array of chars, right? Jun 07 20:08:11 or rather a pointer to a pointer to an array of char pointers Jun 07 20:08:18 the second Jun 07 20:08:30 indeed, forest of pointers.. :-/ Jun 07 20:08:40 pointer to pointer to an array, sheesh, is that really necessary ... Jun 07 20:08:57 the thing is Jun 07 20:09:09 in my specific testcase the tokens array has len = 6 Jun 07 20:09:52 *tokens[6] is 0x80 Jun 07 20:10:05 after the memset its still 0x80 Jun 07 20:10:13 I would have expected it to be 0x0 then Jun 07 20:10:44 erm wait Jun 07 20:10:45 pointers always have const len (quite short), depending on architecture, its just address in memory Jun 07 20:11:25 I smell an off-by-one Jun 07 20:11:48 which properly does not happen with -O0 becase gcc clears the space behind the buffer or something Jun 07 20:11:51 maybe just hire gdb ? ;) Jun 07 20:11:57 I am in gdb Jun 07 20:12:08 but the codeflow is still hard to follow :P Jun 07 20:12:20 also because I have to step through -Os code Jun 07 20:12:51 and the pointer-pointer-pointer things make my head hurt Jun 07 20:15:05 too much beer makes my head hurt too, but I think I prefere it anyway ;) Jun 07 20:15:27 the difference is that beer only hurts tomorrow ;) Jun 07 20:15:41 I would replace this alloc with calloc, so far I know its usually badly implemented, and its not recomended to use this func.. Jun 07 20:16:38 well. gl with your pointers, I looked here only to close this window ;) Jun 07 20:18:51 well Jun 07 20:19:00 alloca allocates on the stack, while calloc allocates on the heap Jun 07 20:19:05 very different syscalls Jun 07 20:41:14 netprince: ok, I have a fix Jun 07 20:41:51 and uclibcs handling of extraneous alias entries is ... innovative Jun 07 20:42:01 root@OpenWrt:/tmp# cat /etc/hosts Jun 07 20:42:02 127.0.0.1 localhost Jun 07 20:42:02 1.1.1.1 a b c d e f Jun 07 20:42:06 root@OpenWrt:/tmp# nslookup "e f" Jun 07 20:42:06 Server: 127.0.0.1 Jun 07 20:42:06 Address 1: 127.0.0.1 localhost Jun 07 20:42:06 Name: e f Jun 07 20:42:06 Address 1: 1.1.1.1 a Jun 07 20:42:40 it stops parsing after d (max num of aliases reached) and collapses the rest into one Jun 07 20:44:23 xMff, wanna help me get ipv6 going :) ? Jun 07 20:45:24 netprince, KanjiMonster: wget -qO- http://luci.subsignal.org/~jow/uclibc-alias-fix.patch | patch -p0 && make toolchain/uClibc/{clean,compile,install} package/base-files/{clean,compile,install} target/linux/install V=99 Jun 07 21:07:13 build #49 of s3c24xx is complete: Failure [failed shell_4 compile_10] Build details are at http://buildbot.openwrt.org:8010/builders/s3c24xx/builds/49 Jun 07 21:15:49 how to figure out which kernel used for target? Jun 07 21:15:56 kernel version Jun 07 21:19:46 grep LINUX_VERSION target/linux/$arch/Makefile Jun 07 21:43:37 * swalker wonders where the protobuf depends is for seeks Jun 07 21:48:53 swalker * r27129 /packages/net/seeks/Makefile: [packages] seeks: store the git hash in the PKG_REV variable Jun 07 21:52:29 swalker * r27130 /packages/net/freeswitch/Makefile: [packages] freeswitch: store the git hash in the PKG_REV variable Jun 07 21:54:35 jow * r27131 /trunk/toolchain/uClibc/patches-0.9.32/131-inet-fix-__read_etc_hosts_r-segfault.patch: [toolchain] uClibc: fix a crash in __read_etc_hosts_r() that occurs if more than five hostnames follow a dotted quad in /etc/hosts Jun 07 22:55:57 build #31 of mpc52xx is complete: Failure [failed shell_4 compile_4] Build details are at http://buildbot.openwrt.org:8010/builders/mpc52xx/builds/31 Jun 07 23:26:05 jow * r27132 /trunk/package/base-files/ (Makefile files/lib/network/config.sh files/sbin/ifup): [package] base-files: fix error reporting for unsupported protocols on virtual interfaces Jun 07 23:27:13 jow * r27133 /branches/backfire/package/base-files/ (Makefile files/lib/network/config.sh files/sbin/ifup): [backfire] merge r27132 Jun 07 23:32:37 build #31 of gemini is complete: Failure [failed shell_4] Build details are at http://buildbot.openwrt.org:8010/builders/gemini/builds/31 **** ENDING LOGGING AT Wed Jun 08 02:59:56 2011