 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
Mnuz
Joined: 06 Sep 2008 Posts: 1
|
Posted: Sat Sep 06, 2008 4:24 am Post subject: cygwin toolchain compile error .. about 004-newlib-1.15.0.sh |
|
|
help me, guys
My 1st psp development plan is going to the dark.
I saw following error message on compilation psp toolchain
I think, my PSPDEV path not wrong, but following message is always appear.. (PSPDEV=/usr/local/pspdev)
I tried several actions, mkdir /usr/local/pspdev/psp/include
or copy *.h(~/psp/sdk/include/) files to above path, so on..
but that is no use.
Is there anything I can try ?, I need help.
toolchain : psptoolchain-20070626.tar.bz2 (http://ps2dev.org/psp)
Thanks guys,
| Code: |
psp-gcc -B/home/psptoolchain/build/newlib-1.15.0/build-psp/psp/newlib/ -isystem /home/psptoolchain/build/newlib-1.15.0/build-psp/psp/newlib/targ-include -isystem /home/psptoolchain/build/newlib-1.15.0/newlib/libc/include -DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\" -DPACKAGE_VERSION=\"1.15.0\" -DPACKAGE_STRING=\"newlib\ 1.15.0\" -DPACKAGE_BUGREPORT=\"\" -I. -I../../../../../newlib/libc/stdlib -O2 -G0 -mno-explicit-relocs -DCOMPACT_CTYPE -DCLOCK_PROVIDED -DHAVE_FCNTL -DHAVE_RENAME -DMALLOC_ALIGNMENT=16 -I/usr/local/pspdev/psp/sdk/include -fno-builtin -O2 -g -O2 -c -o lib_a-btowc.o `test -f 'btowc.c' || echo '../../../../../newlib/libc/stdlib/'`btowc.c
psp-gcc -B/home/psptoolchain/build/newlib-1.15.0/build-psp/psp/newlib/ -isystem /home/psptoolchain/build/newlib-1.15.0/build-psp/psp/newlib/targ-include -isystem /home/psptoolchain/build/newlib-1.15.0/newlib/libc/include -DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\" -DPACKAGE_VERSION=\"1.15.0\" -DPACKAGE_STRING=\"newlib\ 1.15.0\" -DPACKAGE_BUGREPORT=\"\" -I. -I../../../../../newlib/libc/stdlib -O2 -G0 -mno-explicit-relocs -DCOMPACT_CTYPE -DCLOCK_PROVIDED -DHAVE_FCNTL -DHAVE_RENAME -DMALLOC_ALIGNMENT=16 -I/usr/local/pspdev/psp/sdk/include -fno-builtin -O2 -g -O2 -c -o lib_a-getopt.o `test -f 'getopt.c' || echo '../../../../../newlib/libc/stdlib/'`getopt.c
../../../../../newlib/libc/stdlib/getopt.c:90:20: error: getopt.h: No such file or directory
../../../../../newlib/libc/stdlib/getopt.c:145: warning: 'struct option' declared inside parameter list
../../../../../newlib/libc/stdlib/getopt.c:145: warning: its scope is only this definition or declaration, which is probably not what you want
../../../../../newlib/libc/stdlib/getopt.c: In function 'getopt_internal':
../../../../../newlib/libc/stdlib/getopt.c:246: error: invalid use of undefined type 'struct option'
../../../../../newlib/libc/stdlib/getopt.c:246: error: dereferencing pointer to incomplete type
../../../../../newlib/libc/stdlib/getopt.c:249: error: invalid use of undefined type 'struct option'
../../../../../newlib/libc/stdlib/getopt.c:249: error: dereferencing pointer to incomplete type
../../../../../newlib/libc/stdlib/getopt.c:252: error: invalid use of undefined type 'struct option'
../../../../../newlib/libc/stdlib/getopt.c:252: error: dereferencing pointer to incomplete type
../../../../../newlib/libc/stdlib/getopt.c:270: error: invalid use of undefined type 'struct option'
../../../../../newlib/libc/stdlib/getopt.c:270: error: dereferencing pointer to incomplete type
../../../../../newlib/libc/stdlib/getopt.c:271: error: invalid use of undefined type 'struct option'
../../../../../newlib/libc/stdlib/getopt.c:271: error: dereferencing pointer to incomplete type
../../../../../newlib/libc/stdlib/getopt.c:278: error: invalid use of undefined type 'struct option'
../../../../../newlib/libc/stdlib/getopt.c:278: error: dereferencing pointer to incomplete type
../../../../../newlib/libc/stdlib/getopt.c:300: error: 'OPTIONAL_ARG' undeclared (first use in this function)
../../../../../newlib/libc/stdlib/getopt.c:300: error: (Each undeclared identifier is reported only once
../../../../../newlib/libc/stdlib/getopt.c:300: error: for each function it appears in.)
../../../../../newlib/libc/stdlib/getopt.c:300: error: 'REQUIRED_ARG' undeclared (first use in this function)
../../../../../newlib/libc/stdlib/getopt.c:300: error: 'NO_ARG' undeclared (first use in this function)
../../../../../newlib/libc/stdlib/getopt.c:333: error: invalid use of undefined type 'struct option'
../../../../../newlib/libc/stdlib/getopt.c:333: error: dereferencing pointer to incomplete type
../../../../../newlib/libc/stdlib/getopt.c:374: error: invalid use of undefined type 'struct option'
../../../../../newlib/libc/stdlib/getopt.c:374: error: dereferencing pointer to incomplete type
../../../../../newlib/libc/stdlib/getopt.c:376: error: invalid use of undefined type 'struct option'
../../../../../newlib/libc/stdlib/getopt.c:376: error: dereferencing pointer to incomplete type
../../../../../newlib/libc/stdlib/getopt.c:376: error: invalid use of undefined type 'struct option'
../../../../../newlib/libc/stdlib/getopt.c:376: error: dereferencing pointer to incomplete type
../../../../../newlib/libc/stdlib/getopt.c:380: error: invalid use of undefined type 'struct option'
../../../../../newlib/libc/stdlib/getopt.c:380: error: dereferencing pointer to incomplete type
../../../../../newlib/libc/stdlib/getopt.c: At top level:
../../../../../newlib/libc/stdlib/getopt.c:394: warning: 'struct option' declared inside parameter list
../../../../../newlib/libc/stdlib/getopt.c: In function 'getopt_long':
../../../../../newlib/libc/stdlib/getopt.c:396: warning: passing argument 4 of 'getopt_internal' from incompatible pointer type
../../../../../newlib/libc/stdlib/getopt.c: At top level:
../../../../../newlib/libc/stdlib/getopt.c:401: warning: 'struct option' declared inside parameter list
../../../../../newlib/libc/stdlib/getopt.c: In function 'getopt_long_only':
../../../../../newlib/libc/stdlib/getopt.c:403: warning: passing argument 4 of 'getopt_internal' from incompatible pointer type
make[5]: *** [lib_a-getopt.o] Error 1
make[5]: Leaving directory `/home/psptoolchain/build/newlib-1.15.0/build-psp/psp/newlib/libc/stdlib'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/psptoolchain/build/newlib-1.15.0/build-psp/psp/newlib/libc'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/psptoolchain/build/newlib-1.15.0/build-psp/psp/newlib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/psptoolchain/build/newlib-1.15.0/build-psp/psp/newlib'
make[1]: *** [all-target-newlib] Error 2
make[1]: Leaving directory `/home/psptoolchain/build/newlib-1.15.0/build-psp'
make: *** [all] Error 2
|
|
|
| Back to top |
|
 |
Wally

Joined: 26 Sep 2005 Posts: 672
|
Posted: Sat Sep 06, 2008 9:16 am Post subject: |
|
|
you did install newlib / binutils / gcc for cygwin didn't you?
because getopt.h: No such file or directory means you are missing that file.
Wally |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|