Using sudo is your problem, you should never need to use sudo in order to
build. sudo clears large amounts of the environment for security reasons,
and the lunch configuration is stored in the environment. To recover, you
likely need to either recursively chown or remove your out directory, since
it'll be owned by root.

m and make do mostly the same thing as long as you're at the root of the
source tree. 'm' is a macro that will find the root of the source tree and
run make there, so that you can be editing code, then run 'm' (or one of
the derivatives, see 'hmm' for help).

- Dan

On Thu, Jun 16, 2016 at 1:59 PM Alex Mayle <[email protected]> wrote:

> My branch is android-6.0.1_r45
>
> Okay, so this is pretty weird. Upon investigating, when I run lunch I get
> the configuration you included in your post. When I subsequently run make,
> I get the configuration I had described. This was reproducible as well.
> Alexs-MacBook-Pro-8:generic alexmayle$ cd /Volumes/android
> Alexs-MacBook-Pro-8:android alexmayle$ lunch aosp_bullhead-eng
>
> ============================================
> PLATFORM_VERSION_CODENAME=REL
> PLATFORM_VERSION=6.0.1
> TARGET_PRODUCT=aosp_bullhead
> TARGET_BUILD_VARIANT=eng
> TARGET_BUILD_TYPE=release
> TARGET_BUILD_APPS=
> TARGET_ARCH=arm64
> TARGET_ARCH_VARIANT=armv8-a
> TARGET_CPU_VARIANT=cortex-a53
> TARGET_2ND_ARCH=arm
> TARGET_2ND_ARCH_VARIANT=armv7-a-neon
> TARGET_2ND_CPU_VARIANT=cortex-a7
> HOST_ARCH=x86_64
> HOST_OS=darwin
> HOST_OS_EXTRA=Darwin-15.5.0-x86_64-i386-64bit
> HOST_BUILD_TYPE=release
> BUILD_ID=MTC19V
> OUT_DIR=out
> ============================================
>
> Alexs-MacBook-Pro-8:android alexmayle$ sudo make -j
> Password:
> ============================================
> PLATFORM_VERSION_CODENAME=REL
> PLATFORM_VERSION=6.0.1
> TARGET_PRODUCT=full
> TARGET_BUILD_VARIANT=eng
> TARGET_BUILD_TYPE=release
> TARGET_BUILD_APPS=
> TARGET_ARCH=arm
> TARGET_ARCH_VARIANT=armv7-a
> TARGET_CPU_VARIANT=generic
> TARGET_2ND_ARCH=
> TARGET_2ND_ARCH_VARIANT=
> TARGET_2ND_CPU_VARIANT=
> HOST_ARCH=x86_64
> HOST_OS=darwin
> HOST_OS_EXTRA=Darwin-15.5.0-x86_64-i386-64bit
> HOST_BUILD_TYPE=release
> BUILD_ID=MTC19V
> OUT_DIR=out
> ============================================
>
> However, when I run "m" instead of "make," I get the correct configuration
> that you posted.
>
> What is the difference between these two commands? I've never seen "m" in
> any of the guides.
>
>
> On Thursday, June 16, 2016 at 3:30:12 PM UTC-4, Dan Willemsen wrote:
>
>> That output doesn't match the steps you claimed -- for aosp_bullhead, it
>> should be creating out/target/product/bullhead/system.img, not
>> ...generic... Are you sure that you ran "lunch" and "m" in the same
>> directory? For generic targets, it's expected not to contain the boot or
>> recovery images (there isn't a kernel configured, so we can't build the
>> images). At the beginning of your build, you should see something like this
>> that will show the configuration that's being built:
>>
>> $ m -j55
>> ============================================
>> PLATFORM_VERSION_CODENAME=REL
>> PLATFORM_VERSION=6.0.1
>> TARGET_PRODUCT=aosp_bullhead
>> TARGET_BUILD_VARIANT=eng
>> TARGET_BUILD_TYPE=release
>> TARGET_BUILD_APPS=
>> TARGET_ARCH=arm64
>> TARGET_ARCH_VARIANT=armv8-a
>> TARGET_CPU_VARIANT=cortex-a53
>> TARGET_2ND_ARCH=arm
>> TARGET_2ND_ARCH_VARIANT=armv7-a-neon
>> TARGET_2ND_CPU_VARIANT=cortex-a7
>> HOST_ARCH=x86_64
>> HOST_2ND_ARCH=x86
>> HOST_OS=linux
>> HOST_CROSS_OS=windows
>> HOST_CROSS_ARCH=x86
>> HOST_CROSS_2ND_ARCH=x86_64
>> HOST_BUILD_TYPE=release
>> BUILD_ID=MASTER
>> OUT_DIR=out
>> ============================================
>>
>> Which branch are you using? You should always be able to get the build
>> success with the exit code (echo $?), but we've been printing large success
>> or failure messages for a while (assuming you didn't background the build).
>>
>> - Dan
>>
>> On Thu, Jun 16, 2016 at 12:11 PM Alex Mayle <[email protected]> wrote:
>>
> Also, here is the last couple lines of output from the build process.
>>> Creating filesystem with parameters:
>>>     Size: 1610612736
>>>     Block size: 4096
>>>     Blocks per group: 32768
>>>     Inodes per group: 8192
>>>     Inode size: 256
>>>     Journal blocks: 6144
>>>     Label: system
>>>     Blocks: 393216
>>>     Block groups: 12
>>>     Reserved block group size: 95
>>> Created filesystem with 1434/98304 inodes and 101063/393216 blocks
>>> Install system fs image: out/target/product/generic/system.img
>>> out/target/product/generic/system.img+ maxsize=1644333504 blocksize=2112
>>> total=1610612736 reserve=16610880
>>>
>>> --
>>> --
>>> You received this message because you are subscribed to the "Android
>>> Building" mailing list.
>>>
>> To post to this group, send email to [email protected]
>>
>>
>>> To unsubscribe from this group, send email to
>>>
>> [email protected]
>>
>>
>>> 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 [email protected].
>>
>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> 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 [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to