[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

No such file or directory: 'debian/build/build-m68k-none-amiga/Module.symvers'



Hi,
after adding m68k patches, I am trying to build linux-2.6.21 from svn for
m68k. The build fails with:

python2.4 debian/bin/abicheck.py debian/build/build-m68k-none-amiga m68k none amiga
Traceback (most recent call last):
  File "debian/bin/abicheck.py", line 93, in ?
    sys.exit(checker(*sys.argv[1:])(sys.stdout))
  File "debian/bin/abicheck.py", line 20, in __call__
    new = symbols(self.filename_new)
  File "/home/cts/work/kernel/linux-2.6-2.6.21/debian/lib/python/debian_linux/abi.py", line 5, in __init__
    self.read(file(filename))
IOError: [Errno 2] No such file or directory: 'debian/build/build-m68k-none-amiga/Module.symvers'

This never happened with 2.6.18, this seems to be an upstream change.
http://www.webservertalk.com/archive242-2004-8-357490.html

I think this might be due to cross-compiling the kernel, I build the package
with: 
DEB_HOST_ARCH=m68k debuild -B -am68k

which worked fine up to 2.6.18. In debian/rules.real I found OVERRIDE_HOST_TYPE
but I also set CROSS_COMPILE=m68k and others, nothing helps. In the build
log I see:

exec make -f /usr/share/kernel-package/ruleset/minimal.mk debian KPKG_ARCH=m68k   CROSS_COMPILE=-  KPKG_STEM=linux

So CROSS_COMPILE is never set, and I think if it were set, the package might
actually build and perhaps also this bug might be fixed:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=402061

What is the correct way to cross-compile the kernel now, which options do I
need to set or do I have to patch the m68k source for this also?

BTW building the package manually by executing
 ARCH=m68k CROSS_COMPILE=m68k make
in debian/build/build-m68k-none-amiga does not show this problem.

Christian



Reply to: