1.7 development planning thread - page 2 - General Discussion and Assistance - CHDK Forum

1.7 development planning thread

  • 12 Replies
  • 595 Views
*

Offline reyalp

  • ******
  • 13847
Re: 1.7 development planning thread
« Reply #10 on: 14 / October / 2022, 01:45:01 »
Advertisements
Merge is done and should be on the autobuilds shortly.
Don't forget what the H stands for.

*

Offline whim

  • ******
  • 2044
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: 1.7 development planning thread
« Reply #11 on: 14 / October / 2022, 15:07:52 »
@philmoz
@reyalp
hi guys, ,

Rev 6197 stubbornly refused to boot for me on ixus70_sd1000, but I think I found what
the problem is: the CFLAGS+=etc statements (lines 28 and 35) are followed by
(line 42): CFLAGS=-fno-inline -Os -fno-strict-aliasing -fno-schedule-insns2
Since line 42 has CFLAGS= and not CFLAGS+= previous data are wiped ;)

Moving 'Disable GCC 10...etc' and 'ifdef OPT_WARNINGS' sections down and recompiling
did the trick (attached my diff)

wim

arm_rules.inc @line 25
Code: [Select]
# Disable GCC 10 (and later) optimisation that prevents build from booting on some cameras.
# See https://chdk.setepontos.com/index.php?topic=14281.0
ifneq ($(GCC_VERSION_MAJOR),$(filter $(GCC_VERSION_MAJOR),4 5 8 9))
    CFLAGS+=-fno-tree-loop-distribute-patterns
endif

ifdef OPT_WARNINGS
    CFLAGS+=-Wextra -Wunused
    # Disable some warnings added in GCC 8
    ifneq ($(GCC_VERSION_MAJOR),$(filter $(GCC_VERSION_MAJOR),4 5))
        CFLAGS+=-Wno-builtin-declaration-mismatch -Wno-implicit-fallthrough -Wno-cast-function-type
    endif
endif

# -fno-schedule-insns2 for this gcc bug http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38644
# technically not required for gcc >= 4.6.3, and probably not required for vxworks cams
# see http://chdk.setepontos.com/index.php?topic=8273.msg100205#msg100205
CFLAGS=-fno-inline -Os -fno-strict-aliasing -fno-schedule-insns2


*

Offline philmoz

  • *****
  • 3442
    • Photos
Re: 1.7 development planning thread
« Reply #12 on: 14 / October / 2022, 16:19:18 »
Rev 6197 stubbornly refused to boot for me on ixus70_sd1000, but I think I found what


Sorry about that. I was trying to keep the GCC_VERSION checks together and did not test it properly.


Should be fixed now.

CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

 

Related Topics