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

gem5 now build with arm64 command. #145

Closed
EE415-20170470 opened this issue Feb 27, 2021 · 3 comments
Closed

gem5 now build with arm64 command. #145

EE415-20170470 opened this issue Feb 27, 2021 · 3 comments

Comments

@EE415-20170470
Copy link

111

I have error on running ./build --arch aarch64 --download-dependencies gem5-buildroot command because gem5 now build with arm64 command!

I also has same error on #143 because I think some environment missed when running only ./build-buildroot -- glibc-reconfigure

@cirosantilli
Copy link
Owner

cirosantilli commented Feb 27, 2021

Can you try:

sudo apt install liblua5.4-dev

and then check with:

./build-m5 -aA

? The m5 has an annoying dependency on lua I believe.

I can then add to the dependencies if it works.

@EE415-20170470
Copy link
Author

EE415-20170470 commented Feb 28, 2021

I think you can just change

        if self.env['arch'] == 'x86_64':
            env['gem5_m5_source_dir_build_arch'] = 'x86'
        else:
            env['gem5_m5_source_dir_build_arch'] = env['arch']

to

        if self.env['arch'] == 'x86_64':
            env['gem5_m5_source_dir_build_arch'] = 'x86'
        elif self.env['arch'] == 'aarch64':
            env['gem5_m5_source_dir_build_arch'] = 'arm64'
        else:
            env['gem5_m5_source_dir_build_arch'] = env['arch']

in common.py.

It solved build error in my case.

@cirosantilli
Copy link
Owner

Thanks for the patch!!!

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