|
View:
New views
10 Messages
—
Rating Filter:
Alert me
|
|
|
GCC doesn't create an executableI have installed CygWin on Windows XP Home. I have installed all the
development packages. The Problem: When I use gcc to compile a .c file no executable or any file at all is created. It doesn't output any errors. The output from gcc -v hello.c -o hello.exe: Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs Configured with: /usr/build/package/orig/test.respin/gcc-3.4.4-3/configure -- verbose --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib -- libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable- languages=c,ada,c++,d,f77,pascal,java,objc --enable-nls --without-included- gettext --enable-version-specific-runtime-libs --without-x --enable-libgcj -- disable-java-awt --with-system-zlib --enable-interpreter --disable-libgcj- debug --enable-threads=posix --enable-java-gc=boehm --disable-win32-registry -- enable-sjlj-exceptions --enable-hash-synchronization --enable-libstdcxx-debug Thread model: posix gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) /usr/lib/gcc/i686-pc-cygwin/3.4.4/cc1.exe -quiet -v -D__CYGWIN32__ - D__CYGWIN__ -Dunix -D__unix__ -D__unix -idirafter /usr/lib/gcc/i686-pc- cygwin/3.4.4/../../../../include/w32api -idirafter /usr/lib/gcc/i686-pc- cygwin/3.4.4/../../../../i686-pc-cygwin/lib/../../include/w32api hello.c - quiet -dumpbase hello.c -mtune=pentiumpro -auxbase hello -version - o /tmp/ccFwdJsQ.s -- 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: GCC doesn't create an executableI have the same problem. I tried to compile the requisite "Hello, world!" program, but gcc didn't give any messages, nor generate any output. Here are the specifics:
Code: #include <iostream> using namespace std; int main (void) { cout << "Hello, world!"; return 0; } Compiler command: $ g++ -v hello.cpp Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs Configured with: /usr/build/package/orig/test.respin/gcc-3.4.4-3/configure --ver bose --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --libe xecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-langu ages=c,ada,c++,d,f77,pascal,java,objc --enable-nls --without-included-gettext -- enable-version-specific-runtime-libs --without-x --enable-libgcj --disable-java- awt --with-system-zlib --enable-interpreter --disable-libgcj-debug --enable-thre ads=posix --enable-java-gc=boehm --disable-win32-registry --enable-sjlj-exceptio ns --enable-hash-synchronization --enable-libstdcxx-debug Thread model: posix gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) /usr/lib/gcc/i686-pc-cygwin/3.4.4/cc1plus.exe -quiet -v -D__CYGWIN32__ -D__CYGW IN__ -Dunix -D__unix__ -D__unix -idirafter /usr/lib/gcc/i686-pc-cygwin/3.4.4/../ ../../../include/w32api -idirafter /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../.. /i686-pc-cygwin/lib/../../include/w32api hello.cpp -quiet -dumpbase hello.cpp -m tune=pentiumpro -auxbase hello -version -o /cygdrive/c/DOCUME~1/BILLRI~1/LOCALS~ 1/Temp/ccjMjB4s.s $ cygcheck /usr/bin/gcc C:/Cygwin/bin/gcc.exe C:/Cygwin/bin\cygwin1.dll C:\WINDOWS\system32\ADVAPI32.DLL C:\WINDOWS\system32\ntdll.dll C:\WINDOWS\system32\KERNEL32.dll C:\WINDOWS\system32\RPCRT4.dll C:/Cygwin/bin\cygintl-8.dll C:/Cygwin/bin\cygiconv-2.dll Thanks for your help. Bill |
|
|
RE: GCC doesn't create an executableOn 04 March 2007 03:59, Bogus Bill wrote:
Subject line edited, this is NOT an announcement. > I have the same problem. I tried to compile the requisite "Hello, world!" > program, but gcc didn't give any messages, nor generate any output. Here > are the specifics: > $ g++ -v hello.cpp > Thread model: posix > gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) > /usr/lib/gcc/i686-pc-cygwin/3.4.4/cc1plus.exe -quiet -v -D__CYGWIN32__ > -D__CYGW > IN__ -Dunix -D__unix__ -D__unix -idirafter > /usr/lib/gcc/i686-pc-cygwin/3.4.4/../ > ../../../include/w32api -idirafter > /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../.. > /i686-pc-cygwin/lib/../../include/w32api hello.cpp -quiet -dumpbase > hello.cpp -m > tune=pentiumpro -auxbase hello -version -o > /cygdrive/c/DOCUME~1/BILLRI~1/LOCALS~ > 1/Temp/ccjMjB4s.s Looks like the driver works, but the invocation of cc1plus is failing. > $ cygcheck /usr/bin/gcc That all looked ok. What do you see from "cygcheck /usr/lib/gcc/i686-pc-cygwin/3.4.4/cc1plus.exe"? What (if anything) do you see from running "/usr/lib/gcc/i686-pc-cygwin/3.4.4/cc1plus.exe -v </dev/nul"? And what do you get from running "cygcheck -c gcc gcc-core gcc-g++"? cheers, DaveK -- Can't think of a witty .sigline today.... -- 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: GCC doesn't create an executable$ cygcheck /usr/lib/gcc/i686-pc-cygwin/3.4.4/cc1plus.exe C:/Cygwin/lib/gcc/i686-pc-cygwin/3.4.4/cc1plus.exe C:\WINDOWS\cygwin1.dll C:\WINDOWS\system32\ADVAPI32.DLL C:\WINDOWS\system32\ntdll.dll C:\WINDOWS\system32\KERNEL32.dll C:\WINDOWS\system32\RPCRT4.dll C:\Cygwin\bin\cygiconv-2.dll C:\Cygwin\bin\cygintl-3.dll Nothing $ cygcheck -c gcc gcc-core gcc-g++ Cygwin Package Information Package Version Status gcc-core 3.4.4-3 OK gcc-g++ 3.4.4-3 OK |
|
|
Re: GCC doesn't create an executableDave Korn wrote:
> On 04 March 2007 03:59, Bogus Bill wrote: > > > Subject line edited, this is NOT an announcement. > > >> I have the same problem. I tried to compile the requisite "Hello, world!" >> program, but gcc didn't give any messages, nor generate any output. Here >> are the specifics: >> > > >> $ g++ -v hello.cpp >> > > >> Thread model: posix >> gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) >> /usr/lib/gcc/i686-pc-cygwin/3.4.4/cc1plus.exe -quiet -v -D__CYGWIN32__ >> -D__CYGW >> IN__ -Dunix -D__unix__ -D__unix -idirafter >> /usr/lib/gcc/i686-pc-cygwin/3.4.4/../ >> ../../../include/w32api -idirafter >> /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../.. >> /i686-pc-cygwin/lib/../../include/w32api hello.cpp -quiet -dumpbase >> hello.cpp -m >> tune=pentiumpro -auxbase hello -version -o >> /cygdrive/c/DOCUME~1/BILLRI~1/LOCALS~ >> 1/Temp/ccjMjB4s.s >> > > > Looks like the driver works, but the invocation of cc1plus is failing. > > >> $ cygcheck /usr/bin/gcc >> > > That all looked ok. What do you see from "cygcheck > /usr/lib/gcc/i686-pc-cygwin/3.4.4/cc1plus.exe"? What (if anything) do you see > from running "/usr/lib/gcc/i686-pc-cygwin/3.4.4/cc1plus.exe -v </dev/nul"? > And what do you get from running "cygcheck -c gcc gcc-core gcc-g++"? > Are you sure this failed, or were you perhaps expecting to find an executable called hello.exe? The output I get is called a.exe. -- 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: GCC doesn't create an executableOn 04 March 2007 22:42, Bogus Bill wrote:
>> Looks like the driver works, but the invocation of cc1plus is failing. >> That all looked ok. What do you see from "cygcheck >> /usr/lib/gcc/i686-pc-cygwin/3.4.4/cc1plus.exe"? > $ cygcheck /usr/lib/gcc/i686-pc-cygwin/3.4.4/cc1plus.exe > C:/Cygwin/lib/gcc/i686-pc-cygwin/3.4.4/cc1plus.exe > C:\WINDOWS\cygwin1.dll > C:\WINDOWS\system32\ADVAPI32.DLL > C:\WINDOWS\system32\ntdll.dll > C:\WINDOWS\system32\KERNEL32.dll > C:\WINDOWS\system32\RPCRT4.dll > C:\Cygwin\bin\cygiconv-2.dll > C:\Cygwin\bin\cygintl-3.dll That's correct too. It really ought to at least run. >> What (if anything) do you see >> from running "/usr/lib/gcc/i686-pc-cygwin/3.4.4/cc1plus.exe -v </dev/nul"? >> > > Nothing That's very odd, it should at least have spit out some text. How about something simpler: does "/usr/lib/gcc/i686-pc-cygwin/3.4.4/cc1plus.exe --help" produce any output at all? >> And what do you get from running "cygcheck -c gcc gcc-core gcc-g++"? >> > > $ cygcheck -c gcc gcc-core gcc-g++ > Cygwin Package Information > Package Version Status > gcc-core 3.4.4-3 OK > gcc-g++ 3.4.4-3 OK Hmm, it's unusual that you haven't got the top-level 'gcc' package installed, although I don't see how that could cause this effect. It couldn't hurt to re-run setup.exe, and add the plain 'gcc' package to your installation. If that fixes the problem, it means we have a missing dependency somewhere. However, I think it probably won't make the difference, so we'd better take a look over your system: please run "cygcheck -s -v -r > cygcheck.out" and then send the cygcheck.out file as an *attachment* to your next post. Also, do you have any of Norton/MacAffee/Symantec antivirus, Logitech webcam software, Kerio, Agnitum or ZoneAlarm Personal Firewall, LanDesk, or Windows Defender installed? cheers, DaveK -- Can't think of a witty .sigline today.... -- 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: GCC doesn't create an executableI've tried it with and without the -o option. It produces nothing, nor does it print any output to the console. |
|
|
RE: GCC doesn't create an executableNone. $ cygcheck -c gcc gcc-core gcc-g++ Cygwin Package Information Package Version Status gcc 3.4.4-3 OK gcc-core 3.4.4-3 OK gcc-g++ 3.4.4-3 OK Done. cygcheck.out No, none of those. |
|
|
RE: GCC doesn't create an executableOn 10 March 2007 21:20, Bogus Bill wrote:
>> Also, do you have any of Norton/MacAffee/Symantec antivirus, Logitech >> webcam software, Kerio, Agnitum or ZoneAlarm Personal Firewall, LanDesk, >> or Windows Defender installed? >> > > No, none of those. STOPzilla could in theory cause problems, as security software often does by digging its hooks none-too-gently into the OS. However, ... > http://www.nabble.com/file/7076/cygcheck.out cygcheck.out " Warning: There are multiple cygwin1.dlls on your path " That's a guaranteed disaster zone right there. Looks like you've been nabbled by some http://cygwin.com/acronyms#3PP. Get rid of these files: C:\WINDOWS\system32\cygz.dll C:\WINDOWS\cygz.dll C:\WINDOWS\cygwin1.dll Just delete them, they're way old out-of-date versions and you have newer ones in your cygwin install already. That should make things work a whole lot better. cheers, DaveK -- Can't think of a witty .sigline today.... -- 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: GCC doesn't create an executableThat did it. Thank you very much. |
| Free embeddable forum powered by Nabble | Forum Help |