<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>226682</bug_id>
          
          <creation_ts>2021-06-05 08:13:41 -0700</creation_ts>
          <short_desc>Build broken on Gentoo OS by Loongson 2f MIPS CPU</short_desc>
          <delta_ts>2022-03-22 06:25:39 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>WebKit Local Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Emtone">tong__hui</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aperez</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>tong__hui</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1767129</commentid>
    <comment_count>0</comment_count>
    <who name="Emtone">tong__hui</who>
    <bug_when>2021-06-05 08:13:41 -0700</bug_when>
    <thetext>Build error info:
 * Working in BUILD_DIR: &quot;/var/tmp/portage/net-libs/webkit-gtk-2.32.1/work/webkit-gtk-2.32.1_build&quot;
ninja -v -j1 -l0
[1/4768] /usr/bin/mips64el-unknown-linux-gnu-g++ -DBUILDING_GTK__=1 -DBUILDING_WITH_CMAKE=1 -DBUILDING_WTF -DBWRAP_EXECUTABLE=\&quot;/usr/bin/bwrap\&quot; -DDBUS_PROXY_EXECUTABLE=\&quot;/usr/bin/xdg-dbus-proxy\&quot; -DGETTEXT_PACKAGE=\&quot;WebKit2GTK-4.0\&quot; -DHAVE_CONFIG_H=1 -DJSC_GLIB_API_ENABLED -DSVN_REVISION=\&quot;tarball\&quot; -DWEBKITGTK_API_VERSION_STRING=\&quot;4.0\&quot; -I. -IDerivedSources/WTF -I/var/tmp/portage/net-libs/webkit-gtk-2.32.1/work/webkitgtk-2.32.1/Source/WTF -I/var/tmp/portage/net-libs/webkit-gtk-2.32.1/work/webkitgtk-2.32.1/Source/WTF/wtf -I/var/tmp/portage/net-libs/webkit-gtk-2.32.1/work/webkitgtk-2.32.1/Source/WTF/wtf/dtoa -I/var/tmp/portage/net-libs/webkit-gtk-2.32.1/work/webkitgtk-2.32.1/Source/WTF/wtf/persistence -I/var/tmp/portage/net-libs/webkit-gtk-2.32.1/work/webkitgtk-2.32.1/Source/WTF/wtf/text -I/var/tmp/portage/net-libs/webkit-gtk-2.32.1/work/webkitgtk-2.32.1/Source/WTF/wtf/text/icu -I/var/tmp/portage/net-libs/webkit-gtk-2.32.1/work/webkitgtk-2.32.1/Source/WTF/wtf/threads -I/var/tmp/portage/net-libs/webkit-gtk-2.32.1/work/webkitgtk-2.32.1/Source/WTF/wtf/unicode -isystem /usr/include/gio-unix-2.0 -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/lib32/libffi/include -isystem /usr/include/glib-2.0 -isystem /usr/lib32/glib-2.0/include  -DNDEBUG -fdiagnostics-color=always -Wextra -Wall -Wno-expansion-to-defined -Wno-noexcept-type -Wno-psabi -Wno-misleading-indentation -Wno-maybe-uninitialized -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -Wno-tautological-compare -O2 -march=loongson2f -Wa,-mfix-loongson2f-nop -pipe -fPIC -fno-strict-aliasing -fno-exceptions -fno-rtti -fPIC -std=c++17 -MD -MT Source/WTF/wtf/CMakeFiles/WTF.dir/DateMath.cpp.o -MF Source/WTF/wtf/CMakeFiles/WTF.dir/DateMath.cpp.o.d -o Source/WTF/wtf/CMakeFiles/WTF.dir/DateMath.cpp.o -c /var/tmp/portage/net-libs/webkit-gtk-2.32.1/work/webkitgtk-2.32.1/Source/WTF/wtf/DateMath.cpp
FAILED: Source/WTF/wtf/CMakeFiles/WTF.dir/DateMath.cpp.o
/usr/bin/mips64el-unknown-linux-gnu-g++ -DBUILDING_GTK__=1 -DBUILDING_WITH_CMAKE=1 -DBUILDING_WTF -DBWRAP_EXECUTABLE=\&quot;/usr/bin/bwrap\&quot; -DDBUS_PROXY_EXECUTABLE=\&quot;/usr/bin/xdg-dbus-proxy\&quot; -DGETTEXT_PACKAGE=\&quot;WebKit2GTK-4.0\&quot; -DHAVE_CONFIG_H=1 -DJSC_GLIB_API_ENABLED -DSVN_REVISION=\&quot;tarball\&quot; -DWEBKITGTK_API_VERSION_STRING=\&quot;4.0\&quot; -I. -IDerivedSources/WTF -I/var/tmp/portage/net-libs/webkit-gtk-2.32.1/work/webkitgtk-2.32.1/Source/WTF -I/var/tmp/portage/net-libs/webkit-gtk-2.32.1/work/webkitgtk-2.32.1/Source/WTF/wtf -I/var/tmp/portage/net-libs/webkit-gtk-2.32.1/work/webkitgtk-2.32.1/Source/WTF/wtf/dtoa -I/var/tmp/portage/net-libs/webkit-gtk-2.32.1/work/webkitgtk-2.32.1/Source/WTF/wtf/persistence -I/var/tmp/portage/net-libs/webkit-gtk-2.32.1/work/webkitgtk-2.32.1/Source/WTF/wtf/text -I/var/tmp/portage/net-libs/webkit-gtk-2.32.1/work/webkitgtk-2.32.1/Source/WTF/wtf/text/icu -I/var/tmp/portage/net-libs/webkit-gtk-2.32.1/work/webkitgtk-2.32.1/Source/WTF/wtf/threads -I/var/tmp/portage/net-libs/webkit-gtk-2.32.1/work/webkitgtk-2.32.1/Source/WTF/wtf/unicode -isystem /usr/include/gio-unix-2.0 -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/lib32/libffi/include -isystem /usr/include/glib-2.0 -isystem /usr/lib32/glib-2.0/include  -DNDEBUG -fdiagnostics-color=always -Wextra -Wall -Wno-expansion-to-defined -Wno-noexcept-type -Wno-psabi -Wno-misleading-indentation -Wno-maybe-uninitialized -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -Wno-tautological-compare -O2 -march=loongson2f -Wa,-mfix-loongson2f-nop -pipe -fPIC -fno-strict-aliasing -fno-exceptions -fno-rtti -fPIC -std=c++17 -MD -MT Source/WTF/wtf/CMakeFiles/WTF.dir/DateMath.cpp.o -MF Source/WTF/wtf/CMakeFiles/WTF.dir/DateMath.cpp.o.d -o Source/WTF/wtf/CMakeFiles/WTF.dir/DateMath.cpp.o -c /var/tmp/portage/net-libs/webkit-gtk-2.32.1/work/webkitgtk-2.32.1/Source/WTF/wtf/DateMath.cpp
/var/tmp/portage/net-libs/webkit-gtk-2.32.1/work/webkitgtk-2.32.1/Source/WTF/wtf/DateMath.cpp: In function ‘void WTF::getLocalTime(const time_t*, tm*)’:
/var/tmp/portage/net-libs/webkit-gtk-2.32.1/work/webkitgtk-2.32.1/Source/WTF/wtf/DateMath.cpp:114:5: error: ‘localtime_s’ was not declared in this scope
     localtime_s(localTime, localTM);
     ^~~~~~~~~~~
/var/tmp/portage/net-libs/webkit-gtk-2.32.1/work/webkitgtk-2.32.1/Source/WTF/wtf/DateMath.cpp:114:5: note: suggested alternative: ‘localtime_r’
     localtime_s(localTime, localTM);
     ^~~~~~~~~~~
     localtime_r
ninja: build stopped: subcommand failed.
 * ERROR: net-libs/webkit-gtk-2.32.1::gentoo failed (compile phase):
 *   ninja -v -j1 -l0 failed
 *
 * Call stack:
 *     ebuild.sh, line  125:  Called src_compile
 *   environment, line 3916:  Called cmake_src_compile
 *   environment, line 1609:  Called cmake_build
 *   environment, line 1578:  Called eninja
 *   environment, line 2039:  Called die
 * The specific snippet of code:
 *       &quot;$@&quot; || die &quot;${nonfatal_args[@]}&quot; &quot;${*} failed&quot;
 *
 * If you need support, post the output of `emerge --info &apos;=net-libs/webkit-gtk-2.32.1::gentoo&apos;`,
 * the complete build log and the output of `emerge -pqv &apos;=net-libs/webkit-gtk-2.32.1::gentoo&apos;`.
 * The complete build log is located at &apos;/var/tmp/portage/net-libs/webkit-gtk-2.32.1/temp/build.log&apos;.
 * The ebuild environment file is located at &apos;/var/tmp/portage/net-libs/webkit-gtk-2.32.1/temp/environment&apos;.
 * Working directory: &apos;/var/tmp/portage/net-libs/webkit-gtk-2.32.1/work/webkit-gtk-2.32.1_build&apos;
 * S: &apos;/var/tmp/portage/net-libs/webkit-gtk-2.32.1/work/webkitgtk-2.32.1&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1853633</commentid>
    <comment_count>1</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2022-03-22 06:25:39 -0700</bug_when>
    <thetext>Hello, is this still an issue in newer releases like 2.34.x or (better)
the recently released 2.36.0? It also strikes me as odd that localtime_s()
is being used, it looks like the check for localtime_r() may have failed
during configuration... and localtime_r() has been in glibc for ages 🤔️</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>