Skip to contentSkip to conversation

3.15-rc6 build / link failed fs/built-in mb_cache_entry problems

DISCUSSION werner 3 participants 5 messages May 26, 2014 – May 28, 2014 1 message not in the archive

lore
Share & tools
lore

werner

author
#0 lore raw

building the kernel isnt successful,

problem with _mbècache_entry_release and _get

see below

there are also other errors

The whole compiler list and config, see enclosed

Since appr 3.10 , even if the kernels compile and build , on meanwhile 70% of the computers where I try to boot, the booting process crashs on different positions.

Currently, the quality is rather bad, similar as it was during the versions 2.6.30 ... 36 .

So it would be good, if the programmers would check everything more careful (im not a programmer but only an user)

Enclosed is a compiling list, someone could see through this, and correct all problems, such as mismatches, undefined variables, etc

W.Landgraf

..

  CHECK   include/asm-generic (35 files)
  CHECK   include/drm (18 files)
  CHECK   include/linux/byteorder (2 files)
  CHECK   include/linux/caif (2 files)
  CHECK   include/linux/can (5 files)
  CHECK   include/linux/dvb (8 files)
  CHECK   include/linux/hdlc (1 files)
  CHECK   include/linux/hsi (1 files)
  CHECK   include/linux/isdn (1 files)
  CHECK   include/linux/mmc (1 files)
  CHECK   include/linux/netfilter/ipset (4 files)
  CHECK   include/linux/netfilter (85 files)
  CHECK   include/linux/netfilter_arp (2 files)
  CHECK   include/linux/netfilter_bridge (18 files)
  CHECK   include/linux/netfilter_ipv4 (10 files)
  CHECK   include/linux/netfilter_ipv6 (12 files)
  CHECK   include/linux/nfsd (5 files)
  CHECK   include/linux/raid (2 files)
  CHECK   include/linux/spi (1 files)
  CHECK   include/linux/sunrpc (1 files)
  CHECK   include/linux/tc_act (8 files)
  CHECK   include/linux/tc_ematch (4 files)
  CHECK   include/linux/usb (10 files)
  CHECK   include/linux/wimax (1 files)
  CHECK   include/linux (393 files)
/usr/src/linux-3.15-rc6-i486-1sys/usr/include/linux/kexec.h:50: userspace cannot reference function or variable defined in the kernel
  CHECK   include/mtd (5 files)
  CHECK   include/rdma (6 files)
  CHECK   include/scsi/fc (4 files)
  CHECK   include/scsi (3 files)
  CHECK   include/sound (11 files)
  CHECK   include/video (3 files)
  CHECK   include/xen (4 files)
  CHECK   include/uapi (0 files)
  CHECK   include/asm (64 files)
  LINK    vmlinux
  LD      vmlinux.o

MODPOST vmlinux.o
WARNING: vmlinux.o(.text+0xa2889): Section mismatch in reference from the function intel_scu_devices_create() to the function .init.text:i2c_register_board_info() The function intel_scu_devices_create() references
the function __init i2c_register_board_info().
This is often because intel_scu_devices_create lacks a __init
annotation or the annotation of i2c_register_board_info is wrong.

WARNING: vmlinux.o(.text+0x108c2e0): Section mismatch in reference from the function acpi_sleep_dmi_check() to the variable .init.data:acpisleep_dmi_table The function acpi_sleep_dmi_check() references
the variable __initdata acpisleep_dmi_table.
This is often because acpi_sleep_dmi_check lacks a __initdata
annotation or the annotation of acpisleep_dmi_table is wrong.

WARNING: vmlinux.o(.data+0xbefa0): Section mismatch in reference from the variable sim710_eisa_driver to the function .init.text:sim710_eisa_probe() The variable sim710_eisa_driver references
the function __init sim710_eisa_probe()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

  GEN     .version
  CC      init/main.o
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  CC      init/do_mounts.o
  CC      init/do_mounts_rd.o
  CC      init/do_mounts_initrd.o
  CC      init/do_mounts_md.o
  LD      init/mounts.o
  CC      init/initramfs.o
  CC      init/calibrate.o
  CC      init/init_task.o
  LD      init/built-in.o

fs/built-in.o: In function `__mb_cache_entry_release':
mbcache.c:(.text+0xa0d5f): undefined reference to log2' mbcache.c:(.text+0xa0d6b): undefined reference to __fixunsdfsi' mbcache.c:(.text+0xa0e22): undefined reference to log2' mbcache.c:(.text+0xa0e34): undefined reference to __fixunsdfsi' mbcache.c:(.text+0xa0f4e): undefined reference to log2' mbcache.c:(.text+0xa0f60): undefined reference to __fixunsdfsi' fs/built-in.o: In function `__mb_cache_entry_find':
mbcache.c:(.text+0xa107e): undefined reference to log2' mbcache.c:(.text+0xa108a): undefined reference to __fixunsdfsi' mbcache.c:(.text+0xa115c): undefined reference to log2' mbcache.c:(.text+0xa116e): undefined reference to __fixunsdfsi' mbcache.c:(.text+0xa11dc): undefined reference to log2' mbcache.c:(.text+0xa11e8): undefined reference to __fixunsdfsi' mbcache.c:(.text+0xa126e): undefined reference to log2' mbcache.c:(.text+0xa1280): undefined reference to __fixunsdfsi' fs/built-in.o: In function `mb_cache_entry_get':
(.text+0xa3bdc): undefined reference to log2' fs/built-in.o: In function mb_cache_entry_get':
(.text+0xa3bf1): undefined reference to __fixunsdfsi' fs/built-in.o: In function mb_cache_entry_get':
(.text+0xa3d14): undefined reference to log2' fs/built-in.o: In function mb_cache_entry_get':
(.text+0xa3d26): undefined reference to __fixunsdfsi' fs/built-in.o: In function mb_cache_entry_get':
(.text+0xa3da7): undefined reference to log2' fs/built-in.o: In function mb_cache_entry_get':
(.text+0xa3db3): undefined reference to __fixunsdfsi' fs/built-in.o: In function mb_cache_entry_get':
(.text+0xa3e5e): undefined reference to log2' fs/built-in.o: In function mb_cache_entry_get':
(.text+0xa3e70): undefined reference to `__fixunsdfsi'
make: [vmlinux] Error 1 (ignored)

  CC      arch/x86/boot/a20.o
  AS      arch/x86/boot/bioscall.o
  CC      arch/x86/boot/cmdline.o
  AS      arch/x86/boot/copy.o
  HOSTCC  arch/x86/boot/mkcpustr
  CPUSTR  arch/x86/boot/cpustr.h
  CC      arch/x86/boot/cpu.o
  CC      arch/x86/boot/cpuflags.o
  CC      arch/x86/boot/cpucheck.o
  CC      arch/x86/boot/early_serial_console.o
  CC      arch/x86/boot/edd.o
make[1]: *** No rule to make target `vmlinux', needed by `arch/x86/boot/voffset.h'.
  LDS     arch/x86/boot/compressed/vmlinux.lds
  AS      arch/x86/boot/compressed/head_32.o
  CC      arch/x86/boot/compressed/misc.o
  CC      arch/x86/boot/compressed/string.o
  CC      arch/x86/boot/compressed/cmdline.o
  CC      arch/x86/boot/compressed/early_serial_console.o
make[2]: *** No rule to make target `vmlinux', needed by `arch/x86/boot/compressed/vmlinux.bin'.
  HOSTCC  arch/x86/boot/compressed/mkpiggy
  CC      arch/x86/boot/compressed/cpuflags.o
  CC      arch/x86/boot/compressed/aslr.o

make[2]: Target `arch/x86/boot/compressed/vmlinux' not remade because of errors. make[1]: [arch/x86/boot/compressed/vmlinux] Error 2 (ignored)
ZOFFSET arch/x86/boot/zoffset.h
nm: 'arch/x86/boot/compressed/vmlinux': No such file

  CC      arch/x86/boot/main.o
  CC      arch/x86/boot/mca.o
  CC      arch/x86/boot/memory.o
  CC      arch/x86/boot/pm.o
  AS      arch/x86/boot/pmjump.o
  CC      arch/x86/boot/printf.o
  CC      arch/x86/boot/regs.o
  CC      arch/x86/boot/string.o
  CC      arch/x86/boot/tty.o
  CC      arch/x86/boot/video.o
  CC      arch/x86/boot/video-mode.o
  CC      arch/x86/boot/version.o
  CC      arch/x86/boot/apm.o
  CC      arch/x86/boot/video-vga.o
  CC      arch/x86/boot/video-vesa.o
  CC      arch/x86/boot/video-bios.o

OBJCOPY arch/x86/boot/vmlinux.bin
objcopy: 'arch/x86/boot/compressed/vmlinux': No such file
make[1]: [arch/x86/boot/vmlinux.bin] Error 1 (ignored)
HOSTCC arch/x86/boot/tools/build
make[1]: Target `arch/x86/boot/bzImage' not remade because of errors.
make: [bzImage] Error 2 (ignored)
Building modules, stage 2.
MODPOST 3521 modules
WARNING: drivers/net/ethernet/3com/3c509.o(.data+0x120): Section mismatch in reference from the variable el3_eisa_driver to the function .init.text:el3_eisa_probe() The variable el3_eisa_driver references
the function __init el3_eisa_probe()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

WARNING: drivers/net/ethernet/3com/3c59x.o(.data+0x4c0): Section mismatch in reference from the variable vortex_eisa_driver to the function .init.text:vortex_eisa_probe() The variable vortex_eisa_driver references
the function __init vortex_eisa_probe()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

WARNING: drivers/net/ethernet/dec/tulip/de4x5.o(.data+0xc0): Section mismatch in reference from the variable de4x5_eisa_driver to the function .init.text:de4x5_eisa_probe() The variable de4x5_eisa_driver references
the function __init de4x5_eisa_probe()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

WARNING: drivers/net/ethernet/hp/hp100.o(.data+0x40): Section mismatch in reference from the variable hp100_eisa_driver to the function .init.text:hp100_eisa_probe() The variable hp100_eisa_driver references
the function __init hp100_eisa_probe()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

  CC      arch/x86/crypto/crc32-pclmul.mod.o
  LD [M]  arch/x86/crypto/crc32-pclmul.ko
  CC      arch/x86/crypto/crc32c-intel.mod.o
  LD [M]  arch/x86/crypto/crc32c-intel.ko

.....
---
Professional hosting for everyone - http://www.host.ru

  CHECK   include/asm-generic (35 files)
  CHECK   include/drm (18 files)
  CHECK   include/linux/byteorder (2 files)
  CHECK   include/linux/caif (2 files)
  CHECK   include/linux/can (5 files)
  CHECK   include/linux/dvb (8 files)
  CHECK   include/linux/hdlc (1 files)
  CHECK   include/linux/hsi (1 files)
  CHECK   include/linux/isdn (1 files)
  CHECK   include/linux/mmc (1 files)
  CHECK   include/linux/netfilter/ipset (4 files)
  CHECK   include/linux/netfilter (85 files)
  CHECK   include/linux/netfilter_arp (2 files)
  CHECK   include/linux/netfilter_bridge (18 files)
  CHECK   include/linux/netfilter_ipv4 (10 files)
  CHECK   include/linux/netfilter_ipv6 (12 files)
  CHECK   include/linux/nfsd (5 files)
  CHECK   include/linux/raid (2 files)
  CHECK   include/linux/spi (1 files)
  CHECK   include/linux/sunrpc (1 files)
  CHECK   include/linux/tc_act (8 files)
  CHECK   include/linux/tc_ematch (4 files)
  CHECK   include/linux/usb (10 files)
  CHECK   include/linux/wimax (1 files)
  CHECK   include/linux (393 files)
/usr/src/linux-3.15-rc6-i486-1sys/usr/include/linux/kexec.h:50: userspace cannot reference function or variable defined in the kernel
  CHECK   include/mtd (5 files)
  CHECK   include/rdma (6 files)
  CHECK   include/scsi/fc (4 files)
  CHECK   include/scsi (3 files)
  CHECK   include/sound (11 files)
  CHECK   include/video (3 files)
  CHECK   include/xen (4 files)
  CHECK   include/uapi (0 files)
  CHECK   include/asm (64 files)
  LINK    vmlinux
  LD      vmlinux.o

MODPOST vmlinux.o
WARNING: vmlinux.o(.text+0xa2889): Section mismatch in reference from the function intel_scu_devices_create() to the function .init.text:i2c_register_board_info() The function intel_scu_devices_create() references
the function __init i2c_register_board_info().
This is often because intel_scu_devices_create lacks a __init
annotation or the annotation of i2c_register_board_info is wrong.

WARNING: vmlinux.o(.text+0x108c2e0): Section mismatch in reference from the function acpi_sleep_dmi_check() to the variable .init.data:acpisleep_dmi_table The function acpi_sleep_dmi_check() references
the variable __initdata acpisleep_dmi_table.
This is often because acpi_sleep_dmi_check lacks a __initdata
annotation or the annotation of acpisleep_dmi_table is wrong.

WARNING: vmlinux.o(.data+0xbefa0): Section mismatch in reference from the variable sim710_eisa_driver to the function .init.text:sim710_eisa_probe() The variable sim710_eisa_driver references
the function __init sim710_eisa_probe()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

  GEN     .version
  CC      init/main.o
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  CC      init/do_mounts.o
  CC      init/do_mounts_rd.o
  CC      init/do_mounts_initrd.o
  CC      init/do_mounts_md.o
  LD      init/mounts.o
  CC      init/initramfs.o
  CC      init/calibrate.o
  CC      init/init_task.o
  LD      init/built-in.o

fs/built-in.o: In function `__mb_cache_entry_release':
mbcache.c:(.text+0xa0d5f): undefined reference to log2' mbcache.c:(.text+0xa0d6b): undefined reference to __fixunsdfsi' mbcache.c:(.text+0xa0e22): undefined reference to log2' mbcache.c:(.text+0xa0e34): undefined reference to __fixunsdfsi' mbcache.c:(.text+0xa0f4e): undefined reference to log2' mbcache.c:(.text+0xa0f60): undefined reference to __fixunsdfsi' fs/built-in.o: In function `__mb_cache_entry_find':
mbcache.c:(.text+0xa107e): undefined reference to log2' mbcache.c:(.text+0xa108a): undefined reference to __fixunsdfsi' mbcache.c:(.text+0xa115c): undefined reference to log2' mbcache.c:(.text+0xa116e): undefined reference to __fixunsdfsi' mbcache.c:(.text+0xa11dc): undefined reference to log2' mbcache.c:(.text+0xa11e8): undefined reference to __fixunsdfsi' mbcache.c:(.text+0xa126e): undefined reference to log2' mbcache.c:(.text+0xa1280): undefined reference to __fixunsdfsi' fs/built-in.o: In function `mb_cache_entry_get':
(.text+0xa3bdc): undefined reference to log2' fs/built-in.o: In function mb_cache_entry_get':
(.text+0xa3bf1): undefined reference to __fixunsdfsi' fs/built-in.o: In function mb_cache_entry_get':
(.text+0xa3d14): undefined reference to log2' fs/built-in.o: In function mb_cache_entry_get':
(.text+0xa3d26): undefined reference to __fixunsdfsi' fs/built-in.o: In function mb_cache_entry_get':
(.text+0xa3da7): undefined reference to log2' fs/built-in.o: In function mb_cache_entry_get':
(.text+0xa3db3): undefined reference to __fixunsdfsi' fs/built-in.o: In function mb_cache_entry_get':
(.text+0xa3e5e): undefined reference to log2' fs/built-in.o: In function mb_cache_entry_get':
(.text+0xa3e70): undefined reference to `__fixunsdfsi'
make: [vmlinux] Error 1 (ignored)

  CC      arch/x86/boot/a20.o
  AS      arch/x86/boot/bioscall.o
  CC      arch/x86/boot/cmdline.o
  AS      arch/x86/boot/copy.o
  HOSTCC  arch/x86/boot/mkcpustr
  CPUSTR  arch/x86/boot/cpustr.h
  CC      arch/x86/boot/cpu.o
  CC      arch/x86/boot/cpuflags.o
  CC      arch/x86/boot/cpucheck.o
  CC      arch/x86/boot/early_serial_console.o
  CC      arch/x86/boot/edd.o
make[1]: *** No rule to make target `vmlinux', needed by `arch/x86/boot/voffset.h'.
  LDS     arch/x86/boot/compressed/vmlinux.lds
  AS      arch/x86/boot/compressed/head_32.o
  CC      arch/x86/boot/compressed/misc.o
  CC      arch/x86/boot/compressed/string.o
  CC      arch/x86/boot/compressed/cmdline.o
  CC      arch/x86/boot/compressed/early_serial_console.o
make[2]: *** No rule to make target `vmlinux', needed by `arch/x86/boot/compressed/vmlinux.bin'.
  HOSTCC  arch/x86/boot/compressed/mkpiggy
  CC      arch/x86/boot/compressed/cpuflags.o
  CC      arch/x86/boot/compressed/aslr.o

make[2]: Target `arch/x86/boot/compressed/vmlinux' not remade because of errors. make[1]: [arch/x86/boot/compressed/vmlinux] Error 2 (ignored)
ZOFFSET arch/x86/boot/zoffset.h
nm: 'arch/x86/boot/compressed/vmlinux': No such file

  CC      arch/x86/boot/main.o
  CC      arch/x86/boot/mca.o
  CC      arch/x86/boot/memory.o
  CC      arch/x86/boot/pm.o
  AS      arch/x86/boot/pmjump.o
  CC      arch/x86/boot/printf.o
  CC      arch/x86/boot/regs.o
  CC      arch/x86/boot/string.o
  CC      arch/x86/boot/tty.o
  CC      arch/x86/boot/video.o
  CC      arch/x86/boot/video-mode.o
  CC      arch/x86/boot/version.o
  CC      arch/x86/boot/apm.o
  CC      arch/x86/boot/video-vga.o
  CC      arch/x86/boot/video-vesa.o
  CC      arch/x86/boot/video-bios.o

OBJCOPY arch/x86/boot/vmlinux.bin
objcopy: 'arch/x86/boot/compressed/vmlinux': No such file
make[1]: [arch/x86/boot/vmlinux.bin] Error 1 (ignored)
HOSTCC arch/x86/boot/tools/build
make[1]: Target `arch/x86/boot/bzImage' not remade because of errors.
make: [bzImage] Error 2 (ignored)
Building modules, stage 2.
MODPOST 3521 modules
WARNING: drivers/net/ethernet/3com/3c509.o(.data+0x120): Section mismatch in reference from the variable el3_eisa_driver to the function .init.text:el3_eisa_probe() The variable el3_eisa_driver references
the function __init el3_eisa_probe()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

WARNING: drivers/net/ethernet/3com/3c59x.o(.data+0x4c0): Section mismatch in reference from the variable vortex_eisa_driver to the function .init.text:vortex_eisa_probe() The variable vortex_eisa_driver references
the function __init vortex_eisa_probe()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

WARNING: drivers/net/ethernet/dec/tulip/de4x5.o(.data+0xc0): Section mismatch in reference from the variable de4x5_eisa_driver to the function .init.text:de4x5_eisa_probe() The variable de4x5_eisa_driver references
the function __init de4x5_eisa_probe()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

WARNING: drivers/net/ethernet/hp/hp100.o(.data+0x40): Section mismatch in reference from the variable hp100_eisa_driver to the function .init.text:hp100_eisa_probe() The variable hp100_eisa_driver references
the function __init hp100_eisa_probe()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

  CC      arch/x86/crypto/crc32-pclmul.mod.o
  LD [M]  arch/x86/crypto/crc32-pclmul.ko
  CC      arch/x86/crypto/crc32c-intel.mod.o
  LD [M]  arch/x86/crypto/crc32c-intel.ko
#1 lore raw
Quoted 12 lines · werner

building the kernel isnt successful,

problem with _mbècache_entry_release and _get

see below

there are also other errors

The whole compiler list and config, see enclosed

First of all, my build using your kernel config file builds -- no errors, just plenty of warnings. I am using gcc version 4.7.2. What gcc version are you using?

mbcache.c uses __builtin_log2(). Maybe your gcc version does not support that builtin function.

@tmac: can mbcache.c #include <linux/log2.h> and use ilog2(NR_BG_LOCKS) instead of using __builtin_log2(NR_BG_LOCKS) ?
(ref. commit ID 1f3e55fe02d12213f87869768aa2b0bad3ba9a7d)

Quoted 3 lines

Since appr 3.10 , even if the kernels compile and build , on meanwhile 70% of the computers where I try to boot, the booting process crashs on different positions.

Please use return/line feed every 70-72 characters instead of assuming that all email clients will display the text correctly. They don't.

Quoted 49 lines

Currently, the quality is rather bad, similar as it was during the versions 2.6.30 ... 36 .

So it would be good, if the programmers would check everything more careful (im not a programmer but only an user)

Enclosed is a compiling list, someone could see through this, and correct all problems, such as mismatches, undefined variables, etc

W.Landgraf

..

fs/built-in.o: In function `__mb_cache_entry_release':
mbcache.c:(.text+0xa0d5f): undefined reference to log2' mbcache.c:(.text+0xa0d6b): undefined reference to __fixunsdfsi' mbcache.c:(.text+0xa0e22): undefined reference to log2' mbcache.c:(.text+0xa0e34): undefined reference to __fixunsdfsi' mbcache.c:(.text+0xa0f4e): undefined reference to log2' mbcache.c:(.text+0xa0f60): undefined reference to __fixunsdfsi' fs/built-in.o: In function `__mb_cache_entry_find':
mbcache.c:(.text+0xa107e): undefined reference to log2' mbcache.c:(.text+0xa108a): undefined reference to __fixunsdfsi' mbcache.c:(.text+0xa115c): undefined reference to log2' mbcache.c:(.text+0xa116e): undefined reference to __fixunsdfsi' mbcache.c:(.text+0xa11dc): undefined reference to log2' mbcache.c:(.text+0xa11e8): undefined reference to __fixunsdfsi' mbcache.c:(.text+0xa126e): undefined reference to log2' mbcache.c:(.text+0xa1280): undefined reference to __fixunsdfsi' fs/built-in.o: In function `mb_cache_entry_get':
(.text+0xa3bdc): undefined reference to log2' fs/built-in.o: In function mb_cache_entry_get':
(.text+0xa3bf1): undefined reference to __fixunsdfsi' fs/built-in.o: In function mb_cache_entry_get':
(.text+0xa3d14): undefined reference to log2' fs/built-in.o: In function mb_cache_entry_get':
(.text+0xa3d26): undefined reference to __fixunsdfsi' fs/built-in.o: In function mb_cache_entry_get':
(.text+0xa3da7): undefined reference to log2' fs/built-in.o: In function mb_cache_entry_get':
(.text+0xa3db3): undefined reference to __fixunsdfsi' fs/built-in.o: In function mb_cache_entry_get':
(.text+0xa3e5e): undefined reference to log2' fs/built-in.o: In function mb_cache_entry_get':
(.text+0xa3e70): undefined reference to `__fixunsdfsi'
make: [vmlinux] Error 1 (ignored)

Signature · 1 line
~Randy
#2 lore raw
Quoted 5 lines · Randy Dunlap

On 05/26/2014 11:17 AM, werner wrote:
@tmac: can mbcache.c #include <linux/log2.h> and use ilog2(NR_BG_LOCKS) instead of using __builtin_log2(NR_BG_LOCKS) ?
(ref. commit ID 1f3e55fe02d12213f87869768aa2b0bad3ba9a7d)

I don't see any problem with that, unless somebody else has any concern. Please let me know if you'd like me to submit the change.

Thanks,
Mak.

#3 lore raw
Quoted 8 lines · Thavatchai Makphaibulchoke
Quoted 5 lines · Randy Dunlap

On 05/26/2014 11:17 AM, werner wrote:
@tmac: can mbcache.c #include <linux/log2.h> and use ilog2(NR_BG_LOCKS) instead of using __builtin_log2(NR_BG_LOCKS) ?
(ref. commit ID 1f3e55fe02d12213f87869768aa2b0bad3ba9a7d)

I don't see any problem with that, unless somebody else has any concern. Please let me know if you'd like me to submit the change.

I'd say yes since some gcc version(s) don't seem to support __builtin_log2().

Signature · 1 line
~Randy

A message that is not in the archive (sent off-list or not yet received): [email protected]

#5 lore raw
Quoted 4 lines · werner

Oi think im using 4.2.4 . but the kernel should be programmed clean, so that it builds with all not-too-old versions.

wl

Hi Werner,
Please reply to the mailing list also (as I am doing).

I asked Thavatchai for a patch to fix this.

Quoted 24 lines

n Tue, 27 May 2014 15:51:26 -0700

Quoted 8 lines · Randy Dunlap
Quoted 7 lines · Thavatchai Makphaibulchoke
Quoted 5 lines · Randy Dunlap

On 05/26/2014 11:17 AM, werner wrote:
@tmac: can mbcache.c #include <linux/log2.h> and use ilog2(NR_BG_LOCKS) instead of using __builtin_log2(NR_BG_LOCKS) ?
(ref. commit ID 1f3e55fe02d12213f87869768aa2b0bad3ba9a7d)

Quoted 8 lines
Quoted 1 line

I don't see any problem with that, unless somebody else has any concern. Please let me know if you'd like me to submit the change.

I'd say yes since some gcc version(s) don't seem to support __builtin_log2().

Signature · 1 line
~Randy

"werner" <[email protected]>
---
Professional hosting for everyone - http://www.host.ru

Signature · 1 line
~Randy