Building GRUB2 failed at step make

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Adrox
Posts: 9
Joined: Wed Dec 07, 2016 10:39 am

Building GRUB2 failed at step make

Post by Adrox »

Hello,

I have a problem. I wanted to build GRUB2 but it failed at the command make. I attached the console output. Sorry some words are in German.

Fehler = error
wird verlassen = is left
die Regel = the rule
Verzeichnis = directory
scheiterte = failed
für Ziel = for target

How can I solve this problem I installed all dependencies??
Attachments
errors.png
Last edited by Adrox on Thu Dec 08, 2016 1:21 pm, edited 1 time in total.
"The world is in greater peril from those who tolerate or encourage evil than from those who actually commit it." - Albert Einstein
User avatar
matt11235
Member
Member
Posts: 286
Joined: Tue Aug 02, 2016 1:52 pm
Location: East Riding of Yorkshire, UK

Re: Building GRUB2 failed at step make

Post by matt11235 »

Adrox wrote:Hello,

I have a problem. I wanted to build GRUB2 but it failed at the command make. I attached the console output. Sorry some words are in German.

Fehler = error
wird verlassen = is left
die Regel = the rule
Verzeichnis = directory
scheiterte = failed
für Ziel = for target

How can I solved this problem I installed all dependencies??
Is there any reason you can't use the grub2 from the Ubuntu repositories?
com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonWindowNotFocusedState
Compiler Development Forum
Adrox
Posts: 9
Joined: Wed Dec 07, 2016 10:39 am

Re: Building GRUB2 failed at step make

Post by Adrox »

Grub2 is in the official repositories? Is grub2 precompiled there?
"The world is in greater peril from those who tolerate or encourage evil than from those who actually commit it." - Albert Einstein
User avatar
Octacone
Member
Member
Posts: 1138
Joined: Fri Aug 07, 2015 6:13 am

Re: Building GRUB2 failed at step make

Post by Octacone »

Just: sudo apt-get install grub2 and sudo apt-get install xorriso to make sure your builds are not failing because of that. Why would you want to compile GRUB, just use those two commands.
OS: Basic OS
About: 32 Bit Monolithic Kernel Written in C++ and Assembly, Custom FAT 32 Bootloader
Boris
Member
Member
Posts: 145
Joined: Sat Nov 07, 2015 3:12 pm

Re: Building GRUB2 failed at step make

Post by Boris »

Hi,
in order to have standard error messages , prefix your command line with LC_ALL=C.
Many GNU software needs to be configured before running make. So go ahead and run:

Code: Select all

LC_ALL=C ./configure
Adrox
Posts: 9
Joined: Wed Dec 07, 2016 10:39 am

Re: Building GRUB2 failed at step make

Post by Adrox »

Thanks for your answers I am going to test these solutions soon. Besides I am going to install grub2 via the official repositories
"The world is in greater peril from those who tolerate or encourage evil than from those who actually commit it." - Albert Einstein
Post Reply