Opened 6 years ago

Closed 6 years ago

#14055 closed bug (fixed)

webkit-rebased build fails with error on x86_64

Reported by: vidrep Owned by: pulkomandy
Priority: normal Milestone: Unscheduled
Component: Applications/WebPositive Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

This probably isn't the right place for this, but if a quick answer can be found that can help others, then maybe it's OK.

Attempting to build webkit-rebased on either x86_gcc2h or x86_64 fails with errors. The README.markdown was followed. "Configuring your build for the first time" finishes OK in both cases. It is during "make -j4" that it fails. Logs of each attached.

Attachments (6)

webkit-rebased_x86_64.txt (676 bytes ) - added by vidrep 6 years ago.
webkit-rebased_x86_gcc2h.txt (676 bytes ) - added by vidrep 6 years ago.
build-webkit_haiku.txt (48.6 KB ) - added by vidrep 6 years ago.
webkit_make.txt (2.8 KB ) - added by vidrep 6 years ago.
webkit_HaikuLauncher.txt (162.0 KB ) - added by vidrep 6 years ago.
haikuwebkit_recipe.txt (20.4 KB ) - added by vidrep 6 years ago.

Download all attachments as: .zip

Change History (15)

by vidrep, 6 years ago

Attachment: webkit-rebased_x86_64.txt added

by vidrep, 6 years ago

comment:1 by pulkomandy, 6 years ago

1) Please try again with the current sources, I just pushed changes moments ago (commit afb9e4fc42a) and tried a clean build with these, it worked fine.

2) Usually I don't use make, because ninja provide faster builds. So follow the instructions about installing ninja, delete the WebKitBuild/Release directory and start over (ninja is detected automatically when available). The README should be adjusted to put info about ninja before the line to build things, because it seems people don't read through the whole file before starting to run commands :)

comment:2 by vidrep, 6 years ago

WebKit-rebased built and working on 64 bit. I'll post any further comments here if issues arise.

comment:3 by pulkomandy, 6 years ago

Resolution: fixed
Status: newclosed

comment:4 by vidrep, 6 years ago

Re-opening this ticket just for the sake of not creating another ticket for the same problem.

Build webkit-rebased on sources current as of May 1, 2018.

hrev51912 x86_64

Attached build logs for the following:

build-webkit --haiku, make -j4, make -j4 HaikuLauncher

by vidrep, 6 years ago

Attachment: build-webkit_haiku.txt added

by vidrep, 6 years ago

Attachment: webkit_make.txt added

by vidrep, 6 years ago

Attachment: webkit_HaikuLauncher.txt added

comment:5 by vidrep, 6 years ago

Resolution: fixed
Status: closedreopened

comment:6 by vidrep, 6 years ago

I have also attached the result of the attempt to build webkit from the new recipe on 64 bit

by vidrep, 6 years ago

Attachment: haikuwebkit_recipe.txt added

comment:7 by pulkomandy, 6 years ago

Basically all of them are the same problem:

x86_64-unknown-haiku/bin/ld: ImageDiff.cpp.o: relocation R_X86_64_PC32 against symbol `_Z6workerPv' can not be used when making a shared object; recompile with -fPIC

Anyone with some knowledge about x86_64 can explain? I thought -fPIC was the default on Haiku, and this happens when building an executable:

/bin/c++ -fdiagnostics-color=always -Wno-maybe-uninitialized -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -Wextra -Wall -fno-strict-aliasing -fno-exceptions -std=c++14 -fno-rtti -O3 -DNDEBUG -frtti Tools/ImageDiff/CMakeFiles/ImageDiff.dir/haiku/ImageDiff.cpp.o -o bin/ImageDiff -lbe -ltranslation

comment:8 by pulkomandy, 6 years ago

Summary: webkit-rebased build fails with errorwebkit-rebased build fails with error on x86_64

comment:9 by waddlesplash, 6 years ago

Resolution: fixed
Status: reopenedclosed

x86_64 build has been fixed.

Note: See TracTickets for help on using tickets.