Skip to contentSkip to conversation

Application execution fails (John Voltz)

Buildroot Muktabh Anchlia 2 participants 2 messages May 9, 2008 – May 11, 2008 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi John,
I still get the same error...

" I don't take sides, just the racing line "

Quoted 78 lines

Message: 1
Date: Fri, 9 May 2008 17:46:31 +0000
From: Muktabh Anchlia <[email protected]>
Subject: [Buildroot] Application execution fails
To: <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"

Hello,
I compiled a cross tool chain for AMD geode processor using buildroot. I wanted to test the cross tools, so wrote a simple hello world application, exported the ...staging-dir/usr/bin/ path and compiled the C code using i686-linux-uclibc-gcc.

When I run this program on the host machine, it gives me "bad ELF interpreter" as expected. But when I run it on the target, it gives me the following error "syntax error: "(" unexpected"
I couldn't figure out where I am going wrong.
Any help would be appreciated.

Thanks
Muktabh

" I don't take sides, just the racing line "
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20080509/8ff756a8/attachment.html

------------------------------

Message: 2
Date: Fri, 9 May 2008 14:26:43 -0400
From: "John Voltz" <[email protected]>
Subject: Re: [Buildroot] Application execution fails
To: "Buildroot List" <[email protected]> Message-ID:

	<[email protected]>

Content-Type: text/plain; charset="iso-8859-1"

try:

/path/to/buildroot/build_i686/staging_dir/usr/bin/i686-linux-uclibc-gcc

(quoted diff) +0 -2
-I/path/to/buildroot/build_i686/staging_dir/usr/include
-L/path/to/buildroot/build_i686/staging_dir/usr/lib -lc hello_world.c -o

hello_world

Quoted 16 lines · Muktabh Anchlia

Hello,
I compiled a cross tool chain for AMD geode processor using buildroot. I wanted to test the cross tools, so wrote a simple hello world application, exported the ...staging-dir/usr/bin/ path and compiled the C code using i686-linux-uclibc-gcc.

When I run this program on the host machine, it gives me "bad ELF interpreter" as expected. But when I run it on the target, it gives me the following error
"syntax error: "(" unexpected"
I couldn't figure out where I am going wrong.
Any help would be appreciated.

Thanks
Muktabh

Quoted 7 lines

*" I don't take sides, just the racing line "*

_______________________________________________
buildroot mailing list
buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildroot

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20080509/d2673767/attachment-0001.htm

------------------------------

Quoted 7 lines

_______________________________________________
buildroot mailing list
buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildroot

End of buildroot Digest, Vol 23, Issue 20
*****************************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20080509/de0130cb/attachment.htm

#2 lore raw

Try running your hello world program with strace. That may show you what's going on. I know I've seen this problem before, but I can't remember what causes it. Maybe someone else on the list knows?

John

Quoted 100 lines · Muktabh Anchlia

Hi John,
I still get the same error...

*" I don't take sides, just the racing line "*

Quoted 10 lines

Message: 1
Date: Fri, 9 May 2008 17:46:31 +0000
From: Muktabh Anchlia <[email protected]>
Subject: [Buildroot] Application execution fails
To: <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"

Quoted 2 lines

Hello,
I compiled a cross tool chain for AMD geode processor using buildroot. I

wanted to test the cross tools, so wrote a simple hello world application, exported the ...staging-dir/usr/bin/ path and compiled the C code using i686-linux-uclibc-gcc.

Quoted 2 lines

When I run this program on the host machine, it gives me "bad ELF

interpreter" as expected. But when I run it on the target, it gives me the following error

Quoted 11 lines

"syntax error: "(" unexpected"
I couldn't figure out where I am going wrong.
Any help would be appreciated.

Thanks
Muktabh

" I don't take sides, just the racing line "
-------------- next part --------------
An HTML attachment was scrubbed...
URL:

http://busybox.net/lists/buildroot/attachments/20080509/8ff756a8/attachment.html

Quoted 21 lines

------------------------------

Message: 2
Date: Fri, 9 May 2008 14:26:43 -0400
From: "John Voltz" <[email protected]>
Subject: Re: [Buildroot] Application execution fails
To: "Buildroot List" <[email protected]> Message-ID:
<[email protected]>
Content-Type: text/plain; charset="iso-8859-1"

try:

/path/to/buildroot/build_i686/staging_dir/usr/bin/i686-linux-uclibc-gcc

(quoted diff) +0 -2
-I/path/to/buildroot/build_i686/staging_dir/usr/include
-L/path/to/buildroot/build_i686/staging_dir/usr/lib -lc hello_world.c -o

hello_world

Quoted 5 lines
Quoted 2 lines · Muktabh Anchlia

Hello,
I compiled a cross tool chain for AMD geode processor using buildroot.

I

Quoted 1 line
Quoted 1 line

wanted to test the cross tools, so wrote a simple hello world

application,

Quoted 1 line
Quoted 1 line

exported the ...staging-dir/usr/bin/ path and compiled the C code

using

Quoted 4 lines
Quoted 4 lines

i686-linux-uclibc-gcc.

When I run this program on the host machine, it gives me "bad ELF interpreter" as expected. But when I run it on the target, it gives me

the

Quoted 10 lines
Quoted 10 lines

following error
"syntax error: "(" unexpected"
I couldn't figure out where I am going wrong.
Any help would be appreciated.

Thanks
Muktabh

*" I don't take sides, just the racing line "*

Quoted 8 lines
Quoted 5 lines

_______________________________________________
buildroot mailing list
buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildroot

-------------- next part --------------
An HTML attachment was scrubbed...
URL:

http://busybox.net/lists/buildroot/attachments/20080509/d2673767/attachment-0001.htm

Quoted 8 lines

------------------------------

_______________________________________________
buildroot mailing list
buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildroot

Quoted 8 lines
Quoted 2 lines

End of buildroot Digest, Vol 23, Issue 20
*****************************************

_______________________________________________
buildroot mailing list
buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildroot

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20080511/35e5a9fc/attachment-0001.htm