flex icon indicating copy to clipboard operation
flex copied to clipboard

aarch64-linux-gnu-gcc build flex2.6.4 will error

Open wangwenqiangGitHub opened this issue 1 year ago • 2 comments

system : lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.6 LTS Release: 20.04 Codename: focal

build order: ./configure --prefix=/mnt/e/g9h/snort/OUT --host=aarch64-linux-gnu CC=aarch64-linux-gnu-gcc CFLAGS='-g -O2 -D_GNU_SOURCE'

error output:

./stage1flex -o stage1scan.c ./scan.l make[2]: *** [Makefile:1834: stage1scan.c] Segmentation fault (core dumped)

wangwenqiangGitHub avatar Nov 16 '23 01:11 wangwenqiangGitHub

system : lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.6 LTS Release: 20.04 Codename: focal

build order: ./configure --prefix=/mnt/e/g9h/snort/OUT --host=aarch64-linux-gnu CC=aarch64-linux-gnu-gcc CFLAGS='-g -O2 -D_GNU_SOURCE'

error output:

./stage1flex -o stage1scan.c ./scan.l make[2]: *** [Makefile:1834: stage1scan.c] Segmentation fault (core dumped)

aarch64-linux-gnu-gcc --version aarch64-linux-gnu-gcc (Linaro GCC 7.3-2018.05) 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701] Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

wangwenqiangGitHub avatar Nov 16 '23 01:11 wangwenqiangGitHub

This error is happening during bootstrap. I haven't attempted bootstrapping on ARM. I use an x86_64/amd64 environment.

If you can, build a distribution tarball on amd64, then try to build from your distro archive on ARM. If that breaks too I'll have a better idea of the problem.

Mightyjo avatar Nov 16 '23 15:11 Mightyjo