Compile trunk-6164 with GUI 0.9.323 - General Discussion and Assistance - CHDK Forum

Compile trunk-6164 with GUI 0.9.323

  • 10 Replies
  • 2345 Views
Compile trunk-6164 with GUI 0.9.323
« on: 25 / September / 2022, 19:50:41 »
Advertisements
Hi,

I'm trying to compile trunk-6164 for the SX160IS on Win10, from the Chdk compiler GUI 0.9.323 and I get this err.txt in the log:

/usr/bin/sh: zero: command not found
gmake: *** [firsub] Error 127


It seems like it can't find gmake.exe?, but it is there. 
The zip files don't get created either. It does compile *.C to *.O as you can see in the attached log.txt.

It all worked fine until last week or so. I never had a problem with it for years.
Attached is log.txt.


Any help will be appreciated.
Thanks!
« Last Edit: 25 / September / 2022, 20:04:38 by sequencer »

*

Offline reyalp

  • ******
  • 14079
Re: Compile trunk-6164 with GUI 0.9.323
« Reply #1 on: 25 / September / 2022, 20:11:33 »
Hi,

I'm trying to compile trunk-6164 for the SX160IS on Win10, from the Chdk compiler GUI 0.9.323 and I get this err.txt in the log:

/usr/bin/sh: zero: command not found
gmake: *** [firsub] Error 127


It seems like it can't find gmake.exe?, but it is there. 
No, the error says "zero" is not found. From your screenshot, you have ZERO100K checked, and this option attempts to use a command called zero on windows. This option should not be needed.
Don't forget what the H stands for.

Re: Compile trunk-6164 with GUI 0.9.323
« Reply #2 on: 25 / September / 2022, 20:19:08 »


That was it!
I might have clicked on it by mistake.
Thanks reyalp!


Re: Compile trunk-6164 with GUI 0.9.323
« Reply #3 on: 26 / September / 2022, 12:17:03 »
@reyalp


The recent posts in this thread has tweaked my interest in seeing if I can compile my own (Win based) version of CHDK, in the end tweaking a bit of it maybe ;-)


Anyway, my question is: is there a go to place to take an idiot like me through such a process and give me access to the minimum tool set I need, eg like the CHDK GUI compiler shown in the previous post.


As you know, my only experience is with Lua scripting.


Cheers


Garry


*

Offline reyalp

  • ******
  • 14079
Re: Compile trunk-6164 with GUI 0.9.323
« Reply #4 on: 26 / September / 2022, 21:41:39 »
Anyway, my question is: is there a go to place to take an idiot like me through such a process and give me access to the minimum tool set I need, eg like the CHDK GUI compiler shown in the previous post.
The windows GUI thread should generally have what you need https://chdk.setepontos.com/index.php?topic=12752.0

You need the gui, toolchain and (for digic 6 and later cams) the capstone libraries, all linked from the first post.
Don't forget what the H stands for.

Re: Compile trunk-6164 with GUI 0.9.323
« Reply #5 on: 26 / September / 2022, 21:58:36 »
Anyway, my question is: is there a go to place to take an idiot like me through such a process and give me access to the minimum tool set I need, eg like the CHDK GUI compiler shown in the previous post.
The windows GUI thread should generally have what you need https://chdk.setepontos.com/index.php?topic=12752.0

You need the gui, toolchain and (for digic 6 and later cams) the capstone libraries, all linked from the first post.

Many thanks. Now ‘all’ I need is the time and courage to try it ;-)
« Last Edit: 27 / September / 2022, 08:19:45 by pigeonhill »

*

Offline Caefix

  • *****
  • 945
  • Sorry, busy deleting test shots...
Re: Compile trunk-6164 with GUI 0.9.323
« Reply #6 on: 01 / January / 2023, 14:50:50 »
 :o 1st Problem this year, with #6217? :blink:

Tried to compile pure for Sx270, got
Quote
code_gen2.c: In function 'disassemble':
code_gen2.c:770:5: error: 'for' loop initial declarations are only allowed in C99 mode
     for (t_value i = 0; i < length && cur_line < nxt_line;) {
     ^
code_gen2.c:770:5: note: use option -std=c99 or -std=gnu99 to compile your code
gmake[1]: *** [code_gen2.o] Error 1
gmake: *** [all-recursive] Error 1
:) ...it works with host_rules.inc:
Code: [Select]
HOSTCFLAGS=-g -O2 -std=gnu99 -Wall -DBUILD_NUMBER=\"$(BUILD_NUMBER)\" -I$(modules)
All lifetime is a loan from eternity.

*

Offline reyalp

  • ******
  • 14079
Re: Compile trunk-6164 with GUI 0.9.323
« Reply #7 on: 01 / January / 2023, 20:29:04 »
:o 1st Problem this year, with #6217? :blink:

Tried to compile pure for Sx270, got
Code: [Select]
code_gen2.c: In function 'disassemble':
code_gen2.c:770:5: error: 'for' loop initial declarations are only allowed in C99 mode
     for (t_value i = 0; i < length && cur_line < nxt_line;) {
Thanks for reporting, should be fixed in r6218. Out of curiosity, what toolchain did you use?

I converted offending declaration to old style, but we should probably pick a standard  :-[

I would expect gnu99 should certainly be supported by anything people are using
Don't forget what the H stands for.


*

Offline Caefix

  • *****
  • 945
  • Sorry, busy deleting test shots...
Re: Compile trunk-6164 with GUI 0.9.323
« Reply #8 on: 02 / January / 2023, 09:00:04 »
should be fixed in r6218. Out of curiosity, what toolchain did you use?
It´s fine now, (gcc493)  :D
Quote
I would expect gnu99 should certainly be supported by anything people are using
For me it always worked in arm_rules.inc  :)

Synchronizing my code to trunk breaks at  :-[
Quote
../../../../lib/core/.o4/libcore.a(module_hashlist.o):(.data+0x484): undefined reference to `get_playback_image_number'
collect2.exe: error: ld returned 1 exit status
gmake[1]: *** [main.elf] Error 1
Found no hint in forum... :(

Edit: Only in files I didn´t touch.  :-[
Code: [Select]
Search "get_playback_image_number" (7 hits in 6 files of 8538 searched)
  D:\hostluaPortable\CHDK-Shell\trunk\trunk-6217\bin\logs\err.txt (1 hit)
Line 35: ../../../../lib/core/.o/libcore.a(module_hashlist.o):(.data+0x484): undefined reference to `get_playback_image_number'
  D:\hostluaPortable\CHDK-Shell\trunk\trunk-6217\include\file_counter.h (1 hit)
Line 14: char* get_playback_image_number();
  D:\hostluaPortable\CHDK-Shell\trunk\trunk-6217\modules\exportlist.inc (1 hit)
Line 272: 63744fe7 get_playback_image_number
  D:\hostluaPortable\CHDK-Shell\trunk\trunk-6217\modules\module_exportlist.c (1 hit)
Line 306:             get_playback_image_number
  D:\hostluaPortable\CHDK-Shell\trunk\trunk-6217\modules\module_hashlist.c (2 hits)
Line 151: extern void get_playback_image_number(void);
Line 555: { 0x63744fe7, get_playback_image_number },
  D:\hostluaPortable\CHDK-Shell\trunk\trunk-6217\modules\raw_ev_histo.c (1 hit)
Line 437:             char* n = get_playback_image_number();
« Last Edit: 02 / January / 2023, 11:33:17 by Caefix »
All lifetime is a loan from eternity.

*

Offline reyalp

  • ******
  • 14079
Re: Compile trunk-6164 with GUI 0.9.323
« Reply #9 on: 02 / January / 2023, 14:20:12 »
Synchronizing my code to trunk breaks at  :-[
Quote
../../../../lib/core/.o4/libcore.a(module_hashlist.o):(.data+0x484): undefined reference to `get_playback_image_number'
collect2.exe: error: ld returned 1 exit status
gmake[1]: *** [main.elf] Error 1
Found no hint in forum... :(
What camera are you building?

Quote
Edit: Only in files I didn´t touch
Given that the autobuild works, I'd guess there's something you should have touched but didn't. This function was added in the ximr branch ;)
Don't forget what the H stands for.

 

Related Topics