2009-08-09

Buildroot for AT91SAM9261_EK (II)

The first try fails. Too bad!
Building was blocked by some funny miniperl issues. It looks not so simple.

ext/util/make_ext: line 122: ../../miniperl: No such file or directory Warning: No Makefile!

Reverse gcc compile:
  • gcc 4.3 => gcc 4.1
  • g++ 4.3 => g++ 4.1
Max tried to change the configuration in following way. Maybe it works.
Target Architecture (arm)
Target Architecture Variant (arm926t)
Target ABI (OABI)
The rest settings use default ones.


After about 30 minutes, it seems that building success. At least no error message come out. See the root.
user@debian:~/buildroot$ ls -l
total 116
drwxr-xr-x 3 user user 4096 2009-08-09 14:06 binaries
drwxr-xr-x 9 user user 4096 2009-08-09 15:00 build_arm
-rw-r--r-- 1 user user 7190 2009-08-09 13:18 CHANGES
-rw-r--r-- 1 user user 10673 2009-08-09 13:18 Config.in
-rw-r--r-- 1 user user 17987 2009-08-09 13:18 COPYING
drwxr-xr-x 2 user user 4096 2009-08-09 15:00 dl
drwxr-xr-x 3 user user 4096 2009-08-09 13:18 docs
-rw-r--r-- 1 user user 17396 2009-08-09 13:18 Makefile
drwxr-xr-x 303 user user 12288 2009-08-09 13:18 package
drwxr-xr-x 2 user user 4096 2009-08-09 13:18 project
drwxr-xr-x 3 user user 4096 2009-08-09 14:06 project_build_arm
drwxr-xr-x 3 user user 4096 2009-08-09 13:18 scripts
drwxr-xr-x 21 user user 4096 2009-08-09 13:18 target
-rw-r--r-- 1 user user 806 2009-08-09 13:18 TODO
drwxr-xr-x 13 user user 4096 2009-08-09 13:18 toolchain
drwxr-xr-x 18 user user 4096 2009-08-09 14:43 toolchain_build_arm
Strange!

After some tries, Max located the problem. Building fails due to "EABI", a feature of targeting toolchain to optimize the floating point computation. See the following test.
  • gcc 4.3.1 + EBAI => Fail
  • gcc 4.1.1 + EBAI => Fail
  • gcc 4.3.1 + OBAI => Success
  • gcc 4.1.1 + OBAI => Success
Reference:

No comments:

Post a Comment