Re: Cygwin Build Error
Christopher Faylor wrote: On Fri, Jul 10, 2009 at 10:13:02AM -0500, Jacob Jacobson wrote: Christopher Faylor wrote: On Thu, Jul 09, 2009 at 01:10:42PM -0500, Jacob Jacobson wrote: Eric Blake wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Jacob Jacobson on 7/8/2009 12:36 PM: While building cygwin, I get this error: ../../../../src/winsup/cygwin/lib/_cygwin_crt0_common.cc:38: warning: weak declaration of 'void operator delete [](void*, const std::nothrow_t)' not supported Known issue. Use gcc-4, not gcc. http://cygwin.com/ml/cygwin-patches/2009-q3/msg00020.html - -- Thanks. I created symbolic links to gcc-4 have gotten further. Now I get error below. Do I need to install i686-pc-mingw32 ? Just remove the mingw directory. cgf I now have error below. If I remove utils/mingw, the error is cannot make[4]: `libuser32.a' is up to date. /c/home/wrk/cygwin/src/winsup/utils/mingw g++ /c/home/wrk/cygwin/src/winsup/utils/mingw: couldn't find i686-pc-mingw32 I said remove the mingw *directory* not the utils/mingw *file*. cgf Looks like the build process created a mingw directory also for object files. I removed both now also edited the makefile (as in the other post) and am trying a build now. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Cygwin Build Error
Jacob Jacobson wrote: Christopher Faylor wrote: I said remove the mingw *directory* not the utils/mingw *file*. cgf Looks like the build process created a mingw directory also for object files. I removed both now also edited the makefile (as in the other post) and am trying a build now. Getting close here. Apparently gets to the linking phase. Please help with error below. [build$:618] (../src/configure --prefix=/c/home/wrk/cygwin/install -v; make) make.out [build$:619] tail make.out /c/home/wrk/cygwin/build/i686-pc-cygwin/winsup/cygwin/../../../../src/winsup/cygwin/lib/pseudo-reloc.c:33: undefined reference to `___RUNTIME_PSEUDO_RELOC_LIST_END__' collect2: ld returned 1 exit status make[3]: *** [cygwin0.dll] Error 1 make[3]: Leaving directory `/c/home/wrk/cygwin/build/i686-pc-cygwin/winsup/cygwin' make[2]: *** [cygwin] Error 1 make[2]: Leaving directory `/c/home/wrk/cygwin/build/i686-pc-cygwin/winsup' make[1]: *** [all-target-winsup] Error 2 make[1]: Leaving directory `/c/home/wrk/cygwin/build' make: *** [all] Error 2 [build$:620] -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Cygwin Build Error
Jacob Jacobson wrote: Getting close here. Apparently gets to the linking phase. Please help with error below. [build$:618] (../src/configure --prefix=/c/home/wrk/cygwin/install -v; make) make.out [build$:619] tail make.out /c/home/wrk/cygwin/build/i686-pc-cygwin/winsup/cygwin/../../../../src/winsup/cygwin/lib/pseudo-reloc.c:33: undefined reference to `___RUNTIME_PSEUDO_RELOC_LIST_END__' collect2: ld returned 1 exit status make[3]: *** [cygwin0.dll] Error 1 make[3]: Leaving directory `/c/home/wrk/cygwin/build/i686-pc-cygwin/winsup/cygwin' make[2]: *** [cygwin] Error 1 make[2]: Leaving directory `/c/home/wrk/cygwin/build/i686-pc-cygwin/winsup' make[1]: *** [all-target-winsup] Error 2 make[1]: Leaving directory `/c/home/wrk/cygwin/build' make: *** [all] Error 2 [build$:620] I did not have this problem. I had a problem similar, but different, to the one described at: http://www.cygwin.com/ml/cygwin/2008-07/msg00148.html -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Cygwin Build Error
--- Christopher Faylor wrote: Just remove the mingw directory. --- I, Pedro, posted: $ tail make.out /opt/src/winsup/utils/mingw g++ -L/opt/build/i686-pc-cygwin/winsup -L/opt/build/ i686-pc-cygwin/winsup/cygwin -L/opt/build/i686-pc-cygwin/winsup/w32api/lib -isys tem /opt/src/winsup/include -isystem /opt/src/winsup/cygwin/include -isystem /op t/src/winsup/w32api/include -B/opt/build/i686-pc-cygwin/newlib/ -isystem /opt/bu ild/i686-pc-cygwin/newlib/targ-include -isystem /opt/src/newlib/libc/include -I/opt/src/winsup -c -o ./bloda.o -g -O2 -fno-exceptions -fno-rtti -DHAVE_DECL_G ETOPT=0 -mno-cygwin -I/opt/src/winsup/w32api/include /opt/src/winsup/utils/blod a.cc /opt/src/winsup/utils/mingw g++ -L/opt/build/i686-pc-cygwin/winsup -L/opt/build/ i686-pc-cygwin/winsup/cygwin -L/opt/build/i686-pc-cygwin/winsup/w32api/lib -isys tem /opt/src/winsup/include -isystem /opt/src/winsup/cygwin/include -isystem /op t/src/winsup/w32api/include -B/opt/build/i686-pc-cygwin/newlib/ -isystem /opt/bu ild/i686-pc-cygwin/newlib/targ-include -isystem /opt/src/newlib/libc/include -I/opt/src/winsup -c -o ./path.o -g -O2 -fno-exceptions -fno-rtti -DHAVE_DECL_GE TOPT=0 -mno-cygwin -I/opt/src/winsup/w32api/include /opt/src/winsup/utils/path. cc /opt/src/winsup/utils/mingw g++ -L/opt/build/i686-pc-cygwin/winsup -L/opt/build/ i686-pc-cygwin/winsup/cygwin -L/opt/build/i686-pc-cygwin/winsup/w32api/lib -isys tem /opt/src/winsup/include -isystem /opt/src/winsup/cygwin/include -isystem /op t/src/winsup/w32api/include -B/opt/build/i686-pc-cygwin/newlib/ -isystem /opt/bu ild/i686-pc-cygwin/newlib/targ-include -isystem /opt/src/newlib/libc/include -I/opt/src/winsup -c -o ./dump_setup.o -g -O2 -fno-exceptions -fno-rtti -DHAVE_D ECL_GETOPT=0 -mno-cygwin -I/opt/src/winsup/w32api/include /opt/src/winsup/utils /dump_setup.cc make[3]: *** No rule to make target `/opt/build/i686-pc-cygwin/winsup/mingw/Make file', needed by `/opt/build/i686-pc-cygwin/winsup/mingw/libmingw32.a'. Stop. make[3]: Leaving directory `/opt/build/i686-pc-cygwin/winsup/utils' make[2]: *** [utils] Error 1 make[2]: Leaving directory `/opt/build/i686-pc-cygwin/winsup' make[1]: *** [all-target-winsup] Error 2 make[1]: Leaving directory `/opt/build' make: *** [all] Error 2 The solution: $ diff src/winsup/utils/Makefile.in~ src/winsup/utils/Makefile.in 108c108,109 all: Makefile $(CYGWIN_BINS) $(MINGW_BINS) --- #all: Makefile $(CYGWIN_BINS) $(MINGW_BINS) all: Makefile $(CYGWIN_BINS) And the next problem: $ tail make.out xmlto html -o faq -m /opt/src/winsup/doc/cygwin.dsl /opt/src/winsup/doc/faq.xml Writing faq-nochunks.html for article(faq-nochunks) sed -i 's;/aa name=id[0-9]*/a;/a;g' faq/faq-nochunks.html xmlto --extension -v pdf -o cygwin-ug-net/ -m /opt/src/winsup/doc/cygwin.dsl cyg win-ug-net.sgml Format script: /usr/share/xmlto/format/docbook/pdf I don't know how to convert docbook into pdf. make[3]: [cygwin-ug-net/cygwin-ug-net.pdf] Error 1 (ignored) make[3]: Leaving directory `/opt/build/i686-pc-cygwin/winsup/doc' make[2]: Leaving directory `/opt/build/i686-pc-cygwin/winsup' make[1]: Leaving directory `/opt/build' I need to log off now. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Cygwin Build Error
--- Christopher Faylor wrote: Just remove the mingw directory. $ tail make.out /opt/src/winsup/utils/mingw g++ -L/opt/build/i686-pc-cygwin/winsup -L/opt/build/ i686-pc-cygwin/winsup/cygwin -L/opt/build/i686-pc-cygwin/winsup/w32api/lib -isys tem /opt/src/winsup/include -isystem /opt/src/winsup/cygwin/include -isystem /op t/src/winsup/w32api/include -B/opt/build/i686-pc-cygwin/newlib/ -isystem /opt/bu ild/i686-pc-cygwin/newlib/targ-include -isystem /opt/src/newlib/libc/include -I/opt/src/winsup -c -o ./bloda.o -g -O2 -fno-exceptions -fno-rtti -DHAVE_DECL_G ETOPT=0 -mno-cygwin -I/opt/src/winsup/w32api/include /opt/src/winsup/utils/blod a.cc /opt/src/winsup/utils/mingw g++ -L/opt/build/i686-pc-cygwin/winsup -L/opt/build/ i686-pc-cygwin/winsup/cygwin -L/opt/build/i686-pc-cygwin/winsup/w32api/lib -isys tem /opt/src/winsup/include -isystem /opt/src/winsup/cygwin/include -isystem /op t/src/winsup/w32api/include -B/opt/build/i686-pc-cygwin/newlib/ -isystem /opt/bu ild/i686-pc-cygwin/newlib/targ-include -isystem /opt/src/newlib/libc/include -I/opt/src/winsup -c -o ./path.o -g -O2 -fno-exceptions -fno-rtti -DHAVE_DECL_GE TOPT=0 -mno-cygwin -I/opt/src/winsup/w32api/include /opt/src/winsup/utils/path. cc /opt/src/winsup/utils/mingw g++ -L/opt/build/i686-pc-cygwin/winsup -L/opt/build/ i686-pc-cygwin/winsup/cygwin -L/opt/build/i686-pc-cygwin/winsup/w32api/lib -isys tem /opt/src/winsup/include -isystem /opt/src/winsup/cygwin/include -isystem /op t/src/winsup/w32api/include -B/opt/build/i686-pc-cygwin/newlib/ -isystem /opt/bu ild/i686-pc-cygwin/newlib/targ-include -isystem /opt/src/newlib/libc/include -I/opt/src/winsup -c -o ./dump_setup.o -g -O2 -fno-exceptions -fno-rtti -DHAVE_D ECL_GETOPT=0 -mno-cygwin -I/opt/src/winsup/w32api/include /opt/src/winsup/utils /dump_setup.cc make[3]: *** No rule to make target `/opt/build/i686-pc-cygwin/winsup/mingw/Make file', needed by `/opt/build/i686-pc-cygwin/winsup/mingw/libmingw32.a'. Stop. make[3]: Leaving directory `/opt/build/i686-pc-cygwin/winsup/utils' make[2]: *** [utils] Error 1 make[2]: Leaving directory `/opt/build/i686-pc-cygwin/winsup' make[1]: *** [all-target-winsup] Error 2 make[1]: Leaving directory `/opt/build' make: *** [all] Error 2 -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Cygwin Build Error
Christopher Faylor wrote: On Thu, Jul 09, 2009 at 01:10:42PM -0500, Jacob Jacobson wrote: Eric Blake wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Jacob Jacobson on 7/8/2009 12:36 PM: While building cygwin, I get this error: ../../../../src/winsup/cygwin/lib/_cygwin_crt0_common.cc:38: warning: weak declaration of 'void operator delete [](void*, const std::nothrow_t)' not supported Known issue. Use gcc-4, not gcc. http://cygwin.com/ml/cygwin-patches/2009-q3/msg00020.html - -- Thanks. I created symbolic links to gcc-4 have gotten further. Now I get error below. Do I need to install i686-pc-mingw32 ? Just remove the mingw directory. cgf I now have error below. If I remove utils/mingw, the error is cannot find ..utils/mingw. If I put it back, I get error below. Please help. If this error can be made to go away by installing something new, I'd rather do that than have to modify the src directory. Thanks. make[4]: `libuser32.a' is up to date. /c/home/wrk/cygwin/src/winsup/utils/mingw g++ -L/c/home/wrk/cygwin/build/i686-pc-cygwin/winsup -L/c/home/wrk/cygwin/build/i686-pc-cygwin/winsup/cygwin -L/c/home/wrk/cygwin/build/i686-pc-cygwin/winsup/w32api/lib -isystem /c/home/wrk/cygwin/src/winsup/include -isystem /c/home/wrk/cygwin/src/winsup/cygwin/include -isystem /c/home/wrk/cygwin/src/winsup/w32api/include -B/c/home/wrk/cygwin/build/i686-pc-cygwin/newlib/ -isystem /c/home/wrk/cygwin/build/i686-pc-cygwin/newlib/targ-include -isystem /c/home/wrk/cygwin/src/newlib/libc/include -I/c/home/wrk/cygwin/src/winsup -c -o ./cygcheck.o -g -O2 -fno-exceptions -fno-rtti -DHAVE_DECL_GETOPT=0 -mno-cygwin -I/c/home/wrk/cygwin/src/winsup/mingw/include -I/c/home/wrk/cygwin/src/winsup/w32api/include ../../../../src/winsup/utils/cygcheck.cc /c/home/wrk/cygwin/src/winsup/utils/mingw: couldn't find i686-pc-mingw32 directory make[3]: *** [cygcheck.o] Error 1 make[3]: Leaving directory `/c/home/wrk/cygwin/build/i686-pc-cygwin/winsup/utils' make[2]: *** [utils] Error 1 make[2]: Leaving directory `/c/home/wrk/cygwin/build/i686-pc-cygwin/winsup' -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Cygwin Build Error
On Fri, Jul 10, 2009 at 10:13:02AM -0500, Jacob Jacobson wrote: Christopher Faylor wrote: On Thu, Jul 09, 2009 at 01:10:42PM -0500, Jacob Jacobson wrote: Eric Blake wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Jacob Jacobson on 7/8/2009 12:36 PM: While building cygwin, I get this error: ../../../../src/winsup/cygwin/lib/_cygwin_crt0_common.cc:38: warning: weak declaration of 'void operator delete [](void*, const std::nothrow_t)' not supported Known issue. Use gcc-4, not gcc. http://cygwin.com/ml/cygwin-patches/2009-q3/msg00020.html - -- Thanks. I created symbolic links to gcc-4 have gotten further. Now I get error below. Do I need to install i686-pc-mingw32 ? Just remove the mingw directory. cgf I now have error below. If I remove utils/mingw, the error is cannot find ..utils/mingw. If I put it back, I get error below. Please help. If this error can be made to go away by installing something new, I'd rather do that than have to modify the src directory. make[4]: `libuser32.a' is up to date. /c/home/wrk/cygwin/src/winsup/utils/mingw g++ -L/c/home/wrk/cygwin/build/i686-pc-cygwin/winsup -L/c/home/wrk/cygwin/build/i686-pc-cygwin/winsup/cygwin -L/c/home/wrk/cygwin/build/i686-pc-cygwin/winsup/w32api/lib -isystem /c/home/wrk/cygwin/src/winsup/include -isystem /c/home/wrk/cygwin/src/winsup/cygwin/include -isystem /c/home/wrk/cygwin/src/winsup/w32api/include -B/c/home/wrk/cygwin/build/i686-pc-cygwin/newlib/ -isystem /c/home/wrk/cygwin/build/i686-pc-cygwin/newlib/targ-include -isystem /c/home/wrk/cygwin/src/newlib/libc/include -I/c/home/wrk/cygwin/src/winsup -c -o ./cygcheck.o -g -O2 -fno-exceptions -fno-rtti -DHAVE_DECL_GETOPT=0 -mno-cygwin -I/c/home/wrk/cygwin/src/winsup/mingw/include -I/c/home/wrk/cygwin/src/winsup/w32api/include ../../../../src/winsup/utils/cygcheck.cc /c/home/wrk/cygwin/src/winsup/utils/mingw: couldn't find i686-pc-mingw32 I said remove the mingw *directory* not the utils/mingw *file*. cgf -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Cygwin Build Error
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Jacob Jacobson on 7/8/2009 12:36 PM: While building cygwin, I get this error: ../../../../src/winsup/cygwin/lib/_cygwin_crt0_common.cc:38: warning: weak declaration of 'void operator delete [](void*, const std::nothrow_t)' not supported Known issue. Use gcc-4, not gcc. http://cygwin.com/ml/cygwin-patches/2009-q3/msg00020.html - -- Don't work too hard, make some time for fun as well! Eric Blake e...@byu.net -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkpV8UYACgkQ84KuGfSFAYCI7gCgohhlwmmutRhMwrg+gKPqiRA0 8tsAoIjET9+iUvfC1NeiJOb/OLH2eE1K =XA1l -END PGP SIGNATURE- -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Cygwin Build Error
Eric Blake wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Jacob Jacobson on 7/8/2009 12:36 PM: While building cygwin, I get this error: ../../../../src/winsup/cygwin/lib/_cygwin_crt0_common.cc:38: warning: weak declaration of 'void operator delete [](void*, const std::nothrow_t)' not supported Known issue. Use gcc-4, not gcc. http://cygwin.com/ml/cygwin-patches/2009-q3/msg00020.html - -- Thanks. I created symbolic links to gcc-4 have gotten further. Now I get error below. Do I need to install i686-pc-mingw32 ? g++ -L/c/home/wrk/cygwin/build/i686-pc-cygwin/winsup -L/c/home/wrk/cygwin/build/i686-pc-cygwin/winsup/cygwin -L/c/home/wrk/cygwin/build/i686-pc-cygwin/winsup/w32api/lib -isystem /c/home/wrk/cygwin/src/winsup/include -isystem /c/home/wrk/cygwin/src/winsup/cygwin/include -isystem /c/home/wrk/cygwin/src/winsup/w32api/include -B/c/home/wrk/cygwin/build/i686-pc-cygwin/newlib/ -isystem /c/home/wrk/cygwin/build/i686-pc-cygwin/newlib/targ-include -isystem /c/home/wrk/cygwin/src/newlib/libc/include-c -nostdinc++-g -O2 -fno-exceptions -fno-rtti -DHAVE_DECL_GETOPT=0 -I/c/home/wrk/cygwin/build/bfd -I/c/home/wrk/cygwin/src/include -Wall -Wstrict-aliasing -Wwrite-strings -fno-common -pipe -fbuiltin -fmessage-length=0 -I. -I/c/home/wrk/cygwin/src/winsup/cygwin -I/c/home/wrk/cygwin/src/winsup/w32api/include -I/usr/lib/gcc/i686-pc-cygwin/4.3.2/include -fno-rtti -fno-exceptions -o ./parse_pe.o ../../../../src/winsup/utils/parse_pe.cc g++ -L/c/home/wrk/cygwin/build/i686-pc-cygwin/winsup -L/c/home/wrk/cygwin/build/i686-pc-cygwin/winsup/cygwin -L/c/home/wrk/cygwin/build/i686-pc-cygwin/winsup/w32api/lib -isystem /c/home/wrk/cygwin/src/winsup/include -isystem /c/home/wrk/cygwin/src/winsup/cygwin/include -isystem /c/home/wrk/cygwin/src/winsup/w32api/include -B/c/home/wrk/cygwin/build/i686-pc-cygwin/newlib/ -isystem /c/home/wrk/cygwin/build/i686-pc-cygwin/newlib/targ-include -isystem /c/home/wrk/cygwin/src/newlib/libc/include-o dumper.exe dumper.o module_info.o parse_pe.o -B/c/home/wrk/cygwin/build/i686-pc-cygwin/winsup/cygwin/ -static-libgcc -Wl,--enable-auto-import -B/c/home/wrk/cygwin/build/i686-pc-cygwin/newlib/libc -B/c/home/wrk/cygwin/build/i686-pc-cygwin/winsup/w32api/lib -lnetapi32 -ladvapi32 /usr/lib/gcc/i686-pc-cygwin/4.3.2/../../../libbfd.a /usr/lib/gcc/i686-pc-cygwin/4.3.2/../../../libintl.a -L/c/home/wrk/cygwin/build/i686-pc-cygwin/libiberty -liconv -liberty -lz /c/home/wrk/cygwin/src/winsup/utils/mingw g++ -L/c/home/wrk/cygwin/build/i686-pc-cygwin/winsup -L/c/home/wrk/cygwin/build/i686-pc-cygwin/winsup/cygwin -L/c/home/wrk/cygwin/build/i686-pc-cygwin/winsup/w32api/lib -isystem /c/home/wrk/cygwin/src/winsup/include -isystem /c/home/wrk/cygwin/src/winsup/cygwin/include -isystem /c/home/wrk/cygwin/src/winsup/w32api/include -B/c/home/wrk/cygwin/build/i686-pc-cygwin/newlib/ -isystem /c/home/wrk/cygwin/build/i686-pc-cygwin/newlib/targ-include -isystem /c/home/wrk/cygwin/src/newlib/libc/include -I/c/home/wrk/cygwin/src/winsup -c -o ./cygcheck.o -g -O2 -fno-exceptions -fno-rtti -DHAVE_DECL_GETOPT=0 -mno-cygwin -I/c/home/wrk/cygwin/src/winsup/mingw/include -I/c/home/wrk/cygwin/src/winsup/w32api/include ../../../../src/winsup/utils/cygcheck.cc /c/home/wrk/cygwin/src/winsup/utils/mingw: couldn't find i686-pc-mingw32 directory make[3]: *** [cygcheck.o] Error 1 make[3]: Leaving directory `/c/home/wrk/cygwin/build/i686-pc-cygwin/winsup/utils' make[2]: *** [utils] Error 1 -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Cygwin Build Error
Jacob Jacobson wrote: Thanks. I created symbolic links to gcc-4 have gotten further. Now I get error below. Do I need to install i686-pc-mingw32 ? /c/home/wrk/cygwin/src/winsup/utils/mingw: couldn't find i686-pc-mingw32 directory Nah. It got confused by whatever links you made. Instead, take a look at the attached scripts; they use the alternatives system to switch your default gcc compiler between gcc-3 and gcc-4 transparently. cheers, DaveK #!/bin/bash # We only switch the alternatives that exist for both compilers; # gdc, gpc, g77 and gfortran never get switched. for x in gcc g++ gcj gnat ; do /usr/sbin/alternatives --set $x /usr/bin/$x-3.exe done #!/bin/bash # We only switch the alternatives that exist for both compilers; # gdc, gpc, g77 and gfortran never get switched. for x in gcc g++ gcj gnat ; do /usr/sbin/alternatives --set $x /usr/bin/$x-4.exe done -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Cygwin Build Error
On Thu, Jul 09, 2009 at 01:10:42PM -0500, Jacob Jacobson wrote: Eric Blake wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Jacob Jacobson on 7/8/2009 12:36 PM: While building cygwin, I get this error: ../../../../src/winsup/cygwin/lib/_cygwin_crt0_common.cc:38: warning: weak declaration of 'void operator delete [](void*, const std::nothrow_t)' not supported Known issue. Use gcc-4, not gcc. http://cygwin.com/ml/cygwin-patches/2009-q3/msg00020.html - -- Thanks. I created symbolic links to gcc-4 have gotten further. Now I get error below. Do I need to install i686-pc-mingw32 ? Just remove the mingw directory. cgf -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
RE: Cygwin build error
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Corinna Vinschen Sent: Friday, April 28, 2006 4:28 AM To: [EMAIL PROTECTED] Cc: cygwin@cygwin.com Subject: Re: Cygwin build error This is a newlib problem. I've redirected this mail to the appropriate list newlib AT sourceware DOT org. On Apr 27 15:14, Ernie Coskrey wrote: I ran into the following problem building the latest cygwin snapshot: configure: loading cache .././config.cache configure: error: `CFLAGS' has changed since the previous run: configure: former value: -O2 -g -O2 configure: current value: -O2 -g -O2 configure: error: changes in the environment can compromise the build configure: error: run `make distclean' and/or `rm .././config.cache' and start over configure: error: /bin/sh '../../../../src/newlib/libc/configure' failed for libc By piping the output to a file, I saw that the former value of CFLAGS is -O2 -g -O2 (two spaces), while the current value is -O2 -g -O2 (one space). This causes the comparison in libc/configure to fail. The way I've resolved this is to replace the following line: if test x$ac_old_val != x$ac_new_val; then with if test `echo $ac_old_val` != `echo $ac_new_val`; then wherever it appears in any configure script (there are 75 configure scripts that contain this test, BTW). There may be a more elegant way around this, but I haven't found it. Running make distclean or removing config.cache doesn't resolve the problem. - Ernie Coskrey SteelEye Technology, Inc.803-461-3875 Corinna This problem isn't limited to newlib: the same fix must be applied to a number of non-newlib configure scripts. However, I have found a simpler solution than patching all 70-plus configure scripts. The root of the problem is that the variable CFLAGS_FOR_TARGET gets defined in the top-level Makefile as follows: CFLAGS_FOR_TARGET = -O2 $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET) Since SYSROOT_CFLAGS_FOR_TARGET is usually empty, you end up with an extra space at the end of CFLAGS_FOR_TARGET (in my case, anyway). The following patch will resolve the problem without requiring any changes in the underlying configure scripts. This patch is for src/Makefile.in - the top-level Makefile.in. It uses the strip command to remove the extra whitespace from CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. --- Makefile.in.ORIG2006-05-31 08:49:14.16650 -0400 +++ Makefile.in 2006-05-31 11:08:25.150875000 -0400 @@ -383,7 +383,7 @@ # CFLAGS will be just -g. We want to ensure that TARGET libraries # (which we know are built with gcc) are built with optimizations so # prepend -O2 when setting CFLAGS_FOR_TARGET. -CFLAGS_FOR_TARGET = -O2 $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET) +CFLAGS_FOR_TARGET = $(strip -O2 $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)) SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@ # If GCC_FOR_TARGET is not overriden on the command line, then this @@ -423,7 +423,7 @@ fi; \ fi` -CXXFLAGS_FOR_TARGET = $(CXXFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET) +CXXFLAGS_FOR_TARGET = $(strip $(CXXFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)) LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates GCJ_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCJ_FOR_TARGET@ $(FLAGS_FOR_TARGET) - Ernie Coskrey -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Cygwin build error
This is a newlib problem. I've redirected this mail to the appropriate list newlib AT sourceware DOT org. On Apr 27 15:14, Ernie Coskrey wrote: I ran into the following problem building the latest cygwin snapshot: configure: loading cache .././config.cache configure: error: `CFLAGS' has changed since the previous run: configure: former value: -O2 -g -O2 configure: current value: -O2 -g -O2 configure: error: changes in the environment can compromise the build configure: error: run `make distclean' and/or `rm .././config.cache' and start over configure: error: /bin/sh '../../../../src/newlib/libc/configure' failed for libc By piping the output to a file, I saw that the former value of CFLAGS is -O2 -g -O2 (two spaces), while the current value is -O2 -g -O2 (one space). This causes the comparison in libc/configure to fail. The way I've resolved this is to replace the following line: if test x$ac_old_val != x$ac_new_val; then with if test `echo $ac_old_val` != `echo $ac_new_val`; then wherever it appears in any configure script (there are 75 configure scripts that contain this test, BTW). There may be a more elegant way around this, but I haven't found it. Running make distclean or removing config.cache doesn't resolve the problem. - Ernie Coskrey SteelEye Technology, Inc.803-461-3875 Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Cygwin build error
I ran into the following problem building the latest cygwin snapshot: configure: loading cache .././config.cache configure: error: `CFLAGS' has changed since the previous run: configure: former value: -O2 -g -O2 configure: current value: -O2 -g -O2 configure: error: changes in the environment can compromise the build configure: error: run `make distclean' and/or `rm .././config.cache' and start over configure: error: /bin/sh '../../../../src/newlib/libc/configure' failed for libc By piping the output to a file, I saw that the former value of CFLAGS is -O2 -g -O2 (two spaces), while the current value is -O2 -g -O2 (one space). This causes the comparison in libc/configure to fail. The way I've resolved this is to replace the following line: if test x$ac_old_val != x$ac_new_val; then with if test `echo $ac_old_val` != `echo $ac_new_val`; then wherever it appears in any configure script (there are 75 configure scripts that contain this test, BTW). There may be a more elegant way around this, but I haven't found it. Running make distclean or removing config.cache doesn't resolve the problem. - Ernie Coskrey SteelEye Technology, Inc.803-461-3875 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/