Opened 11 years ago
Closed 10 years ago
#10432 closed bug (fixed)
Webpositive crash hrev46699_x86_64
Reported by: | vidrep | Owned by: | pulkomandy |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Applications/WebPositive | Version: | R1/Development |
Keywords: | Cc: | korli | |
Blocked By: | Blocking: | #10668, #10809 | |
Platform: | All |
Description
Webpositive crashes on application launch
Attachments (3)
Change History (16)
by , 11 years ago
Attachment: | WebPositive-670-debug-18-01-2014-12-33-35.report added |
---|
by , 11 years ago
Attachment: | WebPositive-704-debug-18-01-2014-12-33-55.report added |
---|
comment:1 by , 11 years ago
Component: | - General → Applications/WebPositive |
---|---|
Owner: | changed from | to
comment:2 by , 11 years ago
Owner: | changed from | to
---|---|
Status: | new → in-progress |
comment:3 by , 11 years ago
Cc: | added |
---|---|
Owner: | changed from | to
Status: | in-progress → assigned |
1.2.3 currently fails to build on x86_64. The following error stops the build:
Linking CXX executable ../../../bin/jsc /boot/system/develop/tools/bin/../lib/gcc/x86_64-unknown-haiku/4.7.3/../../../../x86_64-unknown-haiku/bin/ld: ../../../lib/libJavaScriptCore.a(LowLevelInterpreter.cpp.o): relocation R_X86_64_PC32 against symbol `llint_throw_from_slow_path_trampoline' can not be used when making a shared object; recompile with -fPIC /boot/system/develop/tools/bin/../lib/gcc/x86_64-unknown-haiku/4.7.3/../../../../x86_64-unknown-haiku/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status
comment:4 by , 11 years ago
Does adding -fPIC (cflags can be added in Source/cmake/OptionsHaiku.cmake, use the if that sets -march=i686 for x86) actually solve this?
comment:5 by , 11 years ago
No difference unfortunately, same build error with or without -fPIC, tried adding it outside of that if block as well since that one seems x86-specific, but that made no difference either.
comment:6 by , 11 years ago
According to https://github.com/flavio/qjson/issues/24 , this may be fixed by upgrading to gcc 4.8.
by , 11 years ago
Attachment: | WebPositive-725-debug-29-01-2014-19-19-03.report added |
---|
comment:8 by , 11 years ago
No need to add extra bugreports with the same backtrace. The bug isn't fixed and nothing was changed, so it crashes in the same way.
follow-up: 11 comment:9 by , 11 years ago
While reviewing our patches to CMake, I noticed that I added an x86-specific fix to handle ELF files rpath modification. CMake can modify the rpath on the fly when installing the files, so libraries are found. When this isn't supported, it will use some other method which may lead to the issue we have here.
Adding a similar support for x86_64 may help.
Has anyone tried building it on x86_64 with gcc4.8?
comment:10 by , 11 years ago
Blocking: | 10668 added |
---|
(In #10668) Indeed, had forgotten about that one.
comment:11 by , 11 years ago
Replying to pulkomandy:
While reviewing our patches to CMake, I noticed that I added an x86-specific fix to handle ELF files rpath modification. CMake can modify the rpath on the fly when installing the files, so libraries are found. When this isn't supported, it will use some other method which may lead to the issue we have here.
gcc 4.8 on its own appears to make no difference, jsc still fails to link with the exact same error as before. With regards to the rpath modification fix, I was unable to test modifying that for x86-64, because trying to build cmake on x86-64 eventually leads to a stuck build where the bootstrap cmake executable is consuming 100% CPU, whether I make any changes or not. This applies regardless of whether one attempts to build 2.8.11.2 or 3.0. I couldn't figure out why though, and I'm not that familiar with cmake in general, so I'm afraid I'm a bit low on ideas.
comment:12 by , 10 years ago
Blocking: | 10809 added |
---|
comment:13 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
x86_64 Haiku now has a working 1.4.0 WebKit build.
The package needs to be updated to version 1.2.3 as has been done for the 32-bit builds.