[Webkit-unassigned] [Bug 188483] New: Cannot build for i386 architecture

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Aug 11 07:49:41 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=188483

            Bug ID: 188483
           Summary: Cannot build for i386 architecture
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Gtk
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: karogyoker2+webkit at gmail.com
                CC: bugs-noreply at webkitgtk.org

Hi,

I tried to build with:
cmake -DPORT=GTK -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="-march=i386" -DCMAKE_CXX_FLAGS="-march=i386" -DUSE_WOFF2=OFF -GNinja
ninja

But I got this:
[1550/3276] Linking CXX executable bin/WebKitWebDriver
FAILED: bin/WebKitWebDriver 
: && /usr/bin/c++  -fdiagnostics-color=always -Wno-expansion-to-defined -Wno-attributes -Wno-noexcept-type -Wno-maybe-uninitialized -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -Wextra -Wall -march=i386 -fno-strict-aliasing -fno-exceptions -fno-rtti -std=c++14 -O3 -DNDEBUG  -fuse-ld=gold -Wl,--disable-new-dtags   -rdynamic Source/WebDriver/CMakeFiles/WebDriver.dir/CommandResult.cpp.o Source/WebDriver/CMakeFiles/WebDriver.dir/HTTPServer.cpp.o Source/WebDriver/CMakeFiles/WebDriver.dir/Session.cpp.o Source/WebDriver/CMakeFiles/WebDriver.dir/SessionHost.cpp.o Source/WebDriver/CMakeFiles/WebDriver.dir/WebDriverMain.cpp.o Source/WebDriver/CMakeFiles/WebDriver.dir/WebDriverService.cpp.o Source/WebDriver/CMakeFiles/WebDriver.dir/__/__/DerivedSources/WebDriver/WebDriverAtoms.cpp.o Source/WebDriver/CMakeFiles/WebDriver.dir/glib/SessionHostGlib.cpp.o Source/WebDriver/CMakeFiles/WebDriver.dir/glib/WebDriverServiceGLib.cpp.o Source/WebDriver/CMakeFiles/WebDriver.dir/gtk/WebDriverServiceGtk.cpp.o Source/WebDriver/CMakeFiles/WebDriver.dir/soup/HTTPServerSoup.cpp.o  -o bin/WebKitWebDriver  lib/libWTFGTK.a /usr/lib/i386-linux-gnu/libsoup-2.4.so lib/libbmalloc.a -ldl /usr/lib/i386-linux-gnu/libicudata.so /usr/lib/i386-linux-gnu/libicui18n.so /usr/lib/i386-linux-gnu/libicuuc.so -lpthread /usr/lib/i386-linux-gnu/libgio-2.0.so /usr/lib/i386-linux-gnu/libgobject-2.0.so /usr/lib/i386-linux-gnu/libglib-2.0.so /usr/lib/i386-linux-gnu/libz.so && :
lib/libWTFGTK.a(lib/../Source/WTF/wtf/CMakeFiles/WTF.dir/Assertions.cpp.o):Assertions.cpp:function WTFLoggingAccumulator::accumulate(WTF::String const&): error: undefined reference to '__atomic_compare_exchange_1'
lib/libWTFGTK.a(lib/../Source/WTF/wtf/CMakeFiles/WTF.dir/Assertions.cpp.o):Assertions.cpp:function WTFLoggingAccumulator::accumulate(WTF::String const&): error: undefined reference to '__atomic_compare_exchange_1'
lib/libWTFGTK.a(lib/../Source/WTF/wtf/CMakeFiles/WTF.dir/Assertions.cpp.o):Assertions.cpp:function WTFLoggingAccumulator::resetAccumulatedLogs(): error: undefined reference to '__atomic_compare_exchange_1'
lib/libWTFGTK.a(lib/../Source/WTF/wtf/CMakeFiles/WTF.dir/Assertions.cpp.o):Assertions.cpp:function WTFLoggingAccumulator::resetAccumulatedLogs(): error: undefined reference to '__atomic_compare_exchange_1'
lib/libWTFGTK.a(lib/../Source/WTF/wtf/CMakeFiles/WTF.dir/ParkingLot.cpp.o):ParkingLot.cpp:function WTF::ThreadSpecific<WTF::RefPtr<WTF::(anonymous namespace)::ThreadData, WTF::DumbPtrTraits<WTF::(anonymous namespace)::ThreadData> >, (WTF::CanBeGCThread)1>::destroy(void*): error: undefined reference to '__atomic_fetch_sub_4'
lib/libWTFGTK.a(lib/../Source/WTF/wtf/CMakeFiles/WTF.dir/ParkingLot.cpp.o):ParkingLot.cpp:function WTF::ThreadSpecific<WTF::RefPtr<WTF::(anonymous namespace)::ThreadData, WTF::DumbPtrTraits<WTF::(anonymous namespace)::ThreadData> >, (WTF::CanBeGCThread)1>::destroy(void*): error: undefined reference to '__atomic_compare_exchange_4'
lib/libWTFGTK.a(lib/../Source/WTF/wtf/CMakeFiles/WTF.dir/ParkingLot.cpp.o):ParkingLot.cpp:function WTF::ThreadSpecific<WTF::RefPtr<WTF::(anonymous namespace)::ThreadData, WTF::DumbPtrTraits<WTF::(anonymous namespace)::ThreadData> >, (WTF::CanBeGCThread)1>::destroy(void*): error: undefined reference to '__atomic_fetch_sub_4'
lib/libWTFGTK.a(lib/../Source/WTF/wtf/CMakeFiles/WTF.dir/ParkingLot.cpp.o):ParkingLot.cpp:function WTF::(anonymous namespace)::ensureHashtable(): error: undefined reference to '__atomic_compare_exchange_4'
lib/libWTFGTK.a(lib/../Source/WTF/wtf/CMakeFiles/WTF.dir/ParkingLot.cpp.o):ParkingLot.cpp:function WTF::(anonymous namespace)::ensureHashtable(): error: undefined reference to '__atomic_compare_exchange_4'
lib/libWTFGTK.a(lib/../Source/WTF/wtf/CMakeFiles/WTF.dir/ParkingLot.cpp.o):ParkingLot.cpp:function WTF::(anonymous namespace)::ensureHashtable(): error: undefined reference to '__atomic_compare_exchange_4'
lib/libWTFGTK.a(lib/../Source/WTF/wtf/CMakeFiles/WTF.dir/ParkingLot.cpp.o):ParkingLot.cpp:function WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&): error: undefined reference to '__atomic_fetch_sub_4'
lib/libWTFGTK.a(lib/../Source/WTF/wtf/CMakeFiles/WTF.dir/ParkingLot.cpp.o):ParkingLot.cpp:function WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&): error: undefined reference to '__atomic_fetch_sub_4'
lib/libWTFGTK.a(lib/../Source/WTF/wtf/CMakeFiles/WTF.dir/Threading.cpp.o):Threading.cpp:function WTF::Thread::removeFromThreadGroup(WTF::AbstractLocker const&, WTF::ThreadGroup&): error: undefined reference to '__atomic_fetch_add_4'
lib/libWTFGTK.a(lib/../Source/WTF/wtf/CMakeFiles/WTF.dir/Threading.cpp.o):Threading.cpp:function WTF::Thread::removeFromThreadGroup(WTF::AbstractLocker const&, WTF::ThreadGroup&): error: undefined reference to '__atomic_fetch_add_4'
lib/libWTFGTK.a(lib/../Source/WTF/wtf/CMakeFiles/WTF.dir/Threading.cpp.o):Threading.cpp:function WTF::Thread::removeFromThreadGroup(WTF::AbstractLocker const&, WTF::ThreadGroup&): error: undefined reference to '__atomic_fetch_add_4'
lib/libWTFGTK.a(lib/../Source/WTF/wtf/CMakeFiles/WTF.dir/Threading.cpp.o):Threading.cpp:function WTF::Thread::removeFromThreadGroup(WTF::AbstractLocker const&, WTF::ThreadGroup&): error: undefined reference to '__atomic_fetch_add_4'
collect2: error: ld returned 1 exit status
[1552/3276] Generate bindings (WebCoreBindings)
ninja: build stopped: subcommand failed.

Although, it compiled if the -march was i686. Is this OK? Because it seems that the Debian packages are built for i386 here:
https://packages.debian.org/stretch/i386/libwebkitgtk-3.0-dev/download

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180811/4cf6393a/attachment.html>


More information about the webkit-unassigned mailing list