From: Paul H. Hargrove (PHHargrove_at_lbl_dot_gov)
Date: Tue Mar 06 2007 - 14:06:46 PST
Cedric, Thanks for sending the output. The files you sent confirm my suspicions, described in the bug report: rpmbuild is adding -fstack-protector to the value of CFLAGS, which automake places later on the compile command line than our own -fno-stack-protector. I have a fix for this issue that will appear in 0.5.1 (which is being issued soon to add support for 2.6.20 kernels). In the meantime, my recommended work-around is to build from the tarball, as you have already chosen to do. As for the warnings you quoted: they are not a problem. They come from the kernel build system and we don't have any effective way to suppress them at the moment. However, BLCR does resolve these symbols on its own. -Paul Cedric Le Goater wrote: > Hi Paul ! > > Paul H. Hargrove wrote: > >> Cedric, >> >> Thank you for your bug report. This was a known issue that I thought >> had been resolved >> (http://upc-bugs.lbl.gov/bugzilla/show_bug.cgi?id=1854). Because of the >> way our library is linked, the -fstack-protector flag should not be >> passed when building libcr. We have configure-time code to add >> -fno-stack-protector when building the library, but I can't tell from >> your output (which shows an attempt to link to the library) if the flag >> was passed correctly. >> If you could, please "make clean" and then "make all", sending me the >> output of the "make all" step and also the file config.log. That should >> be enough for me to track down if/where the -fno-stack-protector flag >> was omitted from the library build. >> > > here are the files. This issue seems related to rpmbuild. > > the tarball builds with some warnings in blcr.ko : > > WARNING: "pidhash_shift" [/home/legoater/work/blcr-0.5.0/cr_module/kbuild/blcr.ko] undefined! > WARNING: "anon_pipe_buf_ops" [/home/legoater/work/blcr-0.5.0/cr_module/kbuild/blcr.ko] undefined! > WARNING: "pid_cachep" [/home/legoater/work/blcr-0.5.0/cr_module/kbuild/blcr.ko] undefined! > WARNING: "put_filp" [/home/legoater/work/blcr-0.5.0/cr_module/kbuild/blcr.ko] undefined! > WARNING: "child_reaper" [/home/legoater/work/blcr-0.5.0/cr_module/kbuild/blcr.ko] undefined! > WARNING: "do_pipe" [/home/legoater/work/blcr-0.5.0/cr_module/kbuild/blcr.ko] undefined! > WARNING: "rdwr_pipe_fops" [/home/legoater/work/blcr-0.5.0/cr_module/kbuild/blcr.ko] undefined! > WARNING: "set_fs_pwd" [/home/legoater/work/blcr-0.5.0/cr_module/kbuild/blcr.ko] undefined! > WARNING: "tasklist_lock" [/home/legoater/work/blcr-0.5.0/cr_module/kbuild/blcr.ko] undefined! > WARNING: "write_fifo_fops" [/home/legoater/work/blcr-0.5.0/cr_module/kbuild/blcr.ko] undefined! > WARNING: "attach_pid" [/home/legoater/work/blcr-0.5.0/cr_module/kbuild/blcr.ko] undefined! > WARNING: "sys_dup2" [/home/legoater/work/blcr-0.5.0/cr_module/kbuild/blcr.ko] undefined! > WARNING: "read_pipe_fops" [/home/legoater/work/blcr-0.5.0/cr_module/kbuild/blcr.ko] undefined! > WARNING: "write_pipe_fops" [/home/legoater/work/blcr-0.5.0/cr_module/kbuild/blcr.ko] undefined! > WARNING: "sys_ftruncate" [/home/legoater/work/blcr-0.5.0/cr_module/kbuild/blcr.ko] undefined! > WARNING: "vmadump_thaw_threads" [/home/legoater/work/blcr-0.5.0/cr_module/kbuild/blcr.ko] undefined! > WARNING: "pidmap_lock" [/home/legoater/work/blcr-0.5.0/cr_module/kbuild/blcr.ko] undefined! > WARNING: "pid_hash" [/home/legoater/work/blcr-0.5.0/cr_module/kbuild/blcr.ko] undefined! > WARNING: "__put_task_struct" [/home/legoater/work/blcr-0.5.0/cr_module/kbuild/blcr.ko] undefined! > WARNING: "vmadump_freeze_threads" [/home/legoater/work/blcr-0.5.0/cr_module/kbuild/blcr.ko] undefined! > WARNING: "init_pspace" [/home/legoater/work/blcr-0.5.0/cr_module/kbuild/blcr.ko] undefined! > WARNING: "sys_lseek" [/home/legoater/work/blcr-0.5.0/cr_module/kbuild/blcr.ko] undefined! > WARNING: "detach_pid" [/home/legoater/work/blcr-0.5.0/cr_module/kbuild/blcr.ko] undefined! > WARNING: "expand_files" [/home/legoater/work/blcr-0.5.0/cr_module/kbuild/blcr.ko] undefined! > > I'll give it try tomorrow. > > thanks ! > > C. > -- Paul H. Hargrove PHHargrove_at_lbl_dot_gov Future Technologies Group HPC Research Department Tel: +1-510-495-2352 Lawrence Berkeley National Laboratory Fax: +1-510-486-6900