Hi,

I'm trying to build AOSP od macOS. After dealing with few problem, I'm 
having a hard time with (I hope) the last one. Please give me some advise:

[  0% 53/69590] //external/selinux/checkpolicy:checkpolicy yacc 
policy_parse.y [darwin]

FAILED: out/soong/.intermediates/external/selinux/checkpolicy/checkpolicy/
darwin_x86_64/gen/yacc/external/selinux/checkpolicy/policy_parse.c out/soong
/.intermediates/external/selinux/checkpolicy/checkpolicy/darwin_x86_64/gen/
yacc/external/selinux/checkpolicy/policy_parse.h 

BISON_PKGDATADIR=external/bison/data prebuilts/misc/darwin-x86/bison/bison -
d  --defines=out/soong/.intermediates/external/selinux/checkpolicy/
checkpolicy/darwin_x86_64/gen/yacc/external/selinux/checkpolicy/policy_parse
.h -o out/soong/.intermediates/external/selinux/checkpolicy/checkpolicy/
darwin_x86_64/gen/yacc/external/selinux/checkpolicy/policy_parse.c external/
selinux/checkpolicy/policy_parse.y

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.
xctoolchain/usr/bin/gm4:stdin:1: cannot open `m4sugar/foreach.m4': No such 
file or directory

external/selinux/checkpolicy/policy_parse.y: fatal error: invalid @ in 
skeleton: @$ were specified by the user.

                                                             -*- C -*-



# Yacc compatible skeleton for Bison



# Copyright (C) 1984, 1989-1990, 2000-2012 Free Software Foundation,

# Inc.



# This program is free software: you can redistribute it and/or modify

# it under the terms of the GNU General Public License as published by

# the Free Software Foundation, either version 3 of the License, or

# (at your option) any later version.

#

# This program is distributed in the hope that it will be useful,

# but WITHOUT ANY WARRANTY; without even the implied warranty of

# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

# GNU General Public License for more details.

#

# You should have received a copy of the GNU General Public License

# along with this program.  If not, see <http://www.gnu.org/licenses/>.



# Check the value of %define api.push-pull.

b4_percent_define_default([api.push-pull], [pull])

b4_percent_define_check_values([[[api.push-pull]],

                                 [[pull]], [[push]], [[both]]])

b4_define_flag_if(pull) 

b4_define_flag_if(push) 





# Handle BISON_USE_PUSH_FOR_PULL for the test suite.  So that push parsing

# tests function as written, do not let BISON_USE_PUSH_FOR_PULL modify the

# behavior of Bison at all when push parsing is already requested.

b4_define_flag_if(use_push_for_pull)

b4_use_push_for_pull_if(

  b4_push_if([m4_define([b4_use_push_for_pull_flag], [[0]])],

             [m4_define([b4_push_flag], [[1]])]))



# Check the value of %define parse.lac and friends, where LAC stands for

# lookahead correction.

b4_percent_define_default([parse.lac], [none])

b4_percent_define_default([parse.lac.es-capacity-initial], [20])

b4_percent_define_default([parse.lac.memory-trace], [failures])

b4_percent_define_check_values([[[parse.lac]], [[full]], [[none]]],

                               [[[parse.lac.memory-trace]],

                                 [[failures]], [[full]]])

b4_define_flag_if(lac)





                                                            -*- Autoconf -*-



# C M4 Macros for Bison.



# Copyright (C) 2002, 2004-2012 Free Software Foundation, Inc.



# This program is free software: you can redistribute it and/or modify

# it under the terms of the GNU General Public License as published by

# the Free Software Foundation, either version 3 of the License, or

# (at your option) any later version.

#

# This program is distributed in the hope that it will be useful,

# but WITHOUT ANY WARRANTY; without even the implied warranty of

# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

# GNU General Public License for more details.

#

# You should have received a copy of the GNU General Public License

# along with this program.  If not, see <http://www.gnu.org/licenses/>.



                                                            -*- Autoconf -*-



# Common code for C-like languages (C, C++, Java, etc.)



# Copyright (C) 2012 Free Software Foundation, Inc.



# This program is free software: you can redistribute it and/or modify

# it under the terms of the GNU General Public License as published by

# the Free Software Foundation, either version 3 of the License, or

# (at your option) any later version.

#

# This program is distributed in the hope that it will be useful,

# but WITHOUT ANY WARRANTY; without even the implied warranty of

# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

# GNU General Public License for more details.

#

# You should have received a copy of the GNU General Public License

# along with this program.  If not, see <http://www.gnu.org/licenses/>.



# b4_dollar_dollar_(VALUE, FIELD, DEFAULT-FIELD)

# ----------------------------------------------

# If FIELD (or DEFAULT-FIELD) is non-null, return "VALUE.FIELD",

# otherwise just VALUE.  Be sure to pass "(VALUE)" is VALUE is a

# pointer.





# b4_dollar_pushdef(VALUE-POINTER, DEFAULT-FIELD, LOCATION)

# b4_dollar_popdef

# ---------------------------------------------------------

# Define b4_dollar_dollar for VALUE and DEFAULT-FIELD,

# and b4_at_dollar for LOCATION.









# b4_tocpp(STRING)

# ----------------

# Convert STRING into a valid C macro name.







# b4_cpp_guard(FILE)

# ------------------

# A valid C macro name to use as a CPP header guard for FILE.







# b4_cpp_guard_open(FILE)

# b4_cpp_guard_close(FILE)

# ------------------------

# If FILE does not expand to nothing, open/close CPP inclusion guards for 
FILE.











## ---------------- ##

## Identification.  ##

## ---------------- ##



# b4_comment(TEXT)

# ----------------





# b4_identification

# -----------------

# Depends on individual skeletons to define b4_pure_flag, b4_push_flag, or

# b4_pull_flag if they use the values of the %define variables api.pure or

# api.push-pull.







## ---------------- ##

## Default values.  ##

## ---------------- ##



# b4_api_prefix, b4_api_PREFIX

# ----------------------------

# Corresponds to %define api.prefix

b4_percent_define_default([api.prefix], [yy])









# b4_prefix

# ---------

# If the %name-prefix is not given, it is api.prefix.





# If the %union is not named, its name is YYSTYPE.







## ------------------------ ##

## Pure/impure interfaces.  ##

## ------------------------ ##



# b4_user_args

# ------------







# b4_parse_param

# --------------

# If defined, b4_parse_param arrives double quoted, but below we prefer

# it to be single quoted.







# b4_parse_param_for(DECL, FORMAL, BODY)

# ---------------------------------------

# Iterate over the user parameters, binding the declaration to DECL,

# the formal name to FORMAL, and evaluating the BODY.





# b4_parse_param_use

# ------------------

# `YYUSE' all the parse-params.







## ------------ ##

## Data Types.  ##

## ------------ ##



# b4_int_type(MIN, MAX)

# ---------------------

# Return the smallest int type able to handle numbers ranging from

# MIN to MAX (included).







# b4_int_type_for(NAME)

# ---------------------

# Return the smallest int type able to handle numbers ranging from

# `NAME_min' to `NAME_max' (included).







# b4_table_value_equals(TABLE, VALUE, LITERAL)

# --------------------------------------------

# Without inducing a comparison warning from the compiler, check if the

# literal value LITERAL equals VALUE from table TABLE, which must have

# TABLE_min and TABLE_max defined.  YYID must be defined as an identity

# function that suppresses warnings about constant conditions.







## ---------##

## Values.  ##

## ---------##





# b4_null_define

# --------------

# Portability issues: define a YY_NULL appropriate for the current

# language (C, C++98, or C++11).







# b4_null

# -------

# Return a null pointer constant.









## ------------------------- ##

## Assigning token numbers.  ##

## ------------------------- ##



# b4_token_define(TOKEN-NAME, TOKEN-NUMBER)

# -----------------------------------------

# Output the definition of this token as #define.







# b4_token_defines(LIST-OF-PAIRS-TOKEN-NAME-TOKEN-NUMBER)

# -------------------------------------------------------

# Output the definition of the tokens (if there are) as #defines.







# b4_token_enum(TOKEN-NAME, TOKEN-NUMBER)

# ---------------------------------------

# Output the definition of this token as an enum.







# b4_token_enums(LIST-OF-PAIRS-TOKEN-NAME-TOKEN-NUMBER)

# -----------------------------------------------------

# Output the definition of the tokens (if there are) as enums.







# b4_token_enums_defines(LIST-OF-PAIRS-TOKEN-NAME-TOKEN-NUMBER)

# -------------------------------------------------------------

# Output the definition of the tokens (if there are any) as enums and, if 
POSIX

# Yacc is enabled, as #defines.









## --------------------------------------------- ##

## Defining C functions in both K&R and ANSI-C.  ##

## --------------------------------------------- ##





# b4_modern_c

# -----------

# A predicate useful in #if to determine whether C is ancient or modern.

#

# If __STDC__ is defined, the compiler is modern.  IBM xlc 7.0 when run

# as 'cc' doesn't define __STDC__ (or __STDC_VERSION__) for pedantic

# reasons, but it defines __C99__FUNC__ so check that as well.

# Microsoft C normally doesn't define these macros, but it defines _MSC_VER.

# Consider a C++ compiler to be modern if it defines __cplusplus.

#





# b4_c_function_def(NAME, RETURN-VALUE, [DECL1, NAME1], ...)

# ----------------------------------------------------------

# Declare the function NAME.







# b4_c_ansi_function_def(NAME, RETURN-VALUE, [DECL1, NAME1], ...)

# ---------------------------------------------------------------

# Declare the function NAME in ANSI.







# b4_c_ansi_formals([DECL1, NAME1], ...)

# --------------------------------------

# Output the arguments ANSI-C definition.











# b4_c_knr_formal_names([DECL1, NAME1], ...)

# ------------------------------------------

# Output the argument names.











# b4_c_knr_formal_decls([DECL1, NAME1], ...)

# ------------------------------------------

# Output the K&R argument declarations.













## ------------------------------------------------------------ ##

## Declaring (prototyping) C functions in both K&R and ANSI-C.  ##

## ------------------------------------------------------------ ##





# b4_c_ansi_function_decl(NAME, RETURN-VALUE, [DECL1, NAME1], ...)

# ----------------------------------------------------------------

# Declare the function NAME ANSI C style.









# b4_c_function_decl(NAME, RETURN-VALUE, [DECL1, NAME1], ...)

# -----------------------------------------------------------

# Declare the function NAME in both K&R and ANSI C.









## --------------------- ##

## Calling C functions.  ##

## --------------------- ##





# b4_c_function_call(NAME, RETURN-VALUE, [DECL1, NAME1], ...)

# -----------------------------------------------------------

# Call the function NAME with arguments NAME1, NAME2 etc.







# b4_c_args([DECL1, NAME1], ...)

# ------------------------------

# Output the arguments NAME1, NAME2...











## ----------- ##

## Synclines.  ##

## ----------- ##



# b4_sync_start(LINE, FILE)

# -----------------------







## -------------- ##

## User actions.  ##

## -------------- ##



# b4_case(LABEL, STATEMENTS)

# --------------------------





# b4_symbol_actions(FILENAME, LINENO,

#                   SYMBOL-TAG, SYMBOL-NUM,

#                   SYMBOL-ACTION, SYMBOL-TYPENAME)

# -------------------------------------------------

# Issue the code for a symbol action (e.g., %printer).

#

# Define b4_dollar_dollar([TYPE-NAME]), and b4_at_dollar, which are

[  0% 54/69590] //external/skia:libskia clang++ 
src/core/SkColorSpaceXformer.cpp

ninja: build stopped: subcommand failed.

12:03:16 ninja failed with: exit status 1



#### failed to build some targets (01:24 (mm:ss)) ####

Regards,
Tom.

-- 
-- 
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