Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stress-ng: update to 0.14.03 #19048

Merged
merged 1 commit into from
Aug 16, 2022
Merged

Conversation

guijan
Copy link
Contributor

@guijan guijan commented Jul 25, 2022

Signed-off-by: Guilherme Janczak [email protected]

Maintainer: @commodo
Compile tested: x64, latest snapshot SDK as of today

@commodo
Copy link
Contributor

commodo commented Jul 25, 2022

is this build error new?

https://github.com/openwrt/packages/runs/7495316112?check_suite_focus=true

i am not sure if this was present;
tbh: the ARC toolchains have always been problematic

i'll need to see if we can somehow fix it (if it wasn't broken before);

@commodo
Copy link
Contributor

commodo commented Jul 25, 2022

other than ARC, rest is LGTM

@guijan
Copy link
Contributor Author

guijan commented Jul 25, 2022

It's new, the old version succeeded: https://github.com/openwrt/packages/runs/4019861942?check_suite_focus=true

Odd that this fails on ARC, the relevant Linux headers seem to be arch-independent...
Edit: there's actually a lot of #ifdef for different arches, they're not arch-independent at all.

@neheb
Copy link
Contributor

neheb commented Jul 26, 2022

Probably a result of glibc update.

@commodo
Copy link
Contributor

commodo commented Aug 12, 2022

@guijan

do you mind pulling this patch into this PR?
ColinIanKing/stress-ng#224

apologies for taking too long to get back, but this did require a bit of in-depth investigation to get to this point, even though the fix was relatively obvious;

tbh: i have no idea why this was working before; but it does look like __NR_fstat64 can be defined while __NR_fstat may be undefined; will also see if the maintainer agrees with me

thanks

@guijan
Copy link
Contributor Author

guijan commented Aug 12, 2022

Sorry, I didn't test adding the patch, I'll do it properly.

Signed-off-by: Guilherme Janczak <[email protected]>
Co-authored-by: Alexandru Ardelean <[email protected]>
ColinIanKing pushed a commit to ColinIanKing/stress-ng that referenced this pull request Aug 12, 2022
It seems that __NR_fstat64 may be defined while __NR_fstat may be
undefined.
Looking at the kernel file 'include/uapi/asm-generic/unistd.h' this looks
possible where there is a 32-bit arch.

In any case, checking that __NR_fstat64 exists/has-a-value when adding it
to the table looks like a good idea, vs adding __NR_fstat.

This was found when updating stress-ng here:
  openwrt/packages#19048

The ARCHS (or ARC) build is failing. No idea why it's the only one.
But this patch fixes it.

Signed-off-by: Alexandru Ardelean <[email protected]>
-#if !defined(__PCC__) && \
- !defined(__TINYC__)
-#define _FORTIFY_SOURCE 2
-#endif
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this patch is fine, but i don't see it fixing errors;
it's fixing warnings;

if possible i would send it upstream to have it discussed with them;
they are reasonably quick;

i would not carry patches in our tree if they don't fix anything more grave;

@commodo commodo merged commit ca78c20 into openwrt:master Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants