[Fatal] Syntax error when detecting Kernel's gcc version

Bug #274089 reported by André
2
Affects Status Importance Assigned to Milestone
truecrypt-installer
Fix Released
High
Jari Aalto

Bug Description

When doing a

# tc-dpkg -i

I get

Time-stamp: <2008-09-14 14:24:11 Jari Aalto (root)>
/usr/src/truecrypt-upstream-source-4.3a/truecrypt-4.3a-source-code.tar.gz: OK
Wait, removing old sources /usr/src/truecrypt-4.3a-source-code
Wait, unpacking /usr/src/truecrypt-upstream-source-4.3a/truecrypt-4.3a-source-code.tar.gz
Wait, getting 'debian' control directory with: bzr branch http://bazaar.launchpad.net/~jari-aalto/truecrypt-deb/trunk/
Branched 280 revision(s).
This may take a while. Starting *.deb building process in /usr/src/truecrypt-4.3a-source-code
 dpkg-buildpackage -rfakeroot -D -us -uc -b -i
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set LDFLAGS to default value:
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package truecrypt
dpkg-buildpackage: source version 4.3a-11
dpkg-buildpackage: source changed by Jari Aalto <email address hidden>
dpkg-buildpackage: host architecture armel
 fakeroot debian/rules clean
/bin/sh: -c: line 0: syntax error near unexpected token `)'
/bin/sh: -c: line 0: `echo 4.2.4) | cut -d"." -f1-2 '
W: Unable to locate package linux-image-2.6.26
# prepare-control: generate debian/control
sed -e "s/_KVERM_/2.6.26/g" \
     -e "s/_KVER_/2.6.26/g"\
     -e "s/_TRVER_/4.3a/g"\
     -e "s/-_KDEP_//g"\
     -e "s/_KDEPP_//g"\
     -e "s/_KDEP_//g"\
      debian/control.in > debian/control
cd debian && \
 cp truecrypt-modules.postinst.in \
    truecrypt-modules-4.3a-2.6.26.postinst
cd debian && \
 cp truecrypt-modules.postrm.in \
    truecrypt-modules-4.3a-2.6.26.postrm
dpatch deapply-all
21_truecrypt-4.3a-Dm-target.c--kernel-2.6.24 not applied to ./ .
20_truecrypt-4.3-Dm-target.c--module-licence-fix-gpl not applied to ./ .
rm -rf patch-stamp patch-stampT debian/patched
# clean: standard Debian target
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
rm -f Linux/Cli/*.o Linux/Kernel/*o Linux/Cli/truecrypt
rm -f Linux/Common/*.o Linux/Common/platform
rm -f Crypto/*.o Crypto/.*.o
rm -f Common/*.o Common/platform
rm -rf /usr/src/truecrypt-4.3a-source-code/debian/truecrypt*/
# Add here commands to clean up after the build process.
/usr/bin/make clean || :
make[1]: Entering directory `/usr/src/truecrypt-4.3a-source-code'
make[1]: *** No rule to make target `clean'. Stop.
make[1]: Leaving directory `/usr/src/truecrypt-4.3a-source-code'
dh_clean
 debian/rules build
/bin/sh: -c: line 0: syntax error near unexpected token `)'
/bin/sh: -c: line 0: `echo 4.2.4) | cut -d"." -f1-2 '
W: Unable to locate package linux-image-2.6.26
# configure-stamp: standard Debian target
dh_testdir
# Add here commands to configure the package.
touch configure-stamp
# truecrypt-version-check: Check Truecrypt version compatibility
# kernel-modversions-check: Check CONFIG_MODVERSIONS header
# kernel-version-check: Check Kernel version compatibility
# selfcheck: Display variables and their values
Time-stamp: <2008-09-14 16:05:24 Jari Aalto (root)> revision control: 280
Linux DatenKubusIII 2.6.26 #1 PREEMPT Tue Jul 29 21:17:59 CDT 2008 armv5tel GNU/Linux
TRVER 4.3a - Truecrypt sources
TRVERMIN 4.1 - Supported Truecrypt version
TRVERMAX 4.3a - Supported Truecrypt version
ISPATCHED yes
KCFG /usr/src/linux-source-2.6.26/.config
KCFG_BOOT /boot/config-2.6.26 - .config file in /boot
KPATCH - Needs kernel patch?
ISOLDKCFG - Do we have .oldconfig?
ISDEBIAN yes
ISUBUNTU
/bin/sh: -c: line 0: syntax error near unexpected token `)'
/bin/sh: -c: line 0: `echo KCCVER 4.2.4) - Gcc used to build running kernel'
make: *** [selfcheck] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2
debuild: fatal error at line 1319:
dpkg-buildpackage -rfakeroot -D -us -uc -b -i failed

#cat /proc/version

gives out this.

 Linux version 2.6.26 (davy**@**) (gcc version 4.2.4) #1 PREEMPT Tue Jul 29 21:17:59 CDT 2008

best regards, André

Revision history for this message
Jari Aalto (jari-aalto) wrote :

> dpkg-buildpackage: host architecture armel

This architecture has never been tested. The original sources were written for Intel 32bit. The code just happens to work also on AMD 64. It will be interesting to hear if compilation succeeds. If not, we need someone to supply patches to that architecture.

> /bin/sh: -c: line 0: syntax error near unexpected token `)'
> /bin/sh: -c: line 0: `echo 4.2.4) | cut -d"." -f1-2 '

The Kernel's Gcc information on that architecture is stored in different version string. Please send this command's output:

    egrep 'Linux version.*gcc version' /proc/version

A likely fix has been committed revision 283. Run again:

  tc-dpkg --auto --install

Changed in truecrypt-installer:
assignee: nobody → jari-aalto
status: New → Fix Committed
importance: Undecided → High
Revision history for this message
André (hillersa) wrote :

# egrep 'Linux version.*gcc version' /proc/version
Linux version 2.6.26 (davy**@**) (gcc version 4.2.4) #1 PREEMPT Tue Jul 29 21:17:59 CDT 2008

Revision history for this message
Jari Aalto (jari-aalto) wrote :

Confirmed. The KCC parsing has been fixed in latest revision.

Changed in truecrypt-installer:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.