Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] GRUB2 error (compile phase):
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
PonsAsinorem
n00b
n00b


Joined: 22 Feb 2011
Posts: 13
Location: United States

PostPosted: Sun Dec 25, 2011 8:35 am    Post subject: [SOLVED] GRUB2 error (compile phase): Reply with quote

Trying to do an install of grub2 on a new gentoo install. Following the guide here: http://en.gentoo-wiki.com/wiki/Grub2 Skipping grub so I don't have to update from it later, plus grub gave me a different error that I can't remember off the top of my head.

Code:
Messages for package sys-boot/grub-9999:

 * Going to build following platforms: guessed
 * ERROR: sys-boot/grub-9999 failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *          ebuild.sh, line   75:  Called src_configure
 *        environment, line 3447:  Called grub_run_phase 'src_configure' 'guessed'
 *        environment, line 2482:  Called grub_src_configure 'guessed'
 *        environment, line 2508:  Called econf '--disable-werror' '--sbindir=/sbin' '--bindir=/bin' '--libdir=/lib64' '--program-transform-name=s,grub,grub2,' '--disable-mm-debug' '--disable-grub-emu-usb' '--disable-device-mapper' '--disable-efiemu' '--enable-nls' '--enable-grub-mkfont' '--disable-grub-emu-sdl'
 *   phase-helpers.sh, line  467:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 *
 * If you need support, post the output of 'emerge --info =sys-boot/grub-9999',
 * the complete build log and the output of 'emerge -pqv =sys-boot/grub-9999'.
 * The complete build log is located at '/var/tmp/portage/sys-boot/grub-9999/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-boot/grub-9999/temp/environment'.
 * S: '/var/tmp/portage/sys-boot/grub-9999/work/grub-9999'

 * Regenerating GNU info directory index...
 * Processed 85 info files.


http://pastebin.com/2Tpy4JwA = emerge --info =sys-boot/grub-9999

http://pastebin.com/zLtzQyzm = The complete build log

http://pastebin.com/q4wR45Lx = emerge -pqv =sys-boot/grub-9999

http://pastebin.com/7dBkUVcj = Build environment

http://pastebin.com/Esnn4Ppn = make.conf

Any ideas or need any additional info? Thanks in advance.


Unrelated sidenote about this forum: any chance of tapatalk and forum runner support?


Last edited by PonsAsinorem on Sat Dec 31, 2011 5:51 am; edited 2 times in total
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5326

PostPosted: Sun Dec 25, 2011 8:53 am    Post subject: Reply with quote

have you read the build log even?

you are missing bison.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
PonsAsinorem
n00b
n00b


Joined: 22 Feb 2011
Posts: 13
Location: United States

PostPosted: Sun Dec 25, 2011 8:44 pm    Post subject: Reply with quote

DaggyStyle wrote:
have you read the build log even?

you are missing bison.


:oops: Sorry. I've done a clean install of gentoo, including repartitioning my drive, three or four times, and forgot I haven't installed bison yet. Was trying to stay strictly to the guide (which doesn't mention bison) so as not to mess it up this time. Just installed bison, as well as updating my entire system including dependencies, and now have:

Code:
reed_solomon.c: Assembler messages:
reed_solomon.c:651: Warning: ignoring changed section attributes for .text
/var/tmp/portage/sys-boot/grub-9999/work/grub-9999/grub-core/boot/i386/pc/startup_raw.S:119: Error: attempt to move .org backwards
make[3]: *** [boot/i386/pc/lzma_decompress_image-startup_raw.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/sys-boot/grub-9999/work/build-guessed/grub-core'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-boot/grub-9999/work/build-guessed/grub-core'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-boot/grub-9999/work/build-guessed'
make: *** [all] Error 2
 * ERROR: sys-boot/grub-9999 failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of 'emerge --info =sys-boot/grub-9999',
 * the complete build log and the output of 'emerge -pqv =sys-boot/grub-9999'.
 * The complete build log is located at '/var/tmp/portage/sys-boot/grub-9999/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-boot/grub-9999/temp/environment'.
 * S: '/var/tmp/portage/sys-boot/grub-9999/work/grub-9999'
(chroot) Gentoo-11 init.d #


http://pastebin.com/mviycWcm = emerge --info =sys-boot/grub-9999

http://db.tt/vzfbpfcL = The complete build log (too large for pastebin)

http://pastebin.com/FHdyUkqT = emerge -pqv =sys-boot/grub-9999

Now, the error seems to be:

Code:
reed_solomon.c: Assembler messages:
reed_solomon.c:651: Warning: ignoring changed section attributes for .text
/var/tmp/portage/sys-boot/grub-9999/work/grub-9999/grub-core/boot/i386/pc/startup_raw.S:119: Error: attempt to move .org backwards


Google is not helping in this regard; not even a clue. Will continue digging around and see what I find.

Edit: upon further thought, this error is in the i386 arch directory, and might be due to my march=core2 flag. Going to look around and see if I can install grub2 for only core2.

Edit Edit: Added GRUB_PLATFORMS="pc" to make.conf. Still a no go with the same error.
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5326

PostPosted: Mon Dec 26, 2011 5:51 am    Post subject: Reply with quote

first, bison should be pulled it by default, if not it is a bug in the ebuild.

second, this msg
Code:
#
/usr/lib64/portage/pym/portage/package/ebuild/config.py:353: UserWarning: 'cache.metadata_overlay.database' is deprecated: /etc/portage/modules
#
  (user_auxdbmodule, modules_file))


is not good, I see that you are using a chroot, have you updated your portage?

third, is there any particular reason to install grub-9999? grub-1.99-r2 will suite you well.

last, use this tutorial: http://dev.gentoo.org/~scarabeus/grub-2-guide.xml
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
blacflame
n00b
n00b


Joined: 19 Nov 2010
Posts: 4

PostPosted: Fri Dec 30, 2011 3:27 am    Post subject: sys-boot/grub-9999 failed (compile phase): Reply with quote

Hey guys, ran into the same issue.

Here's an interesting thread about the topic
http://lists.gnu.org/archive/html/grub-devel/2011-11/msg00078.html

I tried killing a couple of my partitions - no change.

I just reverted back to grub due to time constraints.
_________________
~~~One who has no where to go cannot be lost ~~~
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5326

PostPosted: Fri Dec 30, 2011 5:15 am    Post subject: Re: sys-boot/grub-9999 failed (compile phase): Reply with quote

blacflame wrote:
Hey guys, ran into the same issue.

Here's an interesting thread about the topic
http://lists.gnu.org/archive/html/grub-devel/2011-11/msg00078.html

I tried killing a couple of my partitions - no change.

I just reverted back to grub due to time constraints.

as the op didn't answered me, I hope you will, why in hell are you using grub-9999 when grub-1.99-r2 is perfectly fine afaik?
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
PonsAsinorem
n00b
n00b


Joined: 22 Feb 2011
Posts: 13
Location: United States

PostPosted: Fri Dec 30, 2011 8:20 pm    Post subject: Reply with quote

DaggyStyle wrote:
first, bison should be pulled it by default, if not it is a bug in the ebuild.

second, this msg
Code:
#
/usr/lib64/portage/pym/portage/package/ebuild/config.py:353: UserWarning: 'cache.metadata_overlay.database' is deprecated: /etc/portage/modules
#
  (user_auxdbmodule, modules_file))


is not good, I see that you are using a chroot, have you updated your portage?

third, is there any particular reason to install grub-9999? grub-1.99-r2 will suite you well.

last, use this tutorial: http://dev.gentoo.org/~scarabeus/grub-2-guide.xml


I apologize for the late response. Holiday season and wife insisting I stay off the computer.

1. Not sure why bison didn't pull automatically for grub-9999. It did for grub-1.99-r2.

2. Yes, I updated portage. Was the second thing I did (emerge --oneshot portage) after emege --sync in chroot, according to the guide.

3. No reason, just what most guides said for grub2. Using 1-99-r2 now, and works and compiles great.

4. Saw that one, I kind of use a mix of several guides when one quits working (as long as they're along the same vane, at any rate; I don't just mix and mash a bunch of commands, I do read all of the guide, first).

Thanks for your help.
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5326

PostPosted: Sat Dec 31, 2011 5:47 am    Post subject: Reply with quote

np, please mark as solved.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum