iocellnetworks / ndas4linux

The Linux driver and device management program for NDAS devices such as the NetDISK.
GNU General Public License v2.0
13 stars 12 forks source link

build errors on 3.7.0-rc5 #3

Open prashants opened 12 years ago

prashants commented 12 years ago

$make linux64-clean Invoking make for clean-xixfs make -C /home/prashants/ndas4linux/3.7-rc5/platform/linux/xixfs \ ndas_root=/home/prashants/ndas4linux/3.7-rc5/platform/linux/xixfs \ xplat_path=/home/prashants/ndas4linux/3.7-rc5 \ clean-xixfs make[2]: Entering directory /home/prashants/ndas4linux/3.7-rc5/platform/linux/xixfs' Makefile:165: *** Failed to identify the byteorder.h file. Please set the path manually.. Stop. make[2]: Leaving directory/home/prashants/ndas4linux/3.7-rc5/platform/linux/xixfs' make[1]: *\ [clean-xixfs] Error 2 make[1]: Leaving directory `/home

$make linux64-dev nux/3.7-rc5/inc -I/home/prashants/ndas4linux/3.7-rc5/inc/lspx -DLITTLE_ENDIAN_BYTEORDER -DLITTLE_ENDIAN_BITFIELD -D__LITTLE_ENDIAN__ -DNDAS_VER_MAJOR="3" -DNDAS_VER_MINOR="4" -DNDAS_VER_BUILD="6" -DDEBUG -O0 -g -DEXPORT_LOCAL -DXPLAT_SIO -DXPLAT_NDASHIX -DXPLAT_PNP -DXPLAT_SERIAL2ID -DXPLAT_ASYNC_IO -DXPLAT_RESTORE -DEXPORT_LOCAL -DXPLAT_BPC -DNDAS_PROBE -c -o build_x86_64_linux/netdisk/crc.o netdisk/crc.c /bin/sh: 1: scripts/basic/fixdep: not found make[1]: * [build_x86_64_linux/netdisk/crc.o] Error 127 make[1]: Leaving directory `/home/prashants/ndas4linux/3.7-rc5' make: * [linux64-dev] Error 2

prashants commented 12 years ago

I saw your comment in the last issue after creating this issue. I could not do make clean so cant test it.

prashants commented 12 years ago

I will see if I can fix the make clean target.

I compiles clean on 3.7.0-rc5

iocellnetworks commented 12 years ago

That is the correct clean command.

make linux64-clean or make linux-clean

I am sure that I fixed the xixfs target in one of these versions. It is possibly that you used only the kernel source code, rather than a distribution.

Did you set NDAS_KERNEL_PATH=/path/to/compiled/kernel/source

prashants commented 12 years ago

I recompiled the 3.7 kernel and booted into it when testing. I even set the NDAS_KERNEL_PATH

This is the exact path for the file on my system : /usr/include/x86_64-linux-gnu/asm/byteorder.h

while the "platform/linux/xixfs/Makefile" is searching it in some other location. I have holiday tom. I am planning to go through the code.

iocellnetworks commented 12 years ago

I see. I think the reason will be the path includes linux-gnu... where as the others are compiling on distiributions that locate the file as a /arch/x86/ or similar.

The place to find it will be

ndas4linux/3.7-rc5/platform/linux/xixfs/Makefile

See line 141-167

There is an export mentioned there too.

export LINUX_BYTE_ORDER_STRING_FILE=/path/to/your/arch/byteorder.h )

I think I intended to make a sort of search function for byteorder.h, but did not get around to it.

Ulitmately, xixfs is related to a multi-user filesystem that was in the works, so it will probably be removed from the source down the road soon.

iocellnetworks commented 12 years ago

Today I just got Fedora rawhide running with this kernel. Using

make linux64-clean

succeeds to clean out the build and permits the top - level export.