Re: [dev] DEV300_m29: compiling ERROR: File not found: ScriptFramework.jar
Hi Nguyen, On Thursday, 2008-09-04 12:17:58 +0900, Nguyen Vu Hung wrote: unxlngi6 folder is 6GB big and it takes a long time. It should't be that big. All unxlngi* folders together shouldn't be that big. You really shouldn't try a debug build at first attempt... I didn't try to debug. Well, for DEV300_m29 my */unxlngi6 folders (without solver) total up to 3.7G, that's with --disable-binfilter and several other --disable-... and --without-..., but with --enable-dbgutil. So 6GB may not be totally off the road, especially if you included binfilter and built mozilla and maybe others from source. You may save some diskspace by delivering hard links to the solver, add option --dlv_switch -link to the build command, which needs using cd $SRC_ROOT/instsetoo_native build --all --dlv_switch -link instead of calling dmake in $SRC_ROOT though. The root makefile.mk is just a wrapper around that. My question, for dmake, is what is equivalent to GNU make clean for a *fresh* build? cd $SRC_ROOT dmake clean (surprise ;-) There's also dmake distclean that additionally clears config.cache I've specified --with-lang=en vi ja but it turned out that only en_Us is built. Why? How to enable vi and ja? Looks like you omitted quotes: --with-lang=en-US vi ja Note also that it is not en but en-US, as opposed to en-GB. Eike -- OOo/SO Calc core developer. Number formatter stricken i18n transpositionizer. SunSign 0x87F8D412 : 2F58 5236 DB02 F335 8304 7D6C 65C9 F9B5 87F8 D412 OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS Please don't send personal mail to the [EMAIL PROTECTED] account, which I use for mailing lists only and don't read from outside Sun. Use [EMAIL PROTECTED] Thanks. pgpfcUpG278r0.pgp Description: PGP signature
Re: [dev] DEV300_m29: compiling ERROR: File not found: ScriptFramework.jar
2008/8/22 Christian Lohmaier [EMAIL PROTECTED]: Hi *, On Fri, Aug 22, 2008 at 5:17 AM, Hung Nguyen Vu [EMAIL PROTECTED] wrote: On Fri, Aug 22, 2008 at 1:49 AM, tora - Takamichi Akiyama [EMAIL PROTECTED] wrote: [...] The reason why I add some --disable-something is that I want to save compiling time. Oh, then you're missing the most-important-to-save-time switch: --disable-binfilter (and wrt --disable-mozilla: While it is right that building mozilla takes quite some time as well, you can build mozilla once and then create precompiled mozilla packages - that way you don't lose the features but still save compile time) In fact, compiling bifilter doesn't take too long. I wil leave it there. Why OOo requires Mozilla source code? What is the relation between them? Now I am using --enable-mozilla because ccache saves the compilation time from the second build. -- Best Regards, Nguyen Hung Vu ( Nguyễn Vũ Hưng ) [EMAIL PROTECTED] , YIM: vuhung16 , Skype: vuhung16dg Japan through an eye of a gaijin: http://www.flickr.com/photos/vuhung/tags/fav/
Re: [dev] DEV300_m29: compiling ERROR: File not found: ScriptFramework.jar
2008/8/22 Christian Lohmaier [EMAIL PROTECTED]: 4. mv unxlngi6.pro unxlngi6.pro-failed Is it equivalent to dmake clean unxlngi6 folder is 6GB big and it takes a long time. It should't be that big. All unxlngi* folders together shouldn't be that big. You really shouldn't try a debug build at first attempt... I didn't try to debug. My question, for dmake, is what is equivalent to GNU make clean for a *fresh* build? How long does it take to compile OOo?( pen IV 3.2GB, 2GB Memory, SCSI 320 HDD) If ccache is filled, it should take about 5 hours or something like that. It really depends on ccache but my last build took about 6 hours. Question: I've specified --with-lang=en vi ja but it turned out that only en_Us is built. Why? How to enable vi and ja? -- Best Regards, Nguyen Hung Vu ( Nguyễn Vũ Hưng ) [EMAIL PROTECTED] , YIM: vuhung16 , Skype: vuhung16dg Japan through an eye of a gaijin: http://www.flickr.com/photos/vuhung/tags/fav/
Re: [dev] DEV300_m29: compiling ERROR: File not found: ScriptFramework.jar
2008/8/22 Christian Lohmaier [EMAIL PROTECTED]: $ ./configure --prefix=/home/vuhung --with-jdk-home=/home/vuhung/opt/j2sdk1.4.2_18 --with-ant-home=/usr/local/ant --with-system-stdlibs --with-lang=en vi ja FYI for those will want to compile DEV300_m29: 1. Use java 1.4.x java 1.6 won't work. 2. Use default ./configure if you can. Or use less configure options. Dependency checking in dmake is not that perfect :) -- Best Regards, Nguyen Hung Vu ( Nguyễn Vũ Hưng ) [EMAIL PROTECTED] , YIM: vuhung16 , Skype: vuhung16dg Japan through an eye of a gaijin: http://www.flickr.com/photos/vuhung/tags/fav/
Re: [dev] DEV300_m29: compiling ERROR: File not found: ScriptFramework.jar
Hi *, On Fri, Aug 22, 2008 at 5:17 AM, Hung Nguyen Vu [EMAIL PROTECTED] wrote: On Fri, Aug 22, 2008 at 1:49 AM, tora - Takamichi Akiyama [EMAIL PROTECTED] wrote: [...] The reason why I add some --disable-something is that I want to save compiling time. Oh, then you're missing the most-important-to-save-time switch: --disable-binfilter (and wrt --disable-mozilla: While it is right that building mozilla takes quite some time as well, you can build mozilla once and then create precompiled mozilla packages - that way you don't lose the features but still save compile time) ciao Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] DEV300_m29: compiling ERROR: File not found: ScriptFramework.jar
Hi *, On Fri, Aug 22, 2008 at 5:29 AM, Hung Nguyen Vu [EMAIL PROTECTED] wrote: On Fri, Aug 22, 2008 at 2:23 AM, Christian Lohmaier [EMAIL PROTECTED]wrote: [...] I make the whole source tree viewable, as well as the env file. http://aoclife.ddo.jp/~vuhung/foss/src/DEV300_m29/ http://aoclife.ddo.jp/~vuhung/foss/src/DEV300_m29/LinuxX86Env.Set.sh [...] Though --with-use-shell=bash was set in ./configure, It was not specified according to config.log from the above tree: It was created by configure, which was generated by GNU Autoconf 2.61. Invocation command line was $ ./configure --prefix=/home/vuhung --with-jdk-home=/home/vuhung/opt/j2sdk1.4.2_18 --with-ant-home=/usr/local/ant --with-system-stdlibs --with-lang=en vi ja So it doesn't reflect what you thought it should be. And you did run configure in a shell that already had variables from a previous attempt set. (this is clrear fom e.g. the path-settings in the environment file). Always run configure in a new, clean shell without the build-environment variables set. java, python, uno are not my goals at the moment. I need a binary first. Might be, but java is used in a couple of places during the build nevertheless. Question: Why with --without-java, dmake still looks for a .jar file? Congratulations, you found a dependency bug. Where should I commit a bug? http://qa.openoffice.org/issues/enter_bug.cgi What component does this bug belong to? as it fails in scripting, and scripting is part of framework, I'd assign it to framework. (well it doesn't actually fail in scripting, but it is in scripting where that jar should have been built) ciao Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] DEV300_m29: compiling ERROR: File not found: ScriptFramework.jar
On Fri, Aug 22, 2008 at 6:43 AM, Hung Nguyen Vu [EMAIL PROTECTED] wrote: On Fri, Aug 22, 2008 at 1:01 PM, tora - Takamichi Akiyama [EMAIL PROTECTED] wrote: 1. Do the ./configure in the directory config_office with appropriate options on the new terminal emulator. 2. source LinuxX86Env.Set.sh 3. cd $SRC_ROOT/scripting At this point, I've run build and everything was fine. So far so good, it may take a while until I get OOo binary compiled or next error :) 4. mv unxlngi6.pro unxlngi6.pro-failed Is it equivalent to dmake clean unxlngi6 folder is 6GB big and it takes a long time. It should't be that big. All unxlngi* folders together shouldn't be that big. You really shouldn't try a debug build at first attempt... How long does it take to compile OOo?( pen IV 3.2GB, 2GB Memory, SCSI 320 HDD) If ccache is filled, it should take about 5 hours or something like that. ciao Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] DEV300_m29: compiling ERROR: File not found: ScriptFramework.jar
On Thu, Aug 21, 2008 at 11:50 PM, tora - Takamichi Akiyama [EMAIL PROTECTED] wrote: ERROR: File not found: ScriptFramework.jar To find the module from which a missing file should come, 1. Build OpenOffice.org completely. What do you mean by Build OpenOffice.org completely.? All the commands I've typed are ./configure and dmake. Now dmake has failed. 2. Look for a name of the missing file from log files. e.g. grep ScriptFramework.jar $SOLARVER/$INPATH/inc/*/deliver.log In my case, the commend above prints: /x/solver/300/unxsoli4.pro/inc/scripting/deliver.log:COPY scripting/ unxsoli4.pro/class/ScriptFramework.jar unxsoli4.pro/bin/ScriptFramework.jar ScriptFramework.jar was not found in deliver log. [EMAIL PROTECTED] scripting]$ pwd /home/vuhung/public_html/foss/src/DEV300_m29/solver/300/ unxlngi6.pro/inc/scripting [EMAIL PROTECTED] scripting]$ grep ScriptFramework.jar * [EMAIL PROTECTED] scripting]$ LANG=en_US grep ScriptFramework.jar */* grep: */*: No such file or directory [EMAIL PROTECTED] scripting]$ ls build.lstdeliver.log storage/ [EMAIL PROTECTED] scripting]$ ls storage/ [EMAIL PROTECTED] scripting]$ So, in your case, building a module 'scripting' failed and/or 'deliver' command has not been executed in the module yet, or the module has not been built at all. What should I do now? gcc version 4.1.2 20071124 (Red Hat 4.1.2-42) I don't know whether gcc 4.1.2 works fine for building current OOo. What is the recommended version of gcc as well as other prerequisite libraries? And I will try to build with latest gcc 4.3.1. Btw, the problem I am facing now has nothing to do with gcc version. I am on another thread with Caolan and he says that (older) OOo can be built with gcc 4.1.2 , but the binary will crash. export CC=ccache gcc export CXX=ccache g++ I don't know whether ccache works fine for building current OOo. It is recommended by OOo team :). For faster build time. The command 'dmake' works depending on its own dependency files. In my first try, cd DEV300_m29; dmake cannot be found, so I specify its full path. Ignore it. export CXXFLAGS=-Werror export CFLAGS=-Werror -fvisibility=hidden ./configure --prefix=$HOME \ --disable-cups \ --disable-pam \ --with-jdk-home=/usr/local/jdk1.6.0_07/ \ --disable-mozilla \ --disable-qadevooo \ --without-system-stdlibs \ --disable-odk \ --with-use-shell=bash \ --with-vendor=Vietnamese Localization Build \ --disable-vba \ --with-use-shell=bash \ --with-ant-home=/usr/local/ant/ \ --without-java \ Looks too complicated. I cannot make any comments on that... I just tried to disable anything I don't need. --with-jdk-home=/usr/local/jdk1.6.0_07 and --without-java seems to be abnormal but I hope it is fine(?). Question: Why with --without-java, dmake still looks for a .jar file? source LinuxX86Env.Set.sh http://linuxx86env.set.sh/ export SOLENV=`pwd`/solenv/ ./solenv/unxlngi6/bin/dmake Why do you need to explicitly specify the path to dmake instead of simply type dmake? A PATH environment variable should be set properly by LinuxX86Env.Set.sh and should help your command shell find dmake. Try type the following to check your environment: which dmake See above, I've checked and which dmake *IS* ./solenv/unxlngi6/bin/dmake. Sorry for the confusion. If your command shell answers another dmake, something goes wrongly. Additionally, in the next time, try to log everything: e.g. dmake 21 | tee dmake_`date +%Y%m%d_%H%M`.log And then look for outputs beginning with a line Building project scripting in the log file. I didn't find that string. However Building module scripting is found and it is nothing unusual. Full dmake log: http://aoclife.ddo.jp/~vuhung/foss/src/DEV300_m29/dmake_20080822_0013.log One more question: My configure output contains a warning: checking for xrandr = 1.2... checking X11/extensions/Xrandr.h usability... no checking X11/extensions/Xrandr.h presence... yes configure: WARNING: X11/extensions/Xrandr.h: present but cannot be compiled configure: WARNING: X11/extensions/Xrandr.h: check for missing prerequisite headers? configure: WARNING: X11/extensions/Xrandr.h: see the Autoconf documentation configure: WARNING: X11/extensions/Xrandr.h: section Present But Cannot Be Compiled configure: WARNING: X11/extensions/Xrandr.h: proceeding with the preprocessor's result configure: WARNING: X11/extensions/Xrandr.h: in the future, the compiler will take precedence Is that safe to ignore? -- Best Regards, Nguyen Hung Vu ( Nguyễn Vũ Hưng ) [EMAIL PROTECTED] [EMAIL PROTECTED], YIM: vuhung16 , Skype: vuhung16dg Japan through an eye of a gaijin: http://www.flickr.com/photos/vuhung/tags/fav/
Re: [dev] DEV300_m29: compiling ERROR: File not found: ScriptFramework.jar
Hi, What i can propose here is not to disable any options of ./configure since there would be possibilities of unexpected behaviors. ./configure --disable-something will set or unset some environment variables defined in LinuxX86Env.Set.sh 'dmake' or 'build' will work depending on the values of the environment variables. 'solenv/bin/make_installer.pl' would work depending on the value of the same environment variables as expected or would ignore the values. I mean that there is possibility that the following situation might happen: One or more options you specified by --disable-something suppressed creation of ScriptFramework.jar, but make_installer.pl does not take care of the options and expected the existence of ScriptFramework.jar but it was not created. Consequently, build process resulted in failure. Hung Nguyen Vu wrote: What should I do now? If you want to make all options work as expected, you can investigate your results more deeply and propose some patches for the Tools project. If you want to just build OOo, try not to disable any options of ./configure, including Java and install somewhat old versions of tools and use them. Those would be the simplest way to successfully go through the build process, I think. For example, some modules will be built with a tool Ant. Ant requires Java. Hence, a process of building OOo definitely requires Java. --with-jdk-home=/usr/local/jdk1.6.0_07 and --without-java seems to be abnormal but I hope it is fine(?). That seems not to make sense. But I am not sure about that since I have no experience in disabling Java. Some old versions of Ant does not work with the latest version of Java, 1.6. For instance, /usr/bin/ant Apache Ant version 1.6.2 embedded in Fedora Core 4 does not work with /usr/java/jdk1.6.0_03 from java.com. It unfortunately stops with the following error message: Exception in thread main java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher It, however, works fine with both /usr/java/j2sdk1.4.1_03 from java.com and /usr/bin/java embedded in Fedora Core 4. $ /usr/bin/java -version java version 1.4.2 gij (GNU libgcj) version 4.0.0 20050519 (Red Hat 4.0.0-8) Therefore, using the latest tools might brings you some difficulties. One more question: My configure output contains a warning: checking for xrandr = 1.2... checking X11/extensions/Xrandr.h usability... no checking X11/extensions/Xrandr.h presence... yes configure: WARNING: X11/extensions/Xrandr.h: present but cannot be compiled configure: WARNING: X11/extensions/Xrandr.h: check for missing prerequisite headers? configure: WARNING: X11/extensions/Xrandr.h: see the Autoconf documentation configure: WARNING: X11/extensions/Xrandr.h: section Present But Cannot Be Compiled configure: WARNING: X11/extensions/Xrandr.h: proceeding with the preprocessor's result configure: WARNING: X11/extensions/Xrandr.h: in the future, the compiler will take precedence Is that safe to ignore? I am sorry, i have no information on that. caio, Tora - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] DEV300_m29: compiling ERROR: File not found: ScriptFramework.jar
Hi *, On Thu, Aug 21, 2008 at 5:31 PM, Hung Nguyen Vu [EMAIL PROTECTED] wrote: On Thu, Aug 21, 2008 at 11:50 PM, tora - Takamichi Akiyama [EMAIL PROTECTED] wrote: [...] So, in your case, building a module 'scripting' failed and/or 'deliver' command has not been executed in the module yet, or the module has not been built at all. What should I do now? cd to the $SRC_ROOT/scripting directory and try to run build there export CC=ccache gcc export CXX=ccache g++ I don't know whether ccache works fine for building current OOo. It is recommended by OOo team :). For faster build time. Yes, and it definitely works. (although I prefer the symlink approach, not the environment variables, but that doesn't matter) The command 'dmake' works depending on its own dependency files. In my first try, cd DEV300_m29; dmake cannot be found, so I specify its full path. Ignore it. No, Don't ignore it. Since that clearly shows that something is wrong with your environment. Better work on fixing it before trying workarounds that break in even more obscure ways. If you cannot just run dmake after sourcing the environment file, then something is really wrong, and you should post your environment file. export CXXFLAGS=-Werror export CFLAGS=-Werror -fvisibility=hidden This doesn't work. And it is begging for build-problems. Only enable -Werror after you finished a build successfuly. Only fiddle with additional compiler flags once you succesfully finished a plain build. Furthermore these two are unneccessary anyway. configure checks for the visibility feature anyway, and if you want warnings=errors, pass --enable-werror to configure. ./configure --prefix=$HOME \ --disable-cups \ Don't want to print with your OOo on modern distros/make use of cups features? Hmm... --disable-pam \ --with-jdk-home=/usr/local/jdk1.6.0_07/ \ OK, but... --disable-mozilla \ --disable-qadevooo \ --without-system-stdlibs \ --disable-odk \ --with-use-shell=bash \ --with-vendor=Vietnamese Localization Build \ --disable-vba \ --with-use-shell=bash \ this is specified twice... --with-ant-home=/usr/local/ant/ \ --without-java \ and this is a problem. Looks too complicated. I cannot make any comments on that... I can.. I just tried to disable anything I don't need. --with-jdk-home=/usr/local/jdk1.6.0_07 and --without-java seems to be abnormal but I hope it is fine(?). No. apparently it is not. and jar sounds like it is java, isn't it? So when you tell OOo not to use java during the build, it cannot compile java stuff... Question: Why with --without-java, dmake still looks for a .jar file? Congratulations, you found a dependency bug. ciao Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] DEV300_m29: compiling ERROR: File not found: ScriptFramework.jar
On Fri, Aug 22, 2008 at 2:23 AM, Christian Lohmaier [EMAIL PROTECTED]wrote: Hi *, On Thu, Aug 21, 2008 at 5:31 PM, Hung Nguyen Vu [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On Thu, Aug 21, 2008 at 11:50 PM, tora - Takamichi Akiyama [EMAIL PROTECTED] wrote: [...] So, in your case, building a module 'scripting' failed and/or 'deliver' command has not been executed in the module yet, or the module has not been built at all. What should I do now? cd to the $SRC_ROOT/scripting directory and try to run build there It didn't work. I got the same error ( could not find jar file ). export CC=ccache gcc export CXX=ccache g++ Yes, and it definitely works. (although I prefer the symlink approach, not the environment variables, but that doesn't matter) alias gcc=ccache gcc works as well. In my first try, cd DEV300_m29; dmake cannot be found, so I specify its No, Don't ignore it. Since that clearly shows that something is wrong with your environment. Better work on fixing it before trying workarounds that break in even more obscure ways. Only in my first try, I did something wrong and dmake could not be found. Now, it is fine. If you cannot just run dmake after sourcing the environment file, then something is really wrong, and you should post your environment file. I make the whole source tree viewable, as well as the env file. http://aoclife.ddo.jp/~vuhung/foss/src/DEV300_m29/ http://aoclife.ddo.jp/~vuhung/foss/src/DEV300_m29/LinuxX86Env.Set.sh export CXXFLAGS=-Werror export CFLAGS=-Werror -fvisibility=hidden This doesn't work. And it is begging for build-problems. Only enable -Werror after you finished a build successfuly. Only fiddle with additional compiler flags once you succesfully finished a plain build. Furthermore these two are unneccessary anyway. configure checks for the visibility feature anyway, and if you want warnings=errors, pass --enable-werror to configure. I will remove CXXFLAGS and CFLAGS in the next build. I thought with -Werror, the standard output in my terminal will be cleaner, which is worng. ./configure --prefix=$HOME \ --disable-cups \ Don't want to print with your OOo on modern distros/make use of cups features? Hmm... I don't use cups. But I will build OOo with cups support next time. --disable-mozilla \ Do we really need this? Mozilla is too big! --with-use-shell=bash \ --with-use-shell=bash \ this is specified twice... I weird thing I've noticed: Though --with-use-shell=bash was set in ./configure, ./configure reports: The variable SHELL is set to: /bin/tcsh after its run. # I always use bash! No. apparently it is not. and jar sounds like it is java, isn't it? So when you tell OOo not to use java during the build, it cannot compile java stuff... java, python, uno are not my goals at the moment. I need a binary first. Question: Why with --without-java, dmake still looks for a .jar file? Congratulations, you found a dependency bug. Where should I commit a bug? http://qa.openoffice.org/issues/enter_bug.cgi What component does this bug belong to? -- Best Regards, Nguyen Hung Vu ( Nguyễn Vũ Hưng ) [EMAIL PROTECTED] [EMAIL PROTECTED], YIM: vuhung16 , Skype: vuhung16dg Japan through an eye of a gaijin: http://www.flickr.com/photos/vuhung/tags/fav/
Re: [dev] DEV300_m29: compiling ERROR: File not found: ScriptFramework.jar
Hi, So, in your case, building a module 'scripting' failed and/or 'deliver' command has not been executed in the module yet, or the module has not been built at all. What should I do now? cd to the $SRC_ROOT/scripting directory and try to run build there It didn't work. I got the same error ( could not find jar file ). 1. Do the ./configure in the directory config_office with appropriate options on the new terminal emulator. 2. source LinuxX86Env.Set.sh 3. cd $SRC_ROOT/scripting 4. mv unxlngi6.pro unxlngi6.pro-failed or build depend=1 5. cd $SRC_ROOT and then build OOo entirely. (date; time dmake; date) 21 | tee dmake_`date +%Y%m%d_%H%M`.log or 3. cd $SRC_ROOT/scripting 4. mv unxlngi6.pro unxlngi6.pro-failed 5. (date; time build.pl product=full; date) 21 | tee build_`date +%Y%m%d_%H%M`.log 6. (date; time deliver.pl; date) 21 | tee deliver_`date +%Y%m%d_%H%M`.log 7. cd $SRC_ROOT/instsetoo_native 8. (date; time build.pl --from scripting product=full; date) 21 | tee build_`date +%Y%m%d_%H%M`.log caio, Tora - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]