adhuliya / ajit-toolchain

Toolchains for AJIT Processor IIT Bombay
8 stars 4 forks source link

Linux build failed #1

Closed VishnuEaswaran closed 3 years ago

VishnuEaswaran commented 4 years ago

The Ajit custom Linux build fails; log files attached. Steps followed are

  1. Sourced old_ajit_repo_setup_paths.sh
  2. ran the script GeneratememMapForAjit.sh

Brief overview running the script:

LOGFILE: link

VishnuEaswaran commented 4 years ago

My system settings

Environment: ubuntu:16.04 image-based container with the help of Docker. Additional packages added on top of the base image are

VishnuEaswaran commented 4 years ago

Gave missing lib libsigsegv-dev. Installed the same.

VishnuEaswaran commented 4 years ago

Fresh build: Attempt after pulling and merging the new changes & additions: commit snapshot

Ran setup script from the top-most directory which ran successfully. Then sourced the export script from _from_ajitrepo and further ran the GeneratememMapForAjit.sh script.

Result: still failed at step2. Error hints a missing file called Makefile.lib.

image (please click on the image to view it properly)

Log: Log File

VishnuEaswaran commented 4 years ago

this commit ~seems to~ have solved the missing file issue.

VishnuEaswaran commented 4 years ago

New build after fixing the missing Makefile.lib

Result : failed

image

image

image

here, the first cp error is because of the missing _Generated_memorymap directory.

last error is because of the failed step 2.

log file - link

VishnuEaswaran commented 4 years ago

vmlinux.lds.S seems to be the ld script for the kernel. Yet again, that particular file is missing in our source. I noticed there is a gitignore in the directory where script is supposed to be present, that intentionally ignores vmlinux.lds. But the file missing is vmlinux.lds.S which makes makes things more confusing.

path to the script: Ajit_linux_3.16.1/arch/sparc/kernel/ repo link to the path: link

VishnuEaswaran commented 4 years ago

Tried building the image by copying the mentioned file from here.

Result: no errors noticed after fixing the missing _Generated_memorymap directory. Conclusion: Not sure if this is the right solution. Someone should look into this.

adhuliya commented 4 years ago

I had not been involved in the linux kernel part of the project yet. Hence most of the stuff mentioned here is alien to me. Thanks for the effort to resolve the issue on your own. I will start looking into this and get back soon.

VishnuEaswaran commented 4 years ago

I noticed that here a change in vmlinux.lds is mentioned

adhuliya commented 4 years ago

I am a bit delayed on this issue. I am trying to get the grip on the three main components of the build process: buildroot-2014.08, ajit_C_system_model, and the supporting build scripts. As I see since this issue is not a show stopper right now, once these three are properly in shape and reliably reproducible (possibly in a docker image), I will get back to this issue.

adhuliya commented 3 years ago

I am back on this issue and will update soon. Hopefully with a readable build instructions on the marshal branch.

VishnuEaswaran commented 3 years ago

Linux has been building successfully for a long time now.