another kernel snap build error

MikeB mabnhdev at gmail.com
Mon Feb 20 17:29:53 UTC 2017


On Mon, Feb 20, 2017 at 10:00 AM, Paolo Pisati
<paolo.pisati at canonical.com> wrote:
> So, two weeks ago it built fine fine you say? The only thing that
> changed in the kernel pluging recently was the move of /lib/modules
> and /lib/firmware to /modules and /firmware.
>
> Try building with 'snapcraft -d' to get a verbose output.
>


I use a custom plugin normally, but I removed it for the purpose of debugging.

The following failure occurred while using the standard kernel plugin.

Thanks, Mike

   ld -m elf_x86_64   -r -o drivers/built-in.o
drivers/irqchip/built-in.o drivers/bus/built-in.o
drivers/phy/built-in.o drivers/pinctrl/built-in.o
drivers/gpio/built-in.o drivers/pwm/built-in.o drivers/pci/built-in.o
drivers/rapidio/built-in.o drivers/video/built-in.o
drivers/idle/built-in.o drivers/acpi/built-in.o drivers/sfi/built-in.o
drivers/pnp/built-in.o drivers/amba/built-in.o drivers/dma/built-in.o
drivers/soc/built-in.o drivers/virtio/built-in.o
drivers/xen/built-in.o drivers/regulator/built-in.o
drivers/reset/built-in.o drivers/tty/built-in.o
drivers/char/built-in.o drivers/iommu/built-in.o
drivers/gpu/built-in.o drivers/connector/built-in.o
drivers/lightnvm/built-in.o drivers/base/built-in.o
drivers/block/built-in.o drivers/misc/built-in.o
drivers/mfd/built-in.o drivers/nfc/built-in.o
drivers/nvdimm/built-in.o drivers/dma-buf/built-in.o
drivers/macintosh/built-in.o drivers/scsi/built-in.o
drivers/nvme/built-in.o drivers/ata/built-in.o drivers/spi/built-in.o
drivers/hsi/built-in.o drivers/net/built-in.o
drivers/message/built-in.o drivers/firewire/built-in.o
drivers/cdrom/built-in.o drivers/auxdisplay/built-in.o
drivers/usb/built-in.o drivers/input/serio/built-in.o
drivers/input/built-in.o drivers/rtc/built-in.o drivers/i2c/built-in.o
drivers/media/built-in.o drivers/pps/built-in.o drivers/ptp/built-in.o
drivers/power/built-in.o drivers/hwmon/built-in.o
drivers/thermal/built-in.o drivers/watchdog/built-in.o
drivers/md/built-in.o drivers/isdn/built-in.o drivers/edac/built-in.o
drivers/lguest/built-in.o drivers/cpufreq/built-in.o
drivers/cpuidle/built-in.o drivers/mmc/built-in.o
drivers/leds/built-in.o drivers/firmware/built-in.o
drivers/crypto/built-in.o drivers/clocksource/built-in.o
drivers/staging/built-in.o drivers/platform/built-in.o
drivers/clk/built-in.o drivers/mailbox/built-in.o
drivers/virt/built-in.o drivers/devfreq/built-in.o
drivers/extcon/built-in.o drivers/memory/built-in.o
drivers/vme/built-in.o drivers/powercap/built-in.o
drivers/perf/built-in.o drivers/ras/built-in.o
drivers/hwtracing/intel_th/built-in.o
Traceback (most recent call last):
  File "/usr/bin/snapcraft", line 31, in <module>
    snapcraft.main.main()
  File "/usr/lib/python3/dist-packages/snapcraft/main.py", line 244, in main
    return run(args, project_options)
  File "/usr/lib/python3/dist-packages/snapcraft/main.py", line 303, in run
    lifecycle.snap(project_options, args['<directory>'], args['--output'])
  File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle.py",
line 365, in snap
    snap = execute('prime', project_options)
  File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle.py",
line 117, in execute
    _Executor(config, project_options).run(step, part_names)
  File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle.py",
line 210, in run
    self._run_step(step, part, part_names)
  File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle.py",
line 246, in _run_step
    getattr(part, step)()
  File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/__init__.py",
line 397, in build
    self.code.build()
  File "/usr/lib/python3/dist-packages/snapcraft/plugins/kbuild.py",
line 169, in build
    self.do_build()
  File "/usr/lib/python3/dist-packages/snapcraft/plugins/kbuild.py",
line 153, in do_build
    self.run(self.make_cmd + self.make_targets)
  File "/usr/lib/python3/dist-packages/snapcraft/_baseplugin.py", line
191, in run
    return common.run(cmd, cwd=cwd, **kwargs)
  File "/usr/lib/python3/dist-packages/snapcraft/internal/common.py",
line 62, in run
    subprocess.check_call(['/bin/sh', f.name] + cmd, **kwargs)
  File "/usr/lib/python3.5/subprocess.py", line 581, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/bin/sh',
'/tmp/tmp0p3radgj', 'make', '-j4', 'V=1', 'bzImage', 'modules']'
returned non-zero exit status 2



More information about the Devices mailing list