Missing forward slash (/) causes builds to fail

Bug #891753 reported by Tony Mansson
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Linaro Android
Fix Released
High
Ken Werner

Bug Description

Seen in Android 2.3.5 and 2.3.7 on several occasions. Build fails because a path is incorrect due to a missing "/" when concatenating parts to build a path. It does not always appear at the same place.
Example from default.xml pandaboard:
 /bin/bash: line 0: cd: /media/WD/src/panda/2.3.7/androidexternal/emma/core/res: No such file or directory
/bin/bash: line 0: cd: /media/WD/src/panda/2.3.7/androidexternal/emma/pregenerated/res: No such file or directory
/bin/bash: line 0: cd: /media/WD/src/panda/2.3.7/androidexternal/emma/core/res: No such file or directory
/bin/bash: line 0: cd: /media/WD/src/panda/2.3.7/androidexternal/emma/pregenerated/res: No such file or directory
/bin/bash: line 0: cd: /media/WD/src/panda/2.3.7/androidsdk/layoutopt/libs/uix/src/resources: No such file or directory
/bin/bash: line 0: cd: /media/WD/src/panda/2.3.7/androidcts/tools/cts-api-coverage/src/res: No such file or directory
/bin/bash: line 0: cd: /media/WD/src/panda/2.3.7/androidcts/tools/host/src/res: No such file or directory
/bin/bash: line 0: cd: /media/WD/src/panda/2.3.7/androidcts/tools/signature-tools/templates: No such file or directory
/bin/bash: line 0: cd: /media/WD/src/panda/2.3.7/androidcts/tools/tradefed-host/res: No such file or directory
/bin/bash: line 0: cd: /media/WD/src/panda/2.3.7/androidsdk/hierarchyviewer/src/resources: No such file or directory
/bin/bash: line 0: cd: /media/WD/src/panda/2.3.7/androidsdk/sdkmanager/app/src/.: No such file or directory
/bin/bash: line 0: cd: /media/WD/src/panda/2.3.7/androidsdk/sdkmanager/libs/sdklib/src/.: No such file or directory
/bin/bash: line 0: cd: /media/WD/src/panda/2.3.7/androidsdk/sdkmanager/libs/sdkuilib/src/.: No such file or directory

Other example:
make: *** No rule to make target `/mnt/jenkins/workspace/patrik-ryd_panda2.3.7/builddalvik/dx/src/junit/textui/TestRunner.java', needed by `out/host/common/obj/JAVA_LIBRARIES/dx_intermediates/javalib.jar'

And:
make: *** No rule to make target `/mnt/jenkins/workspace/linaro-android_panda/builddalvik/dx/src/com/android/dx/ssa/PhiInsn.java', needed by `out/host/common/obj/JAVA_LIBRARIES/dx_intermediates/javalib.jar'. Stop.

It is likely that the issue appeared between Nov. 15 and 16. The common factors between all failures is java. Many error messages seemed related to a "jar" command.

It has been seen both in local, hackbox and jenkins builds.

Changed in linaro-android:
importance: Undecided → High
milestone: none → 11.11
Revision history for this message
Ken Werner (kwerner) wrote :
Revision history for this message
Ken Werner (kwerner) wrote :

This make file uses a variable named "TOP_DIR" which seems to collide with another variable from the build Android system.

Revision history for this message
Zach Pfeffer (pfefferz) wrote :

I think this fixes things. The builds still going, but I think it made it through the hiccup.

Revision history for this message
Ken Werner (kwerner) wrote :

It turns out that the fix has side effects. For now I'll revert the libunwind android branch to use the classic build approach that is proven to work.

Revision history for this message
Ken Werner (kwerner) wrote :

Done. I deleted the last two commits that introduced the configure based build approach as mentioned above.
The autoconf based build approach is still available on the android-20111117 branch.

Revision history for this message
Ken Werner (kwerner) wrote :

Going back to the old Android.mk of libunwind fixes the "/"-issue.

There is another change that causes the build to fail: http://review.android.git.linaro.org/#change,882
Reverting this change let the build of the inaro_android_2.3.5 branch for the panda (default.xml) finish without any failures.

Changed in linaro-android:
status: New → Fix Committed
Changed in linaro-android:
status: Fix Committed → Fix Released
Zach Pfeffer (pfefferz)
Changed in linaro-android:
assignee: nobody → Ken Werner (kwerner)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Bug attachments