bugGNU GRUB - Bugs: bug #26966, building in separate directory...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #26966: building in separate directory fails

Submitted by:  Peter <peterius>
Submitted on:  Sun 05 Jul 2009 10:40:33 PM UTC  
 
Category: CompilationSeverity: Major
Priority: 5 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: peterius
Open/Closed: ClosedRelease: svn
Release: 1.98Reproducibility: None
Planned Release: None

(Jump to the original submission Jump to the original submission)

Sat 17 Apr 2010 05:09:01 PM UTC, comment #7:

I regularly use building in separate directory. No such problem and both -I$(srcdir)/include and -I$(builddir)/include are present

Vladimir Serbinenko <phcoder>
Project Administrator
Sun 19 Jul 2009 09:15:13 PM UTC, comment #6:

Okay. I found it exactly.

If you do
mkdir grub-build
cd grub-build
../trunk/grub2/configure
make

Or something like that, then there's a much of include errors because trunk/grub2/ has header files where as path only has -I($srcdir)/include.

If you add -I($srcdir) to Makefile.in in trunk/grub2, then it compiles.

Peter <peterius>
Sun 19 Jul 2009 09:05:26 PM UTC, comment #5:

You know, I think I may have assumed that all the bugs were for grub2, and I specified the release on a grub bug with svn grub, whereas this I just said svn. But its been a while and I forgot which this was for.

I think it was the Makefile.in in grub2. I wouldn't have cared about compiling grub in the same directory because it doesn't produce hundreds of files.

Peter <peterius>
Sun 19 Jul 2009 07:10:51 PM UTC, comment #4:

Do you maybe mean running ./autogen.sh outside of source dir?
That probable won't work.
Makefile.am isn't used.

Felix Zielcke <fzielcke>
Project Member
Sun 19 Jul 2009 06:59:44 PM UTC, comment #3:

It probably wasn't configure.ac, that was the other issue... maybe it was a Makefile.am or two. Sorry.

Peter <peterius>
Sun 19 Jul 2009 06:58:23 PM UTC, comment #2:

By "several files" I meant just the configure.ac or whatever (its been a while, I don't remember exactly) needs that for several files that are in the root directory of the source.

This was on a debian system, but I might be using testing rather than stable, so maybe autoconfigure has been changed or something.

Peter <peterius>
Sun 19 Jul 2009 11:59:58 AM UTC, comment #1:

Which files?
In Debian we build the packages always with a seperate build directory and everything works still fine.
I just tried it out again with current SVN rev 2425 and it worked fine.

Felix Zielcke <fzielcke>
Project Member
Sun 05 Jul 2009 10:40:33 PM UTC, original submission:

Several files need -I$(srcdir) in addition to -I$(srcdir)/include in order to compile. Running ./configure from a separate directory keeps things much cleaner.

Peter <peterius>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by phcoder (Posted a comment)
  • -unavailable- added by fzielcke (Posted a comment)
  • -unavailable- added by peterius (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 17 Apr 2010 05:09:01 PM UTCphcoderStatusNone=>Fixed
      Open/ClosedOpen=>Closed
      ReleaseNone=>1.98

    Back to the top


    Powered by Savane 3.1-cleanup1