Re: Mozilla Software on Sparc64/Linux

2021-11-18 Thread Connor McLaughlan
Hello Adrian,

adding "CONFIGURE_FLAGS += --disable-warnings-as-errors" to debian/rules
didn't remove the error.

Should i try to add -fpermissive to the CFLAGS?

Regards,
Connor


On Thu, Nov 18, 2021 at 7:57 PM John Paul Adrian Glaubitz <
glaub...@physik.fu-berlin.de> wrote:

> Hello!
>
> On 11/18/21 19:48, Connor McLaughlan wrote:
> > In file included from
> > /<>/build-browser/js/src/Unified_cpp_js_src26.cpp:20:
> > /<>/js/src/util/NativeStack.cpp:29:1: error: ‘pid_t
> gettid()’
> > was declared ‘extern’ and later ‘static’ [-fpermissive]
> >29 | gettid()
> >   | ^~
>
> Try building with "--disable-warnings-as-errors":
>
> --- debian/rules.orig   2018-10-03 09:18:06.0 +0200
> +++ debian/rules2021-11-18 19:57:12.041480785 +0100
> @@ -87,6 +87,8 @@
>
>  AUTOCONF_DIRS := build/autoconf
>
> +CONFIGURE_FLAGS += --disable-warnings-as-errors
> +
>  ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
> CONFIGURE_FLAGS += --disable-optimize
>  endif
>
> Adrian
>
> --
>  .''`.  John Paul Adrian Glaubitz
> : :' :  Debian Developer - glaub...@debian.org
> `. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
>   `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
>
>


Re: Mozilla Software on Sparc64/Linux

2021-11-18 Thread John Paul Adrian Glaubitz
Hello!

On 11/18/21 19:48, Connor McLaughlan wrote:
> In file included from
> /<>/build-browser/js/src/Unified_cpp_js_src26.cpp:20:
> /<>/js/src/util/NativeStack.cpp:29:1: error: ‘pid_t gettid()’
> was declared ‘extern’ and later ‘static’ [-fpermissive]
>29 | gettid()
>   | ^~

Try building with "--disable-warnings-as-errors":

--- debian/rules.orig   2018-10-03 09:18:06.0 +0200
+++ debian/rules2021-11-18 19:57:12.041480785 +0100
@@ -87,6 +87,8 @@
 
 AUTOCONF_DIRS := build/autoconf
 
+CONFIGURE_FLAGS += --disable-warnings-as-errors
+
 ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
CONFIGURE_FLAGS += --disable-optimize
 endif

Adrian

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



Re: Mozilla Software on Sparc64/Linux

2021-11-18 Thread Connor McLaughlan
Hello Adrian,

build has started now and i got  a build error:

/usr/bin/g++ -o Unified_cpp_js_src26.o -c
-I/<>/build-browser/dist/system_wrappers -include
/<>/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/<>/js/src -I/<>/build-browser/js/src
-I/<>/build-browser/dist/include -I/usr/include/nspr -fPIC
-DMOZILLA_CLIENT -include
/<>/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
/<>/build-browser/js/src/Unified_cpp_js_src26.cpp
In file included from
/<>/build-browser/js/src/Unified_cpp_js_src26.cpp:20:
/<>/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
/<>/build-browser/dist/system_wrappers/unistd.h:3,
 from /<>/js/src/util/NativeStack.cpp:27,
 from
/<>/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 /<>/js/src/jsutil.h:18,
 from /<>/js/src/threading/Thread.h:19,
 from /<>/js/src/threading/posix/Thread.cpp:26,
 from
/<>/build-browser/js/src/Unified_cpp_js_src26.cpp:2:
/<>/build-browser/dist/include/mozilla/PodOperations.h: In
instantiation of ‘void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value;
long unsigned int N = 2]’:
/<>/js/src/jsapi.h:85:30:   required from
‘JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int
N = 2]’
/<>/js/src/vm/Stack.h:982:45:   required from
‘js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with
js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 0]’
/<>/js/src/vm/Stack.h:1019:54:   required from
‘js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned
int N = 0]’
/<>/js/src/vm/Interpreter.h:85:31:   required from here
/<>/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 /<>/js/src/jsutil.h:24,
 from /<>/js/src/threading/Thread.h:19,
 from /<>/js/src/threading/posix/Thread.cpp:26,
 from
/<>/build-browser/js/src/Unified_cpp_js_src26.cpp:2:
/<>/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 /<>/js/src/jsutil.h:18,
 from /<>/js/src/threading/Thread.h:19,
 from /<>/js/src/threading/posix/Thread.cpp:26,
 from
/<>/build-browser/js/src/Unified_cpp_js_src26.cpp:2:
/<>/build-browser/dist/include/mozilla/PodOperations.h: In
instantiation of ‘void mozilla::PodArrayZero(T (&)[N]) [with T = JS::Value;
long unsigned int N = 3]’:
/<>/js/src/jsapi.h:85:30:   required from
‘JS::AutoValueArray::AutoValueArray(JSContext*) [with long unsigned int
N = 3]’
/<>/js/src/vm/Stack.h:982:45:   required from
‘js::detail::FixedArgsBase::FixedArgsBase(JSContext*) [with
js::MaybeConstruct Construct = js::NO_CONSTRUCT; long unsigned int N = 1]’
/<>/js/src/vm/Stack.h:1019:54:   required from
‘js::FixedInvokeArgs::FixedInvokeArgs(JSContext*) [with long unsigned
int N = 1]’
/<>/js/src/vm/Interpreter.h:100:31:   required from here
/<>/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 /<>/js/src/jsut

Re: Mozilla Software on Sparc64/Linux

2021-11-18 Thread John Paul Adrian Glaubitz
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 - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



Re: Mozilla Software on Sparc64/Linux

2021-11-18 Thread Connor McLaughlan
Hello Adrian,

i added llvm-11 to the build depends and it is listed, when i start the
building process:

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...

Regards,
Connor



On Thu, Nov 18, 2021 at 2:10 AM John Paul Adrian Glaubitz <
glaub...@physik.fu-berlin.de> wrote:

>
> On Nov 18, 2021, at 2:01 AM, Connor McLaughlan 
> wrote:
>
>
> checking for llvm-config... not found
> ERROR: Could not find LLVM/Clang installation for compiling stylo
> build-time
> bindgen.  Please specify the 'LLVM_CONFIG' environment variable
> (recommended), pass the '--with-libclang-path' and '--with-clang-path'
> options to configure, or put 'llvm-config' in your PATH.  Altering your
> PATH may expose 'clang' as well, potentially altering your compiler,
> which may not be what you intended.
> make[1]: *** [debian/rules:205: stamps/configure-browser] Error 1
> make[1]: Leaving directory '/<>'
> make: *** [debian/rules:321: build-arch] Error 2
> dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit
> status 2
>
> 
>
> What can i do here?
>
>
> Try adding “llvm” to Build-Depends, see:
>
>
> https://packages.debian.org/search?searchon=contents&keywords=llvm-config&mode=exactfilename&suite=stable&arch=any
>
> Adrian
>