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

Submitter:  Peter <peterius>
Submitted:  Sun 05 Jul 2009 10:40:33 PM UTC
   
 
Category:  Compilation Severity:  Major
Priority:  5 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name:  peterius
Open/Closed:  Closed Release:  1.98
Release:  svn Reproducibility:  None
Planned Release:  None

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>
Group 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>
Group 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>
Group 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>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-04-17 phcoder StatusNone Fixed
        Open/ClosedOpen Closed
        ReleaseNone 1.98

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code