OS/2, eCS & ArcaOS - Technical > Internet
New SeaMonkey builds
Dave Yeo:
--- Quote from: Dave Yeo on June 11, 2018, 05:58:22 pm ---
--- Quote from: Paul Smedley on June 11, 2018, 11:48:28 am ---
http://smedley.id.au/tmp/gcc-5.5.0-os2-20180611.zip
--- End quote ---
Compilation died here,
--- Code: ---66:08.09 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp: In function 'PRInt32 mozilla::{anonymous}::PR_GET_OS_ERROR()':
66:08.09 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:161:5: error: 'EINVAL' was not declared in this scope
66:08.09 EINVAL, EINVAL, ENOENT, ENOENT, EMFILE, /* 0..4 */
66:08.09 ^
66:08.09 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:161:21: error: 'ENOENT' was not declared in this scope
66:08.09 EINVAL, EINVAL, ENOENT, ENOENT, EMFILE, /* 0..4 */
66:08.09 ^
66:08.09 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:161:37: error: 'EMFILE' was not declared in this scope
66:08.09 EINVAL, EINVAL, ENOENT, ENOENT, EMFILE, /* 0..4 */
66:08.09 ^
66:08.09 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:162:5: error: 'EACCES' was not declared in this scope
66:08.09 EACCES, EBADF, EIO, ENOMEM, EIO, /* 5..9 */
66:08.17 ^
66:08.17 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:162:13: error: 'EBADF' was not declared in this scope
66:08.17 EACCES, EBADF, EIO, ENOMEM, EIO, /* 5..9 */
66:08.17 ^
66:08.17 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:162:21: error: 'EIO' was not declared in this scope
66:08.18 EACCES, EBADF, EIO, ENOMEM, EIO, /* 5..9 */
66:08.18 ^
66:08.18 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:162:29: error: 'ENOMEM' was not declared in this scope
66:08.18 EACCES, EBADF, EIO, ENOMEM, EIO, /* 5..9 */
66:08.18 ^
66:08.18 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:163:13: error: 'ENOEXEC' was not declared in this scope
66:08.18 EINVAL, ENOEXEC,EINVAL, EINVAL, EINVAL, /* 10..14 */
66:08.18 ^
66:08.18 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:164:13: error: 'EBUSY' was not declared in this scope
66:08.18 ENOENT, EBUSY, EXDEV, ENOENT, EROFS, /* 15..19 */
66:08.18 ^
66:08.18 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:164:21: error: 'EXDEV' was not declared in this scope
66:08.18 ENOENT, EBUSY, EXDEV, ENOENT, EROFS, /* 15..19 */
66:08.18 ^
66:08.18 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:164:37: error: 'EROFS' was not declared in this scope
66:08.18 ENOENT, EBUSY, EXDEV, ENOENT, EROFS, /* 15..19 */
66:08.18 ^
66:08.18 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:166:29: error: 'ENOSPC' was not declared in this scope
66:08.18 EIO, EIO, EIO, ENOSPC, EIO, /* 25..29 */
66:08.18 ^
66:08.18 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:177:5: error: 'EEXIST' was not declared in this scope
66:08.18 EEXIST, EIO, ENOENT, EIO, EIO, /* 80..84 */
66:08.18 ^
66:08.18 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:178:37: error: 'EAGAIN' was not declared in this scope
66:08.18 EIO, EIO, EINVAL, EIO, EAGAIN, /* 85..89 */
66:08.18 ^
66:08.18 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:180:5: error: 'EINTR' was not declared in this scope
66:08.18 EINTR, EIO, EIO, EIO, EACCES, /* 95..99 */
66:08.18 ^
66:08.18 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:182:37: error: 'EPIPE' was not declared in this scope
66:08.18 EINVAL, ENOMEM, EIO, EACCES, EPIPE, /* 105..109 */
66:08.18 ^
66:08.18 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:183:13: error: 'E2BIG' was not declared in this scope
66:08.19 ENOENT, E2BIG, ENOSPC, ENOMEM, EBADF, /* 110..114 */
66:08.19 ^
66:08.19 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:186:29: error: 'ECHILD' was not declared in this scope
66:08.19 ENOENT, ENOENT, ENOENT, ECHILD, ECHILD, /* 125..129 */
66:08.19 ^
66:08.19 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:187:21: error: 'ESPIPE' was not declared in this scope
66:08.19 EACCES, EINVAL, ESPIPE, EINVAL, EINVAL, /* 130..134 */
66:08.19 ^
66:08.19 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:202:13: error: 'ENAMETOOLONG' was not declared in this scope
66:08.19 EINVAL, ENAMETOOLONG, EINVAL, EINVAL, EINVAL, /* 205..209 */
66:08.19 ^
66:08.19 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:207:29: error: 'ENOTCONN' was not declared in this scope
66:08.19 EINVAL, EBUSY, EAGAIN, ENOTCONN, EINVAL, /* 230..234 */
66:08.19 ^
66:08.19 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:217:21: error: 'ENOTSUP' was not declared in this scope
66:08.19 EINVAL, EINVAL, ENOTSUP, EINVAL, EEXIST, /* 280..284 */
66:08.19 ^
66:08.19 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:221:29: error: 'ESRCH' was not declared in this scope
66:08.19 EINVAL, EBUSY, EINVAL, ESRCH, EINVAL, /* 300..304 */
66:08.19 ^
66:08.19 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp: In member function 'nsresult mozilla::{anonymous}::AbstractReadEvent::Read(mozilla::{anonymous}::ScopedArrayBufferContents&)':
66:08.19 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:137:24: error: 'EINVAL' was not declared in this scope
66:08.19 #define OS_ERROR_INVAL EINVAL
66:08.19 ^
66:08.19 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:768:56: note: in expansion of macro 'OS_ERROR_INVAL'
66:08.19 Fail(NS_LITERAL_CSTRING("Arithmetics"), nullptr, OS_ERROR_INVAL);
66:08.19 ^
66:08.19 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:136:24: error: 'ENOMEM' was not declared in this scope
66:08.19 #define OS_ERROR_NOMEM ENOMEM
66:08.19 ^
66:08.19 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:773:53: note: in expansion of macro 'OS_ERROR_NOMEM'
66:08.19 Fail(NS_LITERAL_CSTRING("allocate"), nullptr, OS_ERROR_NOMEM);
66:08.20 ^
66:08.20 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:139:23: error: 'EIO' was not declared in this scope
66:08.20 #define OS_ERROR_RACE EIO
66:08.20 ^
66:08.20 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:791:49: note: in expansion of macro 'OS_ERROR_RACE'
66:08.20 Fail(NS_LITERAL_CSTRING("read"), nullptr, OS_ERROR_RACE);
66:08.20 ^
66:08.20 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp: In member function 'virtual nsresult mozilla::{anonymous}::DoReadToStringEvent::BeforeRead()':
66:08.20 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:137:24: error: 'EINVAL' was not declared in this scope
66:08.20 #define OS_ERROR_INVAL EINVAL
66:08.20 ^
66:08.20 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:891:60: note: in expansion of macro 'OS_ERROR_INVAL'
66:08.20 Fail(NS_LITERAL_CSTRING("Decode"), mResult.forget(), OS_ERROR_INVAL);
66:08.20 ^
66:08.20 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:137:24: error: 'EINVAL' was not declared in this scope
66:08.20 #define OS_ERROR_INVAL EINVAL
66:08.20 ^
66:08.20 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:896:72: note: in expansion of macro 'OS_ERROR_INVAL'
66:08.20 Fail(NS_LITERAL_CSTRING("DecoderForEncoding"), mResult.forget(), OS_ERROR_INVAL);
66:08.20 ^
66:08.20 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp: In member function 'virtual void mozilla::{anonymous}::DoReadToStringEvent::AfterRead(mozilla::TimeStamp, mozilla::{anonymous}::ScopedArrayBufferContents&)':
66:08.20 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:138:28: error: 'EFBIG' was not declared in this scope
66:08.20 #define OS_ERROR_TOO_LARGE EFBIG
66:08.20 ^
66:08.20 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:911:65: note: in expansion of macro 'OS_ERROR_TOO_LARGE'
66:08.20 Fail(NS_LITERAL_CSTRING("arithmetics"), mResult.forget(), OS_ERROR_TOO_LARGE);
66:08.20 ^
66:08.20 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:137:24: error: 'EINVAL' was not declared in this scope
66:08.20 #define OS_ERROR_INVAL EINVAL
66:08.21 ^
66:08.21 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:917:66: note: in expansion of macro 'OS_ERROR_INVAL'
66:08.21 Fail(NS_LITERAL_CSTRING("GetMaxLength"), mResult.forget(), OS_ERROR_INVAL);
66:08.21 ^
66:08.21 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:138:28: error: 'EFBIG' was not declared in this scope
66:08.21 #define OS_ERROR_TOO_LARGE EFBIG
66:08.21 ^
66:08.21 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:922:65: note: in expansion of macro 'OS_ERROR_TOO_LARGE'
66:08.21 Fail(NS_LITERAL_CSTRING("arithmetics"), mResult.forget(), OS_ERROR_TOO_LARGE);
66:08.21 ^
66:08.21 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:138:28: error: 'EFBIG' was not declared in this scope
66:08.21 #define OS_ERROR_TOO_LARGE EFBIG
66:08.21 ^
66:08.21 C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp:929:64: note: in expansion of macro 'OS_ERROR_TOO_LARGE'
66:08.21 Fail(NS_LITERAL_CSTRING("allocation"), mResult.forget(), OS_ERROR_TOO_LARGE);
66:08.21 ^
66:08.29
66:08.31 In the directory C:/work/cc45esr/obj-sm/toolkit/components/osfile
66:08.31 The following command failed to execute properly:
66:08.32 c++ -o NativeOSFileInternals.obj -c -IC:/work/cc45esr/obj-sm/dist/stl_wrappers -DSTATIC_EXPORTABLE_JS_API -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -IC:/work/cc45esr/mozilla/toolkit/components/osfile -I. -I../../../dist/include -I/@unixroot/usr/include/nspr4 -I/@unixroot/usr/include/nss3 -I/@unixroot/usr/include/pixman-1 -DMOZILLA_CLIENT -include ../../../mozilla-config.h -Uunix -U__unix -U__unix__ -MD -MP -MF .deps/NativeOSFileInternals.obj.pp -idirafter g:/OS2TK45/h -Wall -Wempty-body -Woverloaded-virtual -Wsign-compare -Wwrite-strings -Wno-invalid-offsetof -Wcast-align -fno-exceptions -fno-strict-aliasing -Zomf -fno-rtti -fno-exceptions -fno-math-errno -std=gnu++0x -pthread -DNDEBUG -DTRIMMED -g -march=pentium-m -O3 -mstackrealign -fomit-frame-pointer -Wshadow C:/work/cc45esr/mozilla/toolkit/components/osfile/NativeOSFileInternals.cpp
66:08.32 make.EXE[4]: *** [NativeOSFileInternals.obj] Error 1
66:08.32 make.EXE[3]: *** [toolkit/components/osfile/target] Error 2
66:08.32 make.EXE[3]: *** Waiting for unfinished jobs....
--- End code ---
--- End quote ---
I fixed this by simply including errno.h
--- Quote ---
Also lots of warnings like,
--- Code: ---66:11.33 <built-in>: note: this is the location of the previous definition
66:18.55 UnifiedBindings22.obj
66:18.74 In file included from <command-line>:0:0:
66:18.74 ./../../mozilla-config.h:153:0: warning: "__STDC_LIMIT_MACROS" redefined
66:18.74 #define __STDC_LIMIT_MACROS
66:18.74 ^
66:18.74 <built-in>: note: this is the location of the previous definition
66:18.74 In file included from <command-line>:0:0:
66:18.74 ./../../mozilla-config.h:154:0: warning: "__STDC_CONSTANT_MACROS" redefined
66:18.74 #define __STDC_CONSTANT_MACROS
66:18.74 ^
66:18.74 <built-in>: note: this is the location of the previous definition
66:19.16 xpfe_appshell.lib.desc
--- End code ---
--- End quote ---
This eventually caused an error so I added some guards to mozilla_config.h.in which allowed the build to finish.
--- Quote ---5.3.0 seemed to work the same as 5.1.0
Thanks
BTW, should I be updating binutils?
--- End quote ---
Unluckily building with Pentium M as a target still crashes very early,
--- Code: ---147008C1 JMP 0x147007d0 (e9 0affffff)
147008C6 LEA ESI, [ESI+0x0] (8d76 00)
147008C9 LEA EDI, [EDI+0x0] (8dbc27 00000000)
147008D0 MOVDQA XMM0, DQWORD [0x1472ca40] (660f6f05 40ca7214)
147008D8 >MOVDQA DQWORD [0x17deeb88], XMM0 (660f7f05 88ebde17)
147008E0 MOVDQA XMM0, DQWORD [0x1472ca50] (660f6f05 50ca7214)
147008E8 MOVDQA DQWORD [0x17deeb98], XMM0 (660f7f05 98ebde17)
147008F0 MOVDQA XMM0, DQWORD [0x1472ca60] (660f6f05 60ca7214)
--- End code ---
If reading the trp file correctly, eg
--- Code: ---
Call Stack
______________________________________________________________________
EBP Address Module Obj:Offset Nearest Public Symbol
-------- --------- -------- ------------- -----------------------
Trap -> 147008D8 XUL 0001:016608D8 nsTextFragment.cpp#60 __ZN14nsTextFragment4InitEv + 168 0001:01660770 (C:\work\cc45esr\obj-sm\dom\base\Unified_cpp_dom_base8.cpp)
--- End code ---
it is this variable that is the problem
--- Code: --- // Create single-char strings
for (i = 0; i < 256; ++i) {
sSingleCharSharedString[i] = i;
}
[/code
--- End code ---
André Heldoorn:
FWIW, just reporting, perhaps general stability is involved. Recently the r3_s SM release crashed twice as soon as a CMD.EXE session was exited by typing X + <ENTER>. This window was still visible during the creation of the TRP file. The length of both X.BAT and X.CMD is 5 bytes: "@EXIT". Edited TRP file quote of the second time:
--- Quote ---OS2/eCS Version: 2.45
# of Processors: 1
Physical Memory: 2038 mb
Virt Addr Limit: 2048 mb
Exceptq Version: 7.11.4-shl (Mar 6 2017)
______________________________________________________________________
Process: SEAMONKEY.EXE (06/08/2018 02:08:17 276,732)
PID: 47D (1149)
TID: 01 (1)
Priority: 200
Filename: XUL.DLL (06/08/2018 02:21:05 32,429,211)
Address: 005B:129F2890 (0001:02632890)
______________________________________________________________________
129F2882 MOV EAX, [0x1c0501bc] (a1 bc01051c)
129F2887 MOV [ESP], EAX (890424)
129F288A CALL 0x1f5027bc (e8 2dffb00c)
129F288F INT 3 (cc)
129F2890 >NOP (90)
129F2891 XOR EAX, EAX (31c0)
129F2893 MOV [0x0], EAX (a3 00000000)
129F2898 UD2 (0f0b)
______________________________________________________________________
EAX : 00000000 EBX : 0000190E ECX : 1C069002 EDX : 1C069070
ESI : 129CAD5C EDI : 129CF5A2
ESP : 0019E1C4 EBP : 129CAD9C EIP : 129F2890 EFLG : 00002246
CS : 005B CSLIM: FFFFFFFF SS : 0053 SSLIM: FFFFFFFF
EAX : not a valid address
EBX : not a valid address
ECX : read/write memory at 0003:00019002 in LIBC066
EDX : read/write memory at 0003:00019070 in LIBC066
ESI : read/exec memory at 0001:0260AD5C in XUL
EDI : read/exec memory at 0001:0260F5A2 in XUL
______________________________________________________________________
Size Base ESP Max Top
00100000 001A0000 -> 0019E1C4 -> 0017D000 -> 000A0000
______________________________________________________________________
EBP Address Module Obj:Offset Nearest Public Symbol
-------- --------- -------- ------------- -----------------------
Trap -> 129F2890 XUL 0001:02632890 between js::gc::GCRuntime::collect + 500 and js::gc::GCRuntime::gc - 40 (both in Unified_cpp_js_src23.cpp)
129CAD9C 6F697472 Invalid address: 6F697472
--- End quote ---
Dave Yeo:
Looks like an out of memory error.
André Heldoorn:
--- Quote ---Adblock is known to cause high CPU on our builds
uBlock is a good alternative, on all platforms as they don't take money for ads to bypass the blocker.
Personally I find that NoScript combined with a hosts file works well to block ads and other crap as well. I use the hosts file available at http://winhelp2002.mvps.org/hosts.htm, just need to manually install it into \mptn\etc, merging if needed.
--- End quote ---
Here the results of all methods are about the same. Without any of the above, excluding noscript, the browser remains usable for a while. With the large hosts file the CPU load is 100%, but with a responsive system for a while. I've disabled or uninstalled the blockers now.
Dave Yeo:
Bit surprising that the hosts file made that much difference.
One thing that does make a difference here is what page is displayed. This page, with scripts disabled, gives about 3% on one core with the others offline. If I go to the "Show unread posts since last visit" page, CPU usage goes way up with peeks that would be about 120% if on one core. It's strange as the page is simple.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version