checking whether the c compiler (gcc ) works... no

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Duo
Posts: 25
Joined: Fri Oct 21, 2005 5:15 am

checking whether the c compiler (gcc ) works... no

Post by Duo »

I ran the script from cygwin, the gcc was finished decompressing and I got this:

Code: Select all

gcc-4.0.2/MD5SUMS
patching file config.sub
patching file gcc/c-incpath.c
patching file gcc/config.gcc
patching file gcc/config/mips/allegrex.md
patching file gcc/config/mips/mips-protos.h
patching file gcc/config/mips/mips.c
patching file gcc/config/mips/mips.h
patching file gcc/config/mips/mips.md
patching file gcc/config/mips/psp.h
patching file gcc/config/mips/t-allegrex
patching file gcc/hwint.h
patching file gcc/version.c
creating cache ./config.cache
checking host system type... i686-pc-cygwin
checking target system type... mipsallegrexel-ps
checking build system type... i686-pc-cygwin
checking for a BSD compatible install... /usr/bi
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... no *
configure: error: installation or configuration
e executables.
ERROR CONFIGURING GCC
I'm guessing that * is the problem. I have djgcc installed, too. Is that conflicting? When I tried a precompiled version of pspdev, typing in make got me a "Borland make 4.0 message", so I tried the toolchain.

I opened the C:\cygwin\tmp\pspdev\gcc-4.0.2\build-psp\config.log and found:

Code: Select all

checking for gcc
configure:1921: checking whether the C compiler (gcc  ) works
configure:1937: gcc -o conftest    conftest.c  1>&5
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find -luser32
collect2: ld returned 1 exit status
configure: failed program was:

#line 1932 "configure"
#include "confdefs.h"

main(){return(0);}
I tried running just ./toolchain.sh -g and got the same thing. I appreciate any assistance. Thank you!

Edit- I found cygwin/usr/lib to be empty? The default install with cygwin was really weird on my computer, I had to install the libs seperately.

I installed the lib and it still doesn't work. I'm stuck. All the source code and installation stuff is in the cygwin/tmp directory, but I can't compile anything.
User avatar
Drakonite
Site Admin
Posts: 990
Joined: Sat Jan 17, 2004 1:30 am
Contact:

Post by Drakonite »

Did you install the whole dev part of cygwin?

By default cygwin doesn't install the dev tools, which are required for building the pspdev toolchain.
Shoot Pixels Not People!
Makeshift Development
Duo
Posts: 25
Joined: Fri Oct 21, 2005 5:15 am

Post by Duo »

I forgot to mention I got this warning at 99% install that said:

gtk-query-immodules-2.0.exe - Unable To Locate Component
This application has faild to start because cygx11-6.dll was not found. Re-installing the application may fix this problem.

This was at etc/postinstall/gtk2-x11.sh. I thought it wasn't important because I thought postinstall meant that everything was already installed?
Duo
Posts: 25
Joined: Fri Oct 21, 2005 5:15 am

Post by Duo »

Dev was installed, the .dlls werent. Cygwin didn't say x11 was necessary when I was installing it, I thought everything for gcc to run was in default. Then I went to the x11 and and tried to download the xorg-x11-bin-dlls and was hit with "gcc, g++, every other part of cygwin, will not work unless you download.." and it gave me a list of files. I'm downloading the dll package now. I have a dial modem so it will take a while, but my problem is probably fixed.

This page was helpful in finding out a lot of problems with cygwin installation:
http://x.cygwin.com/docs/faq/cygwin-x-faq.htm

This will probably fix most cygwin related problems people have, clearing up the board a little. It might be helpful if someone of importance put it where people could see it more easily. Reading install log files helps too.
Duo
Posts: 25
Joined: Fri Oct 21, 2005 5:15 am

Post by Duo »

I got past that error, but got another one. When compiling newlibs, there was this error at the end.

Code: Select all

patching file newlib/libc/sys/psp/sys/dirent.h
svn: Unknown hostname 'svn.pspdev.org'
./toolchain.sh: line 273: cd: pspsdk: No such file or directory
./toolchain.sh: line 276: ./bootstrap: No such file or directory
ERROR RUNNING PSPSDK BOOSTRAP
Unknown hostname?
danzel
Posts: 182
Joined: Fri Nov 04, 2005 11:03 pm

Post by danzel »

The Unknown Hostname is most likely caused by DNS.
I dont have a cygwin set up here to play with, but on a normal linux system the nameservers are in /etc/resolv.conf with lines like:
nameserver 10.15.10.111

You could try add your nameservers in there (run ipconfig in a cmd prompt in windows to find them out)

Also check that your dns works in cygwin (ping www.google.com)

Danzel.
Duo
Posts: 25
Joined: Fri Oct 21, 2005 5:15 am

Post by Duo »

ping www.google.com in cygwin works okay, 0% data lost. etc/resolv.conf doesn't exist in cygwin. There is bash.bashrc DIR_COLORS group hosts hosts.allow hosts.deny networks passwd profile protocols services termcap. I'm using AOL dial connection, which may cause a problem, it usually does. My ipconfig shows

Code: Select all

Windows IP Configuration

        Host Name . . . . . . . . . . . . : user3
        Primary Dns Suffix  . . . . . . . :
        Node Type . . . . . . . . . . . . : Unknown
        IP Routing Enabled. . . . . . . . : No
        WINS Proxy Enabled. . . . . . . . : No

PPP adapter {7DD7A0FF-2C72-4AF0-A90D-11A3A5E50B8E}:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface
        Physical Address. . . . . . . . . : 00-53-45-00-00-00
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : 172.148.20.169
        Subnet Mask . . . . . . . . . . . : 255.255.255.255
        Default Gateway . . . . . . . . . : 172.148.20.169
        DNS Servers . . . . . . . . . . . : 205.188.146.145
        NetBIOS over Tcpip. . . . . . . . : Disabled
Post Reply