From: 杨永志 <cnz...@gm...> - 2009-01-29 15:23:56
|
Hey, When i use cegcc to compile the cacao JVM for wince, i got the error: "cannot find ltdl.h" I build the cegcc in Fedora 7 with source from SVN (in Jan, 2009) and by the script cegcc/src/build-cegcc.sh Then i build the GNU Classpath (0.97.2) with AR=arm-cegcc-ar AS=arm-cegcc-as CXX=arm-cegcc-c++ CPP=arm-cegcc-cpp CC=arm-cegcc-gcc LD=arm-cegcc-ld DLLTOOL=arm-cegcc-dlltool NM=arm-cegcc-nm RANLIB=arm-cegcc-ranlib STRIP=arm-cegcc-strip WINDRES=arm-cegcc-windres CFLAGS=-g\ -D_WIN32_IE=0x400 ARCH=arm-cegcc ../classpath-0.97.2/configure --prefix=/opt/gnucp --enable-ecj --disable-gtk-peer --build=i386-linux --target=arm-wince-pe -host=i386 However, when i configure the cacao (0.98) JVM with AR=arm-cegcc-ar AS=arm-cegcc-as CXX=arm-cegcc-c++ CPP=arm-cegcc-cpp CC=arm-cegcc-gcc LD=arm-cegcc-ld DLLTOOL=arm-cegcc-dlltool NM=arm-cegcc-nm RANLIB=arm-cegcc-ranlib STRIP=arm-cegcc-strip WINDRES=arm-cegcc-windres CFLAGS=-g\ -D_WIN32_IE=0x400 ARCH=arm-cegcc ../cacao-0.98/configure --prefix=/opt/cacao --with-classpath-prefix=/opt/gnucp --enable-ecj --disable-gtk-peer --build=i386-linux --target=arm-wince-pe -host=i386 --disable-zlib I got the error: "error: cannot find ltdl.h" I notice that there's a ltdl.h in "cegcc/src/newlib/newlib/libc/sys/linux/include/ltdl.h" But i don't know where to put it :( It seems that the cacao requires a libtool, but it can not find the libtool when compiled by cegcc. What is the recommended way to find a libtool? or, how can i get a JVM, which supports Java SE 1.5 (especially for the annotation), for wince? thank you Ziberg |
From: 杨永志 <cnz...@gm...> - 2009-02-04 09:44:50
|
After a few days of working and thinking, I guess that the missing of libtool (ltdl.h) and pthread (in later steps of the configure) causes the errors. Furthermore, I guess both the libtool and the pthread have been built in cegcc. But i can not find them :( >>>When I check the config.log, I find the following failed command lines: arm-cegcc-gcc -o conftest.exe -g -O2 -I/opt/cegcc/arm-cegcc/include -L/opt/cegcc/arm-cegcc/lib conftest.c -lpthread arm-cegcc-gcc -o conftest.exe -g -O2 -I/opt/cegcc/arm-cegcc/include -L/opt/cegcc/arm-cegcc/lib conftest.c -ldl In the file conftest.c, the main function calls functions pthread_self (provided by libpthread and introduced by the instruction -lpthread) and dl_open (provided by libdl and introduced by the instruction -ldl). >>>When I build the libtool and configure with the following options CPPFLAGS=-I/opt/libtool/include LDFLAGS=-L/opt/libtool/lib, the ltdl.h and the lib can be found. (I think it will cause a runtime error when functions in the lib dl are invoked to load DLL files) But the configure complains that there's no pthread in later steps. I guess cegcc has built both the dl lib and pthread libraries, since both ltdl.h and pthread.h can be found in its source directories. But the generated libraries are entitled other file names than the libdl.a and libpthread.a. >>>My question is where has the cegcc hidden those core functions (pthread, dll and so on)? |
From: Danny B. <dan...@sc...> - 2009-02-04 16:56:40
|
My original answer was that Windows CE doesn't provide the API that I find in a Linux version of ltdl.h . The same remark applies to pthreads : CE doesn't implement this. None of your more recent findings change that. You'll need to adapt the sources so they don't use these APIs, or start using an equivalent (a dlopen port and a pthreads port for CE). Danny On Wed, 2009-02-04 at 17:44 +0800, 杨永志 wrote: > After a few days of working and thinking, I guess that the missing of > libtool (ltdl.h) and pthread (in later steps of the configure) causes > the errors. > > Furthermore, I guess both the libtool and the pthread have been built > in cegcc. But i can not find them :( > > >>>When I check the config.log, I find the following failed command lines: > > arm-cegcc-gcc -o conftest.exe -g -O2 -I/opt/cegcc/arm-cegcc/include > -L/opt/cegcc/arm-cegcc/lib conftest.c -lpthread > > arm-cegcc-gcc -o conftest.exe -g -O2 -I/opt/cegcc/arm-cegcc/include > -L/opt/cegcc/arm-cegcc/lib conftest.c -ldl > > In the file conftest.c, the main function calls functions pthread_self > (provided by libpthread and introduced by the instruction -lpthread) > and dl_open (provided by libdl and introduced by the instruction > -ldl). > > >>>When I build the libtool and configure with the following options > CPPFLAGS=-I/opt/libtool/include LDFLAGS=-L/opt/libtool/lib, > the ltdl.h and the lib can be found. (I think it will cause a runtime > error when functions in the lib dl are invoked to load DLL files) > > But the configure complains that there's no pthread in later steps. > > I guess cegcc has built both the dl lib and pthread libraries, since > both ltdl.h and pthread.h can be found in its source directories. But > the generated libraries are entitled other file names than the libdl.a > and libpthread.a. > > >>>My question is where has the cegcc hidden those core functions (pthread, dll and so on)? > > ------------------------------------------------------------------------------ > Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code to > build responsive, highly engaging applications that combine the power of local > resources and data with the reach of the web. Download the Adobe AIR SDK and > Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > Cegcc-devel mailing list > Ceg...@li... > https://lists.sourceforge.net/lists/listinfo/cegcc-devel > -- Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info |
From: 杨永志 <cnz...@gm...> - 2009-02-05 05:23:30
|
Dear Danny, I know what you are worry about. I build the libtool (of linux) to cheat the compiler and linker, for i want to know how many libraries are missed. Libtool is mainly used by jni of cacao/jamvm, i guess, so it should be OK before the library is called in runtime. After that, the configure complains that the pthread is missed. And I find that someone had the same problems: http://www.mail-archive.com/ceg...@li.../msg00635.html I'll try to build the pthread-win32 by cegcc as Leonardo Weiss Chaves wrote. 2009/2/5 Danny Backx <dan...@sc...>: > My original answer was that Windows CE doesn't provide the API that I > find in a Linux version of ltdl.h . The same remark applies to > pthreads : CE doesn't implement this. > > None of your more recent findings change that. > > You'll need to adapt the sources so they don't use these APIs, or start > using an equivalent (a dlopen port and a pthreads port for CE). > > Danny |
From: Danny B. <dan...@sc...> - 2009-01-29 20:49:34
|
That's probably because the contents of ltdl.h is not supported on Windows CE : /* ltdl.h -- generic dlopen functions CE has another API than unix/linux/.. for this kind of stuff, see e.g. the LoadLibrary function. Danny On Thu, 2009-01-29 at 23:23 +0800, 杨永志 wrote: > Hey, > > When i use cegcc to compile the cacao JVM for wince, i got the error: > "cannot find ltdl.h" > > I build the cegcc in Fedora 7 with source from SVN (in Jan, 2009) and > by the script cegcc/src/build-cegcc.sh > > Then i build the GNU Classpath (0.97.2) with > > AR=arm-cegcc-ar AS=arm-cegcc-as CXX=arm-cegcc-c++ CPP=arm-cegcc-cpp > CC=arm-cegcc-gcc LD=arm-cegcc-ld DLLTOOL=arm-cegcc-dlltool > NM=arm-cegcc-nm RANLIB=arm-cegcc-ranlib STRIP=arm-cegcc-strip > WINDRES=arm-cegcc-windres CFLAGS=-g\ -D_WIN32_IE=0x400 ARCH=arm-cegcc > ../classpath-0.97.2/configure --prefix=/opt/gnucp --enable-ecj > --disable-gtk-peer --build=i386-linux --target=arm-wince-pe -host=i386 > > However, when i configure the cacao (0.98) JVM with > > AR=arm-cegcc-ar AS=arm-cegcc-as CXX=arm-cegcc-c++ CPP=arm-cegcc-cpp > CC=arm-cegcc-gcc LD=arm-cegcc-ld DLLTOOL=arm-cegcc-dlltool > NM=arm-cegcc-nm RANLIB=arm-cegcc-ranlib STRIP=arm-cegcc-strip > WINDRES=arm-cegcc-windres CFLAGS=-g\ -D_WIN32_IE=0x400 ARCH=arm-cegcc > ../cacao-0.98/configure --prefix=/opt/cacao > --with-classpath-prefix=/opt/gnucp --enable-ecj --disable-gtk-peer > --build=i386-linux --target=arm-wince-pe -host=i386 --disable-zlib > > I got the error: "error: cannot find ltdl.h" > > I notice that there's a ltdl.h in > "cegcc/src/newlib/newlib/libc/sys/linux/include/ltdl.h" > But i don't know where to put it :( > > It seems that the cacao requires a libtool, but it can not find the > libtool when compiled by cegcc. > > What is the recommended way to find a libtool? > > or, how can i get a JVM, which supports Java SE 1.5 (especially for > the annotation), for wince? > > thank you > > Ziberg > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Cegcc-devel mailing list > Ceg...@li... > https://lists.sourceforge.net/lists/listinfo/cegcc-devel > -- Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info |
From: Ryan R. <rya...@gm...> - 2009-01-30 09:10:26
|
One could also use libevil, from the Enlightenment Libraries. It is a library used by the e libraries to support those function calls. It does not have any dependencies. Vincent Torri knows best :) Ryan Danny Backx wrote: > That's probably because the contents of ltdl.h is not supported on > Windows CE : > > /* ltdl.h -- generic dlopen functions > > CE has another API than unix/linux/.. for this kind of stuff, see e.g. > the LoadLibrary function. > > Danny > > On Thu, 2009-01-29 at 23:23 +0800, ??? wrote: >> Hey, >> >> When i use cegcc to compile the cacao JVM for wince, i got the error: >> "cannot find ltdl.h" >> >> I build the cegcc in Fedora 7 with source from SVN (in Jan, 2009) and >> by the script cegcc/src/build-cegcc.sh >> >> Then i build the GNU Classpath (0.97.2) with >> >> AR=arm-cegcc-ar AS=arm-cegcc-as CXX=arm-cegcc-c++ CPP=arm-cegcc-cpp >> CC=arm-cegcc-gcc LD=arm-cegcc-ld DLLTOOL=arm-cegcc-dlltool >> NM=arm-cegcc-nm RANLIB=arm-cegcc-ranlib STRIP=arm-cegcc-strip >> WINDRES=arm-cegcc-windres CFLAGS=-g\ -D_WIN32_IE=0x400 ARCH=arm-cegcc >> ../classpath-0.97.2/configure --prefix=/opt/gnucp --enable-ecj >> --disable-gtk-peer --build=i386-linux --target=arm-wince-pe -host=i386 >> >> However, when i configure the cacao (0.98) JVM with >> >> AR=arm-cegcc-ar AS=arm-cegcc-as CXX=arm-cegcc-c++ CPP=arm-cegcc-cpp >> CC=arm-cegcc-gcc LD=arm-cegcc-ld DLLTOOL=arm-cegcc-dlltool >> NM=arm-cegcc-nm RANLIB=arm-cegcc-ranlib STRIP=arm-cegcc-strip >> WINDRES=arm-cegcc-windres CFLAGS=-g\ -D_WIN32_IE=0x400 ARCH=arm-cegcc >> ../cacao-0.98/configure --prefix=/opt/cacao >> --with-classpath-prefix=/opt/gnucp --enable-ecj --disable-gtk-peer >> --build=i386-linux --target=arm-wince-pe -host=i386 --disable-zlib >> >> I got the error: "error: cannot find ltdl.h" >> >> I notice that there's a ltdl.h in >> "cegcc/src/newlib/newlib/libc/sys/linux/include/ltdl.h" >> But i don't know where to put it :( >> >> It seems that the cacao requires a libtool, but it can not find the >> libtool when compiled by cegcc. >> >> What is the recommended way to find a libtool? >> >> or, how can i get a JVM, which supports Java SE 1.5 (especially for >> the annotation), for wince? >> >> thank you >> >> Ziberg >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by: >> SourcForge Community >> SourceForge wants to tell your story. >> http://p.sf.net/sfu/sf-spreadtheword >> _______________________________________________ >> Cegcc-devel mailing list >> Ceg...@li... >> https://lists.sourceforge.net/lists/listinfo/cegcc-devel >> |
From: 杨永志 <cnz...@gm...> - 2009-01-30 10:09:10
|
Thank you for your advices. I think the error means cacao can not find a suitable libtool. So i download GNU libtool (2.2.6) and build it with AR=arm-cegcc-ar AS=arm-cegcc-as CXX=arm-cegcc-c++ CPP=arm-cegcc-cpp CC=arm-cegcc-gcc LD=arm-cegcc-ld DLLTOOL=arm-cegcc-dlltool NM=arm-cegcc-nm RANLIB=arm-cegcc-ranlib STRIP=arm-cegcc-strip WINDRES=arm-cegcc-windres CFLAGS=-g\ -D_WIN32_IE=0x400 ARCH=arm-cegcc ../libtool-2.2.6/configure --prefix=/opt/libtool --build=i386-linux --target=arm-wince-pe -host=i386 export PATH=${PATH}:/opt/libtool/ The libtool can be compiled by cegcc successfully. However, the error is still there (i even copy all files in /opt/libtool into /opt/gnucp *v* ). I don't know wether the cegcc ot the cacao causes the error. So, i'd like to post the error in cacao's maillist. thank you Ziberg |
From: Vincent T. <vt...@un...> - 2009-01-30 10:13:10
|
On Fri, 30 Jan 2009, Ryan Raasch wrote: > One could also use libevil, from the Enlightenment Libraries. It is a > library used by the e libraries to support those function calls. It does > not have any dependencies. > > Vincent Torri knows best :) > > Danny Backx wrote: >> That's probably because the contents of ltdl.h is not supported on >> Windows CE : Actually, ltdl have some code for Windows XP, that is using LoadLibrary. Maybe it's just that Windows CE (read cegcc or mingw32ce) is not supported (yet) Vincent >> /* ltdl.h -- generic dlopen functions >> >> CE has another API than unix/linux/.. for this kind of stuff, see e.g. >> the LoadLibrary function. >> >> Danny >> >> On Thu, 2009-01-29 at 23:23 +0800, ??? wrote: >>> Hey, >>> >>> When i use cegcc to compile the cacao JVM for wince, i got the error: >>> "cannot find ltdl.h" >>> >>> I build the cegcc in Fedora 7 with source from SVN (in Jan, 2009) and >>> by the script cegcc/src/build-cegcc.sh >>> >>> Then i build the GNU Classpath (0.97.2) with >>> >>> AR=arm-cegcc-ar AS=arm-cegcc-as CXX=arm-cegcc-c++ CPP=arm-cegcc-cpp >>> CC=arm-cegcc-gcc LD=arm-cegcc-ld DLLTOOL=arm-cegcc-dlltool >>> NM=arm-cegcc-nm RANLIB=arm-cegcc-ranlib STRIP=arm-cegcc-strip >>> WINDRES=arm-cegcc-windres CFLAGS=-g\ -D_WIN32_IE=0x400 ARCH=arm-cegcc >>> ../classpath-0.97.2/configure --prefix=/opt/gnucp --enable-ecj >>> --disable-gtk-peer --build=i386-linux --target=arm-wince-pe -host=i386 >>> >>> However, when i configure the cacao (0.98) JVM with >>> >>> AR=arm-cegcc-ar AS=arm-cegcc-as CXX=arm-cegcc-c++ CPP=arm-cegcc-cpp >>> CC=arm-cegcc-gcc LD=arm-cegcc-ld DLLTOOL=arm-cegcc-dlltool >>> NM=arm-cegcc-nm RANLIB=arm-cegcc-ranlib STRIP=arm-cegcc-strip >>> WINDRES=arm-cegcc-windres CFLAGS=-g\ -D_WIN32_IE=0x400 ARCH=arm-cegcc >>> ../cacao-0.98/configure --prefix=/opt/cacao >>> --with-classpath-prefix=/opt/gnucp --enable-ecj --disable-gtk-peer >>> --build=i386-linux --target=arm-wince-pe -host=i386 --disable-zlib >>> >>> I got the error: "error: cannot find ltdl.h" >>> >>> I notice that there's a ltdl.h in >>> "cegcc/src/newlib/newlib/libc/sys/linux/include/ltdl.h" >>> But i don't know where to put it :( >>> >>> It seems that the cacao requires a libtool, but it can not find the >>> libtool when compiled by cegcc. >>> >>> What is the recommended way to find a libtool? >>> >>> or, how can i get a JVM, which supports Java SE 1.5 (especially for >>> the annotation), for wince? >>> >>> thank you >>> >>> Ziberg >>> >>> ------------------------------------------------------------------------------ >>> This SF.net email is sponsored by: >>> SourcForge Community >>> SourceForge wants to tell your story. >>> http://p.sf.net/sfu/sf-spreadtheword >>> _______________________________________________ >>> Cegcc-devel mailing list >>> Ceg...@li... >>> https://lists.sourceforge.net/lists/listinfo/cegcc-devel >>> > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Cegcc-devel mailing list > Ceg...@li... > https://lists.sourceforge.net/lists/listinfo/cegcc-devel > > -- > Ce message a été vérifié par MailScanner > pour des virus ou des polluriels et rien de > suspect n'a été trouvé. > Message délivré par le serveur de messagerie de l'Université d'Evry. > > |