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

Re: Mozilla Software on Sparc64/Linux



Hello Adrian,

build has started now and i got  a build error:

/usr/bin/g++ -o Unified_cpp_js_src26.o -c -I/<<PKGBUILDDIR>>/build-browser/dist/system_wrappers -include /<<PKGBUILDDIR>>/config/gcc_hidden.h -DNDEBUG=1 -DTRIMMED=1 -DENABLE_SHARED_ARRAY_BUFFER -DEXPORT_JS_API -DJS_HAS_CTYPES '-DDLL_PREFIX="lib"' '-DDLL_SUFFIX=".so"' -DMOZ_HAS_MOZGLUE -I/<<PKGBUILDDIR>>/js/src -I/<<PKGBUILDDIR>>/build-browser/js/src -I/<<PKGBUILDDIR>>/build-browser/dist/include -I/usr/include/nspr -fPIC -DMOZILLA_CLIENT -include /<<PKGBUILDDIR>>/build-browser/js/src/js-confdefs.h -Wdate-time -D_FORTIFY_SOURCE=2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wc++1z-compat -Wduplicated-cond -Wimplicit-fallthrough -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wno-error=multistatement-macros -Wno-error=class-memaccess -Wformat -Wformat-overflow=2 -Wno-noexcept-type -fno-sized-deallocation -fstack-protector-strong -Wformat -Werror=format-security -fno-schedule-insns2 -fno-lifetime-dse -fno-delete-null-pointer-checks -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -g -freorder-blocks -O3 -fomit-frame-pointer -Wno-shadow -Werror=format -fno-strict-aliasing  -MD -MP -MF .deps/Unified_cpp_js_src26.o.pp   /<<PKGBUILDDIR>>/build-browser/js/src/Unified_cpp_js_src26.cpp
In file included from /<<PKGBUILDDIR>>/build-browser/js/src/Unified_cpp_js_src26.cpp:20:
/<<PKGBUILDDIR>>/js/src/util/NativeStack.cpp:29:1: error: ‘pid_t gettid()’ was declared ‘extern’ and later ‘static’ [-fpermissive]
   29 | gettid()
      | ^~~~~~
In file included from /usr/include/unistd.h:1186,
                 from /<<PKGBUILDDIR>>/build-browser/dist/system_wrappers/unistd.h:3,
                 from /<<PKGBUILDDIR>>/js/src/util/NativeStack.cpp:27,
                 from /<<PKGBUILDDIR>>/build-browser/js/src/Unified_cpp_js_src26.cpp:20:
/usr/include/sparc64-linux-gnu/bits/unistd_ext.h:34:16: note: previous declaration of ‘__pid_t gettid()’
   34 | extern __pid_t gettid (void) __THROW;
      |                ^~~~~~
In file included from /<<PKGBUILDDIR>>/js/src/jsutil.h:18,
                 from /<<PKGBUILDDIR>>/js/src/threading/Thread.h:19,
                 from /<<PKGBUILDDIR>>/js/src/threading/posix/Thread.cpp:26,
                 from /<<PKGBUILDDIR>>/build-browser/js/src/Unified_cpp_js_src26.cpp:2:
/<<PKGBUILDDIR>>/build-browser/dist/include/mozilla/PodOperations.h: In instantiation of ‘void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 2]’:
/<<PKGBUILDDIR>>/js/src/jsapi.h:85:30:   required from ‘JS::AutoValueArray<N>::AutoValueArray(JSContext*) [with long unsigned int N = 2]’
/<<PKGBUILDDIR>>/js/src/vm/Stack.h:982:45:   required from ‘js::detail::FixedArgsBase<Construct, N>::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]’
/<<PKGBUILDDIR>>/js/src/vm/Stack.h:1019:54:   required from ‘js::FixedInvokeArgs<N>::FixedInvokeArgs(JSContext*) [with long unsigned int N = 0]’
/<<PKGBUILDDIR>>/js/src/vm/Interpreter.h:85:31:   required from here
/<<PKGBUILDDIR>>/build-browser/dist/include/mozilla/PodOperations.h:67:9: warning: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘union JS::Value’; use assignment or value-initialization instead [-Wclass-memaccess]
   67 |   memset(aT, 0, N * sizeof(T));
      |   ~~~~~~^~~~~~~~~~~~~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/js/src/jsutil.h:24,
                 from /<<PKGBUILDDIR>>/js/src/threading/Thread.h:19,
                 from /<<PKGBUILDDIR>>/js/src/threading/posix/Thread.cpp:26,
                 from /<<PKGBUILDDIR>>/build-browser/js/src/Unified_cpp_js_src26.cpp:2:
/<<PKGBUILDDIR>>/build-browser/dist/include/js/Value.h:313:32: note: ‘union JS::Value’ declared here
  313 | union MOZ_NON_PARAM alignas(8) Value
      |                                ^~~~~
In file included from /<<PKGBUILDDIR>>/js/src/jsutil.h:18,
                 from /<<PKGBUILDDIR>>/js/src/threading/Thread.h:19,
                 from /<<PKGBUILDDIR>>/js/src/threading/posix/Thread.cpp:26,
                 from /<<PKGBUILDDIR>>/build-browser/js/src/Unified_cpp_js_src26.cpp:2:
/<<PKGBUILDDIR>>/build-browser/dist/include/mozilla/PodOperations.h: In instantiation of ‘void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 3]’:
/<<PKGBUILDDIR>>/js/src/jsapi.h:85:30:   required from ‘JS::AutoValueArray<N>::AutoValueArray(JSContext*) [with long unsigned int N = 3]’
/<<PKGBUILDDIR>>/js/src/vm/Stack.h:982:45:   required from ‘js::detail::FixedArgsBase<Construct, N>::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]’
/<<PKGBUILDDIR>>/js/src/vm/Stack.h:1019:54:   required from ‘js::FixedInvokeArgs<N>::FixedInvokeArgs(JSContext*) [with long unsigned int N = 1]’
/<<PKGBUILDDIR>>/js/src/vm/Interpreter.h:100:31:   required from here
/<<PKGBUILDDIR>>/build-browser/dist/include/mozilla/PodOperations.h:67:9: warning: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘union JS::Value’; use assignment or value-initialization instead [-Wclass-memaccess]
   67 |   memset(aT, 0, N * sizeof(T));
      |   ~~~~~~^~~~~~~~~~~~~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/js/src/jsutil.h:24,
                 from /<<PKGBUILDDIR>>/js/src/threading/Thread.h:19,
                 from /<<PKGBUILDDIR>>/js/src/threading/posix/Thread.cpp:26,
                 from /<<PKGBUILDDIR>>/build-browser/js/src/Unified_cpp_js_src26.cpp:2:
/<<PKGBUILDDIR>>/build-browser/dist/include/js/Value.h:313:32: note: ‘union JS::Value’ declared here
  313 | union MOZ_NON_PARAM alignas(8) Value
      |                                ^~~~~
In file included from /<<PKGBUILDDIR>>/js/src/jsutil.h:18,
                 from /<<PKGBUILDDIR>>/js/src/threading/Thread.h:19,
                 from /<<PKGBUILDDIR>>/js/src/threading/posix/Thread.cpp:26,
                 from /<<PKGBUILDDIR>>/build-browser/js/src/Unified_cpp_js_src26.cpp:2:
/<<PKGBUILDDIR>>/build-browser/dist/include/mozilla/PodOperations.h: In instantiation of ‘void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value; long unsigned int N = 4]’:
/<<PKGBUILDDIR>>/js/src/jsapi.h:85:30:   required from ‘JS::AutoValueArray<N>::AutoValueArray(JSContext*) [with long unsigned int N = 4]’
/<<PKGBUILDDIR>>/js/src/vm/Stack.h:982:45:   required from ‘js::detail::FixedArgsBase<Construct, N>::FixedArgsBase(JSContext*) [with js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 2]’
/<<PKGBUILDDIR>>/js/src/vm/Stack.h:1019:54:   required from ‘js::FixedInvokeArgs<N>::FixedInvokeArgs(JSContext*) [with long unsigned int N = 2]’
/<<PKGBUILDDIR>>/js/src/vm/Interpreter.h:119:31:   required from here
/<<PKGBUILDDIR>>/build-browser/dist/include/mozilla/PodOperations.h:67:9: warning: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘union JS::Value’; use assignment or value-initialization instead [-Wclass-memaccess]
   67 |   memset(aT, 0, N * sizeof(T));
      |   ~~~~~~^~~~~~~~~~~~~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/js/src/jsutil.h:24,
                 from /<<PKGBUILDDIR>>/js/src/threading/Thread.h:19,
                 from /<<PKGBUILDDIR>>/js/src/threading/posix/Thread.cpp:26,
                 from /<<PKGBUILDDIR>>/build-browser/js/src/Unified_cpp_js_src26.cpp:2:
/<<PKGBUILDDIR>>/build-browser/dist/include/js/Value.h:313:32: note: ‘union JS::Value’ declared here
  313 | union MOZ_NON_PARAM alignas(8) Value
      |                                ^~~~~
In file included from /<<PKGBUILDDIR>>/js/src/jit/IonCode.h:16,
                 from /<<PKGBUILDDIR>>/js/src/jit/JSJitFrameIter.h:12,
                 from /<<PKGBUILDDIR>>/js/src/vm/Stack.h:23,
                 from /<<PKGBUILDDIR>>/js/src/frontend/NameCollections.h:13,
                 from /<<PKGBUILDDIR>>/js/src/vm/Runtime.h:28,
                 from /<<PKGBUILDDIR>>/js/src/vm/JSContext.h:22,
                 from /<<PKGBUILDDIR>>/js/src/util/AllocPolicy.cpp:9,
                 from /<<PKGBUILDDIR>>/build-browser/js/src/Unified_cpp_js_src26.cpp:11:
/<<PKGBUILDDIR>>/js/src/jit/ExecutableAllocator.h:55:13: warning: ‘void sync_instruction_memory(caddr_t, u_int)’ defined but not used [-Wunused-function]
   55 | static void sync_instruction_memory(caddr_t v, u_int len)
      |             ^~~~~~~~~~~~~~~~~~~~~~~
make[5]: *** [/<<PKGBUILDDIR>>/config/rules.mk:1033: Unified_cpp_js_src26.o] Error 1
make[5]: Leaving directory '/<<PKGBUILDDIR>>/build-browser/js/src'
make[4]: *** [/<<PKGBUILDDIR>>/config/recurse.mk:74: js/src/target] Error 2
make[4]: Leaving directory '/<<PKGBUILDDIR>>/build-browser'
make[3]: *** [/<<PKGBUILDDIR>>/config/recurse.mk:34: compile] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/build-browser'
make[2]: *** [/<<PKGBUILDDIR>>/config/rules.mk:418: default] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/build-browser'
dh_auto_build: error: cd build-browser && make -j1 LD_LIBS=-Wl,--no-gc-sections _LEAKTEST_FILES=leaktest.py returned exit code 2
make[1]: *** [debian/rules:216: stamps/build-browser] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:321: build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2021-11-18T18:18:42Z

Finished
--------

Regards,
Connor

On Thu, Nov 18, 2021 at 2:14 PM John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> wrote:
On 11/18/21 13:57, Connor McLaughlan wrote:
> Build-Depends: autotools-dev, debhelper (>= 9.20160114), autoconf2.13,
> libx11-dev, libx11-xcb-dev, libxt-dev, libgtk-3-dev, libgtk2.0-dev (>=
> 2.10), libglib2.0-dev (>= 2.16.0), libstartup-notification0-dev,
> libjpeg-dev, zlib1g-dev, libreadline-dev, python2.7, python2-minimal (>=
> 2.6.6-13~), python3, python-ply, dpkg-dev (>= 1.16.1.1~), libnspr4-dev (>=
> 2:4.19~), libnss3-dev (>= 2:3.38~), libsqlite3-dev (>= 3.24.0), libvpx-dev
> (>= 1.5.0), libdbus-glib-1-dev, libffi-dev, libevent-dev (>= 1.4.1),
> libjsoncpp-dev, libpulse-dev, libasound2-dev, yasm (>= 1.1), rustc (>=
> 1.24), cargo (>= 0.25), llvm-11-dev, libclang-11-dev, clang-11, llvm-11,
> zip, unzip, locales, xvfb, xfonts-base, xauth, ttf-bitstream-vera,
> fonts-freefont-ttf, fonts-dejima-mincho, iso-codes
>
> However this didn't change anything regarding the error...

Did you add "llvm"? Not "llvm-11".

Adrian

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913


Reply to: