Author Topic: Cross Compiling On Vmware Image  (Read 4886 times)

w14

  • Full Member
  • ***
  • Posts: 180
    • View Profile
    • http://
Cross Compiling On Vmware Image
« on: February 23, 2006, 04:08:05 pm »
I need a bit of help. I have compiled the latest Bestcrypt from within the vmware image, but when I try to run it, I'm getting the following error:

/usr/lib/libkgsha.so: undefined symbol: __divsi3
Can not load key generators

Does anyone have any ideas why this is happening?

Cheers,

Mike.
sl-c3100
pdaxrom 1.1.0 beta1

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Cross Compiling On Vmware Image
« Reply #1 on: February 23, 2006, 09:27:16 pm »
Quote
I need a bit of help. I have compiled the latest Bestcrypt from within the vmware image, but when I try to run it, I'm getting the following error:

/usr/lib/libkgsha.so: undefined symbol: __divsi3
Can not load key generators

Does anyone have any ideas why this is happening?

Cheers,

Mike.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=115912\"][{POST_SNAPBACK}][/a][/div]

I think its a general issue with library versions - search this forum for 'divsi3' and you'll get a few results...
SL6000-L, RC12

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Cross Compiling On Vmware Image
« Reply #2 on: February 23, 2006, 11:55:52 pm »
Quote
I think its a general issue with library versions - search this forum for 'divsi3' and you'll get a few results...
yeah, which is strange since you compiled it.
Maybe you didn't use the correct sdk?
you need this one:
http://mail.pdaxrom.org/1.1.0beta1/Zaurus-...ftfloat.tar.bz2

cross-sdk howto:
http://mail.pdaxrom.org/contrib/docs/cross-compiler.html
« Last Edit: February 23, 2006, 11:56:10 pm by pgas »
SLC-860 cacko / senao wifi

w14

  • Full Member
  • ***
  • Posts: 180
    • View Profile
    • http://
Cross Compiling On Vmware Image
« Reply #3 on: February 24, 2006, 05:15:58 am »
Nope, I used http://mail.pdaxrom.org/1.1.0beta1/pdaXrom...2.01.06.tar.bz2, as per jerrybme's kernel compile for the c3100 tutorial.

What's the difference between these?
sl-c3100
pdaxrom 1.1.0 beta1

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Cross Compiling On Vmware Image
« Reply #4 on: February 24, 2006, 05:26:30 am »
If you want to just compile an application it's easier to just use the sdk.

To build the whole pdaxrom, you need to use 2 toolchains.

The arm-cacko-linux-gnu-2.95.3-2.15-2.2.5-hardfloat-10.48_20.12.05.tar.bz2
is used to build the kernel. (because of some modules that don't like newer gcc version)

The toolchain I mention above is used to build application.
« Last Edit: February 24, 2006, 05:27:03 am by pgas »
SLC-860 cacko / senao wifi

w14

  • Full Member
  • ***
  • Posts: 180
    • View Profile
    • http://
Cross Compiling On Vmware Image
« Reply #5 on: February 24, 2006, 05:27:59 am »
OK. But bestcrypt needs to build kernel modules. Do I need both in this case?
sl-c3100
pdaxrom 1.1.0 beta1

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Cross Compiling On Vmware Image
« Reply #6 on: February 24, 2006, 05:29:48 am »
hmm, probably yes.
hardfloat to build the modules
and softfloat to build the libraries.

not sure how it will work though...
« Last Edit: February 24, 2006, 05:30:17 am by pgas »
SLC-860 cacko / senao wifi

w14

  • Full Member
  • ***
  • Posts: 180
    • View Profile
    • http://
Cross Compiling On Vmware Image
« Reply #7 on: February 24, 2006, 05:34:26 am »
OK, thanks for the help. I think I know what to do, says the blind man ... ;o)
« Last Edit: February 24, 2006, 05:34:41 am by w14 »
sl-c3100
pdaxrom 1.1.0 beta1

magicbb

  • Newbie
  • *
  • Posts: 40
    • View Profile
    • http://
Cross Compiling On Vmware Image
« Reply #8 on: February 26, 2006, 10:15:14 am »
I try to build the gThumb application, but the following errors appear after i issue the make command:
/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/lib/libgnomeui-2.so: could not read symobls: File in wrong format

any idea what happen?
« Last Edit: February 26, 2006, 10:15:43 am by magicbb »
Zaurus C-1000, AmbiCom Wifi, Pdaxrom beta 3

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Cross Compiling On Vmware Image
« Reply #9 on: February 26, 2006, 10:26:48 am »
could you include a bit more of the log?
I suspect it used the wrong compiler ie the gcc for x86 instead of the one for arm

try export CC=/opt/cross/arm/3.4.5-xscale-softvfp/bin/armv5tel-cacko-linux-gcc
before running ./configure
(see also http://mail.pdaxrom.org/contrib/docs/cross-compiler.html )
« Last Edit: February 26, 2006, 10:27:18 am by pgas »
SLC-860 cacko / senao wifi

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Cross Compiling On Vmware Image
« Reply #10 on: April 06, 2006, 10:23:57 am »
Quote
could you include a bit more of the log?
I suspect it used the wrong compiler ie the gcc for x86 instead of the one for arm

try export CC=/opt/cross/arm/3.4.5-xscale-softvfp/bin/armv5tel-cacko-linux-gcc
before running ./configure
I've just started to try out the cross compiler (using Gentoo, not using vmware). Is there any reason why CC is not defined by 'runsdk.sh'? I mean isn't that what I want all the time? Or are there situations where CC ought to be something else? And ditto for:

CXX=armv5tel-linux-g++
LDFLAGS="-Wl,-rpath-link,/opt/cross/arm/3.4.5-xscale-softvfp/armv5tel-cacko-linux/lib

-- cheers
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

telemetric_au

  • Sr. Member
  • ****
  • Posts: 327
    • View Profile
    • http://www.tyrannozaurus.com/feed/contribs/telemetric/index.htm
Cross Compiling On Vmware Image
« Reply #11 on: July 06, 2007, 04:22:14 am »
did you work out what was going on here as im getting this now ...


usr/lib/libkgsha.so: undefined symbol: __divsi3
Can not load key generators
Collie w/ pdaxrom & Puppy OS w/ cross-sdk
Hawking HCF686TX 10/100, Ambicom 802.11b (WL1100C-CF), Xircom 56K Global CF
Kingston CF Elite Pro & SD 1Gb & 128mb for flashing
$2 screen protector, collie.pdaxrom.feed : my collie pdaxrom site

telemetric_au

  • Sr. Member
  • ****
  • Posts: 327
    • View Profile
    • http://www.tyrannozaurus.com/feed/contribs/telemetric/index.htm
Cross Compiling On Vmware Image
« Reply #12 on: July 06, 2007, 08:00:38 am »
wrked it out, -lgcc
Collie w/ pdaxrom & Puppy OS w/ cross-sdk
Hawking HCF686TX 10/100, Ambicom 802.11b (WL1100C-CF), Xircom 56K Global CF
Kingston CF Elite Pro & SD 1Gb & 128mb for flashing
$2 screen protector, collie.pdaxrom.feed : my collie pdaxrom site