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

Fix posix newlib / disable posix lib on native_posix arch #13540

Merged
merged 2 commits into from
Feb 22, 2019

Conversation

galak
Copy link
Collaborator

@galak galak commented Feb 19, 2019

No description provided.

@galak galak changed the title Fix posix newlib Fix posix newlib / disable posix lib on native_posix arch Feb 19, 2019
@galak galak added area: POSIX POSIX API Library bug The issue is a bug, or the PR is fixing a bug area: Toolchains Toolchains labels Feb 19, 2019
@galak
Copy link
Collaborator Author

galak commented Feb 19, 2019

@vanti this should address the issue you reported in:

zephyrproject-rtos/sdk-ng#45

@galak galak requested a review from nashif February 19, 2019 22:58
@galak galak added this to the v1.14.0 milestone Feb 19, 2019
@codecov-io
Copy link

codecov-io commented Feb 19, 2019

Codecov Report

Merging #13540 into master will decrease coverage by 0.18%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #13540      +/-   ##
==========================================
- Coverage   52.45%   52.27%   -0.19%     
==========================================
  Files         322      300      -22     
  Lines       46592    45032    -1560     
  Branches    10768    10421     -347     
==========================================
- Hits        24442    23541     -901     
+ Misses      17247    16772     -475     
+ Partials     4903     4719     -184
Impacted Files Coverage Δ
arch/posix/core/posix_core.c 90.9% <0%> (-1.02%) ⬇️
kernel/include/ksched.h 91.76% <0%> (-0.38%) ⬇️
subsys/disk/disk_access.c
lib/posix/timer.c
subsys/fs/fs.c
lib/posix/pthread_key.c
lib/libc/minimal/include/fcntl.h
lib/posix/pthread_mutex.c
subsys/fs/fat_fs.c
lib/posix/pthread_common.c
... and 11 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d5351d8...2b11888. Read the comment docs.

@pfalcon
Copy link
Contributor

pfalcon commented Feb 20, 2019

recheck

Copy link
Contributor

@pfalcon pfalcon left a comment

Choose a reason for hiding this comment

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

Let me approve this as an incremental step towards resolving POSIX subsys issues (but likely not the final step, for example I'm sure we'l need to tweak includes back and forth).

@pfalcon
Copy link
Contributor

pfalcon commented Feb 20, 2019

Closing/reopening to get rid of CI timing test glitch.

@pfalcon pfalcon closed this Feb 20, 2019
@pfalcon pfalcon reopened this Feb 20, 2019
@vanti
Copy link
Collaborator

vanti commented Feb 20, 2019

@vanti this should address the issue you reported in:

zephyrproject-rtos/sdk-ng#45

@galak I added a test here: #13599 for that issue.

For now we are disabling support for POSIX lib on native posix arch.  We
need to cleanup and support POSIX lib cleanly for hardware targets.
Once that is working properly we can look to support the feature on
native posix arch.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
Both SDK 0.10.0-beta2 and the ARM gcc 2018q2 run into a build issue with
newlib and conflict definitions of mode_t type.

First we need to add some ifdef protection if mode_t is already defined
and set _MODE_T_DECLARED if we are the first to define it.

Secondarily, we rename include/posix/sys/types.h to
include/posix/posix_types.h so that we aren't getting a name collusion
with the system sys/types.h and that we can easily and clearily include
it (which we need to do to pull in the info from newlib).

Fixes: zephyrproject-rtos#12224

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
@galak galak merged commit e96d029 into zephyrproject-rtos:master Feb 22, 2019
@galak galak deleted the fix-posix-newlib branch February 22, 2019 17:55
@aescolar aescolar added the area: native port Host native arch port (native_sim) label Mar 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: native port Host native arch port (native_sim) area: POSIX POSIX API Library area: Toolchains Toolchains bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants