View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000426 | GCC - GNU C Compiler | Bug | public | 2010-05-29 10:16 | 2020-08-24 03:14 |
Reporter | wuno | Assigned To | psmedley | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS/2 | OS | Ecomstation | OS Version | 2.0 silver relea |
Summary | 0000426: GCC-4.4.4 problem to compile nspr | ||||
Description | NSPR code of mozilla (more or less) never had a problem to compile with any GCC-version. Now trying with GCC-4.4.4 I cannot succeed I've posted this also to mozilla.dev.ports.os2 gcc -o priometh.o -c -Wall -Zomf -O2 -s -UDEBUG -Uunix -U__unix -U__unix__ -DMOZILLA_CLIENT=1 -DNDEBUG=1 -DXP_OS2=1 -DXP_PC=1 - DBSD_SELECT=1 -DTCPV40HDRS=1 -DOS2=1 -DMOZ_OS2_HIGH_MEMORY=1 - DHAVE_LCHOWN=1 -DHAVE_STRERROR=1 -DFORCE_PR_LOG -D_NSPR_BUILD_ -IE:/ mozbuild1/dist/include/nspr -IE:/hg-src/hg/comm-central/mozilla/ nsprpub/pr/include -IE:/hg-src/hg/comm-central/mozilla/nsprpub/pr/ include/private "E:/hg-src/hg/comm-central/mozilla/nsprpub/pr/src/io/ priometh.c" E:/hg-src/hg/comm-central/mozilla/nsprpub/pr/src/io/priometh.c: In function 'PR_EmulateSendFile': E:/hg-src/hg/comm-central/mozilla/nsprpub/pr/src/io/priometh.c:497: internal compiler error: in ggc_set_mark, at ggc-page.c:1319 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. No such problems with gcc-4.4.2 | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
|
Trying to look at this now, but having problems configuring nspr - seems I broke something in my environment :) |
|
logs for configuring nspr - note: 'pwd: Illegal option -D' - is this usual? Seems something isn't drive letter aware - I have been trying to get rid of the last EMX tools in my build env - but the moztools directory is unchanged and is first in my path.... configuring in nsprpub pwd: Illegal option -D running ash.exe U:/DEV/MOZILLA-HG/SRC/nsprpub/configure --enable-application=browser --disable-tests --enable-optimize --disable-debug --with-dist-prefix=U:/dev/mozilla-hg/src/obj/dist --with-mozilla --disable-debug --enable-optimize --cache-file=.././config.cache --srcdir=U:/DEV/MOZILLA-HG/SRC/nsprpub loading cache .././config.cache checking for path separator... ; checking for Cygwin environment... (cached) no checking for mingw32 environment... (cached) no checking for EMX/OS2 environment... (cached) yes (cached) checking for VACPP environment... (cached) no (cached) checking for executable suffix... (cached) .exe checking host system type... i386-pc-os2-emx checking target system type... i386-pc-os2-emx checking build system type... i386-pc-os2-emx checking for whoami... U:/MOZTOOLS/whoami.exe checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking how to run the C preprocessor... (cached) gcc -E checking for ranlib... (cached) echo checking for as... (cached) U:/usr/bin/as.exe checking for ar... U:/usr/bin/ar.exe checking for ld... U:/usr/bin/ld.exe checking for strip... U:/usr/bin/strip.exe checking for windres... U:/usr/bin/windres.exe checking for gcc -pipe support... no checking whether C compiler supports -fprofile-generate... yes checking for visibility(hidden) attribute... (cached) no checking for perl5... (cached) U:/PERL5/bin/perl.exe checking whether gcc needs -traditional... (cached) no checking for lchown... (cached) yes checking for strerror... (cached) yes checking for pthread_create in -lpthreads... no checking for pthread_create in -lpthread... no checking for pthread_create in -lc_r... no checking for pthread_create in -lc... no updating cache .././config.cache creating ./config.status creating Makefile sed: can't read U: No such file or directory sed: can't read U:/DEV/MOZILLA-HG/SRC/nsprpub//DEV/MOZILLA-HG/SRC/nsprpub/Makefile.in: No such file or directory creating config/Makefile sed: can't read U: No such file or directory sed: can't read U:/DEV/MOZILLA-HG/SRC/nsprpub//DEV/MOZILLA-HG/SRC/nsprpub/config/Makefile.in: No such file or directory creating config/autoconf.mk sed: can't read U: No such file or directory sed: can't read U:/DEV/MOZILLA-HG/SRC/nsprpub//DEV/MOZILLA-HG/SRC/nsprpub/config/autoconf.mk.in: No such file or directory creating config/nsprincl.mk sed: can't read U: No such file or directory sed: can't read U:/DEV/MOZILLA-HG/SRC/nsprpub//DEV/MOZILLA-HG/SRC/nsprpub/config/nsprincl.mk.in: No such file or directory creating config/nsprincl.sh sed: can't read U: No such file or directory sed: can't read U:/DEV/MOZILLA-HG/SRC/nsprpub//DEV/MOZILLA-HG/SRC/nsprpub/config/nsprincl.sh.in: No such file or directory creating config/nspr-config sed: can't read U: No such file or directory sed: can't read U:/DEV/MOZILLA-HG/SRC/nsprpub//DEV/MOZILLA-HG/SRC/nsprpub/config/nspr-config.in: No such file or directory creating lib/Makefile sed: can't read U: No such file or directory sed: can't read U:/DEV/MOZILLA-HG/SRC/nsprpub//DEV/MOZILLA-HG/SRC/nsprpub/lib/Makefile.in: No such file or directory creating lib/ds/Makefile sed: can't read U: No such file or directory sed: can't read U:/DEV/MOZILLA-HG/SRC/nsprpub//DEV/MOZILLA-HG/SRC/nsprpub/lib/ds/Makefile.in: No such file or directory creating lib/libc/Makefile sed: can't read U: No such file or directory sed: can't read U:/DEV/MOZILLA-HG/SRC/nsprpub//DEV/MOZILLA-HG/SRC/nsprpub/lib/libc/Makefile.in: No such file or directory creating lib/libc/include/Makefile sed: can't read U: No such file or directory sed: can't read U:/DEV/MOZILLA-HG/SRC/nsprpub//DEV/MOZILLA-HG/SRC/nsprpub/lib/libc/include/Makefile.in: No such file or directory creating lib/libc/src/Makefile sed: can't read U: No such file or directory sed: can't read U:/DEV/MOZILLA-HG/SRC/nsprpub//DEV/MOZILLA-HG/SRC/nsprpub/lib/libc/src/Makefile.in: No such file or directory creating lib/tests/Makefile sed: can't read U: No such file or directory sed: can't read U:/DEV/MOZILLA-HG/SRC/nsprpub//DEV/MOZILLA-HG/SRC/nsprpub/lib/tests/Makefile.in: No such file or directory creating pkg/Makefile sed: can't read U: No such file or directory sed: can't read U:/DEV/MOZILLA-HG/SRC/nsprpub//DEV/MOZILLA-HG/SRC/nsprpub/pkg/Makefile.in: No such file or directory creating pkg/linux/Makefile sed: can't read U: No such file or directory sed: can't read U:/DEV/MOZILLA-HG/SRC/nsprpub//DEV/MOZILLA-HG/SRC/nsprpub/pkg/linux/Makefile.in: No such file or directory creating pkg/solaris/Makefile sed: can't read U: No such file or directory sed: can't read U:/DEV/MOZILLA-HG/SRC/nsprpub//DEV/MOZILLA-HG/SRC/nsprpub/pkg/solaris/Makefile.in: No such file or directory creating pkg/solaris/SUNWpr/Makefile sed: can't read U: No such file or directory sed: can't read U:/DEV/MOZILLA-HG/SRC/nsprpub//DEV/MOZILLA-HG/SRC/nsprpub/pkg/solaris/SUNWpr/Makefile.in: No such file or directory creating pkg/solaris/SUNWprd/Makefile sed: can't read U: No such file or directory sed: can't read U:/DEV/MOZILLA-HG/SRC/nsprpub//DEV/MOZILLA-HG/SRC/nsprpub/pkg/solaris/SUNWprd/Makefile.in: No such file or directory creating pr/Makefile sed: can't read U: No such file or directory sed: can't read U:/DEV/MOZILLA-HG/SRC/nsprpub//DEV/MOZILLA-HG/SRC/nsprpub/pr/Makefile.in: No such file or directory creating pr/include/Makefile sed: can't read U: No such file or directory sed: can't read U:/DEV/MOZILLA-HG/SRC/nsprpub//DEV/MOZILLA-HG/SRC/nsprpub/pr/include/Makefile.in: No such file or directory creating pr/include/md/Makefile sed: can't read U: No such file or directory sed: can't read U:/DEV/MOZILLA-HG/SRC/nsprpub//DEV/MOZILLA-HG/SRC/nsprpub/pr/include/md/Makefile.in: No such file or directory creating pr/include/obsolete/Makefile sed: can't read U: No such file or directory sed: can't read U:/DEV/MOZILLA-HG/SRC/nsprpub//DEV/MOZILLA-HG/SRC/nsprpub/pr/include/obsolete/Makefile.in: No such file or directory creating pr/include/private/Makefile sed: can't read U: No such file or directory sed: can't read U:/DEV/MOZILLA-HG/SRC/nsprpub//DEV/MOZILLA-HG/SRC/nsprpub/pr/include/private/Makefile.in: No such file or directory creating pr/src/Makefile sed: can't read U: No such file or directory sed: can't read U:/DEV/MOZILLA-HG/SRC/nsprpub//DEV/MOZILLA-HG/SRC/nsprpub/pr/src/Makefile.in: No such file or directory creating pr/src/io/Makefile sed: can't read U: No such file or directory sed: can't read U:/DEV/MOZILLA-HG/SRC/nsprpub//DEV/MOZILLA-HG/SRC/nsprpub/pr/src/io/Makefile.in: No such file or directory creating pr/src/linking/Makefile sed: can't read U: No such file or directory sed: can't read U:/DEV/MOZILLA-HG/SRC/nsprpub//DEV/MOZILLA-HG/SRC/nsprpub/pr/src/linking/Makefile.in: No such file or directory creating pr/src/malloc/Makefile sed: can't read U: No such file or directory sed: can't read U:/DEV/MOZILLA-HG/SRC/nsprpub//DEV/MOZILLA-HG/SRC/nsprpub/pr/src/malloc/Makefile.in: No such file or directory creating pr/src/md/Makefile sed: can't read U: No such file or directory sed: can't read U:/DEV/MOZILLA-HG/SRC/nsprpub//DEV/MOZILLA-HG/SRC/nsprpub/pr/src/md/Makefile.in: No such file or directory creating pr/src/md/os2/Makefile sed: can't read U: No such file or directory sed: can't read U:/DEV/MOZILLA-HG/SRC/nsprpub//DEV/MOZILLA-HG/SRC/nsprpub/pr/src/md/os2/Makefile.in: No such file or directory creating pr/src/memory/Makefile sed: can't read U: No such file or directory sed: can't read U:/DEV/MOZILLA-HG/SRC/nsprpub//DEV/MOZILLA-HG/SRC/nsprpub/pr/src/memory/Makefile.in: No such file or directory creating pr/src/misc/Makefile sed: can't read U: No such file or directory sed: can't read U:/DEV/MOZILLA-HG/SRC/nsprpub//DEV/MOZILLA-HG/SRC/nsprpub/pr/src/misc/Makefile.in: No such file or directory creating pr/src/threads/Makefile sed: can't read U: No such file or directory sed: can't read U:/DEV/MOZILLA-HG/SRC/nsprpub//DEV/MOZILLA-HG/SRC/nsprpub/pr/src/threads/Makefile.in: No such file or directory creating pr/tests/Makefile sed: can't read U: No such file or directory sed: can't read U:/DEV/MOZILLA-HG/SRC/nsprpub//DEV/MOZILLA-HG/SRC/nsprpub/pr/tests/Makefile.in: No such file or directory creating pr/tests/dll/Makefile sed: can't read U: No such file or directory sed: can't read U:/DEV/MOZILLA-HG/SRC/nsprpub//DEV/MOZILLA-HG/SRC/nsprpub/pr/tests/dll/Makefile.in: No such file or directory creating pr/src/threads/combined/Makefile sed: can't read U: No such file or directory sed: can't read U:/DEV/MOZILLA-HG/SRC/nsprpub//DEV/MOZILLA-HG/SRC/nsprpub/pr/src/threads/combined/Makefile.in: No such file or directory configure: warning: Recreating autoconf.mk with updated nspr-config output U:/DEV/MOZILLA-HG/SRC/configure: ./nsprpub/config/nspr-config: not found Can't open config/autoconf.mk: No such file or directory. U:/DEV/MOZILLA-HG/SRC/configure: ./nsprpub/config/nspr-config: not found Can't open config/autoconf.mk: No such file or directory. configuring in js/src mkdir: cannot make directory `./js/src': No such file or directory configure: error: can not create E:/tcpipapp/home/js/src *** Fix above errors and then restart with "make.exe -f client.mk build" make.exe[1]: *** [configure] Error 1 make.exe[1]: Leaving directory `U:/DEV/MOZILLA-HG/SRC' make: *** [U:/DEV/MOZILLA-HG/SRC/obj/Makefile] Error 2 |
|
OK, I got nsprpub configure working enough to reproduce this problem. Will see what I can do to track down the cause... |
|
Building gcc 4.4.3 to see if the regression occured between 4.4.2 & 4.4.3 or 4.4.3 and 4.4.4 - helps narrow down which change started the problem. |
|
4.4.3 also crashes - working backwards now to find where the crash started |
|
As does gcc version 4.4.3 20091201 (prerelease) |
|
As does gcc version 4.4.3 20091110 (prerelease) |
|
As does gcc version 4.4.3 20091103 (prerelease) Running a diff now between 4.4.2 (20091015) and the 20091103 releases |
|
Interestingly, a new build of GCC 4.4.2 gets the same error - weird stuff.... |
|
Created a new diff of changes, based on my build of GCC 4.3.5 which is working fine with NSPR. Reapplied these patches to a clean copy of GCC 4.4.4 and voila - nspr works now. Also fixes an ICE I was getting with Scribus :) Until I can get my upload access to Netlabs fixed, link is http://smedley.info/gcc-4.4.4-os2-20100703.zip |
|
Fixed in http://smedley.info/gcc-4.4.4-os2-20100703.zip |
|
Yep, confirmed I've succeeded to build a working browser |
|
Thanks for confirmed it's fixed :) |
|
Reopening, though it's not exactly the same error your gcc-4.4.4 build from 2010-07-10 produces again trouble with compiling nspr. I am using the build you linked here and that's still fine. However, Rich Walsh sent me an email that he has gotten trouble with the newest gcc-build. (I was not aware that you've updated it again). I tried the build from 10th of July and get the same error as Rich: M:/moz19/src/mozilla/nsprpub/pr/include/md/_os2.h:520: > warning: '__system__' attribute only applies to functions > >This refers to > extern APIRET (* APIENTRY QueryThreadContext)(TID, ULONG, PCONTEXTRECORD); >It defines a pointer a function with _System linkage but the compiler >doesn't recognize it as such. > >More important, ilink produces this for every _System function: > > M:\browser444\nsprpub\pr\src\md\os2\os2io.o(os2io.o) : > error LNK2029: "_DosClose" : unresolved external > >As you see, _System functions are getting a leading underscore. > >The gcc version I installed was gcc-4.4.4-os2-20100707.zip. This was >the latest available & I _assume_ it includes the 'patches' file with >the same date. Any idea what's wrong? |
|
Please try http://smedley.info/gcc-4.4.4-os2-20100712.zip - this includes some additional fixes from dmik - haven't yet had a chance to add this to my site |
|
Ups uploading of the exceptq file removed my comment. Building Firefox-trunk with the release from 0712 will succeed but the browser crashes immediately, tested by Rich and me. The attachment is the output of the exceptq feature Rich is currently integrating into the mozilla tree |
|
Any success with latest 4.4.6? |
|
Closing as resolved as I know Dave can build mozilla with 4.4.6, so this bug is fixed |
Date Modified | Username | Field | Change |
---|---|---|---|
2010-05-29 10:16 | wuno | New Issue | |
2010-06-29 02:50 | psmedley | Note Added: 0001616 | |
2010-06-29 02:55 | psmedley | Note Added: 0001617 | |
2010-06-29 06:54 | psmedley | Note Added: 0001618 | |
2010-06-29 10:42 | psmedley | Note Added: 0001619 | |
2010-06-30 03:55 | psmedley | Note Added: 0001620 | |
2010-06-30 06:42 | psmedley | Note Added: 0001621 | |
2010-06-30 06:54 | psmedley | Note Added: 0001622 | |
2010-06-30 10:03 | psmedley | Note Added: 0001623 | |
2010-07-01 00:30 | psmedley | Note Added: 0001624 | |
2010-07-03 10:01 | psmedley | Note Added: 0001627 | |
2010-07-03 10:01 | psmedley | Note Added: 0001628 | |
2010-07-03 10:01 | psmedley | Assigned To | => psmedley |
2010-07-03 10:01 | psmedley | Status | new => feedback |
2010-07-04 08:48 | wuno | Note Added: 0001629 | |
2010-07-04 08:48 | wuno | Status | feedback => assigned |
2010-07-04 09:44 | psmedley | Note Added: 0001630 | |
2010-07-04 09:44 | psmedley | Status | assigned => closed |
2010-07-04 09:44 | psmedley | Resolution | open => fixed |
2010-07-28 06:28 | wuno | Note Added: 0001657 | |
2010-07-28 06:28 | wuno | Status | closed => feedback |
2010-07-28 06:28 | wuno | Resolution | fixed => reopened |
2010-07-28 09:53 | psmedley | Note Added: 0001658 | |
2010-08-11 07:26 | wuno | File Added: D030_1.TRP | |
2010-08-11 07:30 | wuno | Note Added: 0001699 | |
2010-08-11 07:30 | wuno | Status | feedback => assigned |
2011-12-28 03:22 | psmedley | Note Added: 0002084 | |
2011-12-31 08:19 | psmedley | Note Added: 0002100 | |
2011-12-31 08:19 | psmedley | Status | assigned => resolved |
2011-12-31 08:19 | psmedley | Resolution | reopened => fixed |
2020-08-24 03:14 | psmedley | Status | resolved => closed |