The Museum of HP Calculators

HP Forum Archive 21

[ Return to Index | Top of Index ]

Problems building WP34s
Message #1 Posted by Harald on 8 Mar 2012, 3:17 p.m.

I have installed Yagarto, minGW, activeperl and Visual C++. Cheked out the project from SVN and hit the build button in Eclipse. Unfortunately I get the folling error:

...... -DUSECURSES -o windows32/obj/winserial.o winserial.c mingw32-gcc -E -P -x c -Ixrom -DCOMPILE_XROM xrom.wp34s > xrom_pre.wp34s tools/wp34s_asm.pl -pp -op tools/wp34s.op -c -o xrom.c xrom_pre.wp34s // WP 34S assembly preprocessor enabled: '-pp' // Opcode map source: tools/wp34s.op (specified) // Opcode SVN version: -- unknown -- // DEBUG: wp34s_asm.pl::run_pp: Stools/ F B'wp34s_pp.pl' // Running WP 34S preprocessor from: tools/wp34s_pp.pl Out of memory during request for 4080 bytes, total sbrk() is 267778048 bytes! make: *** [xrom.c] Error 1

What is going wrong here?

Alternatively I can click on the "flash" or "xtal" make target and then get the following error - which I don't understand either, because the path is correct.

...... tools/wp34s_asm.pl -pp -op tools/wp34s.op -c -o xrom.c xrom_pre.wp34s ERROR: C:\ARM_toolchain\workspace\wp34s\tools\wp34s_asm.pl::run_pp: Cannot locate the assembly preprocessor in 'wp34s_pp.pl' or './wp34s_pp.pl' // WP 34S assembly preprocessor enabled: '-pp' // Opcode map source: tools/wp34s.op (specified) // Opcode SVN version: -- unknown -- // DEBUG: C:\ARM_toolchain\workspace\wp34s\tools\wp34s_asm.pl::run_pp: S./ F B'wp34s_pp.pl' mingw32-make[1]: *** [xrom.c] Error 2 mingw32-make[1]: Leaving directory `C:/ARM_toolchain/workspace/wp34s' make: *** [realbuild/calc.bin] Error 2 make: Target `all' not remade because of errors.

**** Build Finished ****

      
Re: Problems building WP34s
Message #2 Posted by Marcus von Cube, Germany on 9 Mar 2012, 2:48 a.m.,
in response to message #1 by Harald

I see two problems:

You need to run "make REALBUILD=1 all" in Eclipse which requires a custom make target. I don't know why this isn't part of the eclipse project. I fear this is only stored in the (local) workspace. Just running "make all" will build the Windows console version which is nice for testing but not for any real use. The flash.cmd file does the right things for you.

In your second approach I see the next problem: Somehow ActivePerl cannot reliably compile the XROM part of the project (keystroke programs building part of the math library.) You should try to run Neil's tools from the command line on a simple input file (e. g. from the library) to make sure it works correctly. Better extend the PATH variable to point to the tools directory of the project.

BTW, next time surround you pasted messages by [pre] tags to tell the forum software to keep the line ends intact, please. It makes a better reading.

            
Re: Problems building WP34s
Message #3 Posted by Harald on 9 Mar 2012, 7:54 p.m.,
in response to message #2 by Marcus von Cube, Germany

Quote:
In your second approach I see the next problem: Somehow ActivePerl cannot reliably compile the XROM part of the project (keystroke programs building part of the math library.) You should try to run Neil's tools from the command line on a simple input file (e. g. from the library) to make sure it works correctly. Better extend the PATH variable to point to the tools directory of the project.

I did get it to sort of work on the comand line now. compiling the XROM works there, and I do get a calc.bin and a calc_xtal.bin. But not the _full versions or the emulator. I am not really bothered about the emulator though.

I now get the following errors (on the comand line)
usr/bin/sh: grep: command not found
usr/bin/sh: tail: command not found
I guess one shouldn't try to do software if one hasn't got a clue about these things... ;)

Quote:
BTW, next time surround you pasted messages by [pre] tags to tell the forum software to keep the line ends intact, please. It makes a better reading.

Thanks, I was wondering how to do this here.

                  
Re: Problems building WP34s
Message #4 Posted by pascal_meheut on 10 Mar 2012, 12:36 a.m.,
in response to message #3 by Harald

Try to install MSYS, the MINGW part wich contains grep, tail, etc. And add it to your PATH.

The README_QTGUI.txt in the trunk/QtGui directory try to explains how to compile the project, at least to build the emulator.

                        
Re: Problems building WP34s
Message #5 Posted by Harald on 11 Mar 2012, 5:39 p.m.,
in response to message #4 by pascal_meheut

msys was installed, but not in the path. However that only got me to the next error message. So the conclusion is, that the software will have to stay as it is...time to give up on this.

Thanks for all your help.

                              
Re: Problems building WP34s
Message #6 Posted by Marcus von Cube, Germany on 12 Mar 2012, 5:24 a.m.,
in response to message #5 by Harald

What is the message? Your information might help us to create a HOW TO for building the software.

                                    
Re: Problems building WP34s
Message #7 Posted by Harald on 12 Mar 2012, 8:26 a.m.,
in response to message #6 by Marcus von Cube, Germany

grep and tail both crash with the message "grep/tail hat ein Problem festgestellt und muß beendet werden" Unfortunately there is no further info as to what the problem is. I am running Windows XP SP3. Has the build process been tested on XP? Or is it related to my Operating system?

                                          
Re: Problems building WP34s
Message #8 Posted by Marcus von Cube, Germany on 12 Mar 2012, 10:56 a.m.,
in response to message #7 by Harald

grep and tail should work :-(. These are standard Unix utilities. Your MinGW installation must be broken.

I'm doing all my work in an XP virtual machine on my Mac.


[ Return to Index | Top of Index ]

Go back to the main exhibit hall