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

 
 

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

Submitter:  Andreas Metzler <ametzler>
Submitted:  Sat 21 Apr 2007 05:57:41 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  Compilation Failure Status:  Fixed
Privacy:  Public Assigned to:  jay
Originator Name:  Neil Williams Open/Closed:  Closed
Release:  4.2.30 Fixed Release:  4.3.5
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group administrator
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 Files:
   
   
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
  • -email is unavailable- added by jay (Posted a comment)
  • -email is unavailable- added by ametzler
  •  

    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.

    Only logged-in users can vote.

     

    Follow 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-05-05 jay Open/ClosedOpen Closed
        Fixed ReleaseNone 4.3.5
    2007-04-22 jay Assigned toNone jay
    2007-04-22 jay StatusNone Fixed
    2007-04-21 ametzler Carbon-Copy- Added -email is unavailable-
    2007-04-21 ametzler Carbon-CopyRemoved -email is unavailable- -
    2007-04-21 ametzler Carbon-CopyRemoved 20807 -
    2007-04-21 ametzler Attached File- Added bug420190.diff, #12548
        Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code