Package: as31
Version: 2.3.1-6+b2

The as31 assembler has a segmentation fault when building the usbdux
firmware from linux-firmware.git. Steps to reproduce on a fresh
install of Debian 9.3 Stretch:

sudo apt install git make as31
git clone
git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
cd linux-firmware/usbdux/
make -f Makefile_dux

What I get:
as31 -Fbin usbduxfast_firmware.asm
including file: fx2-include.asm
Makefile_dux:9: recipe for target 'usbduxfast_firmware.bin' failed
make: *** [usbduxfast_firmware.bin] Segmentation fault

Expected output after doing make -f Makefile_dux:
as31 -Fbin usbduxfast_firmware.asm
including file: fx2-include.asm
Begin Pass #1
Begin Pass #2
as31 -Fbin usbdux_firmware.asm
including file: fx2-include.asm
Begin Pass #1
Begin Pass #2
as31 -Fbin usbduxsigma_firmware.asm
including file: fx2-include.asm
Begin Pass #1
Begin Pass #2

The successful build is the result of doing the build with Ubuntu
17.10 (Artful Aardvark) with these same steps. I tried looking for a
source code difference between the Debian & Ubuntu packages but they
seem the same and when I build Ubunut's package from source it also
segfaults although their pre-compiled one does not.

This makes me wonder if their pre-compiled binary was made using a
different version of the source code that doesn't have this problem.

Reply via email to