Problems building WP34s



#9

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 ****


#10

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.


#11

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.


#12

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.


#13

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.


#14

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


#15

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?


#16

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.


Possibly Related Threads...
Thread Author Replies Views Last Post
  Building WP 34s emulator on Linux Eric Smith 3 920 07-25-2013, 03:03 PM
Last Post: Marcus von Cube, Germany
  Questions about building a RAM card for hp 48 Waon Shinyoe (China) 0 642 07-09-2013, 09:53 PM
Last Post: Waon Shinyoe (China)
  [WP34S] WP34S firmware on the AT91SAM7L-STK dev kit? jerome ibanes 1 708 10-04-2012, 04:59 PM
Last Post: Paul Dale
  Building WP-34S calc.bin from source - long post (sorry!) Nigel J Dowrick 5 1,274 07-14-2012, 07:41 AM
Last Post: Paul Dale
  Problem building calc.bin? Ed Wright 9 1,513 03-29-2012, 02:02 PM
Last Post: Marcus von Cube, Germany
  Help building WP34s calc.bin Ed Wright 11 1,844 02-19-2012, 04:26 AM
Last Post: Marcus von Cube, Germany
  [wp34s] Incomplete Gamma on the wp34s Les Wright 18 2,914 12-06-2011, 11:07 AM
Last Post: Namir
  [wp34s] Romberg Integration on the wp34s Les Wright 2 908 12-04-2011, 10:49 PM
Last Post: Les Wright
  Instructions for building WP-34s loads. Dominic Richens 27 3,558 09-27-2011, 01:39 AM
Last Post: Walter B
  WP34s: flash problems fhub 3 752 08-11-2011, 04:53 AM
Last Post: Paul Dale

Forum Jump: