Skip to content

toolchain: fortify-headers: fix __fh_overlap() build error - #20574

Closed
AndyChiang888 wants to merge 1 commit into
openwrt:mainfrom
AndyChiang888:dtc
Closed

AndyChiang888 wants to merge 1 commit into
openwrt:mainfrom
AndyChiang888:dtc

Conversation

@AndyChiang888

@AndyChiang888 AndyChiang888 commented Oct 28, 2025 •

Copy link
Copy Markdown
Contributor

This fixes the following compile error when compiling dtc:

../../../../staging_dir/toolchain-x86_64_gcc-15.2.0_musl/include/fortify/string.h: In function 'memcpy':
../../../../staging_dir/toolchain-x86_64_gcc-15.2.0_musl/include/fortify/fortify-headers.h:136:31: error: cast discards 'const' qualifier from pointer target type [-Werror=cast-qual]

See:
6268692#commitcomment-168867998
096739a#commitcomment-168865302
https://github.com/openwrt/openwrt/actions/runs/18831304277/job/53723163525?pr=20562
https://github.com/openwrt/openwrt/actions/runs/18866296497/job/53834525684

This fixes the following compile error when compiling dtc:
```
../../../../staging_dir/toolchain-x86_64_gcc-15.2.0_musl/include/fortify/string.h: In function 'memcpy':
../../../../staging_dir/toolchain-x86_64_gcc-15.2.0_musl/include/fortify/fortify-headers.h:136:31: error: cast discards 'const' qualifier from pointer target type [-Werror=cast-qual]
```

Signed-off-by: Andy Chiang <[email protected]>
@github-actions github-actions Bot added the toolchain pull request/issue with toolchain related changes label Oct 28, 2025
@AndyChiang888
AndyChiang888 deleted the dtc branch October 28, 2025 22:30
@Neustradamus

Copy link
Copy Markdown

@AndyChiang888: Why have you closed this PR?

@AndyChiang888

Copy link
Copy Markdown
Contributor Author

fortify-headers has been reverted to an older version, so this patch is no longer needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

toolchain pull request/issue with toolchain related changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants