You are not logged in.

#1 2011-06-10 01:44:17

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,729
Website

kernel compilation error when compressing with lzo [solved]

I got an odd error when I set the following from xz to lzo:

General setup  --->
Kernel compression mode (XZ)  --->

No other changes (and it builds fine with LZO).

  IHEX    firmware/kaweth/new_code.bin
  IHEX    firmware/kaweth/trigger_code.bin
  IHEX    firmware/kaweth/new_code_fix.bin
  IHEX    firmware/kaweth/trigger_code_fix.bin
  IHEX    firmware/ti_3410.fw
  IHEX    firmware/ti_5052.fw
  IHEX    firmware/mts_gsm.fw
  IHEX    firmware/mts_cdma.fw
  IHEX    firmware/mts_edge.fw
  H16TOFW firmware/edgeport/boot.fw
  H16TOFW firmware/edgeport/boot2.fw
  H16TOFW firmware/edgeport/down.fw
  H16TOFW firmware/edgeport/down2.fw
  IHEX    firmware/edgeport/down3.bin
  IHEX2FW firmware/whiteheat_loader.fw
  IHEX2FW firmware/whiteheat.fw
  IHEX2FW firmware/keyspan_pda/keyspan_pda.fw
  IHEX2FW firmware/keyspan_pda/xircom_pgs.fw
  IHEX    firmware/cpia2/stv0672_vp4.bin
==> ERROR: A failure occurred in build().
    Aborting...

Last edited by graysky (2011-06-10 20:14:19)

Offline

#2 2011-06-10 03:10:46

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: kernel compilation error when compressing with lzo [solved]

no actual error earlier in the build process? in any case, firmwares come as a separated package [1] nowadays. you could make you package depend on this and drop the firmware build from your PKGBUILD. in fact, that would be better as the firmware package is more recent and includes updated intel firmwares.

[1] http://www.archlinux.org/packages/core/ … -firmware/

Offline

#3 2011-06-10 18:48:05

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,729
Website

Re: kernel compilation error when compressing with lzo [solved]

@bangkok - this occurs when building the stock ARCH kernel.  The firmware is removed after the build completes.  The ONLY modification was the switch the compression from xz to lzo.

I am at a loss as to why this would fail.

Offline

#4 2011-06-10 19:12:59

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,729
Website

Re: kernel compilation error when compressing with lzo [solved]

I ran makepkg in bash debugging mode, looks like it's dying at the make modules step:

$ bash -x /usr/bin/makepkg -src

...
+ msg 'Running make bzImage and modules'
+ local 'mesg=Running make bzImage and modules'
+ shift
+ printf '==> Running make bzImage and modules\n'
==> Running make bzImage and modules
+ make -j4 bzImage modules
CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/pnmtologo
...
 IHEX    firmware/ess/maestro3_assp_kernel.fw
  IHEX    firmware/ess/maestro3_assp_minisrc.fw
  IHEX    firmware/yamaha/ds1_ctrl.fw
  IHEX    firmware/yamaha/ds1_dsp.fw
  IHEX    firmware/yamaha/ds1e_ctrl.fw
++ error_function build
++ [[ -p '' ]]
++ ((  ! BASH_SUBSHELL  ))
+++ gettext 'A failure occurred in %s().'
++ error 'A failure occurred in %s().' build
++ local 'mesg=A failure occurred in %s().'
++ shift
+++ gettext ERROR:
++ printf '==> ERROR: A failure occurred in %s().\n' build
==> ERROR: A failure occurred in build().
+++ gettext Aborting...
++ plain Aborting...
++ local mesg=Aborting...
++ shift
++ printf '    Aborting...\n'
    Aborting...
++ remove_deps
++ ((  ! RMDEPS  ))
+++ comm -23 /dev/fd/63 /dev/fd/62

WTF?

Last edited by graysky (2011-06-10 19:15:54)

Offline

#5 2011-06-10 20:13:51

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,729
Website

Re: kernel compilation error when compressing with lzo [solved]

*head smack*

It wasn't choking on the modules, it was choking because I lacked the needed compression libs!

$ pacman -S lzop

Now the build is complete with no errors.

Offline

#6 2011-06-11 02:29:50

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: kernel compilation error when compressing with lzo [solved]

a little bit OT now but anyway, why don't use this?

Offline

#7 2011-06-11 10:11:55

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,729
Website

Re: kernel compilation error when compressing with lzo [solved]

Good question!  I just adapted the ARCH kernel26 PKGBUILD to my kernel26-ck PKGBUILD.  You'll notice:

# remove the firmware
rm -rf ${pkgdir}/lib/firmware

Although it gets built, it later gets removed.

I believe that this error has nothing to do with firmware at all.  It just so happened that the compression step occurs after the firmware is built.  Since my system lacked lzop, it errored out there.

Offline

Board footer

Powered by FluxBB