cygwin toolchain compile error .. about 004-newlib-1.15.0.sh

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

Moderators: cheriff, TyRaNiD

Post Reply
Mnuz
Posts: 1
Joined: Sat Sep 06, 2008 1:46 am

cygwin toolchain compile error .. about 004-newlib-1.15.0.sh

Post by Mnuz »

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: Select all

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
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

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
Post Reply