Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wangwenqiangGitHub opened this issue Nov 16, 2023 · 2 comments
Open

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

wangwenqiangGitHub opened this issue Nov 16, 2023 · 2 comments

Comments

@wangwenqiangGitHub
Copy link

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
Copy link
Author

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants