Error when Build from scratch

80 views
Skip to first unread message

go so

unread,
Nov 8, 2011, 10:03:45 AM11/8/11
to 0xlab-devel
Hi,

I tried to build the 0x7-LEB-Gingerbread for pandaboard.

However, it shows the error as below:

target StaticLib: libgtest (out/target/product/pandaboard/obj/
STATIC_LIBRARIES/libgtest_intermediates/libgtest.a)
target thumb C++: libgtest_main <= external/gtest/src/gtest_main.cc
target StaticLib: libgtest_main (out/target/product/pandaboard/obj/
STATIC_LIBRARIES/libgtest_main_intermediates/libgtest_main.a)
target Executable: InputChannel_test (out/target/product/pandaboard/
obj/EXECUTABLES/InputChannel_test_intermediates/LINKED/
InputChannel_test)
/home/sogo/0xdroid/prebuilt/linux-x86/toolchain/arm-eabi-4.5.4/bin/../
lib/gcc/arm-eabi/4.5.4/../../../../arm-eabi/bin/ld: out/target/product/
pandaboard/obj/EXECUTABLES/InputChannel_test_intermediates/LINKED/
InputChannel_test: could not find output section .gnu.hash
/home/sogo/0xdroid/prebuilt/linux-x86/toolchain/arm-eabi-4.5.4/bin/../
lib/gcc/arm-eabi/4.5.4/../../../../arm-eabi/bin/ld: final link failed:
Nonrepresentable section on output
collect2: ld returned 1 exit status
make: *** [out/target/product/pandaboard/obj/EXECUTABLES/
InputChannel_test_intermediates/LINKED/InputChannel_test] Error 1

I've google all the day, still not found any solution. Please help. =[

Regards,
Sogo

Jim Huang

unread,
Nov 8, 2011, 10:53:07 AM11/8/11
to 0xlab...@googlegroups.com
2011/11/8 go so <sogo...@gmail.com>:

> Hi,
>
> I tried to build the 0x7-LEB-Gingerbread for pandaboard.

hi,

It works for me. Here is the log:


$ make libgtest
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.3
TARGET_PRODUCT=pandaboard
TARGET_BUILD_VARIANT=eng
...
build/core/Makefile:19: warning: overriding commands for target
`out/target/product/pandaboard/root/init.omap4430.rc'
device/linaro/pandaboard/AndroidBoard.mk:31: warning: ignoring old
commands for target
`out/target/product/pandaboard/root/init.omap4430.rc'
target thumb C++: libgtest <= external/gtest/src/gtest-all.cc
In file included from external/gtest/src/gtest-all.cc:38:0:
...

external/gtest/src/../src/gtest-filepath.cc:208:28: warning: missing
initializer for member 'stat::st_ino'
target StaticLib: libgtest
(out/target/product/pandaboard/obj/STATIC_LIBRARIES/libgtest_intermediates/libgtest.a)

Can you do 'repo sync' again? You can switch to git branch
"leb-0xdroid" in manifests.

I think your problem results from the GNU Hash support in recent
0xdroid. It should function perfectly now.

Thanks,
Jim Huang (jserv)
http://0xlab.org/

go so

unread,
Nov 9, 2011, 7:15:15 AM11/9/11
to 0xlab-devel
Hi Jim,
Thanks for your reply.

Do you mean "repo init -u git://gitorious.org/0xdroid/manifest.git -b
leb-0xdroid -m LEB-panda.xml"

I sync with it on three days ago.

By the way, I will repo sync and try to build again.

Thanks,
Sogo

On Nov 8, 11:53 pm, Jim Huang <js...@0xlab.org> wrote:
> 2011/11/8 go so <sogo0...@gmail.com>:

泓逸 林

unread,
Nov 20, 2011, 9:51:05 AM11/20/11
to 0xlab-devel
I have the same problem.
Seems to occur when the new repo.
Is there a way to solve it?

Ian

Jim Huang

unread,
Nov 21, 2011, 6:27:34 AM11/21/11
to 0xlab...@googlegroups.com
2011/11/20 泓逸 林 <u960...@ms.ttu.edu.tw>:

> I have the same problem.
> Seems to occur when the new repo.
> Is there a way to solve it?

hi Ian,

Can you try the following approach to check out 0xdroid source tree?
# repo init -u git://gitorious.org/0xdroid/manifest.git -b
leb-0xdroid -m LEB-panda.xml
# repo sync

I already applies several fixes, and it should work now.

Sincerely,

Kito Cheng

unread,
Nov 21, 2011, 1:40:10 PM11/21/11
to 0xlab...@googlegroups.com, Jim Huang
ooops, it's my fault, I have some mistake in build/core/armelf.x

the root cause is in build/core/armelf.x:16
.hash : { *(.gnu.hash) }


here is the patch in attach file, it's conflict with old one

if you want just work, plz apply the follow change

build/core/armelf.x:16
- .hash : { *(.gnu.hash) }
+ .gnu.hash : { *(.gnu.hash) }

The wrong link script can pass in binutil 2.19 but can't pass with binutil 2.2x,
however it's work fine with android linker since the bionic/linker are
read hash table by dynamic section

> --
> You received this message because you are subscribed to the Google Groups "0xlab-devel" group.
> To post to this group, send email to 0xlab...@googlegroups.com.
> To unsubscribe from this group, send email to 0xlab-devel...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/0xlab-devel?hl=en.
>
>

0001-Update-link-script-for-gnu-sytle-hash.patch

Jim Huang

unread,
Nov 22, 2011, 8:33:23 AM11/22/11
to Kito Cheng, 0xlab...@googlegroups.com
2011/11/22 Kito Cheng <ki...@0xlab.org>:
[...]

> if you want just work, plz apply the follow change
>
> build/core/armelf.x:16
> -  .hash       : { *(.gnu.hash) }
> +  .gnu.hash       : { *(.gnu.hash) }

OK. I did git push --force, and it should behavior as expected.

> The wrong link script can pass in binutil 2.19 but can't pass with binutil 2.2x,
> however it's work fine with android linker since the bionic/linker are
> read hash table by dynamic section

ICS prebuilt toolchain consists of binutils-2.20.51.20100303
With the correct patch, everything would work out of box, right?

Kito Cheng

unread,
Nov 22, 2011, 11:56:47 AM11/22/11
to 0xlab...@googlegroups.com
> OK.  I did git push --force, and it should behavior as expected.
>
> ICS prebuilt toolchain consists of binutils-2.20.51.20100303
> With the correct patch, everything would work out of box, right?

Right, it's seem work now, I've tested in CM and 0xdroid.

Reply all
Reply to author
Forward
0 new messages