Skip to content

unresolved import webrender_api::DevicePixel #23474

Closed

Description

@zaynkorai

Trying to build Servo on Ubuntu(Debian)
./mach build --dev

facing following issue

error[E0432]: unresolved import `webrender_api::DevicePixel` --> components/style_traits/lib.rs:37:9 | 37 | pub use webrender_api::DevicePixel; | ^^^^^^^^^^^^^^^^^^^^^^^^^^ no `DevicePixel` in the root

error: failed to run custom build command for `mozjs_sys v0.66.0 (https://github.com/servo/mozjs?rev=e21c05b415dfc246175ff8d5fc48b0e8c5b4e9e9#e21c05b4)```

Activity

  1. jdm commented on May 29, 2019

    @jdm
    Member

    Did you change the version of webrender that is use by servo?

  2. zaynkorai commented on May 30, 2019

    @zaynkorai
    Author

    nope I haven't touched anything. just following official documentation
    resolved that issue in my case, just updated the gcc version.
    But now while at the end of compilation

    Compiling servo v0.0.1 (/home/zayn/rus/servo/ports/glutin)
    Building [=====================================================> ] 635/636: servo(bin)
    

    its failing with following error

    error: linking with `cc` failed: exit code: 1 | = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L"

  3. jdm commented on May 30, 2019

    @jdm
    Member

    Can you gist the full output?

  4. zaynkorai commented on May 31, 2019

    @zaynkorai
    Author

    here is gist output

  5. CYBAI commented on May 31, 2019

    @CYBAI
    Member

    Looks like this is related to #21970.

    Could you check the workaround from #21970 (comment) or #21970 (comment) ?

    Btw, due to duplicate with #21970 , let's close this one and track issue there.

    Thanks for reporting issue! :)

  6. added
    A-build
    C-duplicate
    P-linux
    on May 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-buildC-duplicateP-linux

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions