Discussion:
[Gnewsense-dev] deblobbing attempt, third time on wheezy‏ kernel
Dennis Worthem
2014-04-12 14:19:32 UTC
Permalink
Hello Sam,

I set abiname to 4 gnewsense1 from 4 and rebuilt the source and then try to build the binaries. I got much further, but still got an error.

Full output is attached.

The last several lines were:

INSTALL sound/usb/misc/snd-ua101.ko
INSTALL sound/usb/snd-usb-audio.ko
INSTALL sound/usb/snd-usbmidi-lib.ko
INSTALL sound/usb/usx2y/snd-usb-us122l.ko
INSTALL sound/usb/usx2y/snd-usb-usx2y.ko
DEPMOD 3.2.54-gnu1
skipping depmod
make[3]: Leaving directory `/home/dennis/temp/linux/gns4/linux-3.2.54/debian/build/build_i386_none_686-pae'
set -o pipefail; \
find debian/linux-image-3.2.0-4gnewsense1-686-pae -name '*.ko' | sed 's|debian/linux-image-3.2.0-4gnewsense1-686-pae/lib/modules/3.2.0-4gnewsense1-686-pae/kernel/||' | while read module ; do \
objcopy --add-gnu-debuglink=debian/build/build_i386_none_686-pae/$module debian/linux-image-3.2.0-4gnewsense1-686-pae/lib/modules/3.2.0-4gnewsense1-686-pae/kernel/$module || exit; \
done
objcopy: warning: could not create temporary file whilst copying 'debian/linux-image-3.2.0-4gnewsense1-686-pae/lib/modules/3.2.0-4gnewsense1-686-pae/kernel/debian/linux-image-3.2.0-4gnewsense1-686-pae/lib/modules/3.2.54-gnu1/kernel/net/l2tp/l2tp_eth.ko', (error: No such file or directory)
make[2]: *** [install-image_i386_none_686-pae_plain] Error 1
make[2]: Leaving directory `/home/dennis/temp/linux/gns4/linux-3.2.54'
make[1]: *** [binary-arch_i386_none_686-pae_real] Error 2
make[1]: Leaving directory `/home/dennis/temp/linux/gns4/linux-3.2.54'
make: *** [binary-arch] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2

I noticed that I do not have a debian/linux-image-3.2.0-4gnewsense1-686-pae/lib/modules/3.2.0-4gnewsense1-686-pae/kernel/debian/linux-image-3.2.0-4gnewsense1-686-pae/lib/modules/3.2.54-gnu1/kernel/net/l2tp/ directory.

Seems like there is a concantenation of two path strings here 1. debian/linux-image-3.2.0-4gnewsense1-686-pae/lib/modules/3.2.0-4gnewsense1-686-pae/kernel/ and 2. debian/linux-image-3.2.0-4gnewsense1-686-pae/lib/modules/3.2.54-gnu1/kernel/net/l2tp/

On my drive I have /home/dennis/temp/linux/gns4/linux-3.2.54/debian/linux-image-3.2.0-4gnewsense1-686-pae/lib/modules/3.2.54-gnu1
Sam Geeraerts
2014-04-12 21:51:37 UTC
Permalink
Op Sat, 12 Apr 2014 10:19:32 -0400
Post by Dennis Worthem
`/home/dennis/temp/linux/gns4/linux-3.2.54/debian/build/build_i386_none_686-pae'
set -o pipefail; \ find debian/linux-image-3.2.0-4gnewsense1-686-pae
-name '*.ko' | sed
's|debian/linux-image-3.2.0-4gnewsense1-686-pae/lib/modules/3.2.0-4gnewsense1-686-pae/kernel/||'
| while read module ; do \ objcopy
--add-gnu-debuglink=debian/build/build_i386_none_686-pae/$module
debian/linux-image-3.2.0-4gnewsense1-686-pae/lib/modules/3.2.0-4gnewsense1-686-pae/kernel/$module
|| exit; \ done objcopy: warning: could not create temporary file
whilst copying
'debian/linux-image-3.2.0-4gnewsense1-686-pae/lib/modules/3.2.0-4gnewsense1-686-pae/kernel/debian/linux-image-3.2.0-4gnewsense1-686-pae/lib/modules/3.2.54-gnu1/kernel/net/l2tp/l2tp_eth.ko',
(error: No such file or directory) make[2]: ***
find looks for *.ko file and then sed is supposed to strip some of the
path. You should run the find command by itself and see what paths it
outputs. I suspect that the sed command should be

s|debian/linux-image-3.2.0-4gnewsense1-686-pae/lib/modules/3.2.54-gnu1/kernel/||

Judging by debian/rules.real, the string seems to depend on
REAL_VERSION, which in turn depends on ABINAME. But as far as I can
tell the latter is set as it should be. Requires further investigation.
Loading...