"Magic 7F45" error occurred when run MakeFile test on Linaro Android image.

Bug #1217773 reported by Botao
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Android
Invalid
Undecided
Unassigned

Bug Description

On ARM Versatile Express A9 board with Linaro Android image:

https://android-build.linaro.org/builds/~linaro-android/vexpress-linaro-4.3-13.08-release/#build=1

"Magic 7F45" error occurred after run "MakeFile" test based on following procedures:

# cd /data/data
# busybox vi test.cpp
Then copy & paste following code to the file, save & quit.

#include <iostream>
int main(int argc, char **argv) {
    std::cout << "g++ works" << std::endl;
}

# busybox vi Makefile
Then copy & paste following code to the file, save & quit. Note: A Tab space is required at the beginning of the second line.

g++test: test.cpp
<Insert a Tab Here>$(CXX) -o $@ -c $<

# make
# ./g++test

Then I got:

/system/bin/sh: ./g++test: can't execute: Permission denied

So I tried to give it permission 777 and run again:

126|root@vexpress:/data/data # ls -l g++test
-rw------- root log 13264 2013-08-27 12:33 g++test
root@vexpress:/data/data # chmod +x g++test
Bad mode
10|root@vexpress:/data/data # busybox chmod +x g++test
root@vexpress:/data/data # ./g++test
/system/bin/sh: ./g++test: not executable: magic 7F45
1|root@vexpress:/data/data # ls -l g++test
-rwx------ root log 13264 2013-08-27 12:33 g++test
root@vexpress:/data/data # busybox chmod 777 g++test
root@vexpress:/data/data # ./g++test
/system/bin/sh: ./g++test: not executable: magic 7F45
1|root@vexpress:/data/data # ls -l g++test
-rwxrwxrwx root log 13264 2013-08-27 12:33 g++test
root@vexpress:/data/data #

The error information "magic 7F45" continuously shows. This issue is also observed on other Linaro Android images, like TI Panda, Samsung Arndale, galaxy_nexus.

the isuue reproduced with the builds

https://android-build.linaro.org/builds/~linaro-android/galaxynexus-linaro-13.08-release/#build=1
https://android-build.linaro.org/builds/~linaro-android-member-ti/panda-linaro-13.08-release/#build=1

tags: removed: arndale
tags: added: arndale
Revision history for this message
Soumya Basak (soumya-basak) wrote :

the same issue obbserved with Linaro android Jellybean 4.3 arndale 13.08 release builds,

https://android-build.linaro.org/builds/~linaro-android/arndale-linaro-13.08-release/#build=1

description: updated
Revision history for this message
Tixy (Jon Medhurst) (tixy) wrote :

The test Makefile is wrong, the '-c' option imeans 'Compile and assemble, but do not link'
That is why the files didn't have executable permissions as well.

Revision history for this message
Botao (botao-sun) wrote :

OK, and the test description I used is the one I received from Bero 3 months ago. Bero, would you send me a corrected MakeFile sample? Then I will re-run the test.

description: updated
description: updated
Revision history for this message
Botao (botao-sun) wrote :

Confirmed, after removed "-c" in MakeFile, test passed:

root@android:/data/data # ./g++test
g++ works

Validated on image:

https://android-build.linaro.org/builds/~linaro-android/vexpress-linaro-4.2.2-13.08-release/#build=1

Changed in linaro-android:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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