Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stylo failed to build #16

Closed
kenz-gelsoft opened this issue Apr 18, 2023 · 15 comments
Closed

stylo failed to build #16

kenz-gelsoft opened this issue Apr 18, 2023 · 15 comments

Comments

@kenz-gelsoft
Copy link
Owner

kenz-gelsoft commented Apr 18, 2023

  /boot/home/src/firefox-102.9.0/obj-a/dist/include/nsStyleStruct.h:1159:20: error: field has incomplete type 'nsTimingFunction', err: true
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/nsStyleStruct.h:1196:20: error: field has incomplete type 'nsTimingFunction', err: true
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/nsStyleStruct.h:1682:30: error: no member named 'SIZE' in 'mozilla::StyleContain', err: true
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/ServoStyleConsts.h:1:1: error: unknown type name 'WARN', err: true
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/ServoStyleConsts.h:1:5: error: expected unqualified-id, err: true
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/ServoStyleConsts.h:67:10: warning: missing terminating ' character [-Winvalid-pp-token], err: false
(snip)
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/ServoStyleConsts.h:854:10: warning: missing terminating ' character [-Winvalid-pp-token], err: false
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/origin_trials_ffi_generated.h:1:1: error: expected unqualified-id, err: true
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/js/Proxy.h:211:43: warning: offset of on non-standard-layout type 'js::BaseProxyHandler' [-Winvalid-offsetof], err: false
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/ServoStyleConsts.h:1:1: error: unknown type name 'WARN', err: true
  fatal error: too many errors emitted, stopping now [-ferror-limit=], err: true
  thread 'main' panicked at 'Failed to generate bindings, flags: ["/boot/home/src/firefox-102.9.0/obj-a/dist/include/nsNameSpaceManager.h", "--rust-target", "1.25", "--disable-untagged-union", "--bitfield-enum", "nsChangeHint", "--bitfield-enum", "mozilla::OriginFlags", "--bitfield-enum", "mozilla::StyleTextUnderlinePosition", "--rustified-enum", "nsCompatibility", "--rustified-enum", "mozilla::EffectCompositor_CascadeLevel", "--rustified-enum", "mozilla::SheetType", "--rustified-enum", "mozilla::dom::CallerType", "--rustified-enum", "mozilla::dom::IterationCompositeOperation", "--rustified-enum", "mozilla::dom::CompositeOperation", "--rustified-enum", "mozilla::InheritTarget", "--rustified-enum", "mozilla::css::DocumentMatchingFunction", "--rustified-enum", "mozilla::css::SheetParsingMode", "--rustified-enum", "nsStyleSVGOpacitySource", "--rustified-enum", "mozilla::dom::Document_DocumentTheme", "--rustified-enum", "mozilla::dom::Document_Type", "--rustified-enum", "mozilla::LookAndFeel_IntID", "--rustified-enum", "mozilla::LookAndFeel_FloatID", "--rustified-enum", "nsCSSUnit", "--rustified-enum", "nsCSSFontDesc", "--rustified-enum", "nsCSSPropertyID", "--rustified-enum", "nsCSSCounterDesc", "--rustified-enum", "nsresult", "--rustified-enum", "nsAtom_AtomKind", "--rustified-enum", "nsStyleImageLayers_LayerType", "--rustified-enum", "mozilla::ServoElementSnapshotFlags", "--rustified-enum", "mozilla::Side", "--rustified-enum", "mozilla::dom::PlaybackDirection", "--rustified-enum", "mozilla::dom::FillMode", "--rustified-enum", "mozilla::HalfCorner", "--rustified-enum", "mozilla::StyleFloatEdge", "--rustified-enum", "mozilla::StyleShapeRadius", "--rustified-enum", "mozilla::StyleWindowDragging", "--rustified-enum", "mozilla::StyleAnimationPlayState", "--rustified-enum", "mozilla::StyleOrient", "--rustified-enum", "mozilla::StyleBoxSizing", "--rustified-enum", "mozilla::StyleClear", "--rustified-enum", "mozilla::StyleColumnFill", "--rustified-enum", "mozilla::StyleColumnSpan", "--rustified-enum", "mozilla::StyleDirection", "--rustified-enum", "mozilla::StyleFloat", "--rustified-enum", "mozilla::StyleImageOrientation", "--rustified-enum", "mozilla::StyleInert", "--rustified-enum", "mozilla::StyleUserModify", "--rustified-enum", "mozilla::StyleUserInput", "--rustified-enum", "mozilla::StyleBoxDirection", "--rustified-enum", "mozilla::StyleRubyAlign", "--rustified-enum", "mozilla::StyleTextSizeAdjust", "--rustified-enum", "mozilla::StyleHyphens", "--rustified-enum", "mozilla::StyleRubyPosition", "--rustified-enum", "mozilla::StyleShapeSourceType", "--rustified-enum", "mozilla::StyleVisibility", "--rustified-enum", "mozilla::StyleBasicShapeType", "--rustified-enum", "nsStyleImageLayers_Size_DimensionType", "--rustified-enum", "mozilla::StyleBorderCollapse", "--rustified-enum", "mozilla::StyleBorderImageRepeat", "--rustified-enum", "mozilla::StyleBoxPack", "--rustified-enum", "mozilla::StyleWindowShadow", "--rustified-enum", "mozilla::StyleDominantBaseline", "--rustified-enum", "mozilla::StyleBoxOrient", "--rustified-enum", "mozilla::StyleBoxAlign", "--rustified-enum", "mozilla::StyleUserFocus", "--rustified-enum", "mozilla::StyleUserSelect", "--rustified-enum", "mozilla::StyleImageLayerRepeat", "--rustified-enum", "mozilla::StyleImageLayerAttachment", "--rustified-enum", "mozilla::StylePositionProperty", "--rustified-enum", "mozilla::StyleBoxDecorationBreak", "--rustified-enum", "mozilla::StyleBorderStyle", "--rustified-enum", "mozilla::StyleRuleInclusion", "--rustified-enum", "mozilla::StyleGridTrackBreadth", "--rustified-enum", "mozilla::StyleOverscrollBehavior", "--rustified-enum", "mozilla::StyleImeMode", "--rustified-enum", "mozilla::StyleOverflowAnchor", "--rustified-enum", "mozilla::StylePointerEvents", "--rustified-enum", "mozilla::StyleScrollbarWidth", "--rustified-enum", "mozilla::StyleWhiteSpace", "--rustified-enum", "mozilla::StyleTextRendering", "--rustified-enum", "mozilla::StyleFlexDirection", "--rustified-enum", "mozilla::StyleStrokeLinecap", "--rustified-enum", "mozilla::StyleStrokeLinejoin", "--rustified-enum", "mozilla::StyleFlexWrap", "--rustified-enum", "mozilla::StyleMathVariant", "--rustified-enum", "mozilla::StyleTextDecorationSkipInk", "--rustified-enum", "mozilla::StyleTextDecorationLength", "--rustified-enum", "mozilla::StyleMaskType", "--rustified-enum", "mozilla::StyleShapeRendering", "--rustified-enum", "mozilla::StyleTextAnchor", "--rustified-enum", "mozilla::StyleObjectFit", "--rustified-enum", "mozilla::StyleTopLayer", "--rustified-enum", "mozilla::StyleIsolation", "--rustified-enum", "mozilla::StyleTextOrientation", "--rustified-enum", "mozilla::StyleTableLayout", "--rustified-enum", "mozilla::StyleEmptyCells", "--rustified-enum", "nsStyleImageType", "--rustified-enum", "nsINode_BooleanFlag", "--rustified-enum", "mozilla::PseudoStyleType", "--rustified-enum", "mozilla::LookAndFeel_ColorID", "--rustified-enum", "mozilla::LookAndFeel_FontID", "--rustified-enum", "nsStyleTransformMatrix::MatrixTransformOperator", "--rustified-enum", "mozilla::StyleGeometryBox", "--rustified-enum", "mozilla::SystemColor", "--rustified-enum", "mozilla::StyleMaskMode", "--rustified-enum", "mozilla::StyleScrollBehavior", "--rustified-enum", "mozilla::StyleColorInterpolation", "--rustified-enum", "mozilla::StyleVectorEffect", "--rustified-enum", "mozilla::StyleBackfaceVisibility", "--rustified-enum", "mozilla::StyleBlend", "--rustified-enum", "mozilla::StyleMaskComposite", "--rustified-enum", "mozilla::StyleWritingModeProperty", "--blacklist-type", ".*char_traits", "--blacklist-type", ".*incompatible_char_type", "--blacklist-type", "mozilla::StyleTimingFunction.*", "--blacklist-type", "mozilla::StyleGenericTransformOperation_.*", "--blacklist-type", "mozilla::StyleAnimationTimeline", "--blacklist-type", "mozilla::StyleAppearance", "--blacklist-type", "mozilla::StyleAspectRatio", "--blacklist-type", "mozilla::StyleComputedFontStretchRange", "--blacklist-type", "mozilla::StyleComputedFontStyleDescriptor", "--blacklist-type", "mozilla::StyleComputedFontWeightRange", "--blacklist-type", "mozilla::StyleComputedTimingFunction", "--blacklist-type", "mozilla::StylePrefersContrast", "--blacklist-type", "mozilla::StyleCursorKind", "--blacklist-type", "mozilla::StyleDisplay", "--blacklist-type", "mozilla::StyleDisplayMode", "--blacklist-type", "mozilla::StylePlatform", "--blacklist-type", "mozilla::StylePrefersColorScheme", "--blacklist-type", "mozilla::StyleDynamicRange", "--blacklist-type", "mozilla::StyleFillRule", "--blacklist-type", "mozilla::StyleFontDisplay", "--blacklist-type", "mozilla::StyleFontFaceSourceListComponent", "--blacklist-type", "mozilla::StyleFontLanguageOverride", "--blacklist-type", "mozilla::StyleOffsetPath", "--blacklist-type", "mozilla::StyleGenericOffsetPath", "--blacklist-type", "mozilla::StyleOffsetRotate", "--blacklist-type", "mozilla::StylePathCommand", "--blacklist-type", "mozilla::StyleRayFunction", "--blacklist-type", "mozilla::StyleUnicodeRange", "--blacklist-type", "mozilla::StyleOverflowWrap", "--blacklist-type", "mozilla::StyleWordBreak", "--blacklist-type", "mozilla::StyleTextJustify", "--blacklist-type", "mozilla::StyleMozControlCharacterVisibility", "--blacklist-type", "mozilla::StyleLineBreak", "--blacklist-type", "mozilla::StyleUserSelect", "--blacklist-type", "mozilla::StyleBreakBetween", "--blacklist-type", "mozilla::StyleBreakWithin", "--blacklist-type", "mozilla::StyleBorderStyle", "--blacklist-type", "mozilla::StyleOutlineStyle", "--blacklist-type", "mozilla::StyleScrollDirection", "--blacklist-type", "mozilla::StyleScrollSnapAlign", "--blacklist-type", "mozilla::StyleScrollSnapStrictness", "--blacklist-type", "mozilla::StyleScrollSnapType", "--blacklist-type", "mozilla::StyleResize", "--blacklist-type", "mozilla::StyleOverflowClipBox", "--blacklist-type", "mozilla::StyleFloat", "--blacklist-type", "mozilla::StyleOverscrollBehavior", "--blacklist-type", "mozilla::StyleTextAlign", "--blacklist-type", "mozilla::StyleTextAlignLast", "--blacklist-type", "mozilla::StyleTextOverflow", "--blacklist-type", "mozilla::StyleOverflow", "--blacklist-type", "mozilla::StyleOverflowAnchor", "--blacklist-type", "mozilla::StyleTextDecorationSkipInk", "--blacklist-type", "mozilla::StyleTextDecorationLength", "--blacklist-type", "mozilla::StyleRubyPosition", "--blacklist-type", "mozilla::StyleLength", "--blacklist-type", "mozilla::StyleLengthPercentage", "--blacklist-type", "mozilla::StyleNonNegativeLengthPercentage", "--blacklist-type", "mozilla::StyleGenericLengthPercentageOrAuto", "--blacklist-type", "mozilla::StyleGenericLengthPercentageOrNormal", "--blacklist-type", "mozilla::StyleLengthPercentageOrAuto", "--blacklist-type", "mozilla::StyleNonNegativeLengthPercentageOrAuto", "--blacklist-type", "mozilla::StyleRect", "--blacklist-type", "mozilla::StyleIntersectionObserverRootMargin", "--blacklist-type", "mozilla::StyleGenericSize", "--blacklist-type", "mozilla::StyleGenericMaxSize", "--blacklist-type", "mozilla::StyleGenericFlexBasis", "--blacklist-type", "mozilla::StyleSize", "--blacklist-type", "mozilla::StyleMaxSize", "--blacklist-type", "mozilla::StyleFlexBasis", "--blacklist-type", "mozilla::StylePosition", "--blacklist-type", "mozilla::StylePositionOrAuto", "--blacklist-type", "mozilla::StyleGenericPositionOrAuto", "--blacklist-type", "mozilla::StyleBackgroundSize", "--blacklist-type", "mozilla::StyleGenericBackgroundSize", "--blacklist-type", "mozilla::StyleBorderImageSlice", "--blacklist-type", "mozilla::StyleGenericLengthOrNumber", "--blacklist-type", "mozilla::StyleCSSPixelLength", "--blacklist-type", "mozilla::StyleNonNegativeLength", "--blacklist-type", "mozilla::StyleNonNegativeNumber", "--blacklist-type", "mozilla::StyleZeroToOneNumber", "--blacklist-type", "mozilla::StylePercentage", "--blacklist-type", "mozilla::StylePerspective", "--blacklist-type", "mozilla::StyleGenericPerspective", "--blacklist-type", "mozilla::StyleZIndex", "--blacklist-type", "mozilla::StyleGenericZIndex", "--blacklist-type", "mozilla::StyleTransformOrigin", "--blacklist-type", "mozilla::StyleTransformStyle", "--blacklist-type", "mozilla::StyleGenericBorderRadius", "--blacklist-type", "mozilla::StyleLetterSpacing", "--blacklist-type", "mozilla::StyleGenericLineHeight", "--blacklist-type", "mozilla::StyleCaretColor", "--blacklist-type", "mozilla::StyleContain", "--blacklist-type", "mozilla::StyleContainerType", "--blacklist-type", "mozilla::StyleContainerName", "--blacklist-type", "mozilla::StyleRestyleHint", "--blacklist-type", "mozilla::StyleTouchAction", "--blacklist-type", "mozilla::StyleWillChange", "--blacklist-type", "mozilla::StyleColorScheme", "--blacklist-type", "mozilla::StyleTextDecorationLine", "--blacklist-type", "mozilla::StyleTextTransform", "--blacklist-type", "mozilla::StyleTextUnderlinePosition", "--blacklist-type", "mozilla::StyleOwned", "--blacklist-type", "mozilla::StyleOwnedOrNull", "--blacklist-type", "mozilla::StyleStrong", "--blacklist-type", "mozilla::StyleGenericFontFamily", "--blacklist-type", "mozilla::StyleFontFamily", "--blacklist-type", "mozilla::StyleGenericFontSizeAdjust", "--blacklist-type", "mozilla::StyleFontFamilyNameSyntax", "--blacklist-type", "mozilla::StyleGenericColor", "--blacklist-type", "mozilla::StyleSystemColor", "--blacklist-type", "mozilla::StyleSystemFont", "--blacklist-type", "mozilla::StyleGenericColorOrAuto", "--blacklist-type", "mozilla::StyleGenericScrollbarColor", "--blacklist-type", "mozilla::StyleRGBA", "--blacklist-type", "mozilla::StyleOrigin", "--blacklist-type", "mozilla::StyleGenericVerticalAlign", "--blacklist-type", "mozilla::StyleVerticalAlignKeyword", "--blacklist-type", "mozilla::StyleGenericBasicShape", "--blacklist-type", "mozilla::StyleArcSlice", "--blacklist-type", "mozilla::StyleForgottenArcSlicePtr", "--blacklist-type", "mozilla::StyleOwnedSlice", "--blacklist-type", "mozilla::StyleMozContextProperties", "--blacklist-type", "mozilla::StyleQuotes", "--blacklist-type", "mozilla::StyleOwnedStr", "--blacklist-type", "mozilla::StyleGenericBoxShadow", "--blacklist-type", "mozilla::StyleGenericSimpleShadow", "--blacklist-type", "mozilla::StyleGenericTransformOperation", "--blacklist-type", "mozilla::StyleGenericTransform", "--blacklist-type", "mozilla::StyleGenericScale", "--blacklist-type", "mozilla::StyleGenericRotate", "--blacklist-type", "mozilla::StyleGenericTranslate", "--blacklist-type", "mozilla::StyleAngle", "--blacklist-type", "mozilla::StyleGenericBorderImageSideWidth", "--blacklist-type", "mozilla::StyleGenericUrlOrNone", "--blacklist-type", "mozilla::StyleCssUrl", "--blacklist-type", "mozilla::StyleSpecifiedUrl", "--blacklist-type", "mozilla::StyleSpecifiedImageUrl", "--blacklist-type", "mozilla::StyleComputedUrl", "--blacklist-type", "mozilla::StyleComputedImageUrl", "--blacklist-type", "mozilla::StyleLoadData", "--blacklist-type", "mozilla::StyleGenericFilter", "--blacklist-type", "mozilla::StyleGenericGradient", "--blacklist-type", "mozilla::StyleLineDirection", "--blacklist-type", "mozilla::StyleGridTemplateAreas", "--blacklist-type", "mozilla::StyleGenericGridLine", "--blacklist-type", "mozilla::StyleGenericTrackSize", "--blacklist-type", "mozilla::StyleGenericTrackBreadth", "--blacklist-type", "mozilla::StyleGenericImplicitGridTracks", "--blacklist-type", "mozilla::StyleImplicitGridTracks", "--blacklist-type", "mozilla::StyleNumberOrPercentage", "--blacklist-type", "mozilla::StyleGenericSVGPaint", "--blacklist-type", "mozilla::StyleGenericTrackRepeat", "--blacklist-type", "mozilla::StyleGenericTrackListValue", "--blacklist-type", "mozilla::StyleGenericTrackList", "--blacklist-type", "mozilla::StyleGenericGridTemplateComponent", "--blacklist-type", "mozilla::StyleTextEmphasisStyle", "--blacklist-type", "mozilla::StyleVariantAlternatesList", "--blacklist-type", "mozilla::StyleSVGPaintOrder", "--blacklist-type", "mozilla::StyleClipRectOrAuto", "--blacklist-type", "mozilla::StyleCounterReset", "--blacklist-type", "mozilla::StyleCounterSet", "--blacklist-type", "mozilla::StyleCounterIncrement", "--blacklist-type", "mozilla::StyleContent", "--blacklist-type", "mozilla::StyleSymbolsType", "--blacklist-type", "mozilla::StyleCounterStyle", "--blacklist-type", "mozilla::StyleComputedJustifyItems", "--blacklist-type", "mozilla::StyleAlignItems", "--blacklist-type", "mozilla::StyleJustifySelf", "--blacklist-type", "mozilla::StyleAlignSelf", "--blacklist-type", "mozilla::StyleAlignContent", "--blacklist-type", "mozilla::StyleJustifyTracks", "--blacklist-type", "mozilla::StyleAlignTracks", "--blacklist-type", "mozilla::StyleJustifyContent", "--blacklist-type", "mozilla::StyleComputedValueFlags", "--blacklist-type", "mozilla::StyleImage", "--blacklist-type", "mozilla::StyleShapeOutside", "--blacklist-type", "mozilla::StyleClipPath", "--blacklist-type", "mozilla::StyleGridAutoFlow", "--blacklist-type", "mozilla::StyleCursor", "--blacklist-type", "mozilla::StyleSVGStrokeDashArray", "--blacklist-type", "mozilla::StyleSVGWidth", "--blacklist-type", "mozilla::StyleSVGOpacity", "--blacklist-type", "mozilla::StyleSVGLength", "--blacklist-type", "mozilla::StyleFontSizeKeyword", "--blacklist-type", "mozilla::StyleDefaultFontSizes", "--blacklist-type", "mozilla::StyleCaptionSide", "--blacklist-type", "mozilla::StylePageName", "--blacklist-type", "mozilla::StylePageSize", "--blacklist-type", "mozilla::StyleDProperty", "--blacklist-type", "mozilla::StyleImageRendering", "--blacklist-type", "mozilla::StylePrintColorAdjust", "--blacklist-type", "mozilla::StyleScrollbarGutter", "--blacklist-type", "mozilla::StyleHyphenateCharacter", "--blacklist-type", "mozilla::StyleContentVisibility", "--blacklist-type", "\\s*mozilla\\s*::\\s*RustCell\\s*", "--blacklist-type", "\\s*ServoNodeData\\s*", "--blacklist-type", "\\s*mozilla\\s*::\\s*ServoWritingMode\\s*", "--blacklist-type", "\\s*mozilla\\s*::\\s*ServoCustomPropertiesMap\\s*", "--blacklist-type", "\\s*mozilla\\s*::\\s*ServoRuleNode\\s*", "--blacklist-type", "\\s*mozilla\\s*::\\s*ServoVisitedStyle\\s*", "--blacklist-type", "\\s*mozilla\\s*::\\s*ServoRawOffsetArc\\s*", "--blacklist-type", "\\s*mozilla\\s*::\\s*ServoManuallyDrop\\s*", "--blacklist-type", "\\s*nsACString\\s*", "--blacklist-type", "\\s*nsAString\\s*", "--blacklist-type", "\\s*nsCString\\s*", "--blacklist-type", "\\s*nsString\\s*", "--opaque-type", "mozilla::StyleThinArc", "--opaque-type", "std::pair__PCCP", "--opaque-type", "std::namespace::atomic___base", "--opaque-type", "std::atomic__My_base", "--opaque-type", "std::atomic", "--opaque-type", "std::atomic___base", "--opaque-type", "mozilla::gfx::(.{0,4}|.{6,12}|.{14,}|([^F][^o][^n][^t][^V][^a][^r][^i][^a][^t][^i][^o][^n])|([^F][^l][^o][^a][^t]))", "--opaque-type", "mozilla::dom::Sequence", "--opaque-type", "mozilla::SmallPointerArray", "--opaque-type", "mozilla::dom::Optional", "--opaque-type", "mozilla::dom::OwningNodeOrString_Value", "--opaque-type", "mozilla::dom::Nullable", "--opaque-type", "mozilla::external::AtomicRefCounted", "--opaque-type", "RefPtr_Proxy", "--opaque-type", "RefPtr_Proxy_member_function", "--opaque-type", "nsAutoPtr_Proxy", "--opaque-type", "nsAutoPtr_Proxy_member_function", "--opaque-type", "mozilla::detail::HashTable", "--opaque-type", "mozilla::detail::PointerType", "--opaque-type", "mozilla::HashSet", "--opaque-type", "mozilla::Pair", "--opaque-type", "mozilla::Pair_Base", "--opaque-type", "mozilla::ScrollAxis", "--opaque-type", "mozilla::SeenPtrs", "--opaque-type", "mozilla::SupportsWeakPtr", "--opaque-type", "mozilla::Tuple", "--opaque-type", "SupportsWeakPtr", "--opaque-type", "mozilla::detail::WeakReference", "--opaque-type", "mozilla::WeakPtr", "--opaque-type", "nsWritingIterator_reference", "--opaque-type", "nsReadingIterator_reference", "--opaque-type", "nsTObserverArray", "--opaque-type", "nsTHashtable", "--opaque-type", "nsTBaseHashSet", "--opaque-type", "nsBaseHashtable", "--opaque-type", "nsRefCountedHashtable", "--opaque-type", "nsClassHashtable", "--opaque-type", "mozilla::dom::Document_SelectorCache", "--opaque-type", "nsPIDOMWindow", "--opaque-type", "JS::Rooted", "--opaque-type", "mozilla::Maybe", "--opaque-type", "gfxSize", "--opaque-type", "gfxSize_Super", "--opaque-type", "mozilla::StyleAnimationValue", "--opaque-type", "StyleAnimationValue", "--opaque-type", "mozilla::dom::.*Callback", "--opaque-type", "mozilla::SchedulerGroup", "--opaque-type", "mozilla::detail::GkAtoms", "--opaque-type", "mozilla::detail::ThreadLocal.*", "--whitelist-function", "Servo_.*", "--whitelist-function", "Gecko_.*", "--whitelist-type", "RawGecko.*", "--whitelist-type", "RawServo.*", "--whitelist-type", "ServoCssRules", "--whitelist-type", "nsFontFaceRuleContainer", "--whitelist-type", "Matrix4x4Components", "--whitelist-type", "mozilla::ComputedKeyframeValues", "--whitelist-type", "mozilla::Keyframe", "--whitelist-type", "mozilla::PropertyValuePair", "--whitelist-type", "mozilla::DeclarationBlockMutationClosure", "--whitelist-type", "mozilla::AnimationPropertySegment", "--whitelist-type", "mozilla::AnonymousCounterStyle", "--whitelist-type", "mozilla::AtomArray", "--whitelist-type", "mozilla::ComputedTiming", "--whitelist-type", "mozilla::ComputedTimingFunction", "--whitelist-type", "mozilla::ComputedTimingFunction::BeforeFlag", "--whitelist-type", "mozilla::Matrix4x4Components", "--whitelist-type", "mozilla::PreferenceSheet", "--whitelist-type", "mozilla::SeenPtrs", "--whitelist-type", "mozilla::ServoElementSnapshot.*", "--whitelist-type", "mozilla::ComputedStyle", "--whitelist-type", "mozilla::StyleSheet", "--whitelist-type", "mozilla::ServoStyleSheetInner", "--whitelist-type", "mozilla::ServoStyleSetSizes", "--whitelist-type", "mozilla::ServoTraversalStatistics", "--whitelist-type", "mozilla::css::LoaderReusableStyleSheets", "--whitelist-type", "mozilla::css::SheetLoadData", "--whitelist-type", "mozilla::css::SheetLoadDataHolder", "--whitelist-type", "mozilla::css::SheetParsingMode", "--whitelist-type", "mozilla::css::DocumentMatchingFunction", "--whitelist-type", "mozilla::dom::IterationCompositeOperation", "--whitelist-type", "mozilla::dom::StyleChildrenIterator", "--whitelist-type", "mozilla::HalfCorner", "--whitelist-type", "mozilla::ipc::ByteBuf", "--whitelist-type", "mozilla::MallocSizeOf", "--whitelist-type", "mozilla::OriginFlags", "--whitelist-type", "mozilla::PropertyStyleAnimationValuePair", "--whitelist-type", "mozilla::ServoTraversalFlags", "--whitelist-type", "mozilla::StyleShapeRadius", "--whitelist-type", "mozilla::StyleGrid.*", "--whitelist-type", "mozilla::UpdateAnimationsTasks", "--whitelist-type", "mozilla::PointerCapabilities", "--whitelist-type", "mozilla::LookAndFeel", "--whitelist-type", "mozilla::gfx::Float", "--whitelist-type", "mozilla::gfx::FontVariation", "--whitelist-type", "mozilla::StyleImageLayerAttachment", "--whitelist-type", "gfxFontFeature", "--whitelist-type", "gfxFontVariation", "--whitelist-type", ".*ThreadSafe.*Holder", "--whitelist-type", "AnonymousContent", "--whitelist-type", "AudioContext", "--whitelist-type", "DefaultDelete", "--whitelist-type", "DOMIntersectionObserverEntry", "--whitelist-type", "Element", "--whitelist-type", "mozilla::FontSizePrefs", "--whitelist-type", "FragmentOrURL", "--whitelist-type", "FrameRequestCallback", "--whitelist-type", "GeckoParserExtraData", "--whitelist-type", "GeckoFontMetrics", "--whitelist-type", "gfxFontFeatureValueSet", "--whitelist-type", "GridNamedArea", "--whitelist-type", "mozilla::HalfCorner", "--whitelist-type", "Image", "--whitelist-type", "ImageURL", "--whitelist-type", "Keyframe", "--whitelist-type", "mozilla::MediumFeaturesChangedResult", "--whitelist-type", "nsAttrName", "--whitelist-type", "nsAttrValue", "--whitelist-type", "nscolor", "--whitelist-type", "nsChangeHint", "--whitelist-type", "nsCSSCounterDesc", "--whitelist-type", "nsCSSFontDesc", "--whitelist-type", "nsCSSKTableEntry", "--whitelist-type", "nsCSSPropertyID", "--whitelist-type", "nsCSSPropertyIDSet", "--whitelist-type", "nsCSSProps", "--whitelist-type", "nsCSSShadowArray", "--whitelist-type", "nsCSSValue", "--whitelist-type", "nsCSSValueList", "--whitelist-type", "nsCSSValueList_heap", "--whitelist-type", "nsCSSValuePair_heap", "--whitelist-type", "nsCSSValuePairList", "--whitelist-type", "nsCSSValuePairList_heap", "--whitelist-type", "nsCSSValueTriplet_heap", "--whitelist-type", "nsCursorImage", "--whitelist-type", "nsFont", "--whitelist-type", "nsAtom", "--whitelist-type", "nsDynamicAtom", "--whitelist-type", "nsMargin", "--whitelist-type", "nsRect", "--whitelist-type", "nsresult", "--whitelist-type", "nsSimpleContentList", "--whitelist-type", "nsSize", "--whitelist-type", "nsStyleBackground", "--whitelist-type", "nsStyleBorder", "--whitelist-type", "nsStyleColor", "--whitelist-type", "nsStyleColumn", "--whitelist-type", "nsStyleContent", "--whitelist-type", "nsStyleContentData", "--whitelist-type", "ComputedStyle", "--whitelist-type", "nsStyleCounterData", "--whitelist-type", "nsStyleDisplay", "--whitelist-type", "nsStyleEffects", "--whitelist-type", "nsStyleFilter", "--whitelist-type", "nsStyleFont", "--whitelist-type", "nsStyleGradient", "--whitelist-type", "nsStyleGridTemplate", "--whitelist-type", "nsStyleImage", "--whitelist-type", "nsStyleImageLayers", "--whitelist-type", "nsStyleList", "--whitelist-type", "nsStyleMargin", "--whitelist-type", "nsStyleOutline", "--whitelist-type", "nsStylePadding", "--whitelist-type", "nsStylePage", "--whitelist-type", "nsStylePosition", "--whitelist-type", "nsStyleSides", "--whitelist-type", "nsStyleSVG", "--whitelist-type", "nsStyleSVGOpacitySource", "--whitelist-type", "nsStyleSVGReset", "--whitelist-type", "nsStyleTable", "--whitelist-type", "nsStyleTableBorder", "--whitelist-type", "nsStyleText", "--whitelist-type", "nsStyleTextReset", "--whitelist-type", "nsStyleUIReset", "--whitelist-type", "nsStyleUnion", "--whitelist-type", "nsStyleUI", "--whitelist-type", "nsStyleVisibility", "--whitelist-type", "nsStyleXUL", "--whitelist-type", "nsTArrayHeader", "--whitelist-type", "Position", "--whitelist-type", "PropertyValuePair", "--whitelist-type", "Runnable", "--whitelist-type", "ServoAttrSnapshot", "--whitelist-type", "ServoComputedData", "--whitelist-type", "ServoComputedDataBorrowed", "--whitelist-type", "ServoElementSnapshot", "--whitelist-type", "ComputedStyleStrong", "--whitelist-type", "ComputedStyleBorrowed", "--whitelist-type", "ComputedStyleBorrowedOrNull", "--whitelist-type", "SheetParsingMode", "--whitelist-type", "StaticRefPtr", "--whitelist-type", "StyleAnimation", "--whitelist-type", "StyleBasicShapeType", "--whitelist-type", "StyleGeometryBox", "--whitelist-type", "StyleShapeSource", "--whitelist-type", "StyleTransition", "--whitelist-type", "ThemeWidgetType", "--whitelist-type", "mozilla::UniquePtr", "--whitelist-type", "mozilla::DeclarationBlock", "--whitelist-type", "mozilla::DefaultDelete", "--whitelist-type", "mozilla::Side", "--whitelist-type", "mozilla::binding_danger::AssertAndSuppressCleanupPolicy", "--whitelist-type", "mozilla::ParsingMode", "--whitelist-type", "mozilla::InheritTarget", "--whitelist-type", "mozilla::dom::MediaList", "--whitelist-type", "mozilla::StyleRuleInclusion", "--whitelist-type", "nsStyleTransformMatrix::MatrixTransformOperator", "--whitelist-var", "NS_ATTRVALUE_.*", "--whitelist-var", "NODE_.*", "--whitelist-var", "ELEMENT_.*", "--whitelist-var", "NS_FONT_.*", "--whitelist-var", "NS_STYLE_.*", "--whitelist-var", "NS_MATHML_.*", "--whitelist-var", "NS_RADIUS_.*", "--whitelist-var", "BORDER_COLOR_.*", "--whitelist-var", "BORDER_STYLE_.*", "--whitelist-var", "CSS_PSEUDO_ELEMENT_.*", "--whitelist-var", "SERVO_CSS_PSEUDO_ELEMENT_FLAGS_.*", "--whitelist-var", "kNameSpaceID_.*", "--whitelist-var", "kGenericFont_.*", "--whitelist-var", "kPresContext_.*", "--whitelist-var", "nsNameSpaceManager_.*", "--whitelist-var", "GECKO_IS_NIGHTLY", "--whitelist-var", "NS_SAME_AS_FOREGROUND_COLOR", "--whitelist-var", "mozilla::detail::gGkAtoms", "--whitelist-var", "mozilla::detail::kGkAtomsArrayOffset", "--whitelist-var", "mozilla::dom::SVGPathSeg_Binding::PATHSEG_.*", "--no-derive-default", "--enable-cxx-namespaces", "--generate", "functions,types,vars", "--ignore-methods", "--raw-line", "pub use self::root::*;", "--raw-line", "pub use self::root::mozilla::*;", "--raw-line", "pub use self::root::mozilla::css::*;", "--raw-line", "pub use self::root::mozilla::dom::*;", "--raw-line", "pub type RustCell<T> = ::std::cell::Cell<T>;", "--raw-line", "pub type ServoNodeData = atomic_refcell::AtomicRefCell<crate::data::ElementData>;", "--raw-line", "pub type ServoWritingMode = crate::logical_geometry::WritingMode;", "--raw-line", "pub type ServoCustomPropertiesMap = Option<servo_arc::Arc<crate::custom_properties::CustomPropertiesMap>>;", "--raw-line", "pub type ServoRuleNode = Option<crate::rule_tree::StrongRuleNode>;", "--raw-line", "pub type ServoVisitedStyle = Option<servo_arc::RawOffsetArc<crate::properties::ComputedValues>>;", "--raw-line", "pub type ServoRawOffsetArc<T> = servo_arc::RawOffsetArc<T>;", "--raw-line", "pub type ServoManuallyDrop<T> = ::std::mem::ManuallyDrop<T>;", "--raw-line", "pub type nsACString = nsstring::nsACString;", "--raw-line", "pub type nsAString = nsstring::nsAString;", "--raw-line", "pub type nsCString = nsstring::nsCString;", "--raw-line", "pub type nsString = nsstring::nsString;", "--size_t-is-usize", "--", "-I", "/boot/home/src/firefox-102.9.0/obj-a/dist/include", "-I", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/nspr", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla-config.h", "-x", "c++", "-fno-sized-deallocation", "-fno-aligned-new", "-DTRACING=1", "-DIMPL_LIBXUL", "-DMOZILLA_INTERNAL_API", "-DRUST_BINDGEN", "-DOS_POSIX=1", "-std=gnu++17", "-I/packages/nspr-4.34.1-3/.self/develop/headers/nspr", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/nsStyleStruct.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/StyleAnimationValue.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/gfxFontConstants.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/gfxFontFeatures.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/nsStyleConsts.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/css/Loader.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/css/SheetLoadData.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/DeclarationBlock.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/AnimationEffectBinding.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/HTMLSlotElement.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/KeyframeEffectBinding.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/MediaList.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/ShadowRoot.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/SVGPathSegBinding.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/ipc/ByteBuf.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/AnimationPropertySegment.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/ComputedTiming.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/ComputedTimingFunction.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/CORSMode.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Keyframe.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/ServoElementSnapshot.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/ServoElementSnapshotTable.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/Element.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/ChildIterator.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/NameSpaceConstants.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/LookAndFeel.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/GeckoBindings.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/ServoBindings.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/ComputedStyle.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/PresShell.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/ServoTraversalStatistics.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/SizeOfState.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/nsCSSProps.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/nsMappedAttributes.h"]', servo/components/style/build_gecko.rs:188:13
  stack backtrace:
     0:       0x29df7c4bf9 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h3f6b03fbbb6ea170
     1:       0x29df7ed4ce - core::fmt::write::ha52d11f4ace7ccb3
     2:       0x29df7b0325 - std::io::Write::write_fmt::h4cb3d66d1368cf98
     3:       0x29df7c49b6 - std::sys_common::backtrace::print::he738d14b2a4638da
     4:       0x29df7c2f4f - std::panicking::default_hook::{{closure}}::hb28f240267fd27aa
     5:       0x29df7c2be4 - std::panicking::default_hook::h8bbc80bb2b6187a6
     6:       0x29df7c3617 - std::panicking::rust_panic_with_hook::hc55f8cd7bca636f4
     7:       0x29df7c4f69 - std::panicking::begin_panic_handler::{{closure}}::h8e6905ebb12efda9
     8:       0x29df7c4d4c - std::sys_common::backtrace::__rust_end_short_backtrace::hf23318794ad02902
     9:       0x29df7c3102 - rust_begin_unwind
    10:       0x29df5d8cd3 - core::panicking::panic_fmt::hedb9f4d38ea952d2
    11:       0x29df5e1866 - build_script_build::build_gecko::generate::h3bd45a4e567cb5da
    12:       0x29df5e36f3 - build_script_build::main::h1903d446c69a3284
    13:       0x29df5e1dd3 - std::sys_common::backtrace::__rust_begin_short_backtrace::ha017d274e810d687
    14:       0x29df5e28a9 - std::rt::lang_start::{{closure}}::h39a82c22eebab1f9
    15:       0x29df7b51f4 - std::rt::lang_start_internal::h96f35d979206e269
    16:       0x29df5e3925 - main
    17:       0x29df5d925f - _start
    18:      0x160dd07aae5 - runtime_loader
warning: build failed, waiting for other jobs to finish...
@kenz-gelsoft
Copy link
Owner Author

kenz-gelsoft commented Apr 18, 2023

layout/style/moz.build

    CbindgenHeader(
        "ServoStyleConsts.h",
        inputs=["/servo/ports/geckolib", "/servo/components/style"],
    )

build/templates.mozbuild

@template
def CbindgenHeader(name, inputs):
    """Add one GENERATED_FILES by running RunCbindgen.py"""

    inputs = ['!/config/cbindgen-metadata.json'] + inputs
    GeneratedFile(name, script='/build/RunCbindgen.py',
                  entry_point='generate', inputs=inputs)

@kenz-gelsoft
Copy link
Owner Author

OK, work around on RunCBindgen.py was not good.

this emit WARNs to stderr, this workaround captures it into generated header files.

#9 (comment)

@kenz-gelsoft
Copy link
Owner Author

I'd struggled with this for some days, but it doesn't work subprocess+pty code well on Haiku.

I'll try to build patched cargo or request doing it the package's owner.

It seems cross-compiling is required for rust_bin package rebuild.

@kenz-gelsoft
Copy link
Owner Author

[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/js/HeapAPI.h:259:38: warning: offset of on non-standard-layout type 'js::gc::TenuredChunkBase' [-Winvalid-offsetof]
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/nsStyleStruct.h:1682:30: error: no member named 'SIZE' in 'mozilla::StyleContain'
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/js/Proxy.h:211:43: warning: offset of on non-standard-layout type 'js::BaseProxyHandler' [-Winvalid-offsetof]
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/AnimationEffectBinding.h:101:58: error: field has incomplete type 'mozilla::dom::OwningUnrestrictedDoubleOrString'
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/AnimationEffectBinding.h:25:7: note: forward declaration of 'mozilla::dom::OwningUnrestrictedDoubleOrString'
[style 0.0.1] /system/develop/headers/c++/type_traits:1289:23: error: incomplete type 'mozilla::dom::OwningUnrestrictedDoubleOrString' used in type trait expression
[style 0.0.1] /system/develop/headers/c++/type_traits:3142:5: note: in instantiation of template class 'std::is_trivially_destructible<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/MaybeStorageBase.h:20:10: note: in instantiation of variable template specialization 'std::is_trivially_destructible_v<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:239:27: note: in instantiation of variable template specialization 'mozilla::detail::IsTriviallyDestructibleAndCopyable<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:350:23: note: in instantiation of default argument for 'MaybeStorage<mozilla::dom::OwningUnrestrictedDoubleOrString>' required here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:203:23: note: in instantiation of template class 'mozilla::Maybe<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:207:25: note: in instantiation of template class 'mozilla::dom::Optional_base<mozilla::dom::OwningUnrestrictedDoubleOrString, mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/AnimationEffectBinding.h:156:68: note: in instantiation of template class 'mozilla::dom::Optional<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/AnimationEffectBinding.h:25:7: note: forward declaration of 'mozilla::dom::OwningUnrestrictedDoubleOrString'
[style 0.0.1] /system/develop/headers/c++/type_traits:1291:7: error: static_assert failed due to requirement 'std::__is_complete_or_unbounded(std::__type_identity<mozilla::dom::OwningUnrestrictedDoubleOrString>{})' "template argument must be a complete class or an unbounded array"
[style 0.0.1] /system/develop/headers/c++/type_traits:1199:4: error: incomplete type 'mozilla::dom::OwningUnrestrictedDoubleOrString' used in type trait expression
[style 0.0.1] /system/develop/headers/c++/type_traits:1205:14: note: in instantiation of template class 'std::__is_trivially_copy_constructible_impl<mozilla::dom::OwningUnrestrictedDoubleOrString, true>' requested here
[style 0.0.1] /system/develop/headers/c++/type_traits:3127:5: note: in instantiation of template class 'std::is_trivially_copy_constructible<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/MaybeStorageBase.h:21:11: note: in instantiation of variable template specialization 'std::is_trivially_copy_constructible_v<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:239:27: note: in instantiation of variable template specialization 'mozilla::detail::IsTriviallyDestructibleAndCopyable<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:350:23: note: in instantiation of default argument for 'MaybeStorage<mozilla::dom::OwningUnrestrictedDoubleOrString>' required here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:203:23: note: in instantiation of template class 'mozilla::Maybe<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:207:25: note: in instantiation of template class 'mozilla::dom::Optional_base<mozilla::dom::OwningUnrestrictedDoubleOrString, mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/AnimationEffectBinding.h:156:68: note: in instantiation of template class 'mozilla::dom::Optional<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/AnimationEffectBinding.h:25:7: note: forward declaration of 'mozilla::dom::OwningUnrestrictedDoubleOrString'
[style 0.0.1] /system/develop/headers/c++/type_traits:906:30: error: incomplete type 'mozilla::dom::OwningUnrestrictedDoubleOrString' used in type trait expression
[style 0.0.1] /system/develop/headers/c++/type_traits:936:14: note: in instantiation of template class 'std::__is_constructible_impl<mozilla::dom::OwningUnrestrictedDoubleOrString, const mozilla::dom::OwningUnrestrictedDoubleOrString &>' requested here
[style 0.0.1] /system/develop/headers/c++/type_traits:139:26: note: in instantiation of template class 'std::__is_copy_constructible_impl<mozilla::dom::OwningUnrestrictedDoubleOrString, true>' requested here
[style 0.0.1] /system/develop/headers/c++/type_traits:1197:14: note: in instantiation of template class 'std::__and_<std::__is_copy_constructible_impl<mozilla::dom::OwningUnrestrictedDoubleOrString, true>, std::integral_constant<bool, false>>' requested here
[style 0.0.1] /system/develop/headers/c++/type_traits:1205:14: note: in instantiation of template class 'std::__is_trivially_copy_constructible_impl<mozilla::dom::OwningUnrestrictedDoubleOrString, true>' requested here
[style 0.0.1] /system/develop/headers/c++/type_traits:3127:5: note: in instantiation of template class 'std::is_trivially_copy_constructible<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/MaybeStorageBase.h:21:11: note: (skipping 1 context in backtrace; use -ftemplate-backtrace-limit=0 to see all)
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:239:27: note: in instantiation of variable template specialization 'mozilla::detail::IsTriviallyDestructibleAndCopyable<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:350:23: note: in instantiation of default argument for 'MaybeStorage<mozilla::dom::OwningUnrestrictedDoubleOrString>' required here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:203:23: note: in instantiation of template class 'mozilla::Maybe<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:207:25: note: in instantiation of template class 'mozilla::dom::Optional_base<mozilla::dom::OwningUnrestrictedDoubleOrString, mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/AnimationEffectBinding.h:156:68: note: in instantiation of template class 'mozilla::dom::Optional<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/AnimationEffectBinding.h:25:7: note: forward declaration of 'mozilla::dom::OwningUnrestrictedDoubleOrString'
[style 0.0.1] /system/develop/headers/c++/type_traits:1207:7: error: static_assert failed due to requirement 'std::__is_complete_or_unbounded(std::__type_identity<mozilla::dom::OwningUnrestrictedDoubleOrString>{})' "template argument must be a complete class or an unbounded array"
[style 0.0.1] /system/develop/headers/c++/type_traits:3127:5: note: in instantiation of template class 'std::is_trivially_copy_constructible<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/MaybeStorageBase.h:21:11: note: in instantiation of variable template specialization 'std::is_trivially_copy_constructible_v<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:239:27: note: in instantiation of variable template specialization 'mozilla::detail::IsTriviallyDestructibleAndCopyable<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:350:23: note: in instantiation of default argument for 'MaybeStorage<mozilla::dom::OwningUnrestrictedDoubleOrString>' required here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:203:23: note: in instantiation of template class 'mozilla::Maybe<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:207:25: note: in instantiation of template class 'mozilla::dom::Optional_base<mozilla::dom::OwningUnrestrictedDoubleOrString, mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/AnimationEffectBinding.h:156:68: note: in instantiation of template class 'mozilla::dom::Optional<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /system/develop/headers/c++/type_traits:944:7: error: static_assert failed due to requirement 'std::__is_complete_or_unbounded(std::__type_identity<mozilla::dom::OwningUnrestrictedDoubleOrString>{})' "template argument must be a complete class or an unbounded array"
[style 0.0.1] /system/develop/headers/c++/type_traits:3107:5: note: in instantiation of template class 'std::is_copy_constructible<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/MaybeStorageBase.h:22:12: note: in instantiation of variable template specialization 'std::is_copy_constructible_v<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:239:27: note: in instantiation of variable template specialization 'mozilla::detail::IsTriviallyDestructibleAndCopyable<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:350:23: note: in instantiation of default argument for 'MaybeStorage<mozilla::dom::OwningUnrestrictedDoubleOrString>' required here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:203:23: note: in instantiation of template class 'mozilla::Maybe<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:207:25: note: in instantiation of template class 'mozilla::dom::Optional_base<mozilla::dom::OwningUnrestrictedDoubleOrString, mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/AnimationEffectBinding.h:156:68: note: in instantiation of template class 'mozilla::dom::Optional<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/MaybeStorageBase.h:20:5: error: constexpr variable 'IsTriviallyDestructibleAndCopyable<mozilla::dom::OwningUnrestrictedDoubleOrString>' must be initialized by a constant expression
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:239:27: note: in instantiation of variable template specialization 'mozilla::detail::IsTriviallyDestructibleAndCopyable<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:350:23: note: in instantiation of default argument for 'MaybeStorage<mozilla::dom::OwningUnrestrictedDoubleOrString>' required here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:203:23: note: in instantiation of template class 'mozilla::Maybe<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:207:25: note: in instantiation of template class 'mozilla::dom::Optional_base<mozilla::dom::OwningUnrestrictedDoubleOrString, mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/AnimationEffectBinding.h:156:68: note: in instantiation of template class 'mozilla::dom::Optional<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:239:27: error: non-type template argument is not a constant expression
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:350:37: note: while checking a default template argument used here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:203:23: note: in instantiation of template class 'mozilla::Maybe<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:207:25: note: in instantiation of template class 'mozilla::dom::Optional_base<mozilla::dom::OwningUnrestrictedDoubleOrString, mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/AnimationEffectBinding.h:156:68: note: in instantiation of template class 'mozilla::dom::Optional<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:239:27: note: initializer of 'IsTriviallyDestructibleAndCopyable<mozilla::dom::OwningUnrestrictedDoubleOrString>' is not a constant expression
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/MaybeStorageBase.h:19:16: note: declared here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:110:15: error: non-type template argument is not a constant expression
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:351:46: note: while checking a default template argument used here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:203:23: note: in instantiation of template class 'mozilla::Maybe<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:207:25: note: in instantiation of template class 'mozilla::dom::Optional_base<mozilla::dom::OwningUnrestrictedDoubleOrString, mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/AnimationEffectBinding.h:156:68: note: in instantiation of template class 'mozilla::dom::Optional<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:110:15: note: initializer of 'IsTriviallyDestructibleAndCopyable<mozilla::dom::OwningUnrestrictedDoubleOrString>' is not a constant expression
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/MaybeStorageBase.h:19:16: note: declared here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:239:27: error: non-type template argument is not a constant expression
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:364:31: note: while checking a default template argument used here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:203:23: note: in instantiation of template class 'mozilla::Maybe<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:207:25: note: in instantiation of template class 'mozilla::dom::Optional_base<mozilla::dom::OwningUnrestrictedDoubleOrString, mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/AnimationEffectBinding.h:156:68: note: in instantiation of template class 'mozilla::dom::Optional<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:239:27: note: initializer of 'IsTriviallyDestructibleAndCopyable<mozilla::dom::OwningUnrestrictedDoubleOrString>' is not a constant expression
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/MaybeStorageBase.h:19:16: note: declared here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:239:27: error: non-type template argument is not a constant expression
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:365:31: note: while checking a default template argument used here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:203:23: note: in instantiation of template class 'mozilla::Maybe<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:207:25: note: in instantiation of template class 'mozilla::dom::Optional_base<mozilla::dom::OwningUnrestrictedDoubleOrString, mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/AnimationEffectBinding.h:156:68: note: in instantiation of template class 'mozilla::dom::Optional<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:239:27: note: initializer of 'IsTriviallyDestructibleAndCopyable<mozilla::dom::OwningUnrestrictedDoubleOrString>' is not a constant expression
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/MaybeStorageBase.h:19:16: note: declared here
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/KeyframeEffectBinding.h:327:12: error: no viable conversion from returned value of type 'const mozilla::dom::binding_detail::FastKeyframeEffectOptions' to function return type 'const mozilla::dom::KeyframeEffectOptions'
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/KeyframeEffectBinding.h:124:19: note: explicit constructor is not a candidate
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/KeyframeEffectBinding.h:130:19: note: explicit constructor is not a candidate
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/cxxalloc.h:32:1: warning: replacement function 'operator new' cannot be declared 'inline' [-Winline-new-delete], err: false
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/cxxalloc.h:36:1: warning: replacement function 'operator new' cannot be declared 'inline' [-Winline-new-delete], err: false
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/cxxalloc.h:41:1: warning: replacement function 'operator new[]' cannot be declared 'inline' [-Winline-new-delete], err: false
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/cxxalloc.h:45:1: warning: replacement function 'operator new[]' cannot be declared 'inline' [-Winline-new-delete], err: false
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/cxxalloc.h:50:1: warning: replacement function 'operator delete' cannot be declared 'inline' [-Winline-new-delete], err: false
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/cxxalloc.h:54:1: warning: replacement function 'operator delete' cannot be declared 'inline' [-Winline-new-delete], err: false
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/cxxalloc.h:59:1: warning: replacement function 'operator delete[]' cannot be declared 'inline' [-Winline-new-delete], err: false
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/cxxalloc.h:63:1: warning: replacement function 'operator delete[]' cannot be declared 'inline' [-Winline-new-delete], err: false
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/nsGkAtoms.h:118:39: warning: offset of on non-standard-layout type 'mozilla::detail::GkAtoms' [-Winvalid-offsetof], err: false
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/js/HeapAPI.h:259:38: warning: offset of on non-standard-layout type 'js::gc::TenuredChunkBase' [-Winvalid-offsetof], err: false
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/nsStyleStruct.h:1682:30: error: no member named 'SIZE' in 'mozilla::StyleContain', err: true
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/js/Proxy.h:211:43: warning: offset of on non-standard-layout type 'js::BaseProxyHandler' [-Winvalid-offsetof], err: false
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/AnimationEffectBinding.h:101:58: error: field has incomplete type 'mozilla::dom::OwningUnrestrictedDoubleOrString', err: true
[style 0.0.1] /system/develop/headers/c++/type_traits:1289:23: error: incomplete type 'mozilla::dom::OwningUnrestrictedDoubleOrString' used in type trait expression, err: true
[style 0.0.1] /system/develop/headers/c++/type_traits:1291:7: error: static_assert failed due to requirement 'std::__is_complete_or_unbounded(std::__type_identity<mozilla::dom::OwningUnrestrictedDoubleOrString>{})' "template argument must be a complete class or an unbounded array", err: true
[style 0.0.1] /system/develop/headers/c++/type_traits:1199:4: error: incomplete type 'mozilla::dom::OwningUnrestrictedDoubleOrString' used in type trait expression, err: true
[style 0.0.1] /system/develop/headers/c++/type_traits:906:30: error: incomplete type 'mozilla::dom::OwningUnrestrictedDoubleOrString' used in type trait expression, err: true
[style 0.0.1] /system/develop/headers/c++/type_traits:1207:7: error: static_assert failed due to requirement 'std::__is_complete_or_unbounded(std::__type_identity<mozilla::dom::OwningUnrestrictedDoubleOrString>{})' "template argument must be a complete class or an unbounded array", err: true
[style 0.0.1] /system/develop/headers/c++/type_traits:944:7: error: static_assert failed due to requirement 'std::__is_complete_or_unbounded(std::__type_identity<mozilla::dom::OwningUnrestrictedDoubleOrString>{})' "template argument must be a complete class or an unbounded array", err: true
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/MaybeStorageBase.h:20:5: error: constexpr variable 'IsTriviallyDestructibleAndCopyable<mozilla::dom::OwningUnrestrictedDoubleOrString>' must be initialized by a constant expression, err: true
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:239:27: error: non-type template argument is not a constant expression, err: true
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:110:15: error: non-type template argument is not a constant expression, err: true
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:239:27: error: non-type template argument is not a constant expression, err: true
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:239:27: error: non-type template argument is not a constant expression, err: true
[style 0.0.1] /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/KeyframeEffectBinding.h:327:12: error: no viable conversion from returned value of type 'const mozilla::dom::binding_detail::FastKeyframeEffectOptions' to function return type 'const mozilla::dom::KeyframeEffectOptions', err: true

@kenz-gelsoft
Copy link
Owner Author

kenz-gelsoft commented Apr 21, 2023

SyleContain::SIZE

~/src/firefox-102.9.0> find . -iname ServoStyleConsts.h
./obj-a/dist/include/mozilla/ServoStyleConsts.h
./obj-a/layout/style/ServoStyleConsts.h
~/src/firefox-102.9.0> diff -u ./obj-a/dist/include/mozilla/ServoStyleConsts.h ./obj-a/layout/style/ServoStyleConsts.h
~/src/firefox-102.9.0> 

indeed, these files don't contain 'SIZE'

@kenz-gelsoft
Copy link
Owner Author

kenz-gelsoft commented Apr 21, 2023

StyleContain from

ServoBindings.toml

# All cbindgen-types are in mod "structs::root::mozilla".
# FIXME(emilio): We probably want to automate this somehow...
cbindgen-types = [
# (snip)
    { gecko = "StyleContain", servo = "crate::values::computed::Contain" },

pub use'd from box::Contain in style/values/computed/mod.rs

pub use self::box_::{AnimationIterationCount, AnimationName, AnimationTimeline, Contain, ContainerName, ContainerType};

so should be defined in box.rs as this:

bitflags! {
    #[derive(MallocSizeOf, Parse, SpecifiedValueInfo, ToComputedValue, ToCss, ToResolvedValue, ToShmem)]
    #[css(bitflags(single = "none,strict,content", mixed="size,layout,paint,inline-size", overlapping_bits))]
    #[repr(C)]
    /// Constants for contain: https://drafts.csswg.org/css-contain/#contain-property
    pub struct Contain: u8 {
        /// `none` variant, just for convenience.
        const NONE = 0;
        /// `inline-size` variant, turns on single-axis inline size containment
        const INLINE_SIZE = 1 << 0;
        /// `block-size` variant, turns on single-axis block size containment, internal only
        const BLOCK_SIZE = 1 << 1;
        /// `layout` variant, turns on layout containment
        const LAYOUT = 1 << 2;
        /// `paint` variant, turns on paint containment
        const PAINT = 1 << 3;
        /// 'size' variant, turns on size containment
        const SIZE = 1 << 4 | Contain::INLINE_SIZE.bits | Contain::BLOCK_SIZE.bits;

@kenz-gelsoft
Copy link
Owner Author

kenz-gelsoft commented Apr 22, 2023

but didn't generate SIZE, CONTENT, STRICT in ServoStyleConsts.h

/// Constants for contain: https://drafts.csswg.org/css-contain/#contain-property
struct StyleContain {
// (snip)
  static const StyleContain NONE;
  static const StyleContain INLINE_SIZE;
  static const StyleContain BLOCK_SIZE;
  static const StyleContain LAYOUT;
  static const StyleContain PAINT;
};
/// `none` variant, just for convenience.
inline const StyleContain StyleContain::NONE = StyleContain{ /* .bits = */ (uint8_t)0 };
/// `inline-size` variant, turns on single-axis inline size containment
inline const StyleContain StyleContain::INLINE_SIZE = StyleContain{ /* .bits = */ (uint8_t)(1 << 0) };
/// `block-size` variant, turns on single-axis block size containment, internal only
inline const StyleContain StyleContain::BLOCK_SIZE = StyleContain{ /* .bits = */ (uint8_t)(1 << 1) };
/// `layout` variant, turns on layout containment
inline const StyleContain StyleContain::LAYOUT = StyleContain{ /* .bits = */ (uint8_t)(1 << 2) };
/// `paint` variant, turns on paint containment
inline const StyleContain StyleContain::PAINT = StyleContain{ /* .bits = */ (uint8_t)(1 << 3) };

from box.rs

bitflags! {
    #[derive(MallocSizeOf, Parse, SpecifiedValueInfo, ToComputedValue, ToCss, ToResolvedValue, ToShmem)]
    #[css(bitflags(single = "none,strict,content", mixed="size,layout,paint,inline-size", overlapping_bits))]
    #[repr(C)]
    /// Constants for contain: https://drafts.csswg.org/css-contain/#contain-property
    pub struct Contain: u8 {
        /// `none` variant, just for convenience.
        const NONE = 0;
        /// `inline-size` variant, turns on single-axis inline size containment
        const INLINE_SIZE = 1 << 0;
        /// `block-size` variant, turns on single-axis block size containment, internal only
        const BLOCK_SIZE = 1 << 1;
        /// `layout` variant, turns on layout containment
        const LAYOUT = 1 << 2;
        /// `paint` variant, turns on paint containment
        const PAINT = 1 << 3;
        /// 'size' variant, turns on size containment
        const SIZE = 1 << 4 | Contain::INLINE_SIZE.bits | Contain::BLOCK_SIZE.bits;
        /// `content` variant, turns on layout and paint containment
        const CONTENT = 1 << 5 | Contain::LAYOUT.bits | Contain::PAINT.bits;
        /// `strict` variant, turns on all types of containment
        const STRICT = 1 << 6 | Contain::LAYOUT.bits | Contain::PAINT.bits | Contain::SIZE.bits;
    }
}

I guess cbindgen couldn't generate these constants because it can't evaluate it as constexprs because llvm, cbindgen or any dependencies were too old to support ths.

@kenz-gelsoft
Copy link
Owner Author

kenz-gelsoft commented Apr 22, 2023

We didn't meet cbindgen requiement >0.23. So this may be cause.

#4

Check difference cbindgen 0.20 vs 0.23 and try building newer cbindgen myself if needed.

cbindgen 0.23 looks improved constexpr

@kenz-gelsoft
Copy link
Owner Author

kenz-gelsoft commented Apr 22, 2023

requiement 0.22 to 0.23 is from bugzilla

https://bugzilla.mozilla.org/show_bug.cgi?id=1765746

but this is perf issue.

0.19 to 0.22 is from following bug

https://bugzilla.mozilla.org/show_bug.cgi?id=1765291

yes, we need 0.22+ version of cbindgen. try fixing #4 now

@kenz-gelsoft
Copy link
Owner Author

  --- stderr
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/cxxalloc.h:32:1: warning: replacement function 'operator new' cannot be declared 'inline' [-Winline-new-delete]
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/cxxalloc.h:36:1: warning: replacement function 'operator new' cannot be declared 'inline' [-Winline-new-delete]
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/cxxalloc.h:41:1: warning: replacement function 'operator new[]' cannot be declared 'inline' [-Winline-new-delete]
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/cxxalloc.h:45:1: warning: replacement function 'operator new[]' cannot be declared 'inline' [-Winline-new-delete]
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/cxxalloc.h:50:1: warning: replacement function 'operator delete' cannot be declared 'inline' [-Winline-new-delete]
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/cxxalloc.h:54:1: warning: replacement function 'operator delete' cannot be declared 'inline' [-Winline-new-delete]
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/cxxalloc.h:59:1: warning: replacement function 'operator delete[]' cannot be declared 'inline' [-Winline-new-delete]
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/cxxalloc.h:63:1: warning: replacement function 'operator delete[]' cannot be declared 'inline' [-Winline-new-delete]
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/nsGkAtoms.h:118:39: warning: offset of on non-standard-layout type 'mozilla::detail::GkAtoms' [-Winvalid-offsetof]
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/js/HeapAPI.h:259:38: warning: offset of on non-standard-layout type 'js::gc::TenuredChunkBase' [-Winvalid-offsetof]
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/js/Proxy.h:211:43: warning: offset of on non-standard-layout type 'js::BaseProxyHandler' [-Winvalid-offsetof]
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/AnimationEffectBinding.h:101:58: error: field has incomplete type 'mozilla::dom::OwningUnrestrictedDoubleOrString'
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/AnimationEffectBinding.h:25:7: note: forward declaration of 'mozilla::dom::OwningUnrestrictedDoubleOrString'
  /system/develop/headers/c++/type_traits:1289:23: error: incomplete type 'mozilla::dom::OwningUnrestrictedDoubleOrString' used in type trait expression
  /system/develop/headers/c++/type_traits:3142:5: note: in instantiation of template class 'std::is_trivially_destructible<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/MaybeStorageBase.h:20:10: note: in instantiation of variable template specialization 'std::is_trivially_destructible_v<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:239:27: note: in instantiation of variable template specialization 'mozilla::detail::IsTriviallyDestructibleAndCopyable<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:350:23: note: in instantiation of default argument for 'MaybeStorage<mozilla::dom::OwningUnrestrictedDoubleOrString>' required here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:203:23: note: in instantiation of template class 'mozilla::Maybe<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:207:25: note: in instantiation of template class 'mozilla::dom::Optional_base<mozilla::dom::OwningUnrestrictedDoubleOrString, mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/AnimationEffectBinding.h:156:68: note: in instantiation of template class 'mozilla::dom::Optional<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/AnimationEffectBinding.h:25:7: note: forward declaration of 'mozilla::dom::OwningUnrestrictedDoubleOrString'
  /system/develop/headers/c++/type_traits:1291:7: error: static_assert failed due to requirement 'std::__is_complete_or_unbounded(std::__type_identity<mozilla::dom::OwningUnrestrictedDoubleOrString>{})' "template argument must be a complete class or an unbounded array"
  /system/develop/headers/c++/type_traits:1199:4: error: incomplete type 'mozilla::dom::OwningUnrestrictedDoubleOrString' used in type trait expression
  /system/develop/headers/c++/type_traits:1205:14: note: in instantiation of template class 'std::__is_trivially_copy_constructible_impl<mozilla::dom::OwningUnrestrictedDoubleOrString, true>' requested here
  /system/develop/headers/c++/type_traits:3127:5: note: in instantiation of template class 'std::is_trivially_copy_constructible<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/MaybeStorageBase.h:21:11: note: in instantiation of variable template specialization 'std::is_trivially_copy_constructible_v<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:239:27: note: in instantiation of variable template specialization 'mozilla::detail::IsTriviallyDestructibleAndCopyable<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:350:23: note: in instantiation of default argument for 'MaybeStorage<mozilla::dom::OwningUnrestrictedDoubleOrString>' required here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:203:23: note: in instantiation of template class 'mozilla::Maybe<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:207:25: note: in instantiation of template class 'mozilla::dom::Optional_base<mozilla::dom::OwningUnrestrictedDoubleOrString, mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/AnimationEffectBinding.h:156:68: note: in instantiation of template class 'mozilla::dom::Optional<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/AnimationEffectBinding.h:25:7: note: forward declaration of 'mozilla::dom::OwningUnrestrictedDoubleOrString'
  /system/develop/headers/c++/type_traits:906:30: error: incomplete type 'mozilla::dom::OwningUnrestrictedDoubleOrString' used in type trait expression
  /system/develop/headers/c++/type_traits:936:14: note: in instantiation of template class 'std::__is_constructible_impl<mozilla::dom::OwningUnrestrictedDoubleOrString, const mozilla::dom::OwningUnrestrictedDoubleOrString &>' requested here
  /system/develop/headers/c++/type_traits:139:26: note: in instantiation of template class 'std::__is_copy_constructible_impl<mozilla::dom::OwningUnrestrictedDoubleOrString, true>' requested here
  /system/develop/headers/c++/type_traits:1197:14: note: in instantiation of template class 'std::__and_<std::__is_copy_constructible_impl<mozilla::dom::OwningUnrestrictedDoubleOrString, true>, std::integral_constant<bool, false>>' requested here
  /system/develop/headers/c++/type_traits:1205:14: note: in instantiation of template class 'std::__is_trivially_copy_constructible_impl<mozilla::dom::OwningUnrestrictedDoubleOrString, true>' requested here
  /system/develop/headers/c++/type_traits:3127:5: note: in instantiation of template class 'std::is_trivially_copy_constructible<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/MaybeStorageBase.h:21:11: note: (skipping 1 context in backtrace; use -ftemplate-backtrace-limit=0 to see all)
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:239:27: note: in instantiation of variable template specialization 'mozilla::detail::IsTriviallyDestructibleAndCopyable<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:350:23: note: in instantiation of default argument for 'MaybeStorage<mozilla::dom::OwningUnrestrictedDoubleOrString>' required here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:203:23: note: in instantiation of template class 'mozilla::Maybe<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:207:25: note: in instantiation of template class 'mozilla::dom::Optional_base<mozilla::dom::OwningUnrestrictedDoubleOrString, mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/AnimationEffectBinding.h:156:68: note: in instantiation of template class 'mozilla::dom::Optional<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/AnimationEffectBinding.h:25:7: note: forward declaration of 'mozilla::dom::OwningUnrestrictedDoubleOrString'
  /system/develop/headers/c++/type_traits:1207:7: error: static_assert failed due to requirement 'std::__is_complete_or_unbounded(std::__type_identity<mozilla::dom::OwningUnrestrictedDoubleOrString>{})' "template argument must be a complete class or an unbounded array"
  /system/develop/headers/c++/type_traits:3127:5: note: in instantiation of template class 'std::is_trivially_copy_constructible<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/MaybeStorageBase.h:21:11: note: in instantiation of variable template specialization 'std::is_trivially_copy_constructible_v<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:239:27: note: in instantiation of variable template specialization 'mozilla::detail::IsTriviallyDestructibleAndCopyable<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:350:23: note: in instantiation of default argument for 'MaybeStorage<mozilla::dom::OwningUnrestrictedDoubleOrString>' required here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:203:23: note: in instantiation of template class 'mozilla::Maybe<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:207:25: note: in instantiation of template class 'mozilla::dom::Optional_base<mozilla::dom::OwningUnrestrictedDoubleOrString, mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/AnimationEffectBinding.h:156:68: note: in instantiation of template class 'mozilla::dom::Optional<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /system/develop/headers/c++/type_traits:944:7: error: static_assert failed due to requirement 'std::__is_complete_or_unbounded(std::__type_identity<mozilla::dom::OwningUnrestrictedDoubleOrString>{})' "template argument must be a complete class or an unbounded array"
  /system/develop/headers/c++/type_traits:3107:5: note: in instantiation of template class 'std::is_copy_constructible<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/MaybeStorageBase.h:22:12: note: in instantiation of variable template specialization 'std::is_copy_constructible_v<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:239:27: note: in instantiation of variable template specialization 'mozilla::detail::IsTriviallyDestructibleAndCopyable<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:350:23: note: in instantiation of default argument for 'MaybeStorage<mozilla::dom::OwningUnrestrictedDoubleOrString>' required here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:203:23: note: in instantiation of template class 'mozilla::Maybe<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:207:25: note: in instantiation of template class 'mozilla::dom::Optional_base<mozilla::dom::OwningUnrestrictedDoubleOrString, mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/AnimationEffectBinding.h:156:68: note: in instantiation of template class 'mozilla::dom::Optional<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/MaybeStorageBase.h:20:5: error: constexpr variable 'IsTriviallyDestructibleAndCopyable<mozilla::dom::OwningUnrestrictedDoubleOrString>' must be initialized by a constant expression
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:239:27: note: in instantiation of variable template specialization 'mozilla::detail::IsTriviallyDestructibleAndCopyable<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:350:23: note: in instantiation of default argument for 'MaybeStorage<mozilla::dom::OwningUnrestrictedDoubleOrString>' required here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:203:23: note: in instantiation of template class 'mozilla::Maybe<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:207:25: note: in instantiation of template class 'mozilla::dom::Optional_base<mozilla::dom::OwningUnrestrictedDoubleOrString, mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/AnimationEffectBinding.h:156:68: note: in instantiation of template class 'mozilla::dom::Optional<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:239:27: error: non-type template argument is not a constant expression
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:350:37: note: while checking a default template argument used here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:203:23: note: in instantiation of template class 'mozilla::Maybe<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:207:25: note: in instantiation of template class 'mozilla::dom::Optional_base<mozilla::dom::OwningUnrestrictedDoubleOrString, mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/AnimationEffectBinding.h:156:68: note: in instantiation of template class 'mozilla::dom::Optional<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:239:27: note: initializer of 'IsTriviallyDestructibleAndCopyable<mozilla::dom::OwningUnrestrictedDoubleOrString>' is not a constant expression
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/MaybeStorageBase.h:19:16: note: declared here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:110:15: error: non-type template argument is not a constant expression
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:351:46: note: while checking a default template argument used here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:203:23: note: in instantiation of template class 'mozilla::Maybe<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:207:25: note: in instantiation of template class 'mozilla::dom::Optional_base<mozilla::dom::OwningUnrestrictedDoubleOrString, mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/AnimationEffectBinding.h:156:68: note: in instantiation of template class 'mozilla::dom::Optional<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:110:15: note: initializer of 'IsTriviallyDestructibleAndCopyable<mozilla::dom::OwningUnrestrictedDoubleOrString>' is not a constant expression
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/MaybeStorageBase.h:19:16: note: declared here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:239:27: error: non-type template argument is not a constant expression
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:364:31: note: while checking a default template argument used here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:203:23: note: in instantiation of template class 'mozilla::Maybe<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:207:25: note: in instantiation of template class 'mozilla::dom::Optional_base<mozilla::dom::OwningUnrestrictedDoubleOrString, mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/AnimationEffectBinding.h:156:68: note: in instantiation of template class 'mozilla::dom::Optional<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:239:27: note: initializer of 'IsTriviallyDestructibleAndCopyable<mozilla::dom::OwningUnrestrictedDoubleOrString>' is not a constant expression
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/MaybeStorageBase.h:19:16: note: declared here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:239:27: error: non-type template argument is not a constant expression
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:365:31: note: while checking a default template argument used here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:203:23: note: in instantiation of template class 'mozilla::Maybe<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/BindingDeclarations.h:207:25: note: in instantiation of template class 'mozilla::dom::Optional_base<mozilla::dom::OwningUnrestrictedDoubleOrString, mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/AnimationEffectBinding.h:156:68: note: in instantiation of template class 'mozilla::dom::Optional<mozilla::dom::OwningUnrestrictedDoubleOrString>' requested here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:239:27: note: initializer of 'IsTriviallyDestructibleAndCopyable<mozilla::dom::OwningUnrestrictedDoubleOrString>' is not a constant expression
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/MaybeStorageBase.h:19:16: note: declared here
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/KeyframeEffectBinding.h:327:12: error: no viable conversion from returned value of type 'const mozilla::dom::binding_detail::FastKeyframeEffectOptions' to function return type 'const mozilla::dom::KeyframeEffectOptions'
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/KeyframeEffectBinding.h:124:19: note: explicit constructor is not a candidate
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/KeyframeEffectBinding.h:130:19: note: explicit constructor is not a candidate
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/cxxalloc.h:32:1: warning: replacement function 'operator new' cannot be declared 'inline' [-Winline-new-delete], err: false
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/cxxalloc.h:36:1: warning: replacement function 'operator new' cannot be declared 'inline' [-Winline-new-delete], err: false
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/cxxalloc.h:41:1: warning: replacement function 'operator new[]' cannot be declared 'inline' [-Winline-new-delete], err: false
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/cxxalloc.h:45:1: warning: replacement function 'operator new[]' cannot be declared 'inline' [-Winline-new-delete], err: false
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/cxxalloc.h:50:1: warning: replacement function 'operator delete' cannot be declared 'inline' [-Winline-new-delete], err: false
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/cxxalloc.h:54:1: warning: replacement function 'operator delete' cannot be declared 'inline' [-Winline-new-delete], err: false
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/cxxalloc.h:59:1: warning: replacement function 'operator delete[]' cannot be declared 'inline' [-Winline-new-delete], err: false
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/cxxalloc.h:63:1: warning: replacement function 'operator delete[]' cannot be declared 'inline' [-Winline-new-delete], err: false
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/nsGkAtoms.h:118:39: warning: offset of on non-standard-layout type 'mozilla::detail::GkAtoms' [-Winvalid-offsetof], err: false
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/js/HeapAPI.h:259:38: warning: offset of on non-standard-layout type 'js::gc::TenuredChunkBase' [-Winvalid-offsetof], err: false
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/js/Proxy.h:211:43: warning: offset of on non-standard-layout type 'js::BaseProxyHandler' [-Winvalid-offsetof], err: false
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/AnimationEffectBinding.h:101:58: error: field has incomplete type 'mozilla::dom::OwningUnrestrictedDoubleOrString', err: true
  /system/develop/headers/c++/type_traits:1289:23: error: incomplete type 'mozilla::dom::OwningUnrestrictedDoubleOrString' used in type trait expression, err: true
  /system/develop/headers/c++/type_traits:1291:7: error: static_assert failed due to requirement 'std::__is_complete_or_unbounded(std::__type_identity<mozilla::dom::OwningUnrestrictedDoubleOrString>{})' "template argument must be a complete class or an unbounded array", err: true
  /system/develop/headers/c++/type_traits:1199:4: error: incomplete type 'mozilla::dom::OwningUnrestrictedDoubleOrString' used in type trait expression, err: true
  /system/develop/headers/c++/type_traits:906:30: error: incomplete type 'mozilla::dom::OwningUnrestrictedDoubleOrString' used in type trait expression, err: true
  /system/develop/headers/c++/type_traits:1207:7: error: static_assert failed due to requirement 'std::__is_complete_or_unbounded(std::__type_identity<mozilla::dom::OwningUnrestrictedDoubleOrString>{})' "template argument must be a complete class or an unbounded array", err: true
  /system/develop/headers/c++/type_traits:944:7: error: static_assert failed due to requirement 'std::__is_complete_or_unbounded(std::__type_identity<mozilla::dom::OwningUnrestrictedDoubleOrString>{})' "template argument must be a complete class or an unbounded array", err: true
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/MaybeStorageBase.h:20:5: error: constexpr variable 'IsTriviallyDestructibleAndCopyable<mozilla::dom::OwningUnrestrictedDoubleOrString>' must be initialized by a constant expression, err: true
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:239:27: error: non-type template argument is not a constant expression, err: true
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:110:15: error: non-type template argument is not a constant expression, err: true
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:239:27: error: non-type template argument is not a constant expression, err: true
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Maybe.h:239:27: error: non-type template argument is not a constant expression, err: true
  /boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/KeyframeEffectBinding.h:327:12: error: no viable conversion from returned value of type 'const mozilla::dom::binding_detail::FastKeyframeEffectOptions' to function return type 'const mozilla::dom::KeyframeEffectOptions', err: true
  thread 'main' panicked at 'Failed to generate bindings, flags: ["/boot/home/src/firefox-102.9.0/obj-a/dist/include/nsNameSpaceManager.h", "--rust-target", "1.25", "--disable-untagged-union", "--bitfield-enum", "nsChangeHint", "--bitfield-enum", "mozilla::OriginFlags", "--bitfield-enum", "mozilla::StyleTextUnderlinePosition", "--rustified-enum", "nsCompatibility", "--rustified-enum", "mozilla::EffectCompositor_CascadeLevel", "--rustified-enum", "mozilla::SheetType", "--rustified-enum", "mozilla::dom::CallerType", "--rustified-enum", "mozilla::dom::IterationCompositeOperation", "--rustified-enum", "mozilla::dom::CompositeOperation", "--rustified-enum", "mozilla::InheritTarget", "--rustified-enum", "mozilla::css::DocumentMatchingFunction", "--rustified-enum", "mozilla::css::SheetParsingMode", "--rustified-enum", "nsStyleSVGOpacitySource", "--rustified-enum", "mozilla::dom::Document_DocumentTheme", "--rustified-enum", "mozilla::dom::Document_Type", "--rustified-enum", "mozilla::LookAndFeel_IntID", "--rustified-enum", "mozilla::LookAndFeel_FloatID", "--rustified-enum", "nsCSSUnit", "--rustified-enum", "nsCSSFontDesc", "--rustified-enum", "nsCSSPropertyID", "--rustified-enum", "nsCSSCounterDesc", "--rustified-enum", "nsresult", "--rustified-enum", "nsAtom_AtomKind", "--rustified-enum", "nsStyleImageLayers_LayerType", "--rustified-enum", "mozilla::ServoElementSnapshotFlags", "--rustified-enum", "mozilla::Side", "--rustified-enum", "mozilla::dom::PlaybackDirection", "--rustified-enum", "mozilla::dom::FillMode", "--rustified-enum", "mozilla::HalfCorner", "--rustified-enum", "mozilla::StyleFloatEdge", "--rustified-enum", "mozilla::StyleShapeRadius", "--rustified-enum", "mozilla::StyleWindowDragging", "--rustified-enum", "mozilla::StyleAnimationPlayState", "--rustified-enum", "mozilla::StyleOrient", "--rustified-enum", "mozilla::StyleBoxSizing", "--rustified-enum", "mozilla::StyleClear", "--rustified-enum", "mozilla::StyleColumnFill", "--rustified-enum", "mozilla::StyleColumnSpan", "--rustified-enum", "mozilla::StyleDirection", "--rustified-enum", "mozilla::StyleFloat", "--rustified-enum", "mozilla::StyleImageOrientation", "--rustified-enum", "mozilla::StyleInert", "--rustified-enum", "mozilla::StyleUserModify", "--rustified-enum", "mozilla::StyleUserInput", "--rustified-enum", "mozilla::StyleBoxDirection", "--rustified-enum", "mozilla::StyleRubyAlign", "--rustified-enum", "mozilla::StyleTextSizeAdjust", "--rustified-enum", "mozilla::StyleHyphens", "--rustified-enum", "mozilla::StyleRubyPosition", "--rustified-enum", "mozilla::StyleShapeSourceType", "--rustified-enum", "mozilla::StyleVisibility", "--rustified-enum", "mozilla::StyleBasicShapeType", "--rustified-enum", "nsStyleImageLayers_Size_DimensionType", "--rustified-enum", "mozilla::StyleBorderCollapse", "--rustified-enum", "mozilla::StyleBorderImageRepeat", "--rustified-enum", "mozilla::StyleBoxPack", "--rustified-enum", "mozilla::StyleWindowShadow", "--rustified-enum", "mozilla::StyleDominantBaseline", "--rustified-enum", "mozilla::StyleBoxOrient", "--rustified-enum", "mozilla::StyleBoxAlign", "--rustified-enum", "mozilla::StyleUserFocus", "--rustified-enum", "mozilla::StyleUserSelect", "--rustified-enum", "mozilla::StyleImageLayerRepeat", "--rustified-enum", "mozilla::StyleImageLayerAttachment", "--rustified-enum", "mozilla::StylePositionProperty", "--rustified-enum", "mozilla::StyleBoxDecorationBreak", "--rustified-enum", "mozilla::StyleBorderStyle", "--rustified-enum", "mozilla::StyleRuleInclusion", "--rustified-enum", "mozilla::StyleGridTrackBreadth", "--rustified-enum", "mozilla::StyleOverscrollBehavior", "--rustified-enum", "mozilla::StyleImeMode", "--rustified-enum", "mozilla::StyleOverflowAnchor", "--rustified-enum", "mozilla::StylePointerEvents", "--rustified-enum", "mozilla::StyleScrollbarWidth", "--rustified-enum", "mozilla::StyleWhiteSpace", "--rustified-enum", "mozilla::StyleTextRendering", "--rustified-enum", "mozilla::StyleFlexDirection", "--rustified-enum", "mozilla::StyleStrokeLinecap", "--rustified-enum", "mozilla::StyleStrokeLinejoin", "--rustified-enum", "mozilla::StyleFlexWrap", "--rustified-enum", "mozilla::StyleMathVariant", "--rustified-enum", "mozilla::StyleTextDecorationSkipInk", "--rustified-enum", "mozilla::StyleTextDecorationLength", "--rustified-enum", "mozilla::StyleMaskType", "--rustified-enum", "mozilla::StyleShapeRendering", "--rustified-enum", "mozilla::StyleTextAnchor", "--rustified-enum", "mozilla::StyleObjectFit", "--rustified-enum", "mozilla::StyleTopLayer", "--rustified-enum", "mozilla::StyleIsolation", "--rustified-enum", "mozilla::StyleTextOrientation", "--rustified-enum", "mozilla::StyleTableLayout", "--rustified-enum", "mozilla::StyleEmptyCells", "--rustified-enum", "nsStyleImageType", "--rustified-enum", "nsINode_BooleanFlag", "--rustified-enum", "mozilla::PseudoStyleType", "--rustified-enum", "mozilla::LookAndFeel_ColorID", "--rustified-enum", "mozilla::LookAndFeel_FontID", "--rustified-enum", "nsStyleTransformMatrix::MatrixTransformOperator", "--rustified-enum", "mozilla::StyleGeometryBox", "--rustified-enum", "mozilla::SystemColor", "--rustified-enum", "mozilla::StyleMaskMode", "--rustified-enum", "mozilla::StyleScrollBehavior", "--rustified-enum", "mozilla::StyleColorInterpolation", "--rustified-enum", "mozilla::StyleVectorEffect", "--rustified-enum", "mozilla::StyleBackfaceVisibility", "--rustified-enum", "mozilla::StyleBlend", "--rustified-enum", "mozilla::StyleMaskComposite", "--rustified-enum", "mozilla::StyleWritingModeProperty", "--blacklist-type", ".*char_traits", "--blacklist-type", ".*incompatible_char_type", "--blacklist-type", "mozilla::StyleTimingFunction.*", "--blacklist-type", "mozilla::StyleGenericTransformOperation_.*", "--blacklist-type", "mozilla::StyleAnimationTimeline", "--blacklist-type", "mozilla::StyleAppearance", "--blacklist-type", "mozilla::StyleAspectRatio", "--blacklist-type", "mozilla::StyleComputedFontStretchRange", "--blacklist-type", "mozilla::StyleComputedFontStyleDescriptor", "--blacklist-type", "mozilla::StyleComputedFontWeightRange", "--blacklist-type", "mozilla::StyleComputedTimingFunction", "--blacklist-type", "mozilla::StylePrefersContrast", "--blacklist-type", "mozilla::StyleCursorKind", "--blacklist-type", "mozilla::StyleDisplay", "--blacklist-type", "mozilla::StyleDisplayMode", "--blacklist-type", "mozilla::StylePlatform", "--blacklist-type", "mozilla::StylePrefersColorScheme", "--blacklist-type", "mozilla::StyleDynamicRange", "--blacklist-type", "mozilla::StyleFillRule", "--blacklist-type", "mozilla::StyleFontDisplay", "--blacklist-type", "mozilla::StyleFontFaceSourceListComponent", "--blacklist-type", "mozilla::StyleFontLanguageOverride", "--blacklist-type", "mozilla::StyleOffsetPath", "--blacklist-type", "mozilla::StyleGenericOffsetPath", "--blacklist-type", "mozilla::StyleOffsetRotate", "--blacklist-type", "mozilla::StylePathCommand", "--blacklist-type", "mozilla::StyleRayFunction", "--blacklist-type", "mozilla::StyleUnicodeRange", "--blacklist-type", "mozilla::StyleOverflowWrap", "--blacklist-type", "mozilla::StyleWordBreak", "--blacklist-type", "mozilla::StyleTextJustify", "--blacklist-type", "mozilla::StyleMozControlCharacterVisibility", "--blacklist-type", "mozilla::StyleLineBreak", "--blacklist-type", "mozilla::StyleUserSelect", "--blacklist-type", "mozilla::StyleBreakBetween", "--blacklist-type", "mozilla::StyleBreakWithin", "--blacklist-type", "mozilla::StyleBorderStyle", "--blacklist-type", "mozilla::StyleOutlineStyle", "--blacklist-type", "mozilla::StyleScrollDirection", "--blacklist-type", "mozilla::StyleScrollSnapAlign", "--blacklist-type", "mozilla::StyleScrollSnapStrictness", "--blacklist-type", "mozilla::StyleScrollSnapType", "--blacklist-type", "mozilla::StyleResize", "--blacklist-type", "mozilla::StyleOverflowClipBox", "--blacklist-type", "mozilla::StyleFloat", "--blacklist-type", "mozilla::StyleOverscrollBehavior", "--blacklist-type", "mozilla::StyleTextAlign", "--blacklist-type", "mozilla::StyleTextAlignLast", "--blacklist-type", "mozilla::StyleTextOverflow", "--blacklist-type", "mozilla::StyleOverflow", "--blacklist-type", "mozilla::StyleOverflowAnchor", "--blacklist-type", "mozilla::StyleTextDecorationSkipInk", "--blacklist-type", "mozilla::StyleTextDecorationLength", "--blacklist-type", "mozilla::StyleRubyPosition", "--blacklist-type", "mozilla::StyleLength", "--blacklist-type", "mozilla::StyleLengthPercentage", "--blacklist-type", "mozilla::StyleNonNegativeLengthPercentage", "--blacklist-type", "mozilla::StyleGenericLengthPercentageOrAuto", "--blacklist-type", "mozilla::StyleGenericLengthPercentageOrNormal", "--blacklist-type", "mozilla::StyleLengthPercentageOrAuto", "--blacklist-type", "mozilla::StyleNonNegativeLengthPercentageOrAuto", "--blacklist-type", "mozilla::StyleRect", "--blacklist-type", "mozilla::StyleIntersectionObserverRootMargin", "--blacklist-type", "mozilla::StyleGenericSize", "--blacklist-type", "mozilla::StyleGenericMaxSize", "--blacklist-type", "mozilla::StyleGenericFlexBasis", "--blacklist-type", "mozilla::StyleSize", "--blacklist-type", "mozilla::StyleMaxSize", "--blacklist-type", "mozilla::StyleFlexBasis", "--blacklist-type", "mozilla::StylePosition", "--blacklist-type", "mozilla::StylePositionOrAuto", "--blacklist-type", "mozilla::StyleGenericPositionOrAuto", "--blacklist-type", "mozilla::StyleBackgroundSize", "--blacklist-type", "mozilla::StyleGenericBackgroundSize", "--blacklist-type", "mozilla::StyleBorderImageSlice", "--blacklist-type", "mozilla::StyleGenericLengthOrNumber", "--blacklist-type", "mozilla::StyleCSSPixelLength", "--blacklist-type", "mozilla::StyleNonNegativeLength", "--blacklist-type", "mozilla::StyleNonNegativeNumber", "--blacklist-type", "mozilla::StyleZeroToOneNumber", "--blacklist-type", "mozilla::StylePercentage", "--blacklist-type", "mozilla::StylePerspective", "--blacklist-type", "mozilla::StyleGenericPerspective", "--blacklist-type", "mozilla::StyleZIndex", "--blacklist-type", "mozilla::StyleGenericZIndex", "--blacklist-type", "mozilla::StyleTransformOrigin", "--blacklist-type", "mozilla::StyleTransformStyle", "--blacklist-type", "mozilla::StyleGenericBorderRadius", "--blacklist-type", "mozilla::StyleLetterSpacing", "--blacklist-type", "mozilla::StyleGenericLineHeight", "--blacklist-type", "mozilla::StyleCaretColor", "--blacklist-type", "mozilla::StyleContain", "--blacklist-type", "mozilla::StyleContainerType", "--blacklist-type", "mozilla::StyleContainerName", "--blacklist-type", "mozilla::StyleRestyleHint", "--blacklist-type", "mozilla::StyleTouchAction", "--blacklist-type", "mozilla::StyleWillChange", "--blacklist-type", "mozilla::StyleColorScheme", "--blacklist-type", "mozilla::StyleTextDecorationLine", "--blacklist-type", "mozilla::StyleTextTransform", "--blacklist-type", "mozilla::StyleTextUnderlinePosition", "--blacklist-type", "mozilla::StyleOwned", "--blacklist-type", "mozilla::StyleOwnedOrNull", "--blacklist-type", "mozilla::StyleStrong", "--blacklist-type", "mozilla::StyleGenericFontFamily", "--blacklist-type", "mozilla::StyleFontFamily", "--blacklist-type", "mozilla::StyleGenericFontSizeAdjust", "--blacklist-type", "mozilla::StyleFontFamilyNameSyntax", "--blacklist-type", "mozilla::StyleGenericColor", "--blacklist-type", "mozilla::StyleSystemColor", "--blacklist-type", "mozilla::StyleSystemFont", "--blacklist-type", "mozilla::StyleGenericColorOrAuto", "--blacklist-type", "mozilla::StyleGenericScrollbarColor", "--blacklist-type", "mozilla::StyleRGBA", "--blacklist-type", "mozilla::StyleOrigin", "--blacklist-type", "mozilla::StyleGenericVerticalAlign", "--blacklist-type", "mozilla::StyleVerticalAlignKeyword", "--blacklist-type", "mozilla::StyleGenericBasicShape", "--blacklist-type", "mozilla::StyleArcSlice", "--blacklist-type", "mozilla::StyleForgottenArcSlicePtr", "--blacklist-type", "mozilla::StyleOwnedSlice", "--blacklist-type", "mozilla::StyleMozContextProperties", "--blacklist-type", "mozilla::StyleQuotes", "--blacklist-type", "mozilla::StyleOwnedStr", "--blacklist-type", "mozilla::StyleGenericBoxShadow", "--blacklist-type", "mozilla::StyleGenericSimpleShadow", "--blacklist-type", "mozilla::StyleGenericTransformOperation", "--blacklist-type", "mozilla::StyleGenericTransform", "--blacklist-type", "mozilla::StyleGenericScale", "--blacklist-type", "mozilla::StyleGenericRotate", "--blacklist-type", "mozilla::StyleGenericTranslate", "--blacklist-type", "mozilla::StyleAngle", "--blacklist-type", "mozilla::StyleGenericBorderImageSideWidth", "--blacklist-type", "mozilla::StyleGenericUrlOrNone", "--blacklist-type", "mozilla::StyleCssUrl", "--blacklist-type", "mozilla::StyleSpecifiedUrl", "--blacklist-type", "mozilla::StyleSpecifiedImageUrl", "--blacklist-type", "mozilla::StyleComputedUrl", "--blacklist-type", "mozilla::StyleComputedImageUrl", "--blacklist-type", "mozilla::StyleLoadData", "--blacklist-type", "mozilla::StyleGenericFilter", "--blacklist-type", "mozilla::StyleGenericGradient", "--blacklist-type", "mozilla::StyleLineDirection", "--blacklist-type", "mozilla::StyleGridTemplateAreas", "--blacklist-type", "mozilla::StyleGenericGridLine", "--blacklist-type", "mozilla::StyleGenericTrackSize", "--blacklist-type", "mozilla::StyleGenericTrackBreadth", "--blacklist-type", "mozilla::StyleGenericImplicitGridTracks", "--blacklist-type", "mozilla::StyleImplicitGridTracks", "--blacklist-type", "mozilla::StyleNumberOrPercentage", "--blacklist-type", "mozilla::StyleGenericSVGPaint", "--blacklist-type", "mozilla::StyleGenericTrackRepeat", "--blacklist-type", "mozilla::StyleGenericTrackListValue", "--blacklist-type", "mozilla::StyleGenericTrackList", "--blacklist-type", "mozilla::StyleGenericGridTemplateComponent", "--blacklist-type", "mozilla::StyleTextEmphasisStyle", "--blacklist-type", "mozilla::StyleVariantAlternatesList", "--blacklist-type", "mozilla::StyleSVGPaintOrder", "--blacklist-type", "mozilla::StyleClipRectOrAuto", "--blacklist-type", "mozilla::StyleCounterReset", "--blacklist-type", "mozilla::StyleCounterSet", "--blacklist-type", "mozilla::StyleCounterIncrement", "--blacklist-type", "mozilla::StyleContent", "--blacklist-type", "mozilla::StyleSymbolsType", "--blacklist-type", "mozilla::StyleCounterStyle", "--blacklist-type", "mozilla::StyleComputedJustifyItems", "--blacklist-type", "mozilla::StyleAlignItems", "--blacklist-type", "mozilla::StyleJustifySelf", "--blacklist-type", "mozilla::StyleAlignSelf", "--blacklist-type", "mozilla::StyleAlignContent", "--blacklist-type", "mozilla::StyleJustifyTracks", "--blacklist-type", "mozilla::StyleAlignTracks", "--blacklist-type", "mozilla::StyleJustifyContent", "--blacklist-type", "mozilla::StyleComputedValueFlags", "--blacklist-type", "mozilla::StyleImage", "--blacklist-type", "mozilla::StyleShapeOutside", "--blacklist-type", "mozilla::StyleClipPath", "--blacklist-type", "mozilla::StyleGridAutoFlow", "--blacklist-type", "mozilla::StyleCursor", "--blacklist-type", "mozilla::StyleSVGStrokeDashArray", "--blacklist-type", "mozilla::StyleSVGWidth", "--blacklist-type", "mozilla::StyleSVGOpacity", "--blacklist-type", "mozilla::StyleSVGLength", "--blacklist-type", "mozilla::StyleFontSizeKeyword", "--blacklist-type", "mozilla::StyleDefaultFontSizes", "--blacklist-type", "mozilla::StyleCaptionSide", "--blacklist-type", "mozilla::StylePageName", "--blacklist-type", "mozilla::StylePageSize", "--blacklist-type", "mozilla::StyleDProperty", "--blacklist-type", "mozilla::StyleImageRendering", "--blacklist-type", "mozilla::StylePrintColorAdjust", "--blacklist-type", "mozilla::StyleScrollbarGutter", "--blacklist-type", "mozilla::StyleHyphenateCharacter", "--blacklist-type", "mozilla::StyleContentVisibility", "--blacklist-type", "\\s*mozilla\\s*::\\s*RustCell\\s*", "--blacklist-type", "\\s*ServoNodeData\\s*", "--blacklist-type", "\\s*mozilla\\s*::\\s*ServoWritingMode\\s*", "--blacklist-type", "\\s*mozilla\\s*::\\s*ServoCustomPropertiesMap\\s*", "--blacklist-type", "\\s*mozilla\\s*::\\s*ServoRuleNode\\s*", "--blacklist-type", "\\s*mozilla\\s*::\\s*ServoVisitedStyle\\s*", "--blacklist-type", "\\s*mozilla\\s*::\\s*ServoRawOffsetArc\\s*", "--blacklist-type", "\\s*mozilla\\s*::\\s*ServoManuallyDrop\\s*", "--blacklist-type", "\\s*nsACString\\s*", "--blacklist-type", "\\s*nsAString\\s*", "--blacklist-type", "\\s*nsCString\\s*", "--blacklist-type", "\\s*nsString\\s*", "--opaque-type", "mozilla::StyleThinArc", "--opaque-type", "std::pair__PCCP", "--opaque-type", "std::namespace::atomic___base", "--opaque-type", "std::atomic__My_base", "--opaque-type", "std::atomic", "--opaque-type", "std::atomic___base", "--opaque-type", "mozilla::gfx::(.{0,4}|.{6,12}|.{14,}|([^F][^o][^n][^t][^V][^a][^r][^i][^a][^t][^i][^o][^n])|([^F][^l][^o][^a][^t]))", "--opaque-type", "mozilla::dom::Sequence", "--opaque-type", "mozilla::SmallPointerArray", "--opaque-type", "mozilla::dom::Optional", "--opaque-type", "mozilla::dom::OwningNodeOrString_Value", "--opaque-type", "mozilla::dom::Nullable", "--opaque-type", "mozilla::external::AtomicRefCounted", "--opaque-type", "RefPtr_Proxy", "--opaque-type", "RefPtr_Proxy_member_function", "--opaque-type", "nsAutoPtr_Proxy", "--opaque-type", "nsAutoPtr_Proxy_member_function", "--opaque-type", "mozilla::detail::HashTable", "--opaque-type", "mozilla::detail::PointerType", "--opaque-type", "mozilla::HashSet", "--opaque-type", "mozilla::Pair", "--opaque-type", "mozilla::Pair_Base", "--opaque-type", "mozilla::ScrollAxis", "--opaque-type", "mozilla::SeenPtrs", "--opaque-type", "mozilla::SupportsWeakPtr", "--opaque-type", "mozilla::Tuple", "--opaque-type", "SupportsWeakPtr", "--opaque-type", "mozilla::detail::WeakReference", "--opaque-type", "mozilla::WeakPtr", "--opaque-type", "nsWritingIterator_reference", "--opaque-type", "nsReadingIterator_reference", "--opaque-type", "nsTObserverArray", "--opaque-type", "nsTHashtable", "--opaque-type", "nsTBaseHashSet", "--opaque-type", "nsBaseHashtable", "--opaque-type", "nsRefCountedHashtable", "--opaque-type", "nsClassHashtable", "--opaque-type", "mozilla::dom::Document_SelectorCache", "--opaque-type", "nsPIDOMWindow", "--opaque-type", "JS::Rooted", "--opaque-type", "mozilla::Maybe", "--opaque-type", "gfxSize", "--opaque-type", "gfxSize_Super", "--opaque-type", "mozilla::StyleAnimationValue", "--opaque-type", "StyleAnimationValue", "--opaque-type", "mozilla::dom::.*Callback", "--opaque-type", "mozilla::SchedulerGroup", "--opaque-type", "mozilla::detail::GkAtoms", "--opaque-type", "mozilla::detail::ThreadLocal.*", "--whitelist-function", "Servo_.*", "--whitelist-function", "Gecko_.*", "--whitelist-type", "RawGecko.*", "--whitelist-type", "RawServo.*", "--whitelist-type", "ServoCssRules", "--whitelist-type", "nsFontFaceRuleContainer", "--whitelist-type", "Matrix4x4Components", "--whitelist-type", "mozilla::ComputedKeyframeValues", "--whitelist-type", "mozilla::Keyframe", "--whitelist-type", "mozilla::PropertyValuePair", "--whitelist-type", "mozilla::DeclarationBlockMutationClosure", "--whitelist-type", "mozilla::AnimationPropertySegment", "--whitelist-type", "mozilla::AnonymousCounterStyle", "--whitelist-type", "mozilla::AtomArray", "--whitelist-type", "mozilla::ComputedTiming", "--whitelist-type", "mozilla::ComputedTimingFunction", "--whitelist-type", "mozilla::ComputedTimingFunction::BeforeFlag", "--whitelist-type", "mozilla::Matrix4x4Components", "--whitelist-type", "mozilla::PreferenceSheet", "--whitelist-type", "mozilla::SeenPtrs", "--whitelist-type", "mozilla::ServoElementSnapshot.*", "--whitelist-type", "mozilla::ComputedStyle", "--whitelist-type", "mozilla::StyleSheet", "--whitelist-type", "mozilla::ServoStyleSheetInner", "--whitelist-type", "mozilla::ServoStyleSetSizes", "--whitelist-type", "mozilla::ServoTraversalStatistics", "--whitelist-type", "mozilla::css::LoaderReusableStyleSheets", "--whitelist-type", "mozilla::css::SheetLoadData", "--whitelist-type", "mozilla::css::SheetLoadDataHolder", "--whitelist-type", "mozilla::css::SheetParsingMode", "--whitelist-type", "mozilla::css::DocumentMatchingFunction", "--whitelist-type", "mozilla::dom::IterationCompositeOperation", "--whitelist-type", "mozilla::dom::StyleChildrenIterator", "--whitelist-type", "mozilla::HalfCorner", "--whitelist-type", "mozilla::ipc::ByteBuf", "--whitelist-type", "mozilla::MallocSizeOf", "--whitelist-type", "mozilla::OriginFlags", "--whitelist-type", "mozilla::PropertyStyleAnimationValuePair", "--whitelist-type", "mozilla::ServoTraversalFlags", "--whitelist-type", "mozilla::StyleShapeRadius", "--whitelist-type", "mozilla::StyleGrid.*", "--whitelist-type", "mozilla::UpdateAnimationsTasks", "--whitelist-type", "mozilla::PointerCapabilities", "--whitelist-type", "mozilla::LookAndFeel", "--whitelist-type", "mozilla::gfx::Float", "--whitelist-type", "mozilla::gfx::FontVariation", "--whitelist-type", "mozilla::StyleImageLayerAttachment", "--whitelist-type", "gfxFontFeature", "--whitelist-type", "gfxFontVariation", "--whitelist-type", ".*ThreadSafe.*Holder", "--whitelist-type", "AnonymousContent", "--whitelist-type", "AudioContext", "--whitelist-type", "DefaultDelete", "--whitelist-type", "DOMIntersectionObserverEntry", "--whitelist-type", "Element", "--whitelist-type", "mozilla::FontSizePrefs", "--whitelist-type", "FragmentOrURL", "--whitelist-type", "FrameRequestCallback", "--whitelist-type", "GeckoParserExtraData", "--whitelist-type", "GeckoFontMetrics", "--whitelist-type", "gfxFontFeatureValueSet", "--whitelist-type", "GridNamedArea", "--whitelist-type", "mozilla::HalfCorner", "--whitelist-type", "Image", "--whitelist-type", "ImageURL", "--whitelist-type", "Keyframe", "--whitelist-type", "mozilla::MediumFeaturesChangedResult", "--whitelist-type", "nsAttrName", "--whitelist-type", "nsAttrValue", "--whitelist-type", "nscolor", "--whitelist-type", "nsChangeHint", "--whitelist-type", "nsCSSCounterDesc", "--whitelist-type", "nsCSSFontDesc", "--whitelist-type", "nsCSSKTableEntry", "--whitelist-type", "nsCSSPropertyID", "--whitelist-type", "nsCSSPropertyIDSet", "--whitelist-type", "nsCSSProps", "--whitelist-type", "nsCSSShadowArray", "--whitelist-type", "nsCSSValue", "--whitelist-type", "nsCSSValueList", "--whitelist-type", "nsCSSValueList_heap", "--whitelist-type", "nsCSSValuePair_heap", "--whitelist-type", "nsCSSValuePairList", "--whitelist-type", "nsCSSValuePairList_heap", "--whitelist-type", "nsCSSValueTriplet_heap", "--whitelist-type", "nsCursorImage", "--whitelist-type", "nsFont", "--whitelist-type", "nsAtom", "--whitelist-type", "nsDynamicAtom", "--whitelist-type", "nsMargin", "--whitelist-type", "nsRect", "--whitelist-type", "nsresult", "--whitelist-type", "nsSimpleContentList", "--whitelist-type", "nsSize", "--whitelist-type", "nsStyleBackground", "--whitelist-type", "nsStyleBorder", "--whitelist-type", "nsStyleColor", "--whitelist-type", "nsStyleColumn", "--whitelist-type", "nsStyleContent", "--whitelist-type", "nsStyleContentData", "--whitelist-type", "ComputedStyle", "--whitelist-type", "nsStyleCounterData", "--whitelist-type", "nsStyleDisplay", "--whitelist-type", "nsStyleEffects", "--whitelist-type", "nsStyleFilter", "--whitelist-type", "nsStyleFont", "--whitelist-type", "nsStyleGradient", "--whitelist-type", "nsStyleGridTemplate", "--whitelist-type", "nsStyleImage", "--whitelist-type", "nsStyleImageLayers", "--whitelist-type", "nsStyleList", "--whitelist-type", "nsStyleMargin", "--whitelist-type", "nsStyleOutline", "--whitelist-type", "nsStylePadding", "--whitelist-type", "nsStylePage", "--whitelist-type", "nsStylePosition", "--whitelist-type", "nsStyleSides", "--whitelist-type", "nsStyleSVG", "--whitelist-type", "nsStyleSVGOpacitySource", "--whitelist-type", "nsStyleSVGReset", "--whitelist-type", "nsStyleTable", "--whitelist-type", "nsStyleTableBorder", "--whitelist-type", "nsStyleText", "--whitelist-type", "nsStyleTextReset", "--whitelist-type", "nsStyleUIReset", "--whitelist-type", "nsStyleUnion", "--whitelist-type", "nsStyleUI", "--whitelist-type", "nsStyleVisibility", "--whitelist-type", "nsStyleXUL", "--whitelist-type", "nsTArrayHeader", "--whitelist-type", "Position", "--whitelist-type", "PropertyValuePair", "--whitelist-type", "Runnable", "--whitelist-type", "ServoAttrSnapshot", "--whitelist-type", "ServoComputedData", "--whitelist-type", "ServoComputedDataBorrowed", "--whitelist-type", "ServoElementSnapshot", "--whitelist-type", "ComputedStyleStrong", "--whitelist-type", "ComputedStyleBorrowed", "--whitelist-type", "ComputedStyleBorrowedOrNull", "--whitelist-type", "SheetParsingMode", "--whitelist-type", "StaticRefPtr", "--whitelist-type", "StyleAnimation", "--whitelist-type", "StyleBasicShapeType", "--whitelist-type", "StyleGeometryBox", "--whitelist-type", "StyleShapeSource", "--whitelist-type", "StyleTransition", "--whitelist-type", "ThemeWidgetType", "--whitelist-type", "mozilla::UniquePtr", "--whitelist-type", "mozilla::DeclarationBlock", "--whitelist-type", "mozilla::DefaultDelete", "--whitelist-type", "mozilla::Side", "--whitelist-type", "mozilla::binding_danger::AssertAndSuppressCleanupPolicy", "--whitelist-type", "mozilla::ParsingMode", "--whitelist-type", "mozilla::InheritTarget", "--whitelist-type", "mozilla::dom::MediaList", "--whitelist-type", "mozilla::StyleRuleInclusion", "--whitelist-type", "nsStyleTransformMatrix::MatrixTransformOperator", "--whitelist-var", "NS_ATTRVALUE_.*", "--whitelist-var", "NODE_.*", "--whitelist-var", "ELEMENT_.*", "--whitelist-var", "NS_FONT_.*", "--whitelist-var", "NS_STYLE_.*", "--whitelist-var", "NS_MATHML_.*", "--whitelist-var", "NS_RADIUS_.*", "--whitelist-var", "BORDER_COLOR_.*", "--whitelist-var", "BORDER_STYLE_.*", "--whitelist-var", "CSS_PSEUDO_ELEMENT_.*", "--whitelist-var", "SERVO_CSS_PSEUDO_ELEMENT_FLAGS_.*", "--whitelist-var", "kNameSpaceID_.*", "--whitelist-var", "kGenericFont_.*", "--whitelist-var", "kPresContext_.*", "--whitelist-var", "nsNameSpaceManager_.*", "--whitelist-var", "GECKO_IS_NIGHTLY", "--whitelist-var", "NS_SAME_AS_FOREGROUND_COLOR", "--whitelist-var", "mozilla::detail::gGkAtoms", "--whitelist-var", "mozilla::detail::kGkAtomsArrayOffset", "--whitelist-var", "mozilla::dom::SVGPathSeg_Binding::PATHSEG_.*", "--no-derive-default", "--enable-cxx-namespaces", "--generate", "functions,types,vars", "--ignore-methods", "--raw-line", "pub use self::root::*;", "--raw-line", "pub use self::root::mozilla::*;", "--raw-line", "pub use self::root::mozilla::css::*;", "--raw-line", "pub use self::root::mozilla::dom::*;", "--raw-line", "pub type RustCell<T> = ::std::cell::Cell<T>;", "--raw-line", "pub type ServoNodeData = atomic_refcell::AtomicRefCell<crate::data::ElementData>;", "--raw-line", "pub type ServoWritingMode = crate::logical_geometry::WritingMode;", "--raw-line", "pub type ServoCustomPropertiesMap = Option<servo_arc::Arc<crate::custom_properties::CustomPropertiesMap>>;", "--raw-line", "pub type ServoRuleNode = Option<crate::rule_tree::StrongRuleNode>;", "--raw-line", "pub type ServoVisitedStyle = Option<servo_arc::RawOffsetArc<crate::properties::ComputedValues>>;", "--raw-line", "pub type ServoRawOffsetArc<T> = servo_arc::RawOffsetArc<T>;", "--raw-line", "pub type ServoManuallyDrop<T> = ::std::mem::ManuallyDrop<T>;", "--raw-line", "pub type nsACString = nsstring::nsACString;", "--raw-line", "pub type nsAString = nsstring::nsAString;", "--raw-line", "pub type nsCString = nsstring::nsCString;", "--raw-line", "pub type nsString = nsstring::nsString;", "--size_t-is-usize", "--", "-I", "/boot/home/src/firefox-102.9.0/obj-a/dist/include", "-I", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/nspr", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla-config.h", "-x", "c++", "-fno-sized-deallocation", "-fno-aligned-new", "-DTRACING=1", "-DIMPL_LIBXUL", "-DMOZILLA_INTERNAL_API", "-DRUST_BINDGEN", "-DOS_POSIX=1", "-std=gnu++17", "-I/packages/nspr-4.34.1-3/.self/develop/headers/nspr", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/nsStyleStruct.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/StyleAnimationValue.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/gfxFontConstants.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/gfxFontFeatures.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/nsStyleConsts.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/css/Loader.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/css/SheetLoadData.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/DeclarationBlock.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/AnimationEffectBinding.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/HTMLSlotElement.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/KeyframeEffectBinding.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/MediaList.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/ShadowRoot.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/SVGPathSegBinding.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/ipc/ByteBuf.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/AnimationPropertySegment.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/ComputedTiming.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/ComputedTimingFunction.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/CORSMode.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/Keyframe.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/ServoElementSnapshot.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/ServoElementSnapshotTable.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/Element.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/ChildIterator.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/dom/NameSpaceConstants.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/LookAndFeel.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/GeckoBindings.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/ServoBindings.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/ComputedStyle.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/PresShell.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/ServoTraversalStatistics.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/mozilla/SizeOfState.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/nsCSSProps.h", "-include", "/boot/home/src/firefox-102.9.0/obj-a/dist/include/nsMappedAttributes.h"]', servo/components/style/build_gecko.rs:188:13
  stack backtrace:
     0:      0x14aa9873bf9 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h3f6b03fbbb6ea170
     1:      0x14aa989c4ce - core::fmt::write::ha52d11f4ace7ccb3
     2:      0x14aa985f325 - std::io::Write::write_fmt::h4cb3d66d1368cf98
     3:      0x14aa98739b6 - std::sys_common::backtrace::print::he738d14b2a4638da
     4:      0x14aa9871f4f - std::panicking::default_hook::{{closure}}::hb28f240267fd27aa
     5:      0x14aa9871be4 - std::panicking::default_hook::h8bbc80bb2b6187a6
     6:      0x14aa9872617 - std::panicking::rust_panic_with_hook::hc55f8cd7bca636f4
     7:      0x14aa9873f69 - std::panicking::begin_panic_handler::{{closure}}::h8e6905ebb12efda9
     8:      0x14aa9873d4c - std::sys_common::backtrace::__rust_end_short_backtrace::hf23318794ad02902
     9:      0x14aa9872102 - rust_begin_unwind
    10:      0x14aa9687cd3 - core::panicking::panic_fmt::hedb9f4d38ea952d2
    11:      0x14aa9690866 - build_script_build::build_gecko::generate::h3bd45a4e567cb5da
    12:      0x14aa96926f3 - build_script_build::main::h1903d446c69a3284
    13:      0x14aa9690dd3 - std::sys_common::backtrace::__rust_begin_short_backtrace::ha017d274e810d687
    14:      0x14aa96918a9 - std::rt::lang_start::{{closure}}::h39a82c22eebab1f9
    15:      0x14aa98641f4 - std::rt::lang_start_internal::h96f35d979206e269
    16:      0x14aa9692925 - main
    17:      0x14aa968825f - _start
    18:      0x17f97763ae5 - runtime_loader
warning: build failed, waiting for other jobs to finish...
/boot/home/src/firefox-102.9.0/config/makefiles/rust.mk:429: recipe for target 'force-cargo-library-build' failed
make[3]: *** [force-cargo-library-build] Error 101
make[3]: Leaving directory '/boot/home/src/firefox-102.9.0/obj-a/toolkit/library/rust'
/boot/home/src/firefox-102.9.0/config/recurse.mk:72: recipe for target 'toolkit/library/rust/target' failed
make[2]: *** [toolkit/library/rust/target] Error 2
make[2]: Leaving directory '/boot/home/src/firefox-102.9.0/obj-a'
/boot/home/src/firefox-102.9.0/config/recurse.mk:32: recipe for target 'compile' failed
make[1]: *** [compile] Error 2
make[1]: Leaving directory '/boot/home/src/firefox-102.9.0/obj-a'
/boot/home/src/firefox-102.9.0/config/rules.mk:361: recipe for target 'default' failed
make: *** [default] Error 2
~/src/firefox-102.9.0/obj-a> 

@kenz-gelsoft
Copy link
Owner Author

~/src/firefox-102.9.0/obj-a> grep UnionTypes .. -R
../dom/animation/TimingParams.h:#include "mozilla/dom/UnionTypes.h"  // For OwningUnrestrictedDoubleOrString
../dom/base/ChromeUtils.cpp:#include "mozilla/dom/UnionTypes.h"
../dom/base/nsGlobalWindowInner.h:#include "mozilla/dom/UnionTypes.h"
../dom/base/nsGlobalWindowOuter.h:#include "mozilla/dom/UnionTypes.h"
../dom/bindings/Codegen.py:        # If a union is "defined" in multiple files, it goes in UnionTypes.h.
../dom/bindings/Codegen.py:            return "mozilla/dom/UnionTypes.h"
../dom/bindings/Codegen.py:        # UnionTypes.h.
../dom/bindings/Codegen.py:            return "mozilla/dom/UnionTypes.h"
../dom/bindings/Codegen.py:def UnionTypes(unionTypes, config):
../dom/bindings/Codegen.py:                            # In UnionTypes.h we need to see the declaration of the
../dom/bindings/Codegen.py:                    # UnionTypes.h so we have its sizeof and know how big to
../dom/bindings/Codegen.py:            # We plan to include UnionTypes.h no matter what, so it's
../dom/bindings/Codegen.py:                # UnionTypes.h just to call Addref/Release
../dom/bindings/Codegen.py:        ) = UnionTypes(unionTypes, config)
../dom/bindings/Codegen.py:        # both this bit and the bit in UnionTypes can be removed.
../dom/bindings/Codegen.py:    def UnionTypes(config):
../dom/bindings/Codegen.py:        ) = UnionTypes(unionTypes, config)
../dom/bindings/Codegen.py:        curr = CGHeaders([], [], [], [], includes, implincludes, "UnionTypes", curr)
../dom/bindings/Codegen.py:        curr = CGIncludeGuard("UnionTypes", curr)
../dom/bindings/Codegen.py:        headers.update(["nsDebug.h", "mozilla/dom/UnionTypes.h"])

@kenz-gelsoft
Copy link
Owner Author

UnrestrictedDoubleOrString is defined here.

AnimationEffectBinding.h

class UnrestrictedDoubleOrString
{
  friend class UnrestrictedDoubleOrStringArgument;
  enum Type
  {
    eUninitialized,
    eUnrestrictedDouble,
    eString
  };

@kenz-gelsoft
Copy link
Owner Author

Max parallel build jobs can be specified with

https://doc.rust-lang.org/cargo/reference/config.html#buildjobs

@kenz-gelsoft
Copy link
Owner Author

LLVM ERROR: IO failure on output stream: Permission denied
warning: `wgpu-core` (lib) generated 1 warning
error: could not compile `wgpu-core`; 1 warning emitted

Caused by:
  process didn't exit successfully: `CARGO=/boot/system/develop/tools/rust/bin/cargo CARGO_CRATE_NAME=wgpu_core CARGO_MANIFEST_DIR=/boot/home/src/firefox-102.9.0/third_party/rust/wgpu-core CARGO_PKG_AUTHORS='wgpu developers' CARGO_PKG_DESCRIPTION='WebGPU core logic on wgpu-hal' CARGO_PKG_HOMEPAGE='https://github.com/gfx-rs/wgpu' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=wgpu-core CARGO_PKG_REPOSITORY='https://github.com/gfx-rs/wgpu' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.12.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=12 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/boot/home/src/firefox-102.9.0/obj-a/release/deps:/boot/system/develop/tools/rust/lib' OUT_DIR=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/build/wgpu-core-8f406b113b55ed8b/out /bin/rustc --crate-name wgpu_core --edition=2018 /boot/home/src/firefox-102.9.0/third_party/rust/wgpu-core/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=168 --crate-type lib --emit=dep-info,metadata,link -C opt-level=2 -C panic=abort -C embed-bitcode=no --cfg 'feature="default"' --cfg 'feature="replay"' --cfg 'feature="ron"' --cfg 'feature="serde"' --cfg 'feature="serial-pass"' --cfg 'feature="trace"' -C metadata=922e520e36a8d1fe -C extra-filename=-922e520e36a8d1fe --out-dir /boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps --target x86_64-unknown-haiku -C linker=/boot/home/src/firefox-102.9.0/build/cargo-linker -L dependency=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps -L dependency=/boot/home/src/firefox-102.9.0/obj-a/release/deps --extern arrayvec=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libarrayvec-adf8f2394c5ae234.rmeta --extern bitflags=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libbitflags-7423203aa9b50f83.rmeta --extern codespan_reporting=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libcodespan_reporting-60079f6bd5a85bfb.rmeta --extern copyless=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libcopyless-27249fe5d7181c10.rmeta --extern fxhash=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libfxhash-1cd61ca457520d32.rmeta --extern log=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/liblog-b1557cde796759b7.rmeta --extern naga=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libnaga-7711f6fff935aab9.rmeta --extern parking_lot=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libparking_lot-4906d0f4e0e888ff.rmeta --extern profiling=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libprofiling-3f7dada88c49d2fd.rmeta --extern ron=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libron-91a31bcd4504ab73.rmeta --extern serde=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libserde-f9593093702d7d38.rmeta --extern smallvec=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libsmallvec-c512fbf50f400de4.rmeta --extern thiserror=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libthiserror-3acda93a66167716.rmeta --extern hal=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libwgpu_hal-d4641c84b5c384b5.rmeta --extern wgt=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libwgpu_types-1b32103d123ad9fc.rmeta --cap-lints warn -C debuginfo=2 --cap-lints warn -Cembed-bitcode=yes -C codegen-units=1 --cfg unix_wo_apple --cfg vulkan --cfg gl` (exit status: 101)
warning: build failed, waiting for other jobs to finish...
LLVM ERROR: IO failure on output stream: Permission denied
error: could not compile `style`

Caused by:
  process didn't exit successfully: `CARGO=/boot/system/develop/tools/rust/bin/cargo CARGO_CRATE_NAME=style CARGO_MANIFEST_DIR=/boot/home/src/firefox-102.9.0/servo/components/style CARGO_PKG_AUTHORS='The Servo Project Developers' CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MPL-2.0 CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=style CARGO_PKG_REPOSITORY='' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.0.1 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=1 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/boot/home/src/firefox-102.9.0/obj-a/release/deps:/boot/system/develop/tools/rust/lib' OUT_DIR=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/build/style-75b3c3ba2bde3459/out /bin/rustc --crate-name style --edition=2018 servo/components/style/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=168 --crate-type lib --emit=dep-info,metadata,link -C opt-level=2 -C panic=abort -C embed-bitcode=no --cfg 'feature="bindgen"' --cfg 'feature="gecko"' --cfg 'feature="mozbuild"' --cfg 'feature="nsstring"' --cfg 'feature="regex"' --cfg 'feature="serde"' --cfg 'feature="toml"' -C metadata=4974a82468193ffe -C extra-filename=-4974a82468193ffe --out-dir /boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps --target x86_64-unknown-haiku -C linker=/boot/home/src/firefox-102.9.0/build/cargo-linker -C incremental=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/incremental -L dependency=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps -L dependency=/boot/home/src/firefox-102.9.0/obj-a/release/deps --extern app_units=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libapp_units-7f6200833a185a13.rmeta --extern arrayvec=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libarrayvec-a46dbced8453192a.rmeta --extern atomic_refcell=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libatomic_refcell-4cc899edcf624440.rmeta --extern bitflags=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libbitflags-7423203aa9b50f83.rmeta --extern byteorder=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libbyteorder-98aee62b5a59d7fd.rmeta --extern cssparser=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libcssparser-998ca3a54a2a2ccd.rmeta --extern derive_more=/boot/home/src/firefox-102.9.0/obj-a/release/deps/libderive_more-3ea31d28f51710fe.so --extern euclid=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libeuclid-f89472ecc22fd810.rmeta --extern fxhash=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libfxhash-1cd61ca457520d32.rmeta --extern gecko_profiler=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libgecko_profiler-63854df958bda8b9.rmeta --extern indexmap=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libindexmap-b0746caca36e3bbe.rmeta --extern itertools=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libitertools-4582d5486869dc02.rmeta --extern itoa=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libitoa-daf320052529891d.rmeta --extern lazy_static=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/liblazy_static-ddabf66fff32fbca.rmeta --extern log=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/liblog-b1557cde796759b7.rmeta --extern malloc_size_of=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libmalloc_size_of-8ec9e702be46deeb.rmeta --extern malloc_size_of_derive=/boot/home/src/firefox-102.9.0/obj-a/release/deps/libmalloc_size_of_derive-12d85de0d9385633.so --extern matches=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libmatches-3ef985186bf3868e.rmeta --extern debug_unreachable=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libdebug_unreachable-0d35e582be6d67df.rmeta --extern nsstring=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libnsstring-cf57166a66721fd8.rmeta --extern num_derive=/boot/home/src/firefox-102.9.0/obj-a/release/deps/libnum_derive-53c6c79d77eac5f4.so --extern num_integer=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libnum_integer-58b414b0ca501b21.rmeta --extern num_traits=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libnum_traits-30a0963a4bd5ec74.rmeta --extern num_cpus=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libnum_cpus-a6c8d4d3775286b3.rmeta --extern owning_ref=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libowning_ref-80de3b8f8215118f.rmeta --extern parking_lot=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libparking_lot-4906d0f4e0e888ff.rmeta --extern precomputed_hash=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libprecomputed_hash-f79a5baf9925d18f.rmeta --extern rayon=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/librayon-eb5951a4bdb52a24.rmeta --extern selectors=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libselectors-bca51e3f28a45238.rmeta --extern serde=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libserde-f9593093702d7d38.rmeta --extern servo_arc=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libservo_arc-73f4f6e47a45f593.rmeta --extern smallbitvec=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libsmallbitvec-2d1f1c6808708af0.rmeta --extern smallvec=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libsmallvec-c512fbf50f400de4.rmeta --extern static_assertions=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libstatic_assertions-d5ddcef379a2122d.rmeta --extern static_prefs=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libstatic_prefs-80b460e40494d44d.rmeta --extern style_derive=/boot/home/src/firefox-102.9.0/obj-a/release/deps/libstyle_derive-be7fab962c2e7289.so --extern style_traits=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libstyle_traits-e21ecfeb36056683.rmeta --extern time=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libtime-3265941d827308dc.rmeta --extern to_shmem=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libto_shmem-f75fafa22851a788.rmeta --extern to_shmem_derive=/boot/home/src/firefox-102.9.0/obj-a/release/deps/libto_shmem_derive-13a06503aa158406.so --extern uluru=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libuluru-0dde5753431c9a8b.rmeta --extern unicode_bidi=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libunicode_bidi-dea1ae44a1427d7b.rmeta --extern unicode_segmentation=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libunicode_segmentation-14720f9c5b80853c.rmeta --extern void=/boot/home/src/firefox-102.9.0/obj-a/x86_64-unknown-haiku/release/deps/libvoid-73cdcd42c0e09a5e.rmeta -C debuginfo=2 --cap-lints warn -Cembed-bitcode=yes -C codegen-units=1` (exit status: 101)
/boot/home/src/firefox-102.9.0/config/makefiles/rust.mk:429: recipe for target 'force-cargo-library-build' failed
make[3]: *** [force-cargo-library-build] Error 101
make[3]: Leaving directory '/boot/home/src/firefox-102.9.0/obj-a/toolkit/library/rust'
/boot/home/src/firefox-102.9.0/config/recurse.mk:72: recipe for target 'toolkit/library/rust/target' failed
make[2]: *** [toolkit/library/rust/target] Error 2
make[2]: Leaving directory '/boot/home/src/firefox-102.9.0/obj-a'
/boot/home/src/firefox-102.9.0/config/recurse.mk:32: recipe for target 'compile' failed
make[1]: *** [compile] Error 2
make[1]: Leaving directory '/boot/home/src/firefox-102.9.0/obj-a'
/boot/home/src/firefox-102.9.0/config/rules.mk:361: recipe for target 'default' failed
make: *** [default] Error 2
~/src/firefox-102.9.0/obj-a> 

@kenz-gelsoft
Copy link
Owner Author

kenz-gelsoft commented May 1, 2023

cbindgen issue was #4

LLVM IO error or so was #18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant