Linux Users

cancel
Showing results for 
Search instead for 
Did you mean: 

Installation of NI-VISA on SLinux 6.0

Hi,

I have just installed NI-VISA-5.1.2 on a CentOS 6 64 bits box (equivalent to SLinux 6). I follow these steps:

  yum install kernel-devel kernel-headers

  yum install glibc.i686 libgcc.i686

  KERNELHEADERS=/usr/src/kernels/2.6.32-220.7.1.el6.x86_64 ./INSTALL

and everything went fine. But updateNIDrivers fails for 3 modules niorbk.ko nidimk.ko nipxirmk.ko

Exemple for nipxirmk.ko :

  CC   /usr/local/natinst/nikal/src/client/nipxirmk-interface.o

  SHIPPED /usr/local/natinst/nikal/src/client/nipxirmk-processed.o

  LD   /usr/local/natinst/nikal/src/client/nipxirmk.o

ld: Relocatable linking with relocations from format elf32-i386 (/usr/local/natinst/nikal/src/client/nipxirmk-processed.o) to format elf64-x86-64 (/usr/local/natinst/nikal/src/client/nipxirmk.o) is not supported

make[2]: *** [/usr/local/natinst/nikal/src/client/nipxirmk.o] Erreur 1

make[1]: *** [_module_/usr/local/natinst/nikal/src/client] Erreur 2

make: *** [all] Erreur 2

ERROR: failed to build nipxirmk.ko

nipxirmk.ko failed to update.

It seems there is a mess between 64 bits and 32 bits files:

file /usr/local/natinst/nikal/src/client/*.o_shipped

/usr/local/natinst/nikal/src/client/nidimk-processed.o_shipped:   ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not stripped

/usr/local/natinst/nikal/src/client/niorbk-processed.o_shipped:   ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not stripped

/usr/local/natinst/nikal/src/client/nipalk-processed.o_shipped:   ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped

/usr/local/natinst/nikal/src/client/nipxirmk-processed.o_shipped: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not stripped

/usr/local/natinst/nikal/src/client/NiViPciK-processed.o_shipped: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped

/usr/local/natinst/nikal/src/client/NiViPxiK-processed.o_shipped: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped

Regards,

Philippe BdA

0 Kudos
Message 11 of 12
(391 Views)

I´m also trying to install in the SL6 and got exactlly the same problem:

# ./updateNIDrivers

Configuring for linux kernel version 2.6.32-220.13.1.el6.x86_64.

********************************* NOTE *********************************

Using kernel headers found in /lib/modules/2.6.32-220.13.1.el6.x86_64/source.

If this does not correspond to the location of the 2.6.32-220.13.1.el6.x86_64 headers,

then define KERNELHEADERS in your environment to point to the location

of the kernel headers, define KERNELTARGET as the version of the

kernel for which to compile, and then rerun ./configure.

********************************* NOTE *********************************

Kernel has reparent_to_init(): no

Number of arguments for do_munmap(): 3

pte_offset function: pte_offset_kernel()

Levels in page table: 4

Kernel has remap_pfn_range: yes

Kernel has kzalloc: yes

Kernel has chained SGL support: yes

USB altsetting name: cur_altsetting

Kernel has usb_get_intf(): yes

Kernel has intf_cache member in usb_host_config: yes

Kernel has ep[] members in usb_device: yes

Kernel exports usb_set_configuration(): no

Units of USB_CTRL_GET_TIMEOUT: msec

Kernel has owner member in usb_driver: no

Kernel has put_page_testzero(): yes

Kernel has mutex method: yes

Kernel has wait_for_completion_interruptible: yes

Kernel has config.h: no

Kernel has ioctl32.h: no

IRQ handlers have pt_regs: no

Kernel has work_struct and delayed_work: yes

Kernel supports fault method in vm_operations_struct: yes

Storing configuration in Makefile.in

If the values stored are incorrect they can be changed before running make.

Installing NI-KAL:

NI-KAL successfully updated.

Updating client modules:

nipalk.ko successfully updated.

  CC   /usr/local/natinst/nikal/src/client/niorbk-interface.o

  SHIPPED /usr/local/natinst/nikal/src/client/niorbk-processed.o

  LD   /usr/local/natinst/nikal/src/client/niorbk.o

ld: Relocatable linking with relocations from format elf32-i386 (/usr/local/natinst/nikal/src/client/niorbk-processed.o) to format elf64-x86-64 (/usr/local/natinst/nikal/src/client/niorbk.o) is not supported

make[2]: *** [/usr/local/natinst/nikal/src/client/niorbk.o] Error 1

make[1]: *** [_module_/usr/local/natinst/nikal/src/client] Error 2

make: *** [all] Error 2

ERROR: failed to build niorbk.ko

niorbk.ko failed to update.

  CC   /usr/local/natinst/nikal/src/client/nidimk-interface.o

  SHIPPED /usr/local/natinst/nikal/src/client/nidimk-processed.o

  LD   /usr/local/natinst/nikal/src/client/nidimk.o

ld: Relocatable linking with relocations from format elf32-i386 (/usr/local/natinst/nikal/src/client/nidimk-processed.o) to format elf64-x86-64 (/usr/local/natinst/nikal/src/client/nidimk.o) is not supported

make[2]: *** [/usr/local/natinst/nikal/src/client/nidimk.o] Error 1

make[1]: *** [_module_/usr/local/natinst/nikal/src/client] Error 2

make: *** [all] Error 2

ERROR: failed to build nidimk.ko

nidimk.ko failed to update.

NiViPxiK.ko successfully updated.

  CC   /usr/local/natinst/nikal/src/client/nipxirmk-interface.o

  SHIPPED /usr/local/natinst/nikal/src/client/nipxirmk-processed.o

  LD   /usr/local/natinst/nikal/src/client/nipxirmk.o

ld: Relocatable linking with relocations from format elf32-i386 (/usr/local/natinst/nikal/src/client/nipxirmk-processed.o) to format elf64-x86-64 (/usr/local/natinst/nikal/src/client/nipxirmk.o) is not supported

make[2]: *** [/usr/local/natinst/nikal/src/client/nipxirmk.o] Error 1

make[1]: *** [_module_/usr/local/natinst/nikal/src/client] Error 2

make: *** [all] Error 2

ERROR: failed to build nipxirmk.ko

nipxirmk.ko failed to update.

NiViPciK.ko successfully updated.

Update of National Instruments drivers failed.

I saw in the internet that one could make an option "-m32" or "-m  elf32-i386" during the linking processes by a command like this:

export LDEMULATION=elf32-i386

but it didn't work.

Regards,

Adriano

0 Kudos
Message 12 of 12
(391 Views)