All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ye Xiaolong <xiaolong.ye@intel.com>
To: lkp@lists.01.org
Subject: WARNING:at_lib/test_linktables/test-linktables.c:#test_linktable_init
Date: Tue, 21 Feb 2017 09:56:59 +0800	[thread overview]
Message-ID: <20170221015659.GC10024@yexl-desktop> (raw)
In-Reply-To: <20170111143435.GL13946@wotan.suse.de>

[-- Attachment #1: Type: text/plain, Size: 4976 bytes --]

On 01/11, Luis R. Rodriguez wrote:
>On Wed, Jan 11, 2017 at 09:52:01AM +0800, Ye Xiaolong wrote:
>> On 01/10, Luis R. Rodriguez wrote:
>> 
>> [snip]
>> 
>> >> >OK that runs, but that beats my actual machine with trinity, which is not
>> >> >desirable. I am trying to reproduce a reported error caught by lpk tests
>> >> >with trinity on my tree and that was with qemu. I have the job-script but
>> >> >that produces the same error with missing files. Can you help me with that?
>> >> 
>> >> Sure, could you paste the exact error log when you tried
>> >> "./bin/lkp qemu -k ~mcgrof/linux-next/arch/x86/boot/bzImage job-script"?
>> >
>> >As I noted its the same exact output, but here it is again:
>> >
>> >ergon:/home/mcgrof/devel/lkp-tests # export LKP_SRC=$PWD                                                     
>> >ergon:/home/mcgrof/devel/lkp-tests # export PATH=$PATH:$LKP_SRC/bin 
>> >ergon:/home/mcgrof/devel/lkp-tests # ./bin/lkp qemu -k ~mcgrof/linux-next/arch/x86/boot/bzImage job-script
>> >job-script: line 2: $'\r': command not found
>> >job-script: line 3: syntax error near unexpected token `$'\r''
>> >'ob-script: line 3: `export_top_env()
>> >make: Entering directory '/home/mcgrof/devel/lkp-tests/bin/event'
>> >klcc    -c -o wakeup.o wakeup.c
>> >klcc  -static -o wakeup wakeup.o
>> >rm -f wakeup.o
>> >strip wakeup
>> >make: Leaving directory '/home/mcgrof/devel/lkp-tests/bin/event'
>> >cpio: lkp: Cannot stat: No such file or directory
>> >cpio: lkp/scheduled: Cannot stat: No such file or directory
>> >cpio: blank line ignored
>> >cpio: File /dev/mqueue/���� shrunk by 20 bytes, padding with zeros
>> >
>> >  Luis
>> 
>> Hmm, I believe it was caused by job-script saved as dos format, I can reproduce
>> it when I downloaded it through outlook attachment.
>> 
>> Try `dos2unix job-script` before "lkp qemu" to see whether it works.
>
>Thanks, that fixed it!
>
>I cannot reproduce the error reported. See:
>
>root(a)10:/# dmesg| grep linkta
>[    6.189785] test_linktables: linker table tests: OK!
>
>The original report:
>
>https://lists.01.org/pipermail/lkp/2016-December/005358.html
>
>I also pushed out a new linker table branch out for linker table
>with a revert done first to force test avr32 (it worked!) a yesterday
>and have not received any lkp complaints about it yet.

Sorry for the late. Actually I just tested with commit a02e947 ("lib: add linker tables test driver")
on branch mcgrof-next/20170113-linker-tables-v7-try2, and the warning log persists.
See dmesg attached.

>
>Also if I hit CTRL-C and try to run again I get:
>
>make: Entering directory '/home/mcgrof/devel/lkp-tests/bin/event'
>gcc  -m32 -static -o wakeup wakeup.o
>/usr/lib64/gcc/x86_64-suse-linux/6/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib64/gcc/x86_64-suse-linux/6/libgcc.a when searching for -lgcc
>/usr/lib64/gcc/x86_64-suse-linux/6/../../../../x86_64-suse-linux/bin/ld: cannot find -lgcc
>/usr/lib64/gcc/x86_64-suse-linux/6/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib64/gcc/x86_64-suse-linux/6/libgcc_eh.a when searching for -lgcc_eh
>/usr/lib64/gcc/x86_64-suse-linux/6/../../../../x86_64-suse-linux/bin/ld: cannot find -lgcc_eh
>/usr/lib64/gcc/x86_64-suse-linux/6/../../../../x86_64-suse-linux/bin/ld: cannot find -lc
>collect2: error: ld returned 1 exit status
>make: *** [Makefile:14: main] Error 1
>make: Leaving directory '/home/mcgrof/devel/lkp-tests/bin/event'
>mv: cannot stat '/root/.lkp/cache/lkp-i386.cgz': No such file or directory
>downloading initrds ...
>/usr/bin/wget -q --local-encoding=UTF-8 --retry-connrefused --waitretry 1000 --tries 1000 https://github.com/0day-ci/lkp-qemu/raw/master/osimage/openwrt/openwrt-i386-2016-03-16.cgz -N -P /root/.lkp/cache/osimage/openwrt
>
>It seems this tries to re-download the openwrt cpio -- why not avoid it if we already had it?

Nice suggestion. Actually we've added '-N' option for wget which will record file's timestamp,
and it will only re-download if remote file is newer than the local one. However, github server
seems refuse to send timestamp as wget would get message 'Last-modified header missing -- time-stamps
turned off', thus wget will ignore timestamp and re-download every time.
One workaround is to replace '-N' with '-nc' which means skip downloads if file exists.

diff --git a/lib/wget.sh b/lib/wget.sh
index 5524714..9db1e6f 100755
--- a/lib/wget.sh
+++ b/lib/wget.sh
@@ -41,7 +41,7 @@ http_get_directory()
 http_get_newer()
 {
        local path="$(dirname "$2")"
-       http_do_request "$1" -N -P "$path"
+       http_do_request "$1" -nc -P "$path"
 }
 
 http_get_cgi()


The risk is that it doesn't check the timestamp, so once you have a local cached file and we update the
remote one on github, `lkp qemu` would alway use the old one , but I figure it doesn't matter for this case.

Thanks,
Xiaolong
>
>  Luis

[-- Attachment #2: dmesg.xz --]
[-- Type: application/octet-stream, Size: 26372 bytes --]

  reply	other threads:[~2017-02-21  1:56 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-06 19:06 [PATCH 0/4] lkp: add initial opensuse support Luis R. Rodriguez
2017-01-06 19:06 ` [PATCH 1/4] lib/install.sh: fix shell adapt_packages() Luis R. Rodriguez
2017-01-09  7:39   ` Ye Xiaolong
2017-01-06 19:06 ` [PATCH 2/4] distro: add initial opensuse support Luis R. Rodriguez
2017-01-09  7:40   ` Ye Xiaolong
2017-01-06 19:06 ` [PATCH 3/4] lib/install.*: make package dependency list uniq Luis R. Rodriguez
2017-01-09  7:40   ` Ye Xiaolong
2017-01-06 19:06 ` [PATCH 4/4] .gitignore: add bin/event/wakeup Luis R. Rodriguez
2017-01-09  7:40   ` Ye Xiaolong
2017-01-06 19:58 ` [PATCH 0/4] lkp: add initial opensuse support Luis R. Rodriguez
2017-01-09  7:49 ` Ye Xiaolong
2017-01-09 14:26   ` Luis R. Rodriguez
2017-01-10  2:11     ` Ye Xiaolong
2017-01-10 14:25       ` Luis R. Rodriguez
2017-01-11  1:52         ` Ye Xiaolong
2017-01-11 14:34           ` Luis R. Rodriguez
2017-02-21  1:56             ` Ye Xiaolong [this message]
2017-01-09  8:48 ` Philip Li

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170221015659.GC10024@yexl-desktop \
    --to=xiaolong.ye@intel.com \
    --cc=lkp@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.