Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the Ubuntu compilation Linux-xen method

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces "what is Ubuntu compiling Linux-xen method". In daily operation, I believe many people have doubts about what Ubuntu compiling Linux-xen method is. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "what is Ubuntu compiling Linux-xen method?" Next, please follow the editor to study!

I encountered a problem that arch/i386/kernel/head-xen.o could not find when compiling Linux-xen under Ubuntu, and there is a file head-xen.S in this directory, indicating that the previous work of make did not compile the .s file into .o. For the same code, there is no problem compiling the same code after svn checkout on ArchLinux and Fedora.

* the problem found is that Ubuntu points / bin/sh to / bin/dash by default, and add a line in scripts/Makefile.build to specify $(shell) to use bash. Later, I also searched why Ubuntu uses dash instead of bash, on the grounds that dash is more efficient, but it is undeniable that this change has also caused some projects not to compile successfully, although it may be due to the use of some bash features in Makefile rather than those provided by POSIX shell.

In addition, I found some debug Makefile skills on the Internet in the process of debug:

Make-n can only print out the command to be executed without actually executing it.

Make-np can print out more information (rules and variables used) and execute each command

Remake is also a good choice: "remake is a patched and modernized version of GNU make utility that adds improved error reporting, the ability to trace execution in a comprehensible way, and a debugger."

When checking shell commands, you can use set-x to make all shell commands output before execution.

At this point, the study of "what is the Ubuntu compiling Linux-xen method" is over. I hope to be able to solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report