SEAndroid 4.0.4 make error since the code move
A message that is not in the archive (sent off-list or not yet received): CC3C1F53.6A7B%[email protected]
Hi everyone,
I needed to go back and pull the 4.0.4 source, so I followed these instructions from the website:
git clone -b seandroid-4.0.4 https://bitbucket.org/seandroid/manifests.git
mkdir seandroid-4.0.4
cd seandroid-4.0.4
repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.4_r2.1
cp ../manifests/local_manifest.xml .repo/
repo sync
However, now I'm getting these make errors when I'm building:
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror] <built-in>:0:0: note: this is the location of the previous definition
cc1plus: all warnings being treated as errors
make: *** [out/host/linux-x86/obj/EXECUTABLES/obbtool_intermediates/Main.o] Error 1
Has anyone else seen this since the move of the code to git?
Regards,
Gia Nguyen
Quoted 32 lines · Gia T. Nguyen
Hi everyone,
I needed to go back and pull the 4.0.4 source, so I followed these instructions from the website:
git clone -b seandroid-4.0.4
https://bitbucket.org/seandroid/manifests.git
mkdir seandroid-4.0.4
cd seandroid-4.0.4
repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.4_r2.1
cp../manifests/local_manifest.xml.repo/
repo syncHowever, now I'm getting these make errors when I'm building:
<command-line>:0:0: warning: "
_FORTIFY_SOURCE" redefined [enabled by default]
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror] <built-in>:0:0: note: this is the location of the previous definition
cc1plus: all warnings being treated as errors
make: *** [out/host/linux-x86/obj/EXECUTABLES/obbtool_intermediates/Main.o] Error 1
Quoted 1 line
Has anyone else seen this since the move of the code to git?
That's not SE Android specific; it just means you are building 4.0.4 on an unsupported build host OS. So you can either use a supported build host OS for 4.0.4 or manually apply the corresponding build fixes that already exist on master.
Signature · 8 lines
Stephen Smalley National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 33 lines · Stephen Smalley
Quoted 32 lines · Gia T. Nguyen
Hi everyone,
I needed to go back and pull the 4.0.4 source, so I followed these instructions from the website:
git clone -b seandroid-4.0.4
https://bitbucket.org/seandroid/manifests.git
mkdir seandroid-4.0.4
cd seandroid-4.0.4
repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.4_r2.1
cp../manifests/local_manifest.xml.repo/
repo syncHowever, now I'm getting these make errors when I'm building:
<command-line>:0:0: warning: "
_FORTIFY_SOURCE" redefined [enabled by default]
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror] <built-in>:0:0: note: this is the location of the previous definition
cc1plus: all warnings being treated as errors
make: *** [out/host/linux-x86/obj/EXECUTABLES/obbtool_intermediates/Main.o] Error 1
Quoted 6 lines
Quoted 1 line
Has anyone else seen this since the move of the code to git?
That's not SE Android specific; it just means you are building 4.0.4 on an unsupported build host OS. So you can either use a supported build host OS for 4.0.4 or manually apply the corresponding build fixes that already exist on master.
Per prior discussions on android-building, this can be worked around by changing build/core/combo/HOST_linux-x86.mk, replacing:HOST_GLOBAL_CFLAGS += -D_FORTIFY_SOURCE=0
with:HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
But you may run into other issues building 4.0.4 with an unsupported build host OS.
Signature · 8 lines
Stephen Smalley National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Thank you, Steve. I've never had issues with using my OS to build before, but I will try your suggestion.
Regards,
Gia N.
Quoted 41 lines · Stephen Smalley
Quoted 33 lines · Stephen Smalley
Quoted 32 lines · Gia T. Nguyen
Hi everyone,
I needed to go back and pull the 4.0.4 source, so I followed these instructions from the website:
git clone -b seandroid-4.0.4
https://bitbucket.org/seandroid/manifests.git
mkdir seandroid-4.0.4
cd seandroid-4.0.4
repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.4_r2.1
cp../manifests/local_manifest.xml.repo/
repo syncHowever, now I'm getting these make errors when I'm building:
<command-line>:0:0: warning: "
_FORTIFY_SOURCE" redefined [enabled by default]
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror] <built-in>:0:0: note: this is the location of the previous definition
cc1plus: all warnings being treated as errors
make: *** [out/host/linux-x86/obj/EXECUTABLES/obbtool_intermediates/Main.o] Error 1Quoted 6 lines
Quoted 1 line
Has anyone else seen this since the move of the code to git?
That's not SE Android specific; it just means you are building 4.0.4 on an unsupported build host OS. So you can either use a supported build host OS for 4.0.4 or manually apply the corresponding build fixes that already exist on master.
Quoted 20 lines
Per prior discussions on android-building, this can be worked around by changing
build/core/combo/HOST_linux-x86.mk, replacing:HOST_GLOBAL_CFLAGS+= -D_FORTIFY_SOURCE=0
with:HOST_GLOBAL_CFLAGS+= -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0But you may run into other issues building 4.0.4 with an unsupported build host OS.
Signature · 9 lines
Stephen Smalley National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.