Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 668648 - www-client/chromium-69.0.3497.100 build failure when attempting to link swiftshader
Summary: www-client/chromium-69.0.3497.100 build failure when attempting to link swift...
Status: RESOLVED DUPLICATE of bug 663442
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Chromium Project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2018-10-14 19:21 UTC by Alex Bennee
Modified: 2018-10-15 19:55 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch from the Ubuntu project, only need to actually apply the change to swiftshader from it (1454_1453.diff,2.16 KB, patch)
2018-10-14 19:21 UTC, Alex Bennee
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Bennee 2018-10-14 19:21:29 UTC
Created attachment 551280 [details, diff]
Patch from the Ubuntu project, only need to actually apply the change to swiftshader from it

I got the following build failure:

/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: obj/third_party/swiftshader/src/OpenGL/libGLESv2/swiftshader_libGLESv2_st
atic/libGLESv2.o: relocation R_X86_64_PC32 against protected symbol `glBlendEquationSeparate' can not be used when making a shared object
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: bad value
clang-6.0: error: linker command failed with exit code 1 (use -v to see invocation)

After some digging it looks like other distros have come across the same thing:

  https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1784397
  https://bazaar.launchpad.net/~chromium-team/chromium-browser/cosmic-dev/revision/1454

Applying the swiftshader-default-visibility.patch locally allowed the build to continue.
Comment 1 Mike Gilbert gentoo-dev 2018-10-15 19:55:50 UTC
Please upgrade to >=sys-devel/llvm-6.0.1-r1, or downgrade to sys-devel/binutils-2.30*.

*** This bug has been marked as a duplicate of bug 663442 ***