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

Compiling 'binstall/xinstall.lo' issue #336

Closed
nazebzurati opened this issue Nov 14, 2022 · 5 comments
Closed

Compiling 'binstall/xinstall.lo' issue #336

nazebzurati opened this issue Nov 14, 2022 · 5 comments

Comments

@nazebzurati
Copy link

Step to reproduce:

  • Clone the repo main branch
  • Apply patch.txt
  • Run ./releasetools/x86_cdimage.sh

Machine:

  • OS: Ubuntu 22.04.1 LTS on Windows 10 x86_64
  • Kernel: 5.15.68.1-microsoft-standard-WSL2
  • Shell: bash 5.1.16
  • CPU: AMD Ryzen 5 3400G (8) @ 3.699GHz

Notes:

  • ./glass is the my Minix working folder name.

Attachments:

@nazebzurati
Copy link
Author

I believe that this is due to repo's ./sys/sys/stat.h is not used when cross compiling and build platform's sys/stat.h was used instead.

...
xinstall.o: /usr/include/x86_64-linux-gnu/sys/stat.h
...

As attached is the ./../tools/binstall/xinstall.d file produced when cross compiling: xinstall.d

@petershh
Copy link

first of all, there's nbsed build failure. Are there any error message. You may want to redirect stderr to log as well.

@nazebzurati
Copy link
Author

The log.txt I attached get from command ./releasetools/x86_cdimage.sh 2>&1 | tee log.txt. Please suggest the suitable command as I believe 2>&1 have already include both stdout and stderr.

@petershh
Copy link

I've installed fresh Ubuntu 22.04.01 in WSL, cloned minix repository and appliet patch suite from #322 . Build seems like to work.

@nazebzurati
Copy link
Author

The mentioned issue was fixed.

The steps are as follows:

  1. Clone the repo or git hard reset and clean.
  2. Download #322 patch:
    curl https://github.com/petershh/minix/commit/75e1abafd68c2eb6ded0d311facd918a7e0b8517.patch -o patch.txt
  3. Apply patch:
    git apply --ignore-space-change --ignore-whitespace patch.txt
  4. Add string header as per this patch manually.
  5. Run x86_cdimage.sh script and redirect the output to log:
    ./releasetools/x86_cdimage.sh 2>&1 | tee log.txt
  6. Let it compile!

If any of these steps is not expected, please let me know. Else, I'll close this issue soon.
Thanks for your verification and assistant!

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