native_posix on MacOS? #builds
Allen Curtis
Hello,
Before I waste a lot of time, could someone tell me if building Zephyr to run natively on MacOS is supported? I am getting the following error messages regarding GEN_OFFSET_SYM() and GEN_ABSOLUTE_SYM(). Thanks Allens-MacBook-Pro:build-posix allencurtis$ /usr/bin/clang -DBUILD_VERSION=zephyr-v1.14.0-2172-g3f057403cb43 -DKERNEL -D_POSIX_C_SOURCE=200809 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D__ZEPHYR__=1 -I../../../kernel/include -I../../../arch/posix/include -I../../../include -I../../../include/drivers -Izephyr/include/generated -I../../../soc/posix/inf_clock -I../../../boards/posix/native_posix -Os -imacros/Users/allencurtis/zephyrproject/zephyr/samples/hello_world/build-posix/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -imacros/Users/allencurtis/zephyrproject/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wno-sometimes-uninitialized -Wno-shift-overflow -Wno-missing-braces -Wno-self-assign -Wno-address-of-packed-member -Wno-unused-function -Wno-initializer-overrides -Wno-section -Wno-unknown-warning-option -Wno-unused-variable -Wno-format-invalid-specifier -Wno-gnu -Wno-tautological-compare -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -ffunction-sections -fdata-sections -m32 -MMD -MP -include /Users/allencurtis/zephyrproject/zephyr/arch/posix/include/posix_cheats.h -std=c11 -MD -MT zephyr/CMakeFiles/offsets.dir/arch/posix/core/offsets/offsets.c.obj -MF zephyr/CMakeFiles/offsets.dir/arch/posix/core/offsets/offsets.c.obj.d -o zephyr/CMakeFiles/offsets.dir/arch/posix/core/offsets/offsets.c.obj -c /Users/allencurtis/zephyrproject/zephyr/arch/posix/core/offsets/offsets.c 2> error.txt ../../../kernel/include/kernel_offsets.h:27:1: error: unknown directive GEN_OFFSET_SYM(_kernel_t, current); ^ ../../../kernel/include/gen_offset.h:80:2: note: expanded from macro 'GEN_OFFSET_SYM' GEN_ABSOLUTE_SYM(__##S##_##M##_##OFFSET, offsetof(S, M)) ^ ../../../include/toolchain/gcc.h:369:6: note: expanded from macro 'GEN_ABSOLUTE_SYM' "\n\t.type\t" #name ",@object" : : "n"(value)) ^ <inline asm>:3:2: note: instantiated into assembly here .type ___kernel_t_current_OFFSET,@object
|
|
alpi@...
Hi,
> could someone tell me if building Zephyr to run natively on MacOS is supported? https://github.com/zephyrproject-rtos/zephyr/issues/10945
BR
From: devel@... <devel@...>
On Behalf Of allen via Lists.Zephyrproject.Org
Sent: Monday 9 September 2019 05:51 To: devel@... Cc: devel@... Subject: [Zephyr-devel] native_posix on MacOS? #builds
Hello, Allens-MacBook-Pro:build-posix allencurtis$ /usr/bin/clang -DBUILD_VERSION=zephyr-v1.14.0-2172-g3f057403cb43 -DKERNEL -D_POSIX_C_SOURCE=200809 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D__ZEPHYR__=1 -I../../../kernel/include
-I../../../arch/posix/include -I../../../include -I../../../include/drivers -Izephyr/include/generated -I../../../soc/posix/inf_clock -I../../../boards/posix/native_posix -Os -imacros/Users/allencurtis/zephyrproject/zephyr/samples/hello_world/build-posix/zephyr/include/generated/autoconf.h
-ffreestanding -fno-common -g -imacros/Users/allencurtis/zephyrproject/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wno-sometimes-uninitialized -Wno-shift-overflow
-Wno-missing-braces -Wno-self-assign -Wno-address-of-packed-member -Wno-unused-function -Wno-initializer-overrides -Wno-section -Wno-unknown-warning-option -Wno-unused-variable -Wno-format-invalid-specifier -Wno-gnu -Wno-tautological-compare -Werror=implicit-int
-fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -ffunction-sections -fdata-sections -m32 -MMD -MP -include /Users/allencurtis/zephyrproject/zephyr/arch/posix/include/posix_cheats.h -std=c11 -MD -MT zephyr/CMakeFiles/offsets.dir/arch/posix/core/offsets/offsets.c.obj
-MF zephyr/CMakeFiles/offsets.dir/arch/posix/core/offsets/offsets.c.obj.d -o zephyr/CMakeFiles/offsets.dir/arch/posix/core/offsets/offsets.c.obj
-c /Users/allencurtis/zephyrproject/zephyr/arch/posix/core/offsets/offsets.c 2> error.txt ../../../kernel/include/kernel_offsets.h:27:1: error: unknown directive GEN_OFFSET_SYM(_kernel_t, current); ^ ../../../kernel/include/gen_offset.h:80:2: note: expanded from macro 'GEN_OFFSET_SYM' GEN_ABSOLUTE_SYM(__##S##_##M##_##OFFSET, offsetof(S, M)) ^ ../../../include/toolchain/gcc.h:369:6: note: expanded from macro 'GEN_ABSOLUTE_SYM' "\n\t.type\t" #name ",@object" : : "n"(value)) ^ <inline asm>:3:2: note: instantiated into assembly here .type ___kernel_t_current_OFFSET,@object
|
|
Allen Curtis
Thanks Alberto, Everything works great in my Linux VM. Perhaps this is an area I could lend a hand. Allen
On Mon, Sep 9, 2019 at 4:54 AM Alberto Escolar Piedras (ALPI) <ALPI@...> wrote:
--
Allen Curtis Medical Device Architect Critical Software Solutions, LLC
|
|
alpi@...
> Perhaps this is an area I could lend a hand.
You’d be very welcome.
From: Allen Curtis <allen@...>
Sent: Monday 9 September 2019 16:23 To: Alberto Escolar Piedras (ALPI) <ALPI@...> Cc: devel@... Subject: Re: [Zephyr-devel] native_posix on MacOS? #builds
Thanks Alberto,
Everything works great in my Linux VM. Perhaps this is an area I could lend a hand.
Allen
On Mon, Sep 9, 2019 at 4:54 AM Alberto Escolar Piedras (ALPI) <ALPI@...> wrote:
-- Allen Curtis Medical Device Architect Critical Software Solutions, LLC
|
|