bugfindutils - Bugs: bug #19658, In crosscompiling mode make clean...

 
 

bug #19658: In crosscompiling mode make clean removes files that cannot be regenerated.

Submitted by:  Andreas Metzler <ametzler>
Submitted on:  Sat 21 Apr 2007 05:57:41 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: Compilation FailureStatus: Fixed
Privacy: PublicAssigned to: James Youngman <jay>
Originator Name: Neil WilliamsOpen/Closed: Closed
Release: 4.2.30Fixed Release: 4.3.5

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 22 Apr 2007 04:09:55 PM UTC, comment #1:

Fixed in CVS in both 4.2.x and 4.3.x.

James Youngman <jay>
Project AdministratorIn charge of this item.
Sat 21 Apr 2007 05:57:41 PM UTC, original submission:

This is http://bugs.debian.org/420190 submitted by Neil Williams:
---------------------
When cross-building, findutils becomes confused. Upstream carries a regexprops.texi file which findutils expects to be able to rebuild, so it deletes it during a clean. Later, the cross build fails because:

make[3]: Entering directory
`/opt/emdebian/trunk/f/findutils/trunk/findutils-4.2.30/doc' echo
"WARNING: ../gnulib/lib/regex.h is newer than regexprops.texi but
regexprops.texi cannot be rebuilt because we are cross-compiling.
Continuing anyway." >&2 WARNING: ../gnulib/lib/regex.h is newer than
regexprops.texi but regexprops.texi cannot be rebuilt because we are
cross-compiling. Continuing anyway.

...

find.texi:3116: @include `regexprops.texi': No such file or directory.
makeinfo: Removing output file `find.info' due to errors; use --force
to preserve. make[3]: *** [find.info] Error 1

One way to solve this would be to make doc/ a conditional subdirectory so that cross-builds can simply not bother running make in doc/ by specifying --disable-texi to ./configure.

Alternatively, whatever is detecting the cross-build should also ensure that if a file cannot be rebuilt during a cross-build, it should not be removed during a cross-build clean. ;-)

The first build appeared fine - subsequent builds fail.
---------------------

This can easily tested by forcing crosscompilation mode:
CFLAGS="-Wall -g -O2" ./configure --build i386-pc-linux-gnu --host i686-pc-linux-gnu
make
make clean
CFLAGS="-Wall -g -O2" ./configure --build i386-pc-linux-gnu --host i686-pc-linux-gnu
make
<--- There is the error.

The issue also seems to apply to CVS HEAD. A trivial patch is attached.

thanks, cu andreas

Andreas Metzler <ametzler>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #12548:  bug420190.diff added by ametzler (1KiB - text/x-diff - Patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jay (Posted a comment)
  • -unavailable- added by ametzler
  •  

    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 9 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 05 May 2007 01:25:09 PM UTCjayOpen/ClosedOpen=>Closed
      Fixed ReleaseNone=>4.3.5
    Sun 22 Apr 2007 04:39:35 PM UTCjayAssigned toNone=>jay
    Sun 22 Apr 2007 04:09:55 PM UTCjayStatusNone=>Fixed
    Sat 21 Apr 2007 06:30:18 PM UTCametzlerCarbon-Copy-=>Added -unavailable-
    Sat 21 Apr 2007 06:29:57 PM UTCametzlerCarbon-CopyRemoved -unavailable-=>-
    Sat 21 Apr 2007 05:57:54 PM UTCametzlerCarbon-CopyRemoved 20807=>-
    Sat 21 Apr 2007 05:57:41 PM UTCametzlerAttached File-=>Added bug420190.diff, #12548
      Carbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1