Cross-compilers fail to build twice in a row

Bug #593274 reported by Loïc Minier
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcc-4.4 (Ubuntu)
Fix Released
Wishlist
Unassigned
gcc-4.5 (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

Binary package hint: gcc-4.4

Hi

When creating a cross-compiler, retrying the build will fail on creation of debian/$(p_lib)-deps since it already exists:
mkdir debian/$(p_lib)-deps
(from debian/rules.d/binary-libstdcxx-cross.mk)

I'm not sure how to clean this properly in clean:, so instead I will propose a patch to clean it up after use (and remove it before creation as well, in case the build breaks at this point).

Bye

Revision history for this message
Loïc Minier (lool) wrote :
Revision history for this message
Loïc Minier (lool) wrote :

Patch applies to gcc-4.5 as well (modulo debian/changelog).

Revision history for this message
Loïc Minier (lool) wrote :

NB: obviously we still want to move away from debian/rules.d/*cross*, but this helps in the mean time.

Revision history for this message
Matthias Klose (doko) wrote :

that looks incomplete

Changed in gcc-4.4 (Ubuntu):
importance: Undecided → Wishlist
status: New → Incomplete
Changed in gcc-4.5 (Ubuntu):
importance: Undecided → Wishlist
status: New → Incomplete
Revision history for this message
Loïc Minier (lool) wrote :

It works, but is not the most elegant way to solve this; I think we're better off with the fix than without, but I would be happy to receive a suggestion on how to implement this properly.

Changed in gcc-4.4 (Ubuntu):
status: Incomplete → New
Changed in gcc-4.5 (Ubuntu):
status: Incomplete → New
Revision history for this message
Loïc Minier (lool) wrote :

(In any case, do not close the bug as Incomplete; this is clearly an identified bug, there is only disagreement about the patch.)

Revision history for this message
Loïc Minier (lool) wrote :

This new version of the patch changes clean: to clean:: to allow extending the clean rules in sub makefiles and cleans the directory in clean:: instead of after use.

Revision history for this message
Loïc Minier (lool) wrote :

I see you implemented a different fix in the gcc-4.4 and gcc-4.5 packaging SVN repos.

Changed in gcc-4.5 (Ubuntu):
status: New → Fix Committed
Changed in gcc-4.4 (Ubuntu):
status: New → Fix Committed
Revision history for this message
Matthias Klose (doko) wrote :

fixed in 4.4.4-6ubuntu1

Changed in gcc-4.4 (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Matthias Klose (doko) wrote :

fixed in 4.5.0-7ubuntu1

Changed in gcc-4.5 (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.