Please help me!Thanks!

1,575 views
Skip to first unread message

q9444...@gmail.com

unread,
Dec 9, 2017, 12:18:22 PM12/9/17
to Android Building
When I builing the AOSP for my device ,I have a problem that I can't slove


home/jack/Mokee/O/out/soong/make_vars-mk_N939St.mk:362: warning: TARGET_GLOBAL_CFLAGS does not match between Make and Soong:
/home/jack/Mokee/O/out/soong/make_vars-mk_N939St.mk:362: warning: Make : -DNO_SECURE_DISCARD
/home/jack/Mokee/O/out/soong/make_vars-mk_N939St.mk:362: warning: Soong: -fno-exceptions -Wno-multichar -fno-strict-aliasing -fstack-protector-strong -ffunction-sections -fdata-sections -funwind-tables -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -fno-canonical-system-headers -Werror=pointer-to-int-cast -Werror=int-to-pointer-cast -Werror=implicit-function-declaration -fno-strict-volatile-bitfields -DNDEBUG -O2 -g -Wstrict-aliasing=2 -fgcse-after-reload -frerun-cse-after-loop -frename-registers -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -fdiagnostics-color -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -mcpu=cortex-a53
/home/jack/Mokee/O/out/soong/make_vars-mk_N939St.mk:810: error: Soong variable check failed.
18:19:38 ckati failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1

Dan Willemsen

unread,
Dec 9, 2017, 4:34:27 PM12/9/17
to Android Building
Somewhere in your modifications or device configuration you're setting TARGET_GLOBAL_CFLAGS to "-DNO_SECURE_DISCARD". We no longer support setting target-specific global cflags -- in the vast majority of cases it's not necessary, and should be set for just the components that are interested in it. This helps reduce unexpected consequences, and means that we can share intermediates that don't change between different device builds more easily.

- Dan


--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-building+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Blaze Ristov

unread,
Dec 10, 2017, 2:51:46 AM12/10/17
to android-...@googlegroups.com
In the file build/soong/android/makevars.go, there are these 3 lines:

ifneq ($(my_check_failed),false)
  $(error Soong variable check failed)
endif

Either remove them or just comment out the 2nd line ( # $(error Soong variable check failed) )

Dan Willemsen

unread,
Dec 11, 2017, 5:47:46 PM12/11/17
to Android Building
Please don't do that, your build will fail in some other way, since that check is there to ensure that the two build systems agree about options that they both need to use.

q9444...@gmail.com

unread,
Dec 22, 2017, 12:28:19 PM12/22/17
to Android Building
That's useful.Thanks!

Old3nglish 800

unread,
May 13, 2019, 3:36:43 PM5/13/19
to Android Building
Thank you, was helpful. 


On Saturday, December 9, 2017 at 11:51:46 PM UTC-8, quake73 wrote:
In the file build/soong/android/makevars.go, there are these 3 lines:

ifneq ($(my_check_failed),false)
  $(error Soong variable check failed)
endif

Either remove them or just comment out the 2nd line ( # $(error Soong variable check failed) )
On Fri, Dec 8, 2017 at 12:46 PM, <q9444...@gmail.com> wrote:
When I builing the AOSP for my device ,I have a problem that I can't slove


home/jack/Mokee/O/out/soong/make_vars-mk_N939St.mk:362: warning: TARGET_GLOBAL_CFLAGS does not match between Make and Soong:
/home/jack/Mokee/O/out/soong/make_vars-mk_N939St.mk:362: warning: Make : -DNO_SECURE_DISCARD
/home/jack/Mokee/O/out/soong/make_vars-mk_N939St.mk:362: warning: Soong: -fno-exceptions -Wno-multichar -fno-strict-aliasing -fstack-protector-strong -ffunction-sections -fdata-sections -funwind-tables -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -fno-canonical-system-headers -Werror=pointer-to-int-cast -Werror=int-to-pointer-cast -Werror=implicit-function-declaration -fno-strict-volatile-bitfields -DNDEBUG -O2 -g -Wstrict-aliasing=2 -fgcse-after-reload -frerun-cse-after-loop -frename-registers -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -fdiagnostics-color -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -mcpu=cortex-a53
/home/jack/Mokee/O/out/soong/make_vars-mk_N939St.mk:810: error: Soong variable check failed.
18:19:38 ckati failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com

To unsubscribe from this group, send email to

For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-...@googlegroups.com.

Dan Willemsen

unread,
May 13, 2019, 3:40:46 PM5/13/19
to Android Building
As I posted before: "Please don't do that, your build will fail in some other way, since that check is there to ensure that the two build systems agree about options that they both need to use."

- Dan


For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/c50b27cd-7392-46c3-a9d0-d6d8dc8e380c%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages