Author Topic: running duke3d : "undefined symbol: __muldi3"  (Read 8491 times)

cmisip

  • Sr. Member
  • ****
  • Posts: 256
    • View Profile
    • http://home.mchsi.com/~cmisip/index.htm
running duke3d : "undefined symbol: __muldi3"
« on: July 05, 2004, 02:46:59 am »
Anybody know what this means and how to fix it?

Tried to cross compile duke3d for the zaurus.

Thanks.
Zaurus 5600
Zynergy Rootfs 1.1
Custom zImage

How Do You Do That in Linux

Zazz

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
running duke3d : "undefined symbol: __muldi3"
« Reply #1 on: July 05, 2004, 10:26:12 am »
It is part of libgcc. Try adding -lgcc_s to the LIBS.

cmisip

  • Sr. Member
  • ****
  • Posts: 256
    • View Profile
    • http://home.mchsi.com/~cmisip/index.htm
running duke3d : "undefined symbol: __muldi3"
« Reply #2 on: July 05, 2004, 02:46:15 pm »
It cannot find -lgcc_s



/usr/local/arm-linux/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
make: *** [build] Error 1
Zaurus 5600
Zynergy Rootfs 1.1
Custom zImage

How Do You Do That in Linux

Zazz

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
running duke3d : "undefined symbol: __muldi3"
« Reply #3 on: July 05, 2004, 03:07:21 pm »
If there is a libgcc_s.so.1 somewhere in your arm devel tree, make a symlink to libgcc_s.so and try linking with -lgcc_s again. Otherwise try linking with -lgcc .

cmisip

  • Sr. Member
  • ****
  • Posts: 256
    • View Profile
    • http://home.mchsi.com/~cmisip/index.htm
running duke3d : "undefined symbol: __muldi3"
« Reply #4 on: July 05, 2004, 07:43:17 pm »
It seems I dont have this anywhere.  I have libgcc.a.

Do I need to build libgcc_s.so ?

I came upon these instructions :

http://festvox.org/docs/speech_tools-1.2.0/x17375.htm

Is libgcc_s.so simply the shared version of libgcc.a.

It seems I could build libgcc.so this way.  


Thanks
Zaurus 5600
Zynergy Rootfs 1.1
Custom zImage

How Do You Do That in Linux

Zazz

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
running duke3d : "undefined symbol: __muldi3"
« Reply #5 on: July 05, 2004, 08:07:50 pm »
No need to build libgcc_s.so. Does the linking step find the muldi3 thing with -lgcc ?

cmisip

  • Sr. Member
  • ****
  • Posts: 256
    • View Profile
    • http://home.mchsi.com/~cmisip/index.htm
running duke3d : "undefined symbol: __muldi3"
« Reply #6 on: July 05, 2004, 08:45:46 pm »
Compile does not complain when I add -lgcc.  However, when the binary is transferred to the zaurus and run, it complains of not finding muldi3.  I dont see any libgcc.so in the zaurus.  Maybe I need to transfer the libgcc.so I compiled to the Z?
Zaurus 5600
Zynergy Rootfs 1.1
Custom zImage

How Do You Do That in Linux

cmisip

  • Sr. Member
  • ****
  • Posts: 256
    • View Profile
    • http://home.mchsi.com/~cmisip/index.htm
running duke3d : "undefined symbol: __muldi3"
« Reply #7 on: July 05, 2004, 10:10:02 pm »
I created libgcc.so.2.95.3 and created a symlink to it with libgcc_s.so . I copied it over to the lib directory in my laptop arm-linux toolchain.  Recompiled duke3d and transferred duke3d to the zaurus along with the shared libgcc_s.  

Duke3d is now RUNNING on the Z!
I am using the shareware demo.

Music and sound is a little garbled though.  It was also garbled on the laptop with the x86 binary.  Maybe I need to tweak the cfg file.  

Loading time is a little long but seems to be playable.
Zaurus 5600
Zynergy Rootfs 1.1
Custom zImage

How Do You Do That in Linux

cmisip

  • Sr. Member
  • ****
  • Posts: 256
    • View Profile
    • http://home.mchsi.com/~cmisip/index.htm
running duke3d : "undefined symbol: __muldi3"
« Reply #8 on: July 05, 2004, 10:20:35 pm »
Thanks Zazz
Zaurus 5600
Zynergy Rootfs 1.1
Custom zImage

How Do You Do That in Linux

scoutme

  • Hero Member
  • *****
  • Posts: 579
    • View Profile
running duke3d : "undefined symbol: __muldi3"
« Reply #9 on: July 06, 2004, 12:05:37 pm »
can you post a download link? or package it and put it into a feed? thx

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
running duke3d : "undefined symbol: __muldi3"
« Reply #10 on: July 06, 2004, 12:28:49 pm »
yeah we need to try this! ;-)
Gorgeous C860, 256 Sandisk SD, 1Gig Pretec 40x CF, PDAIR leather case & the really cool retractable iPDA USB sync/charge cable. Powered by PDAXROM BETA 1.

My wish - to have a Command & Conquer style game on my Z! (FREECNC!!!) Simcity 2000 would also be great.

_Psycho

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • http://zports.sf.net
running duke3d : "undefined symbol: __muldi3"
« Reply #11 on: July 06, 2004, 02:42:56 pm »
I really need to put more time for zports
Zaurus Porting Project :
http://zports.sf.net
Conics:
http://www.conics.net

cmisip

  • Sr. Member
  • ****
  • Posts: 256
    • View Profile
    • http://home.mchsi.com/~cmisip/index.htm
running duke3d : "undefined symbol: __muldi3"
« Reply #12 on: July 06, 2004, 05:55:04 pm »
Its up on my website.  

http://cmisip.home.insightbb.com/zaurus.htm

Scroll all the way to the bottom. Instructions are there too.

I wish somebody can figure out how to fix the sound effects.

By the way, you need sdl and sdl-mixer.

Have fun.
Zaurus 5600
Zynergy Rootfs 1.1
Custom zImage

How Do You Do That in Linux

padishah_emperor

  • Hero Member
  • *****
  • Posts: 849
    • View Profile
    • http://
running duke3d : "undefined symbol: __muldi3"
« Reply #13 on: July 06, 2004, 06:15:22 pm »
NICE  
« Last Edit: July 06, 2004, 06:16:34 pm by padishah_emperor »
Left Linux and Linux PDAs... sorry, got boring.  Switched to Mac.

cmisip

  • Sr. Member
  • ****
  • Posts: 256
    • View Profile
    • http://home.mchsi.com/~cmisip/index.htm
running duke3d : "undefined symbol: __muldi3"
« Reply #14 on: July 24, 2004, 12:03:20 am »
Has anybody tried it yet?

Poking around at the source, It seems by only loading the smaller sound samples in  memory, the problem with the sound samples all playing at the start of the game goes away.  I wonder how it works in a machine with 64 MB memory.
Zaurus 5600
Zynergy Rootfs 1.1
Custom zImage

How Do You Do That in Linux