Re: Please help. gcc 3.2.2 configure problem or what?
Hi - Original Message - From: Raoul Gough [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 28, 2003 10:58 PM Subject: Re: Please help. gcc 3.2.2 configure problem or what? Joakim Olsson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi I've tried to configure and build gcc 3.2.2 under cygwin. the compiler builds fine but then the problem starts: I've tried to build fltk-1.1.3 (a gui toolkit) when I saw the problem. It seems that there are several unresolved in my new gcc. I looked around and found the actual symbols in libgcc.a in the old gcc that came with cygwin. What have I done wrong? snip Looks like your link command is mixing libraries from different versions of the compiler (why would i686-pc-cygwin gcc be looking in /usr/lib/mingw - maybe you're using -mno-cygwin and need a newer mingw library?). How about posting the output from your failing link command with a -v option to list the exact commands that gcc is issuing during the link process. Having multiple versions of the compiler installed can be a bit treacherous, and -v will show you exactly what it's doing and where it's looking. Well I guess I messed things up a little. Yes I think I used the new cygwin compiler to compile and link against mingw. snip Are you attempting to use the cygwin compiler to build a mingw compiler? This is a cross-compile and I seem to remember it was pretty hard to get it working this way. I found it much easier to use a native mingw compiler to build gcc 3.2 mingw - from my experience the most important thing is to ensure you know what compiler is being used during the build process. I just renamed all the cygwin compiler binaries to prevent the wrong versions being accessible during the build. Yes, I didn't think it was a cross-compile. Thanks for your hints. I'm going to give it a try again to build a new cygwin or mingw-compiler in a day or two. All I wanna do is to have one compiler gcc that at least can compile and link programs written in C, C++, Ada and also have a gui. So if you still think you could give hints feel free, but now I have something I can try. best regards /Joakim Olsson SWEDEN -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Please help. gcc 3.2.2 configure problem or what?
Hi - Original Message - From: Raoul Gough [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 28, 2003 10:58 PM Subject: Re: Please help. gcc 3.2.2 configure problem or what? Joakim Olsson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi I've tried to configure and build gcc 3.2.2 under cygwin. the compiler builds fine but then the problem starts: I've tried to build fltk-1.1.3 (a gui toolkit) when I saw the problem. It seems that there are several unresolved in my new gcc. I looked around and found the actual symbols in libgcc.a in the old gcc that came with cygwin. What have I done wrong? snip Looks like your link command is mixing libraries from different versions of the compiler (why would i686-pc-cygwin gcc be looking in /usr/lib/mingw - maybe you're using -mno-cygwin and need a newer mingw library?). How about posting the output from your failing link command with a -v option to list the exact commands that gcc is issuing during the link process. Having multiple versions of the compiler installed can be a bit treacherous, and -v will show you exactly what it's doing and where it's looking. Well I guess I messed things up a little. Yes I think I used the new cygwin compiler to compile and link against mingw. snip Are you attempting to use the cygwin compiler to build a mingw compiler? This is a cross-compile and I seem to remember it was pretty hard to get it working this way. I found it much easier to use a native mingw compiler to build gcc 3.2 mingw - from my experience the most important thing is to ensure you know what compiler is being used during the build process. I just renamed all the cygwin compiler binaries to prevent the wrong versions being accessible during the build. Yes, I didn't think it was a cross-compile. Thanks for your hints. I'm going to give it a try again to build a new cygwin or mingw-compiler in a day or two. All I wanna do is to have one compiler gcc that at least can compile and link programs written in C, C++, Ada and also have a gui. So if you still think you could give hints feel free, but now I have something I can try. best regards /Joakim Olsson SWEDEN -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Please help. gcc 3.2.2 configure problem or what?
Joakim Olsson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi I've tried to configure and build gcc 3.2.2 under cygwin. the compiler builds fine but then the problem starts: I've tried to build fltk-1.1.3 (a gui toolkit) when I saw the problem. It seems that there are several unresolved in my new gcc. I looked around and found the actual symbols in libgcc.a in the old gcc that came with cygwin. What have I done wrong? following are output from linking and gcc -v etc: Linking fluid.exe... /usr/lib/mingw/libsupc++.a(new_op.o)(.text$_Znwj+0x98): undefined reference to ` __Unwind_Resume' /usr/lib/mingw/libsupc++.a(new_opv.o)(.text$_Znaj+0x1b): undefined reference to `__Unwind_Resume' /usr/lib/mingw/libsupc++.a(eh_personality.o)(.text$__cxa_call_unexpect ed+0xe 8): undefined reference to `__Unwind_Resume' /usr/lib/mingw/libsupc++.a(eh_throw.o)(.text$__cxa_throw+0x1b): undefined reference to `___w32_sharedptr_unexpected' /usr/lib/mingw/libsupc++.a(eh_throw.o)(.text$__cxa_throw+0x25): undefined reference to `___w32_sharedptr_terminate' /usr/lib/mingw/libsupc++.a(eh_throw.o)(.text$__cxa_throw+0x54): undefined reference to `__Unwind_RaiseException' /usr/lib/mingw/libsupc++.a(eh_throw.o)(.text$__cxa_rethrow+0x1b): undefined reference to `__Unwind_RaiseException' /usr/lib/mingw/libsupc++.a(eh_terminate.o)(.text$_ZSt9terminatev+0x7): undefined reference to `___w32_sharedptr_terminate' /usr/lib/mingw/libsupc++.a(eh_terminate.o)(.text$_ZSt10unexpectedv+0x7 ): undefined reference to ___w32_sharedptr_unexpected' /usr/lib/mingw/libsupc++.a(eh_terminate.o)(.text$_ZSt13set_terminatePF vvE+0x 3): undefined reference to `___w32_sharedptr_terminate' /usr/lib/mingw/libsupc++.a(eh_terminate.o)(.text$_ZSt14set_unexpectedP FvvE+0 x3): undefined reference to `___w32_sharedptr_unexpected' collect2: ld returned 1 exit status make[1]: *** [fluid.exe] Error 1 $ gcc -v Reading specs from /usr/local/gcc-3.2.2/lib/gcc-lib/i686-pc-cygwin/3.2.2/specs Configured with: ../gcc-3.2.2/configure --prefix=/usr/local/gcc-3.2.2 --enable-language s=ada, c,c++,f77,java,objc Thread model: single gcc version 3.2.2 Looks like your link command is mixing libraries from different versions of the compiler (why would i686-pc-cygwin gcc be looking in /usr/lib/mingw - maybe you're using -mno-cygwin and need a newer mingw library?). How about posting the output from your failing link command with a -v option to list the exact commands that gcc is issuing during the link process. Having multiple versions of the compiler installed can be a bit treacherous, and -v will show you exactly what it's doing and where it's looking. $ gcc --version gcc (GCC) 3.2.2 Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I also tried to configure and build gcc-mingw-20020817-5 but it allways fails: ./xgcc -B./ -B/usr/local/gcc-mingw-3.2/mingw32/bin/ -isystem /usr/local/gcc-ming w-3.2/mingw32/include -isystem /usr/local/gcc-mingw-3.2/mingw32/sys-include -O2 -DIN_GCC-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-p rototype s -i system ./include -I. -I. -I../../gcc-3.2-20020817-1/gcc -I../../gcc-3.2-2002 081 7-1/gcc/. -I../../gcc-3.2-20020817-1/gcc/config -I../../gcc-3.2-200208 17-1/g cc/. ./include -g0 -finhibit-size-directive -fno-inline-functions -fno-exc eption s \ -c ../../gcc-3.2-20020817-1/gcc/crtstuff.c -DCRT_BEGIN \ -o crtbegin.o In file included from tconfig.h:16, from ../../gcc-3.2-20020817-1/gcc/crtstuff.c:61: ../../gcc-3.2-20020817-1/gcc/config/i386/cygming.h:31:19: stdio.h: No such file or directory In file included from tconfig.h:16, from ../../gcc-3.2-20020817-1/gcc/crtstuff.c:61: Are you attempting to use the cygwin compiler to build a mingw compiler? This is a cross-compile and I seem to remember it was pretty hard to get it working this way. I found it much easier to use a native mingw compiler to build gcc 3.2 mingw - from my experience the most important thing is to ensure you know what compiler is being used during the build process. I just renamed all the cygwin compiler binaries to prevent the wrong versions being accessible during the build. -- Raoul Gough see http://home.clara.net/raoulgough/ for my work availability -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Fw: Please help. gcc 3.2.2 configure problem or what?
Hi - Look here (you probably already have): http://gcc.gnu.org/install/configure.html You are right, I used -program-suffix=-3.2.2. You need to be careful so that it finds only 3.2.2 files. Make sure you modify your path so that all of the 3.2.2 stuff is ahead of the normal stuff (both *.h files and libraries). Do a find /usr -name *3.2.2* -print to see all of the new files you need to be aware of. Once you set up this stuff in your build file (I have been using ant), gcc 3.2.2 works fine. I have been using it for JNI stuffno problems. Since I got this working, I haven't messed with the --prefix option. Alan Thompson At 06:20 AM 3/28/2003 +0100, you wrote: Hi again I build gcc 3.2.2 with the --suffix option (see the gcc readme file) under Cygwin last month and it worked fine. Alan Thompson I think my problem has something to do with mingw32 and windows gui support. I managed to build a gcc 3.2.2 and enable language Ada, c, c++, java, objc and it seems to work. The problem starts when I try to link a program that has a gui. I can't find --suffix option, if you mean --program-suffix option shouldn't my --prefix work simular? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Please help. gcc 3.2.2 configure problem or what?
Hi I've tried to configure and build gcc 3.2.2 under cygwin. the compiler builds fine but then the problem starts: I've tried to build fltk-1.1.3 (a gui toolkit) when I saw the problem. It seems that there are several unresolved in my new gcc. I looked around and found the actual symbols in libgcc.a in the old gcc that came with cygwin. What have I done wrong? following are output from linking and gcc -v etc: Linking fluid.exe... /usr/lib/mingw/libsupc++.a(new_op.o)(.text$_Znwj+0x98): undefined reference to ` __Unwind_Resume' /usr/lib/mingw/libsupc++.a(new_opv.o)(.text$_Znaj+0x1b): undefined reference to `__Unwind_Resume' /usr/lib/mingw/libsupc++.a(eh_personality.o)(.text$__cxa_call_unexpected+0xe 8): undefined reference to `__Unwind_Resume' /usr/lib/mingw/libsupc++.a(eh_throw.o)(.text$__cxa_throw+0x1b): undefined reference to `___w32_sharedptr_unexpected' /usr/lib/mingw/libsupc++.a(eh_throw.o)(.text$__cxa_throw+0x25): undefined reference to `___w32_sharedptr_terminate' /usr/lib/mingw/libsupc++.a(eh_throw.o)(.text$__cxa_throw+0x54): undefined reference to `__Unwind_RaiseException' /usr/lib/mingw/libsupc++.a(eh_throw.o)(.text$__cxa_rethrow+0x1b): undefined reference to `__Unwind_RaiseException' /usr/lib/mingw/libsupc++.a(eh_terminate.o)(.text$_ZSt9terminatev+0x7): undefined reference to `___w32_sharedptr_terminate' /usr/lib/mingw/libsupc++.a(eh_terminate.o)(.text$_ZSt10unexpectedv+0x7): undefined reference to ___w32_sharedptr_unexpected' /usr/lib/mingw/libsupc++.a(eh_terminate.o)(.text$_ZSt13set_terminatePFvvE+0x 3): undefined reference to `___w32_sharedptr_terminate' /usr/lib/mingw/libsupc++.a(eh_terminate.o)(.text$_ZSt14set_unexpectedPFvvE+0 x3): undefined reference to `___w32_sharedptr_unexpected' collect2: ld returned 1 exit status make[1]: *** [fluid.exe] Error 1 $ gcc -v Reading specs from /usr/local/gcc-3.2.2/lib/gcc-lib/i686-pc-cygwin/3.2.2/specs Configured with: ../gcc-3.2.2/configure --prefix=/usr/local/gcc-3.2.2 --enable-languages=ada, c,c++,f77,java,objc Thread model: single gcc version 3.2.2 $ gcc --version gcc (GCC) 3.2.2 Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I also tried to configure and build gcc-mingw-20020817-5 but it allways fails: ./xgcc -B./ -B/usr/local/gcc-mingw-3.2/mingw32/bin/ -isystem /usr/local/gcc-ming w-3.2/mingw32/include -isystem /usr/local/gcc-mingw-3.2/mingw32/sys-include -O2 -DIN_GCC-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototype s -i system ./include -I. -I. -I../../gcc-3.2-20020817-1/gcc -I../../gcc-3.2-2002081 7-1/gcc/. -I../../gcc-3.2-20020817-1/gcc/config -I../../gcc-3.2-20020817-1/g cc/. ./include -g0 -finhibit-size-directive -fno-inline-functions -fno-exception s \ -c ../../gcc-3.2-20020817-1/gcc/crtstuff.c -DCRT_BEGIN \ -o crtbegin.o In file included from tconfig.h:16, from ../../gcc-3.2-20020817-1/gcc/crtstuff.c:61: ../../gcc-3.2-20020817-1/gcc/config/i386/cygming.h:31:19: stdio.h: No such file or directory In file included from tconfig.h:16, from ../../gcc-3.2-20020817-1/gcc/crtstuff.c:61: Please help, is there a HOWTO on configure build gcc in Cygwin? best regards /joakim olsson SWEDEN -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Please help. gcc 3.2.2 configure problem or what?
I build gcc 3.2.2 with the --suffix option (see the gcc readme file) under Cygwin last month and it worked fine. Alan Thompson At 11:19 PM 3/27/2003 +0100, Joakim Olsson wrote: Hi I've tried to configure and build gcc 3.2.2 under cygwin. the compiler builds fine but then the problem starts: I've tried to build fltk-1.1.3 (a gui toolkit) when I saw the problem. It seems that there are several unresolved in my new gcc. I looked around and found the actual symbols in libgcc.a in the old gcc that came with cygwin. What have I done wrong? following are output from linking and gcc -v etc: Linking fluid.exe... /usr/lib/mingw/libsupc++.a(new_op.o)(.text$_Znwj+0x98): undefined reference to ` __Unwind_Resume' /usr/lib/mingw/libsupc++.a(new_opv.o)(.text$_Znaj+0x1b): undefined reference to `__Unwind_Resume' /usr/lib/mingw/libsupc++.a(eh_personality.o)(.text$__cxa_call_unexpected+0xe 8): undefined reference to `__Unwind_Resume' /usr/lib/mingw/libsupc++.a(eh_throw.o)(.text$__cxa_throw+0x1b): undefined reference to `___w32_sharedptr_unexpected' /usr/lib/mingw/libsupc++.a(eh_throw.o)(.text$__cxa_throw+0x25): undefined reference to `___w32_sharedptr_terminate' /usr/lib/mingw/libsupc++.a(eh_throw.o)(.text$__cxa_throw+0x54): undefined reference to `__Unwind_RaiseException' /usr/lib/mingw/libsupc++.a(eh_throw.o)(.text$__cxa_rethrow+0x1b): undefined reference to `__Unwind_RaiseException' /usr/lib/mingw/libsupc++.a(eh_terminate.o)(.text$_ZSt9terminatev+0x7): undefined reference to `___w32_sharedptr_terminate' /usr/lib/mingw/libsupc++.a(eh_terminate.o)(.text$_ZSt10unexpectedv+0x7): undefined reference to ___w32_sharedptr_unexpected' /usr/lib/mingw/libsupc++.a(eh_terminate.o)(.text$_ZSt13set_terminatePFvvE+0x 3): undefined reference to `___w32_sharedptr_terminate' /usr/lib/mingw/libsupc++.a(eh_terminate.o)(.text$_ZSt14set_unexpectedPFvvE+0 x3): undefined reference to `___w32_sharedptr_unexpected' collect2: ld returned 1 exit status make[1]: *** [fluid.exe] Error 1 $ gcc -v Reading specs from /usr/local/gcc-3.2.2/lib/gcc-lib/i686-pc-cygwin/3.2.2/specs Configured with: ../gcc-3.2.2/configure --prefix=/usr/local/gcc-3.2.2 --enable-languages=ada, c,c++,f77,java,objc Thread model: single gcc version 3.2.2 $ gcc --version gcc (GCC) 3.2.2 Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I also tried to configure and build gcc-mingw-20020817-5 but it allways fails: ./xgcc -B./ -B/usr/local/gcc-mingw-3.2/mingw32/bin/ -isystem /usr/local/gcc-ming w-3.2/mingw32/include -isystem /usr/local/gcc-mingw-3.2/mingw32/sys-include -O2 -DIN_GCC-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototype s -i system ./include -I. -I. -I../../gcc-3.2-20020817-1/gcc -I../../gcc-3.2-2002081 7-1/gcc/. -I../../gcc-3.2-20020817-1/gcc/config -I../../gcc-3.2-20020817-1/g cc/. ./include -g0 -finhibit-size-directive -fno-inline-functions -fno-exception s \ -c ../../gcc-3.2-20020817-1/gcc/crtstuff.c -DCRT_BEGIN \ -o crtbegin.o In file included from tconfig.h:16, from ../../gcc-3.2-20020817-1/gcc/crtstuff.c:61: ../../gcc-3.2-20020817-1/gcc/config/i386/cygming.h:31:19: stdio.h: No such file or directory In file included from tconfig.h:16, from ../../gcc-3.2-20020817-1/gcc/crtstuff.c:61: Please help, is there a HOWTO on configure build gcc in Cygwin? best regards /joakim olsson SWEDEN -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Fw: Please help. gcc 3.2.2 configure problem or what?
Hi again I build gcc 3.2.2 with the --suffix option (see the gcc readme file) under Cygwin last month and it worked fine. Alan Thompson I think my problem has something to do with mingw32 and windows gui support. I managed to build a gcc 3.2.2 and enable language Ada, c, c++, java, objc and it seems to work. The problem starts when I try to link a program that has a gui. I can't find --suffix option, if you mean --program-suffix option shouldn't my --prefix work simular? $ gcc -v Reading specs from /usr/local/gcc-3.2.2/lib/gcc-lib/i686-pc-cygwin/3.2.2/specs Configured with: ../gcc-3.2.2/configure --prefix=/usr/local/gcc-3.2.2 --enable-languages=ada , c,c++,f77,java,objc Thread model: single gcc version 3.2.2 $ gcc --version gcc (GCC) 3.2.2 Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Please help, is there a HOWTO on configure build gcc in Cygwin? best regards /joakim olsson SWEDEN -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/