|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
undefined symbol: __udivsi3 ?Hi All :
I wang to compile js-1.8.0-rc1.tar.gz for at91sam9261 arm board with compiler cross-3.4.1. this is my steps. cd src make -f Makefile.ref LD=arm-linux-ld CC=arm-linux-gcc CCC=arm-linux-g++ cp jscpucfg to my board and run , cp file jsautocfg.h to src/Linux_All_DBG.OBJ/ make -f Makefile.ref LD=arm-linux-ld CC=arm-linux-gcc CCC=arm-linux-g++ cp jskwgen to my board and run , cp file jsautokw.h to src/Linux_All_DBG.OBJ/ make -f Makefile.ref LD=arm-linux-ld CC=arm-linux-gcc CCC=arm-linux-g++ at last , it's done. then I cp .h .tbl to 3.4.1/arm-linux/include/ cp libjs.so to 3.4.1/arm-linux/lib/ then I compile an example. arm-linux-gcc -o test -DXP_UNIX -ljs test.c no error. I copied libjs.so to my board /lib/ BUT when I run it in my board with ./test "var a=1;b=2;a+b" IT says : ./test: relocation error: /lib/libjs.so: undefined symbol: __udivsi3 Any idea is helpful. Thank You!! _______________________________________________ dev-tech-js-engine mailing list dev-tech-js-engine@... https://lists.mozilla.org/listinfo/dev-tech-js-engine |
|
|
Re: undefined symbol: __udivsi3 ?-lgcc
On Fri, Oct 16, 2009 at 3:49 AM, 李洪亮 <lihongliang@...> wrote: > Hi All : > > I wang to compile js-1.8.0-rc1.tar.gz for at91sam9261 arm board with > compiler cross-3.4.1. > this is my steps. > cd src > make -f Makefile.ref LD=arm-linux-ld CC=arm-linux-gcc CCC=arm-linux-g++ > cp jscpucfg to my board and run , cp file jsautocfg.h to > src/Linux_All_DBG.OBJ/ > make -f Makefile.ref LD=arm-linux-ld CC=arm-linux-gcc CCC=arm-linux-g++ > cp jskwgen to my board and run , cp file jsautokw.h to > src/Linux_All_DBG.OBJ/ > make -f Makefile.ref LD=arm-linux-ld CC=arm-linux-gcc CCC=arm-linux-g++ > > at last , it's done. > > then I cp .h .tbl to 3.4.1/arm-linux/include/ > cp libjs.so to 3.4.1/arm-linux/lib/ > > then I compile an example. > arm-linux-gcc -o test -DXP_UNIX -ljs test.c > no error. > I copied libjs.so to my board /lib/ > BUT when I run it in my board with ./test "var a=1;b=2;a+b" > IT says : > ./test: relocation error: /lib/libjs.so: undefined symbol: __udivsi3 > > Any idea is helpful. > Thank You!! > _______________________________________________ > dev-tech-js-engine mailing list > dev-tech-js-engine@... > https://lists.mozilla.org/listinfo/dev-tech-js-engine > dev-tech-js-engine mailing list dev-tech-js-engine@... https://lists.mozilla.org/listinfo/dev-tech-js-engine |
| Free embeddable forum powered by Nabble | Forum Help |