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

boards/native: Remove macOS as native target #18735

Merged
merged 1 commit into from
Oct 26, 2022

Conversation

Teufelchen1
Copy link
Contributor

Hi! 👋

Since building for macOS native is broken for a loooong time now and fixing it is far from trivial;
This removes building for macOS native.

It still builds for Linux on my machine. Please double check that and can somebody test the freebsd target?
How and where would one add an info message for macOS users who try to build native? Do we even want that?

Makefile.include Outdated
Comment on lines 208 to 213
# If native, TOOLCHAIN for OSX is llvm
ifeq ($(BOARD),native)
ifeq ($(OS),Darwin)
TOOLCHAIN ?= llvm
endif
endif
Copy link
Member

Choose a reason for hiding this comment

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

Maybe keep this, but add an error message instead of setting the toolchain instead to mitigate some confused forum questions?

ifeq ($(BOARD),native)
  ifeq ($(OS),Darwin)
    $(shell $(COLOR_ECHO) "$(COLOR_RED)"Buildin on macOS is not supported."\
	    "We recommend vagrant for building:$(COLOR_RESET)"\
	    "https://github.com/RIOT-OS/RIOT/blob/master/dist/tools/vagrant/README.md 1>&2)
  endif
endif

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I implemented your suggestion. Still builds on my linux machine. On macOS, the error is printed but it still tries to build the application (which then fails ofc).

@miri64
Copy link
Member

miri64 commented Oct 13, 2022

Please double check that and can somebody test the freebsd target?

See e.g #14631 for the state of that.

@github-actions github-actions bot added Area: build system Area: Build system Area: cpu Area: CPU/MCU ports Area: doc Area: Documentation Area: Kconfig Area: Kconfig integration Platform: native Platform: This PR/issue effects the native platform labels Oct 25, 2022
Makefile.include Outdated
ifeq ($(BOARD),native)
ifeq ($(OS),Darwin)
TOOLCHAIN ?= llvm
$(shell $(COLOR_ECHO) "$(COLOR_RED)"Buildin on macOS is not supported."\
"We recommend vagrant for building:$(COLOR_RESET)"\
Copy link
Member

Choose a reason for hiding this comment

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

No mixing tabs and spaces ;-P

Suggested change
"We recommend vagrant for building:$(COLOR_RESET)"\
"We recommend vagrant for building:$(COLOR_RESET)"\

@miri64 miri64 added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Oct 25, 2022
Copy link
Member

@miri64 miri64 left a comment

Choose a reason for hiding this comment

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

ACK. Murdock should point out any issues.

@miri64 miri64 enabled auto-merge October 25, 2022 17:26
@riot-ci
Copy link

riot-ci commented Oct 25, 2022

Murdock results

✔️ PASSED

35a06c4 boards/native: Remove macOS as native target

Success Failures Total Runtime
1991 0 1991 06m:40s

Artifacts

This only reflects a subset of all builds from https://ci-prod.riot-os.org. Please refer to https://ci.riot-os.org for a complete build for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: build system Area: Build system Area: cpu Area: CPU/MCU ports Area: doc Area: Documentation Area: Kconfig Area: Kconfig integration CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Platform: native Platform: This PR/issue effects the native platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants