Opened 5 weeks ago

Last modified 5 weeks ago

#32355 new project

Tor Browser for Linux/ARMv7 (x86_64 build arch)

Reported by: JeremyRand Owned by: tbb-team
Priority: Medium Milestone:
Component: Applications/Tor Browser Version:
Severity: Normal Keywords: tbb-rbm, TorBrowserTeam201904
Cc: gk, mcs, arma, boklm, intrigeri, peredor Actual Points:
Parent ID: #12631 Points:
Reviewer: Sponsor:

Description

The Tor Project should provide a Tor Browser compatible with the ARMv7 processor. This would provide a safe way of using Tor for users of the Samsung ARM Chromebook, the Samsung Chromebook 2, the Raspberry Pi, the Novena Open Laptop, and probably other platforms too.

This ticket is specifically for building Tor Browser for ARMv7 targets with the x86_64 build arch.

Child Tickets

Attachments (1)

firefox-linux-arm-2019-10-29.log (2.3 MB) - added by JeremyRand 5 weeks ago.

Change History (4)

Changed 5 weeks ago by JeremyRand

comment:1 Changed 5 weeks ago by JeremyRand

Here's my current patch: https://notabug.org/JeremyRand/tor-browser-build/src/armhf-esr68

At the moment, firefox fails to build; log is at http://ea5faa5po25cf7fb.onion/projects/tor/attachment/ticket/32355/firefox-linux-arm-2019-10-29.log . The failure seems to be a Rust panic while building the Rust style package. It's not clear to me what the cause of this is... does anyone happen to recognize this error or have any ideas on what could be wrong?

comment:2 Changed 5 weeks ago by gk

You see the problem above the panic:

10:15.93 [style 0.0.1] /usr/include/stdlib.h:96:1: error: unknown type name '__BEGIN_NAMESPACE_STD'
10:15.93 [style 0.0.1] /usr/include/stdlib.h:98:1: error: expected unqualified-id
10:15.93 [style 0.0.1] /usr/include/stdlib.h:102:5: error: C++ requires a type specifier for all declarations
10:15.94 [style 0.0.1] /usr/include/stdlib.h:113:1: error: unknown type name '__END_NAMESPACE_STD'
10:15.94 [style 0.0.1] /usr/include/stdlib.h:116:22: error: expected ';' after top level declarator
10:15.94 [style 0.0.1] /usr/include/stdlib.h:124:1: error: unknown type name '__END_NAMESPACE_C99'
10:15.94 [style 0.0.1] /usr/include/stdlib.h:140:1: error: expected unqualified-id
10:15.94 [style 0.0.1] /usr/include/stdlib.h:143:1: error: unknown type name '__BEGIN_NAMESPACE_STD'
10:15.94 [style 0.0.1] /usr/include/stdlib.h:145:1: error: expected unqualified-id
10:15.94 [style 0.0.1] /usr/include/stdlib.h:153:1: error: unknown type name '__END_NAMESPACE_STD'
10:15.94 [style 0.0.1] /usr/include/stdlib.h:156:22: error: expected ';' after top level declarator
10:15.94 [style 0.0.1] /usr/include/stdlib.h:160:1: error: unknown type name '__END_NAMESPACE_C99'
10:15.94 [style 0.0.1] /usr/include/stdlib.h:163:22: error: expected ';' after top level declarator
10:15.94 [style 0.0.1] /usr/include/stdlib.h:168:1: error: unknown type name '__END_NAMESPACE_STD'
10:15.94 [style 0.0.1] /usr/include/stdlib.h:171:22: error: expected ';' after top level declarator
10:15.94 [style 0.0.1] /usr/include/stdlib.h:179:1: error: unknown type name '__END_NAMESPACE_C99'
10:15.94 [style 0.0.1] /usr/include/stdlib.h:182:22: error: expected ';' after top level declarator
10:15.94 [style 0.0.1] /usr/include/stdlib.h:191:1: error: unknown type name '__END_NAMESPACE_STD'
10:15.94 [style 0.0.1] /usr/include/stdlib.h:207:22: error: expected ';' after top level declarator
10:15.94 [style 0.0.1] fatal error: too many errors emitted, stopping now [-ferror-limit=]
10:15.94 [style 0.0.1] /usr/include/stdlib.h:96:1: error: unknown type name '__BEGIN_NAMESPACE_STD', err: true
10:15.94 [style 0.0.1] /usr/include/stdlib.h:98:1: error: expected unqualified-id, err: true
10:15.94 [style 0.0.1] /usr/include/stdlib.h:102:5: error: C++ requires a type specifier for all declarations, err: true
10:15.94 [style 0.0.1] /usr/include/stdlib.h:113:1: error: unknown type name '__END_NAMESPACE_STD', err: true
10:15.94 [style 0.0.1] /usr/include/stdlib.h:116:22: error: expected ';' after top level declarator, err: true
10:15.94 [style 0.0.1] /usr/include/stdlib.h:124:1: error: unknown type name '__END_NAMESPACE_C99', err: true
10:15.94 [style 0.0.1] /usr/include/stdlib.h:140:1: error: expected unqualified-id, err: true
10:15.94 [style 0.0.1] /usr/include/stdlib.h:143:1: error: unknown type name '__BEGIN_NAMESPACE_STD', err: true
10:15.94 [style 0.0.1] /usr/include/stdlib.h:145:1: error: expected unqualified-id, err: true
10:15.94 [style 0.0.1] /usr/include/stdlib.h:153:1: error: unknown type name '__END_NAMESPACE_STD', err: true
10:15.95 [style 0.0.1] /usr/include/stdlib.h:156:22: error: expected ';' after top level declarator, err: true
10:15.95 [style 0.0.1] /usr/include/stdlib.h:160:1: error: unknown type name '__END_NAMESPACE_C99', err: true
10:15.95 [style 0.0.1] /usr/include/stdlib.h:163:22: error: expected ';' after top level declarator, err: true
10:15.95 [style 0.0.1] /usr/include/stdlib.h:168:1: error: unknown type name '__END_NAMESPACE_STD', err: true
10:15.95 [style 0.0.1] /usr/include/stdlib.h:171:22: error: expected ';' after top level declarator, err: true
10:15.95 [style 0.0.1] /usr/include/stdlib.h:179:1: error: unknown type name '__END_NAMESPACE_C99', err: true
10:15.95 [style 0.0.1] /usr/include/stdlib.h:182:22: error: expected ';' after top level declarator, err: true
10:15.95 [style 0.0.1] /usr/include/stdlib.h:191:1: error: unknown type name '__END_NAMESPACE_STD', err: true
10:15.95 [style 0.0.1] /usr/include/stdlib.h:207:22: error: expected ';' after top level declarator, err: true
10:15.95 [style 0.0.1] fatal error: too many errors emitted, stopping now [-ferror-limit=], err: true

and

10:15.97 [style 0.0.1] thread 'main' panicked at 'Failed to generate bindings, flags: ["/var/tmp/build/firefox-5d24d4b6873d/obj-arm/dist/include/GeckoProfiler.h", "--rust-target", "1.25", "--bitfield-enum", "nsChangeHint", "--bitfield-enum", "mozilla::OriginFlags", "--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", "mozilla::StyleContentType", "--rustified-enum", "nsStyleSVGOpacitySource", "--rustified-enum", "nsStyleUnit", "--rustified-enum", "nsCSSKeyword", "--rustified-enum", "mozilla::dom::Document_DocumentTheme", "--rustified-enum", "mozilla::dom::Document_Type", "--rustified-enum", "nsCSSUnit", "--rustified-enum", "nsCSSFontDesc", "--rustified-enum", "nsCSSPropertyID", "--rustified-enum", "nsCSSCounterDesc", "--rustified-enum", "nsMediaFeature_RangeType", "--rustified-enum", "nsMediaFeature_ValueType", "--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::StyleFloat", "--rustified-enum", "mozilla::StyleImageOrientation", "--rustified-enum", "mozilla::StyleUserModify", "--rustified-enum", "mozilla::StyleUserInput", "--rustified-enum", "mozilla::StyleBoxDirection", "--rustified-enum", "mozilla::StyleTextJustify", "--rustified-enum", "mozilla::StyleHyphens", "--rustified-enum", "mozilla::StyleShapeSourceType", "--rustified-enum", "mozilla::StyleBasicShapeType", "--rustified-enum", "nsStyleImageLayers_Size_DimensionType", "--rustified-enum", "mozilla::StyleStackSizing", "--rustified-enum", "mozilla::StyleBorderCollapse", "--rustified-enum", "mozilla::StyleBorderImageRepeat", "--rustified-enum", "mozilla::StyleBoxPack", "--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::StyleBoxDecorationBreak", "--rustified-enum", "mozilla::StyleBorderStyle", "--rustified-enum", "mozilla::StyleRuleInclusion", "--rustified-enum", "mozilla::StyleGridTrackBreadth", "--rustified-enum", "mozilla::StyleOverscrollBehavior", "--rustified-enum", "mozilla::StyleOverflowAnchor", "--rustified-enum", "mozilla::StyleScrollbarWidth", "--rustified-enum", "mozilla::StyleWhiteSpace", "--rustified-enum", "mozilla::StyleTextRendering", "--rustified-enum", "mozilla::StyleColorAdjust", "--rustified-enum", "mozilla::StyleFlexDirection", "--rustified-enum", "nsStyleImageType", "--rustified-enum", "nsStyleSVGPaintType", "--rustified-enum", "nsStyleSVGFallbackType", "--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", "

What command did you use to build the Firefox part?

comment:3 Changed 5 weeks ago by gk

I suspect you are passing the wrong flags to BINDGEN_CFLAGS actually.

Note: See TracTickets for help on using tickets.