westes / flex

The Fast Lexical Analyzer - scanner generator for lexing in C and C++
Other
3.55k stars 529 forks source link

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

Open wangwenqiangGitHub opened 10 months ago

wangwenqiangGitHub commented 10 months ago

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 commented 10 months ago

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.

Mightyjo commented 10 months ago

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.