CrossCompile error for ARM

View: New views
8 Messages — Rating Filter:   Alert me  

CrossCompile error for ARM

by ManuelSahm :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I got the following errors:

make[5]: Entering directory `/root/Desktop/jamvm-arm/src/os/linux/arm'
/bin/sh ../../../../libtool   --mode=compile
/opt/elinos-4.2/cdk/arm/v4le/glibc-2.3.4/bin/arm_v4le-gcc
-DHAVE_CONFIG_H -I. -I../../../../src
-I../../../../../jamvm-1.5.1/src/os/linux/arm  -I../../../../src  
-I../../../../src -g -O2 -MT callNative.lo -MD -MP -MF
.deps/callNative.Tpo -c -o callNative.lo
../../../../../jamvm-1.5.1/src/os/linux/arm/callNative.S
 /opt/elinos-4.2/cdk/arm/v4le/glibc-2.3.4/bin/arm_v4le-gcc
-DHAVE_CONFIG_H -I. -I../../../../src
-I../../../../../jamvm-1.5.1/src/os/linux/arm -I../../../../src
-I../../../../src -g -O2 -MT callNative.lo -MD -MP -MF
.deps/callNative.Tpo -c
../../../../../jamvm-1.5.1/src/os/linux/arm/callNative.S  -fPIC -DPIC -o
.libs/callNative.o
../../../../../jamvm-1.5.1/src/os/linux/arm/callNativeEABI.S: Assembler
messages:
../../../../../jamvm-1.5.1/src/os/linux/arm/callNativeEABI.S:99: Error:
selected processor does not support `bx ip'
../../../../../jamvm-1.5.1/src/os/linux/arm/callNativeEABI.S:122: Error:
selected processor does not support `bx lr'


Could anybody help me ?

Thank you very much....

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jamvm-general mailing list
Jamvm-general@...
https://lists.sourceforge.net/lists/listinfo/jamvm-general

Re: CrossCompile error for ARM

by iliverez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Manuel,

Could you please post more details about your arch and toolchain?
What are the configure options that you use?

Regards
Yiannis

On Tue, 2008-06-03 at 14:23 +0200, Manuel Sahm wrote:

> Hello,
>
> I got the following errors:
>
> make[5]: Entering directory `/root/Desktop/jamvm-arm/src/os/linux/arm'
> /bin/sh ../../../../libtool   --mode=compile
> /opt/elinos-4.2/cdk/arm/v4le/glibc-2.3.4/bin/arm_v4le-gcc
> -DHAVE_CONFIG_H -I. -I../../../../src
> -I../../../../../jamvm-1.5.1/src/os/linux/arm  -I../../../../src  
> -I../../../../src -g -O2 -MT callNative.lo -MD -MP -MF
> .deps/callNative.Tpo -c -o callNative.lo
> ../../../../../jamvm-1.5.1/src/os/linux/arm/callNative.S
>  /opt/elinos-4.2/cdk/arm/v4le/glibc-2.3.4/bin/arm_v4le-gcc
> -DHAVE_CONFIG_H -I. -I../../../../src
> -I../../../../../jamvm-1.5.1/src/os/linux/arm -I../../../../src
> -I../../../../src -g -O2 -MT callNative.lo -MD -MP -MF
> .deps/callNative.Tpo -c
> ../../../../../jamvm-1.5.1/src/os/linux/arm/callNative.S  -fPIC -DPIC -o
> .libs/callNative.o
> ../../../../../jamvm-1.5.1/src/os/linux/arm/callNativeEABI.S: Assembler
> messages:
> ../../../../../jamvm-1.5.1/src/os/linux/arm/callNativeEABI.S:99: Error:
> selected processor does not support `bx ip'
> ../../../../../jamvm-1.5.1/src/os/linux/arm/callNativeEABI.S:122: Error:
> selected processor does not support `bx lr'
>
>
> Could anybody help me ?
>
> Thank you very much....
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Jamvm-general mailing list
> Jamvm-general@...
> https://lists.sourceforge.net/lists/listinfo/jamvm-general
--
______________________________________________________________
Ioannis Liverezas
Engineer
Connected Home Platforms
inAccess Networks
12, Sorou Str.          Tel    : +30-210-6802336
151 25 Athens, Greece   Fax    : +30-210-6199258
______________________________________________________________





-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jamvm-general mailing list
Jamvm-general@...
https://lists.sourceforge.net/lists/listinfo/jamvm-general

Re: CrossCompile error for ARM

by ManuelSahm :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I have an ATMEL AT91SAM9260 Microcontroller [arm architecture]

Configure:

CC=/opt/elinos-4.2/cdk/arm/v4le/glibc-2.3.4/bin/arm_v4le-gcc
NM=/opt/elinos-4.2/cdk/arm/v4le/glibc-2.3.4/bin/arm_v4le-nm
AR=/opt/elinos-4.2/cdk/arm/v4le/glibc-2.3.4/bin/arm_v4le-ar ../configure
--host=arm-linux --build=i686-linux --target=arm-linux
--with-classpath-install-dir=/usr/classpath

What Information about my toolchain do you need - and how could I get
this information out of my toolchain...?

Thank you very very much

Regards
Manuel

Yiannis Liverezas schrieb:

> Hi Manuel,
>
> Could you please post more details about your arch and toolchain?
> What are the configure options that you use?
>
> Regards
> Yiannis
>
> On Tue, 2008-06-03 at 14:23 +0200, Manuel Sahm wrote:
>  
>> Hello,
>>
>> I got the following errors:
>>
>> make[5]: Entering directory `/root/Desktop/jamvm-arm/src/os/linux/arm'
>> /bin/sh ../../../../libtool   --mode=compile
>> /opt/elinos-4.2/cdk/arm/v4le/glibc-2.3.4/bin/arm_v4le-gcc
>> -DHAVE_CONFIG_H -I. -I../../../../src
>> -I../../../../../jamvm-1.5.1/src/os/linux/arm  -I../../../../src  
>> -I../../../../src -g -O2 -MT callNative.lo -MD -MP -MF
>> .deps/callNative.Tpo -c -o callNative.lo
>> ../../../../../jamvm-1.5.1/src/os/linux/arm/callNative.S
>>  /opt/elinos-4.2/cdk/arm/v4le/glibc-2.3.4/bin/arm_v4le-gcc
>> -DHAVE_CONFIG_H -I. -I../../../../src
>> -I../../../../../jamvm-1.5.1/src/os/linux/arm -I../../../../src
>> -I../../../../src -g -O2 -MT callNative.lo -MD -MP -MF
>> .deps/callNative.Tpo -c
>> ../../../../../jamvm-1.5.1/src/os/linux/arm/callNative.S  -fPIC -DPIC -o
>> .libs/callNative.o
>> ../../../../../jamvm-1.5.1/src/os/linux/arm/callNativeEABI.S: Assembler
>> messages:
>> ../../../../../jamvm-1.5.1/src/os/linux/arm/callNativeEABI.S:99: Error:
>> selected processor does not support `bx ip'
>> ../../../../../jamvm-1.5.1/src/os/linux/arm/callNativeEABI.S:122: Error:
>> selected processor does not support `bx lr'
>>
>>
>> Could anybody help me ?
>>
>> Thank you very much....
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Microsoft
>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>> _______________________________________________
>> Jamvm-general mailing list
>> Jamvm-general@...
>> https://lists.sourceforge.net/lists/listinfo/jamvm-general
>>    

--
Freundliche Grüße / Best regards

Manuel Sahm

Research & Development

FEIG ELECTRONIC GmbH
Lange Straße 4
35781 Weilburg
Germany
 
Tel.:  +49 (0)6471-3109.492
Fax.:  +49 (0)6471-3109.99
email: manuel.sahm@...
internet: http://www.feig.de

------------------------------------------------------------------------
Amtsgericht Limburg HRB 3178
Geschäftsführer: Dipl.-Ing. Wolfgang Feig
------------------------------------------------------------------------

------------------------------------------------------------------------
Diese Email (eingeschlossen die Anhaenge) unterliegt Urheberrecht, die
Informationen sind vertraulich und rechtswirksam privilegiert. Der
Gebrauch dieser Email oder der Anhaenge von einem anderen als den
Adressaten ist nicht gestattet und unrechtmaessig.

This email (including any attachments) is subject to copyright, the
information in it is confidential, and it is legally privileged. Use of
this email or of any information in it other than by the addressee is
unauthorised and unlawful.
------------------------------------------------------------------------


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jamvm-general mailing list
Jamvm-general@...
https://lists.sourceforge.net/lists/listinfo/jamvm-general

Re: CrossCompile error for ARM

by Dmitry Antipov-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Manuel Sahm wrote:

> I got the following errors:
>
> make[5]: Entering directory `/root/Desktop/jamvm-arm/src/os/linux/arm'
> /bin/sh ../../../../libtool   --mode=compile
> /opt/elinos-4.2/cdk/arm/v4le/glibc-2.3.4/bin/arm_v4le-gcc
> -DHAVE_CONFIG_H -I. -I../../../../src
> -I../../../../../jamvm-1.5.1/src/os/linux/arm  -I../../../../src  
> -I../../../../src -g -O2 -MT callNative.lo -MD -MP -MF
> .deps/callNative.Tpo -c -o callNative.lo
> ../../../../../jamvm-1.5.1/src/os/linux/arm/callNative.S
>  /opt/elinos-4.2/cdk/arm/v4le/glibc-2.3.4/bin/arm_v4le-gcc
> -DHAVE_CONFIG_H -I. -I../../../../src
> -I../../../../../jamvm-1.5.1/src/os/linux/arm -I../../../../src
> -I../../../../src -g -O2 -MT callNative.lo -MD -MP -MF
> .deps/callNative.Tpo -c
> ../../../../../jamvm-1.5.1/src/os/linux/arm/callNative.S  -fPIC -DPIC -o
> .libs/callNative.o
> ../../../../../jamvm-1.5.1/src/os/linux/arm/callNativeEABI.S: Assembler
> messages:
> ../../../../../jamvm-1.5.1/src/os/linux/arm/callNativeEABI.S:99: Error:
> selected processor does not support `bx ip'
> ../../../../../jamvm-1.5.1/src/os/linux/arm/callNativeEABI.S:122: Error:
> selected processor does not support `bx lr'
>
>
> Could anybody help me ?

Most probably your tools are targeted to ancient ARM CPU by default. Try to add
'-march=XXX -mtune=YYY' to CFLAGS while running ./configure. Read gcc man/info page
in 'ARM Options' section to check which XXX and YYY are closest to your hardware.

Your ATMEL AT91SAM9260 has ARMv5TEJ core. So I guess you should start from
trying something like

CC=[your_cc] CFLAGS='-march=armv5te -mtune=arm926ej-s [other options]' ./configure [flags]

For gcc < 4.0, you may need to replace -mtune with -mcpu.

Dmitry


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jamvm-general mailing list
Jamvm-general@...
https://lists.sourceforge.net/lists/listinfo/jamvm-general

Re: CrossCompile error for ARM

by iliverez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Additionally to what Dmitry suggests, I see that you use ../configure
instead of ./configure. Is this a typo in your post or do you try to
compile from inside the src directory? If so, try to run configure and
make from the top level directory.
If I remember well, the ARM processor does not have any register named
'bx', so this indicates that you possibly try to cross-compile some x86
assembly code for arm.
You seem to use a toolchain for crosscompiling installed at
/opt/elinos-4.2/cdk/arm/v4le/glibc-2.3.4/
, so this must be ok.

BR
Yiannis

On Tue, 2008-06-03 at 14:38 +0200, Manuel Sahm wrote:

> Hello,
>
> I have an ATMEL AT91SAM9260 Microcontroller [arm architecture]
>
> Configure:
>
> CC=/opt/elinos-4.2/cdk/arm/v4le/glibc-2.3.4/bin/arm_v4le-gcc
> NM=/opt/elinos-4.2/cdk/arm/v4le/glibc-2.3.4/bin/arm_v4le-nm
> AR=/opt/elinos-4.2/cdk/arm/v4le/glibc-2.3.4/bin/arm_v4le-ar ../configure
> --host=arm-linux --build=i686-linux --target=arm-linux
> --with-classpath-install-dir=/usr/classpath
>
> What Information about my toolchain do you need - and how could I get
> this information out of my toolchain...?
>
> Thank you very very much
>
> Regards
> Manuel
>
> Yiannis Liverezas schrieb:
> > Hi Manuel,
> >
> > Could you please post more details about your arch and toolchain?
> > What are the configure options that you use?
> >
> > Regards
> > Yiannis
> >
> > On Tue, 2008-06-03 at 14:23 +0200, Manuel Sahm wrote:
> >  
> >> Hello,
> >>
> >> I got the following errors:
> >>
> >> make[5]: Entering directory `/root/Desktop/jamvm-arm/src/os/linux/arm'
> >> /bin/sh ../../../../libtool   --mode=compile
> >> /opt/elinos-4.2/cdk/arm/v4le/glibc-2.3.4/bin/arm_v4le-gcc
> >> -DHAVE_CONFIG_H -I. -I../../../../src
> >> -I../../../../../jamvm-1.5.1/src/os/linux/arm  -I../../../../src  
> >> -I../../../../src -g -O2 -MT callNative.lo -MD -MP -MF
> >> .deps/callNative.Tpo -c -o callNative.lo
> >> ../../../../../jamvm-1.5.1/src/os/linux/arm/callNative.S
> >>  /opt/elinos-4.2/cdk/arm/v4le/glibc-2.3.4/bin/arm_v4le-gcc
> >> -DHAVE_CONFIG_H -I. -I../../../../src
> >> -I../../../../../jamvm-1.5.1/src/os/linux/arm -I../../../../src
> >> -I../../../../src -g -O2 -MT callNative.lo -MD -MP -MF
> >> .deps/callNative.Tpo -c
> >> ../../../../../jamvm-1.5.1/src/os/linux/arm/callNative.S  -fPIC -DPIC -o
> >> .libs/callNative.o
> >> ../../../../../jamvm-1.5.1/src/os/linux/arm/callNativeEABI.S: Assembler
> >> messages:
> >> ../../../../../jamvm-1.5.1/src/os/linux/arm/callNativeEABI.S:99: Error:
> >> selected processor does not support `bx ip'
> >> ../../../../../jamvm-1.5.1/src/os/linux/arm/callNativeEABI.S:122: Error:
> >> selected processor does not support `bx lr'
> >>
> >>
> >> Could anybody help me ?
> >>
> >> Thank you very much....
> >>
> >> -------------------------------------------------------------------------
> >> This SF.net email is sponsored by: Microsoft
> >> Defy all challenges. Microsoft(R) Visual Studio 2008.
> >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> >> _______________________________________________
> >> Jamvm-general mailing list
> >> Jamvm-general@...
> >> https://lists.sourceforge.net/lists/listinfo/jamvm-general
> >>    
>
--
______________________________________________________________
Ioannis Liverezas
Engineer
Connected Home Platforms
inAccess Networks
12, Sorou Str.          Tel    : +30-210-6802336
151 25 Athens, Greece   Fax    : +30-210-6199258
______________________________________________________________





-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jamvm-general mailing list
Jamvm-general@...
https://lists.sourceforge.net/lists/listinfo/jamvm-general

Re: CrossCompile error for ARM

by Robert Lougher :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

On Tue, Jun 3, 2008 at 1:23 PM, Manuel Sahm <Manuel.Sahm@...> wrote:

> Hello,
>
> I got the following errors:
>
> make[5]: Entering directory `/root/Desktop/jamvm-arm/src/os/linux/arm'
> /bin/sh ../../../../libtool   --mode=compile
> /opt/elinos-4.2/cdk/arm/v4le/glibc-2.3.4/bin/arm_v4le-gcc
> -DHAVE_CONFIG_H -I. -I../../../../src
> -I../../../../../jamvm-1.5.1/src/os/linux/arm  -I../../../../src
> -I../../../../src -g -O2 -MT callNative.lo -MD -MP -MF
> .deps/callNative.Tpo -c -o callNative.lo
> ../../../../../jamvm-1.5.1/src/os/linux/arm/callNative.S
>  /opt/elinos-4.2/cdk/arm/v4le/glibc-2.3.4/bin/arm_v4le-gcc
> -DHAVE_CONFIG_H -I. -I../../../../src
> -I../../../../../jamvm-1.5.1/src/os/linux/arm -I../../../../src
> -I../../../../src -g -O2 -MT callNative.lo -MD -MP -MF
> .deps/callNative.Tpo -c
> ../../../../../jamvm-1.5.1/src/os/linux/arm/callNative.S  -fPIC -DPIC -o
> .libs/callNative.o
> ../../../../../jamvm-1.5.1/src/os/linux/arm/callNativeEABI.S: Assembler
> messages:
> ../../../../../jamvm-1.5.1/src/os/linux/arm/callNativeEABI.S:99: Error:
> selected processor does not support `bx ip'
> ../../../../../jamvm-1.5.1/src/os/linux/arm/callNativeEABI.S:122: Error:
> selected processor does not support `bx lr'
>
>

Thanks to other people for responding.

The problem is that you appear to be using an ARM v4 based toolchain
on a system which is using EABI.*  This is currently a gray area (at
least with gcc).  The EABI calling convention mandates the use of the
BX instruction to enable Thumb interworking.  The problem is, the BX
instruction only exists on cores supporting ARMv4t or above (i.e. not
ARMv4).**

According to Dmitry your core supports ARMv5TEJ.  So you have two choices:

1) Reconfigure your toolchain or get a new one supporting >= ARMv4t.

2) If you are sure you don't need Thumb interworking you can replace
the bx instructions with mov, i.e.

bx ip -----> mov pc, ip


Rob.

* I guess it's an ARM v4 toolchain from the command line, and it must
be configured to use EABI because it's trying to compile
callNativeEABI.S.

** The EABI spec talks about using linker relocation directives to
patch BX instructions.

> Could anybody help me ?
>
> Thank you very much....
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Jamvm-general mailing list
> Jamvm-general@...
> https://lists.sourceforge.net/lists/listinfo/jamvm-general
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jamvm-general mailing list
Jamvm-general@...
https://lists.sourceforge.net/lists/listinfo/jamvm-general

Re: CrossCompile error for ARM

by iliverez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Robert,

Reading your comment, I got confused about what options I should use to
cross compile for arm with EABI.

I use gcc-4.1.2 with glibc-2.5 with EABI support to crosscompile
JamVM-1.5.0 for arm (XScale-PXA255). Until now, building JamVM-1.5.0
with EABI is successful and JamVM generally* behaves quite well on the
target machine.

Looking in the documentation of gcc-4.1.2, the default option regarding
Thumb interworking is the -mno-thumb-interwork. However, the gcc
documentation states:

  mthumb-interwork
        Generate code which supports calling between the ARM and Thumb
        instruction sets. Without this option the two instruction sets
        cannot be reliably used inside one program. The default is
        -mno-thumb-interwork, since slightly larger code is generated
        when -mthumb-interwork is specified.

Using grep after running configure for ARM cross compilation, I could
not find any reference to this option (or the mthumb option). Moreover,
I checked the toolchain that I use and indeed by default it uses the
mno-thumb-interwork option and it does not use the mthumb option.
Unfortunately, I miss a lot of knowledge about the ARM architecture and
especially EABI and THUMB, so please excuse me for the the following
newbie question:
If I understood your comment correctly, and looking at callNativeEABI.S,
Thumb interworking is used by JamVM for the ARM arch with EABI.
If so, based on your expertise, should I use explicitly the option
mthumb-interwork?

BR
Yiannis

* Sometimes I get random segfaults at startup, especially when memory
compaction is used.


On Tue, 2008-06-03 at 15:10 +0100, Robert Lougher wrote:

> Hi,
>
> On Tue, Jun 3, 2008 at 1:23 PM, Manuel Sahm <Manuel.Sahm@...> wrote:
> > Hello,
> >
> > I got the following errors:
> >
> > make[5]: Entering directory `/root/Desktop/jamvm-arm/src/os/linux/arm'
> > /bin/sh ../../../../libtool   --mode=compile
> > /opt/elinos-4.2/cdk/arm/v4le/glibc-2.3.4/bin/arm_v4le-gcc
> > -DHAVE_CONFIG_H -I. -I../../../../src
> > -I../../../../../jamvm-1.5.1/src/os/linux/arm  -I../../../../src
> > -I../../../../src -g -O2 -MT callNative.lo -MD -MP -MF
> > .deps/callNative.Tpo -c -o callNative.lo
> > ../../../../../jamvm-1.5.1/src/os/linux/arm/callNative.S
> >  /opt/elinos-4.2/cdk/arm/v4le/glibc-2.3.4/bin/arm_v4le-gcc
> > -DHAVE_CONFIG_H -I. -I../../../../src
> > -I../../../../../jamvm-1.5.1/src/os/linux/arm -I../../../../src
> > -I../../../../src -g -O2 -MT callNative.lo -MD -MP -MF
> > .deps/callNative.Tpo -c
> > ../../../../../jamvm-1.5.1/src/os/linux/arm/callNative.S  -fPIC -DPIC -o
> > .libs/callNative.o
> > ../../../../../jamvm-1.5.1/src/os/linux/arm/callNativeEABI.S: Assembler
> > messages:
> > ../../../../../jamvm-1.5.1/src/os/linux/arm/callNativeEABI.S:99: Error:
> > selected processor does not support `bx ip'
> > ../../../../../jamvm-1.5.1/src/os/linux/arm/callNativeEABI.S:122: Error:
> > selected processor does not support `bx lr'
> >
> >
>
> Thanks to other people for responding.
>
> The problem is that you appear to be using an ARM v4 based toolchain
> on a system which is using EABI.*  This is currently a gray area (at
> least with gcc).  The EABI calling convention mandates the use of the
> BX instruction to enable Thumb interworking.  The problem is, the BX
> instruction only exists on cores supporting ARMv4t or above (i.e. not
> ARMv4).**
>
> According to Dmitry your core supports ARMv5TEJ.  So you have two choices:
>
> 1) Reconfigure your toolchain or get a new one supporting >= ARMv4t.
>
> 2) If you are sure you don't need Thumb interworking you can replace
> the bx instructions with mov, i.e.
>
> bx ip -----> mov pc, ip
>
>
> Rob.
>
> * I guess it's an ARM v4 toolchain from the command line, and it must
> be configured to use EABI because it's trying to compile
> callNativeEABI.S.
>
> ** The EABI spec talks about using linker relocation directives to
> patch BX instructions.
>
> > Could anybody help me ?
> >
> > Thank you very much....
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2008.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > _______________________________________________
> > Jamvm-general mailing list
> > Jamvm-general@...
> > https://lists.sourceforge.net/lists/listinfo/jamvm-general
> >
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Jamvm-general mailing list
> Jamvm-general@...
> https://lists.sourceforge.net/lists/listinfo/jamvm-general
--
______________________________________________________________
Ioannis Liverezas
Engineer
Connected Home Platforms
inAccess Networks
12, Sorou Str.          Tel    : +30-210-6802336
151 25 Athens, Greece   Fax    : +30-210-6199258
______________________________________________________________





-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jamvm-general mailing list
Jamvm-general@...
https://lists.sourceforge.net/lists/listinfo/jamvm-general

Re: CrossCompile error for ARM

by Beevee123 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Did you get a final solution to your cross-compile issue?

I have an arm-v5tle i'd like to cross compile log4c for...

Heres what I have so far:

CC=$MVPREFIX-gcc CXX=$MVPREFIX-g++ RANLIB=$MVPREFIX-ranlib LD=$MVPREFIX-ld ./configure --quiet --host=arm-linux-gnu --build=i686-linux --prefix=/home/`whoami`/workspace/Dependencies/log4c/install_dir

I get  ".libs/appender_type_stream.o: could not read symbols: File in wrong format" ; lots of errors like this

Did you set eventually CFLAGS ?

CC=[your_cc] CFLAGS='-march=armv5te -mtune=arm926ej-s [other options]' ./configure [flags]

I understand the format is of this form thanks to your respondents, but im confused what to plugin for those CFLAGS

thanks

ps: Im a  bit of a newbie

ManuelSahm wrote:
Hello,

I got the following errors:

make[5]: Entering directory `/root/Desktop/jamvm-arm/src/os/linux/arm'
/bin/sh ../../../../libtool   --mode=compile
/opt/elinos-4.2/cdk/arm/v4le/glibc-2.3.4/bin/arm_v4le-gcc
-DHAVE_CONFIG_H -I. -I../../../../src
-I../../../../../jamvm-1.5.1/src/os/linux/arm  -I../../../../src  
-I../../../../src -g -O2 -MT callNative.lo -MD -MP -MF
.deps/callNative.Tpo -c -o callNative.lo
../../../../../jamvm-1.5.1/src/os/linux/arm/callNative.S
 /opt/elinos-4.2/cdk/arm/v4le/glibc-2.3.4/bin/arm_v4le-gcc
-DHAVE_CONFIG_H -I. -I../../../../src
-I../../../../../jamvm-1.5.1/src/os/linux/arm -I../../../../src
-I../../../../src -g -O2 -MT callNative.lo -MD -MP -MF
.deps/callNative.Tpo -c
../../../../../jamvm-1.5.1/src/os/linux/arm/callNative.S  -fPIC -DPIC -o
.libs/callNative.o
../../../../../jamvm-1.5.1/src/os/linux/arm/callNativeEABI.S: Assembler
messages:
../../../../../jamvm-1.5.1/src/os/linux/arm/callNativeEABI.S:99: Error:
selected processor does not support `bx ip'
../../../../../jamvm-1.5.1/src/os/linux/arm/callNativeEABI.S:122: Error:
selected processor does not support `bx lr'


Could anybody help me ?

Thank you very much....

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jamvm-general mailing list
Jamvm-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jamvm-general