pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/56025: mozc-server 2.26.4248.100 fails to build on NetBSD/i386 9.1



>Number:         56025
>Category:       pkg
>Synopsis:       mozc-server 2.26.4248.100 fails to build on NetBSD/i386 9.1
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 26 15:50:00 +0000 2021
>Originator:     Izumi Tsutsui
>Release:        NetBSD 9.1 + pkgsrc 2020Q4 + recent mozc package updates
>Organization:
>Environment:
System: NetBSD mirage 9.1 NetBSD 9.1 (GENERIC) #0: Sun Oct 18 19:24:30 UTC 2020 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
Recently updated mozc-server (and maybe other mozc packages) fail to
build on NetBSD/i386 9.1, probably due to 64bit atomic ops.

>How-To-Repeat:
Build mozc-server 2.26.4248.100.

---
INFO: Running: ninja -C out_bsd/Release mozc_server
ninja: Entering directory `out_bsd/Release'

 :

[291/806] AR obj/base/libabsl_hash_internal.a
[292/806] LINK gen_collocation_suppression_data_main
FAILED: gen_collocation_suppression_data_main 
c++ -pthread -o gen_collocation_suppression_data_main -Wl,--start-group obj.host/rewriter/gen_collocation_suppression_data_main.gen_collocation_suppression_data_main.o obj.host/rewriter/libgen_existence_data.a obj.host/storage/libstorage.a obj.host/base/libabsl_strings.a obj.host/base/libabsl_base.a obj.host/base/libabsl_hash_internal.a obj.host/base/libabsl_numeric.a obj.host/base/libabsl_strings_internal.a obj.host/base/libbase.a obj.host/base/libbase_core.a obj.host/base/libclock.a obj.host/base/libsingleton.a obj.host/base/libmutex.a obj.host/base/libabsl_time.a obj.host/base/libabsl_flags.a obj.host/base/libabsl_flags_internal.a obj.host/base/libabsl_synchronization.a obj.host/base/libabsl_debugging.a obj.host/base/libhash.a obj.host/base/libencryptor.a obj.host/base/libobfuscator_support.a obj.host/base/libclock_mock.a obj.host/base/libcodegen_bytearray_stream.a -Wl,--end-group  
ld: obj.host/rewriter/gen_collocation_suppression_data_main.gen_collocation_suppression_data_main.o: in function `absl::lts_2020_09_23::flags_internal::FlagValue<bool, (absl::lts_2020_09_23::flags_internal::FlagValueStorageKind)1>::Get(bool&) const':
gen_collocation_suppression_data_main.cc:(.text._ZNK4absl14lts_2020_09_2314flags_internal9FlagValueIbLNS1_20FlagValueStorageKindE1EE3GetERb[_ZNK4absl14lts_2020_09_2314flags_internal9FlagValueIbLNS1_20FlagValueStorageKindE1EE3GetERb]+0x45): undefined reference to `__atomic_load_8'
ld: obj.host/rewriter/gen_collocation_suppression_data_main.gen_collocation_suppression_data_main.o: in function `absl::lts_2020_09_23::flags_internal::FlagValue<double, (absl::lts_2020_09_23::flags_internal::FlagValueStorageKind)1>::Get(double&) const':
gen_collocation_suppression_data_main.cc:(.text._ZNK4absl14lts_2020_09_2314flags_internal9FlagValueIdLNS1_20FlagValueStorageKindE1EE3GetERd[_ZNK4absl14lts_2020_09_2314flags_internal9FlagValueIdLNS1_20FlagValueStorageKindE1EE3GetERd]+0x45): undefined reference to `__atomic_load_8'
ld: obj.host/base/libabsl_time.a(absl_time.clock.o): in function `absl::lts_2020_09_23::GetCurrentTimeNanosFromKernel(unsigned long long, unsigned long long*)':
clock.cc:(.text+0x228): undefined reference to `__atomic_load_8'
ld: clock.cc:(.text+0x357): undefined reference to `__atomic_store_8'
ld: clock.cc:(.text+0x4c5): undefined reference to `__atomic_store_8'
ld: obj.host/base/libabsl_time.a(absl_time.clock.o): in function `absl::lts_2020_09_23::SeqAcquire(std::atomic<unsigned long long>*)':
clock.cc:(.text+0x573): undefined reference to `__atomic_fetch_add_8'
ld: obj.host/base/libabsl_time.a(absl_time.clock.o): in function `absl::lts_2020_09_23::SeqRelease(std::atomic<unsigned long long>*, unsigned long long)':
clock.cc:(.text+0x5fd): undefined reference to `__atomic_store_8'
ld: obj.host/base/libabsl_time.a(absl_time.clock.o): in function `absl::lts_2020_09_23::ReadTimeSampleAtomic(absl::lts_2020_09_23::TimeSampleAtomic const*, absl::lts_2020_09_23::TimeSample*)':
clock.cc:(.text+0x64e): undefined reference to `__atomic_load_8'
ld: clock.cc:(.text+0x68f): undefined reference to `__atomic_load_8'
ld: clock.cc:(.text+0x6d0): undefined reference to `__atomic_load_8'
ld: clock.cc:(.text+0x711): undefined reference to `__atomic_load_8'
ld: clock.cc:(.text+0x74f): undefined reference to `__atomic_load_8'
ld: obj.host/base/libabsl_time.a(absl_time.clock.o):clock.cc:(.text+0x7b5): more undefined references to `__atomic_load_8' follow
ld: obj.host/base/libabsl_time.a(absl_time.clock.o): in function `absl::lts_2020_09_23::UpdateLastSample(unsigned long long, unsigned long long, unsigned long long, absl::lts_2020_09_23::TimeSample const*)':
clock.cc:(.text+0xd0d): undefined reference to `__atomic_store_8'
ld: clock.cc:(.text+0xd6f): undefined reference to `__atomic_store_8'
ld: clock.cc:(.text+0xdcf): undefined reference to `__atomic_store_8'
ld: clock.cc:(.text+0xe31): undefined reference to `__atomic_store_8'
ld: clock.cc:(.text+0xe93): undefined reference to `__atomic_store_8'
ld: obj.host/base/libabsl_time.a(absl_time.clock.o):clock.cc:(.text+0x121a): more undefined references to `__atomic_store_8' follow
ld: obj.host/base/libabsl_flags_internal.a(absl_flags_internal.flag.o): in function `absl::lts_2020_09_23::flags_internal::FlagImpl::CurrentValue[abi:cxx11]() const':
flag.cc:(.text+0xb65): undefined reference to `__atomic_load_8'
ld: obj.host/base/libabsl_flags_internal.a(absl_flags_internal.flag.o): in function `absl::lts_2020_09_23::flags_internal::FlagImpl::SaveState()':
flag.cc:(.text+0xe8a): undefined reference to `__atomic_load_8'
ld: obj.host/base/libabsl_flags_internal.a(absl_flags_internal.flag.o): in function `absl::lts_2020_09_23::flags_internal::FlagImpl::Read(void*) const':
flag.cc:(.text+0x141c): undefined reference to `__atomic_load_8'
ld: obj.host/base/libabsl_base.a(absl_base.spinlock_wait.o): in function `absl::lts_2020_09_23::base_internal::SpinLockSuggestedDelayNS(int)':
spinlock_wait.cc:(.text+0x242): undefined reference to `__atomic_load_8'
ld: spinlock_wait.cc:(.text+0x2be): undefined reference to `__atomic_store_8'
[293/806] CXX obj/third_party/abseil-cpp/absl/time/internal/cctz/src/absl_time.time_zone_if.o
[294/806] CXX obj/third_party/abseil-cpp/absl/time/internal/cctz/src/absl_time.time_zone_format.o
[295/806] CXX obj/third_party/abseil-cpp/absl/time/internal/cctz/src/absl_time.time_zone_impl.o
[296/806] CXX obj/third_party/abseil-cpp/absl/time/internal/cctz/src/absl_time.time_zone_info.o
[297/806] ACTION(host) [oss] Generating gen/data_manager/oss/connection.data
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "build_mozc.py", line 898, in <module>
    sys.exit(main())
  File "build_mozc.py", line 883, in main
    BuildMain(cmd_opts, cmd_args)
  File "build_mozc.py", line 623, in BuildMain
    BuildWithNinja(options, targets)
  File "build_mozc.py", line 597, in BuildWithNinja
    RunOrDie([ninja, '-C', build_arg, target_name])
  File "/s/cvs/pkgsrc/inputmethod/mozc-server/work.i386/mozc-2.26.4282.100/src/build_tools/util.py", line 103, in RunOrDie
    raise RunOrDieError('\n'.join(['',
build_tools.util.RunOrDieError: 
==========
 ERROR: ninja -C out_bsd/Release mozc_server
==========
*** Error code 1

Stop.
make[1]: stopped in /s/cvs/pkgsrc/inputmethod/mozc-server
*** Error code 1

Stop.
make: stopped in /s/cvs/pkgsrc/inputmethod/mozc-server

---

>Fix:
The following fix that adds "-march=i586" to NetBSD/i386 builds
allows to build on i386 (though I'm not sure about gyp syntax).

---

Index: inputmethod/mozc-server/distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/inputmethod/mozc-server/distinfo,v
retrieving revision 1.23
diff -u -p -r1.23 distinfo
--- inputmethod/mozc-server/distinfo	15 Feb 2021 14:50:23 -0000	1.23
+++ inputmethod/mozc-server/distinfo	25 Feb 2021 22:52:54 -0000
@@ -33,7 +33,7 @@ SHA1 (patch-gui_qt__moc.gypi) = e3d42e61
 SHA1 (patch-gui_qt__rcc.gypi) = d38a849fe8e81672eb441a41936f454d8e45ff5c
 SHA1 (patch-gui_qt__uic.gypi) = 7dd69ee109e81f0e70f2866b77555412518b4844
 SHA1 (patch-gui_word__register__dialog_word__register__dialog.cc) = 218e3706b819855814ba8871504fc7ccb4e40b23
-SHA1 (patch-gyp_common.gypi) = 18e03490d6758ce49f4b79eb1259409cd440faba
+SHA1 (patch-gyp_common.gypi) = def0f13aaaa2e294ac24315982ef9f5693f50082
 SHA1 (patch-gyp_directories.gypi) = eea985113aac5b99bf3c12267ad754817eef5dcc
 SHA1 (patch-ipc_ipc__path__manager.cc) = cd1352bd5333f1ed755dcf6221f931fcd0a936d3
 SHA1 (patch-ipc_ipc__path__manager__test.cc) = 1b83b513383f184f5ab5a56cce734b7934998533
Index: inputmethod/mozc-server/patches/patch-gyp_common.gypi
===================================================================
RCS file: /cvsroot/pkgsrc/inputmethod/mozc-server/patches/patch-gyp_common.gypi,v
retrieving revision 1.10
diff -u -p -r1.10 patch-gyp_common.gypi
--- inputmethod/mozc-server/patches/patch-gyp_common.gypi	15 Feb 2021 14:50:23 -0000	1.10
+++ inputmethod/mozc-server/patches/patch-gyp_common.gypi	25 Feb 2021 22:52:54 -0000
@@ -31,7 +31,19 @@ $NetBSD: patch-gyp_common.gypi,v 1.10 20
      ],
    },
    'target_defaults': {
-@@ -318,6 +331,24 @@
+@@ -139,6 +152,11 @@
+       # Extra cflags for gcc
+       'release_extra_cflags%': ['-O2'],
+       'debug_extra_cflags%': ['-O0', '-g'],
++      'conditions': [
++        ['target_platform=="NetBSD"', {
++          'target_arch' : '<!(uname -p)'
++        }],
++      ],
+     },
+     'configurations': {
+       'Debug': {
+@@ -318,6 +336,31 @@
            }],
          ],
        }],
@@ -44,6 +56,13 @@ $NetBSD: patch-gyp_common.gypi,v 1.10 20
 +          '-fPIC',
 +          '-fno-exceptions',
 +        ],
++        'conditions': [
++          ['target_arch=="i386"', {
++            'cflags': [
++              '-march=i586',
++            ],
++          }],
++        ],
 +        'cflags_cc': [
 +          # We use deprecated <hash_map> and <hash_set> instead of upcoming
 +          # <unordered_map> and <unordered_set>.
@@ -56,7 +75,7 @@ $NetBSD: patch-gyp_common.gypi,v 1.10 20
        ['OS=="mac"', {
          'defines': [
            '__APPLE__',
-@@ -410,7 +441,7 @@
+@@ -410,7 +453,7 @@
      ],
    },
    'conditions': [



Home | Main Index | Thread Index | Old Index