ERROR BUILDING NEWLIB with Cygwin

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

Moderators: cheriff, TyRaNiD

Post Reply
herley
Posts: 3
Joined: Wed Mar 01, 2006 9:31 pm

ERROR BUILDING NEWLIB with Cygwin

Post by herley »

I am trying to build with the latest psptoolchain script in cygwin. I had no other versions prior to this one. It is giving me error when it is building NEWLIB.

Code: Select all

psp-gcc -B/tmp/pspdev/newlib-1.13.0/build-psp/psp/newlib/ -isystem /tmp/pspdev/n
ewlib-1.13.0/build-psp/psp/newlib/targ-include -isystem /tmp/pspdev/newlib-1.13.
0/newlib/libc/include -DPACKAGE=\"newlib\" -DVERSION=\"1.13.0\"  -I. -I../../../
../../newlib/libc/locale  -O2 -G0 -DCOMPACT_CTYPE -DCLOCK_PROVIDED -DMALLOC_ALIG
NMENT=16 -I/usr/local/pspdev/psp/sdk/include -fno-builtin    -O2 -g -O2   -O2 -g
 -O2  -c ../../../../../newlib/libc/locale/nl_langinfo.c
psp-gcc -B/tmp/pspdev/newlib-1.13.0/build-psp/psp/newlib/ -isystem /tmp/pspdev/n
ewlib-1.13.0/build-psp/psp/newlib/targ-include -isystem /tmp/pspdev/newlib-1.13.
0/newlib/libc/include -DPACKAGE=\"newlib\" -DVERSION=\"1.13.0\"  -I. -I../../../
../../newlib/libc/locale  -O2 -G0 -DCOMPACT_CTYPE -DCLOCK_PROVIDED -DMALLOC_ALIG
NMENT=16 -I/usr/local/pspdev/psp/sdk/include -fno-builtin    -O2 -g -O2   -O2 -g
 -O2  -c ../../../../../newlib/libc/locale/timelocal.c
rm -f lib.a
psp-ar cru lib.a locale.o fix_grouping.o        ldpart.o        lmessages.o lnum
eric.o  lmonetary.o     nl_langinfo.o   timelocal.o
psp-ranlib lib.a
make[4]: Leaving directory `/tmp/pspdev/newlib-1.13.0/build-psp/psp/newlib/libc/
locale'
Making all in sys
make[4]: Entering directory `/tmp/pspdev/newlib-1.13.0/build-psp/psp/newlib/libc
/sys'
Making all in psp
make[5]: Entering directory `/tmp/pspdev/newlib-1.13.0/build-psp/psp/newlib/libc
/sys/psp'
psp-gcc -B/tmp/pspdev/newlib-1.13.0/build-psp/psp/newlib/ -isystem /tmp/pspdev/n
ewlib-1.13.0/build-psp/psp/newlib/targ-include -isystem /tmp/pspdev/newlib-1.13.
0/newlib/libc/include -DPACKAGE=\"newlib\" -DVERSION=\"1.13.0\"  -I. -I../../../
../../../newlib/libc/sys/psp  -O2 -G0 -DCOMPACT_CTYPE -DCLOCK_PROVIDED -DMALLOC_
ALIGNMENT=16 -I/usr/local/pspdev/psp/sdk/include -fno-builtin    -O2 -g -O2   -O
2 -g -O2  -c ../../../../../../newlib/libc/sys/psp/libcglue.c
In file included from ../../../../../../newlib/libc/sys/psp/libcglue.c:26:
../../../../../../newlib/libc/sys/psp/sys/dirent.h:11:34: error: pspiofilemgr_di
rent.h: No such file or directory
In file included from ../../../../../../newlib/libc/sys/psp/libcglue.c:26:
../../../../../../newlib/libc/sys/psp/sys/dirent.h:18: error: syntax error befor
e 'SceIoStat'
../../../../../../newlib/libc/sys/psp/sys/dirent.h:18: warning: no semicolon at
end of struct or union
../../../../../../newlib/libc/sys/psp/sys/dirent.h:24: error: syntax error befor
e '}' token
../../../../../../newlib/libc/sys/psp/sys/dirent.h:27: error: syntax error befor
e 'SceUID'
../../../../../../newlib/libc/sys/psp/sys/dirent.h:27: warning: no semicolon at
end of struct or union
../../../../../../newlib/libc/sys/psp/sys/dirent.h:29: error: syntax error befor
e '}' token
../../../../../../newlib/libc/sys/psp/sys/dirent.h:29: warning: data definition
has no type or storage class
../../../../../../newlib/libc/sys/psp/sys/dirent.h:31: error: syntax error befor
e '*' token
../../../../../../newlib/libc/sys/psp/sys/dirent.h:31: warning: data definition
has no type or storage class
../../../../../../newlib/libc/sys/psp/sys/dirent.h:32: error: syntax error befor
e '*' token
../../../../../../newlib/libc/sys/psp/sys/dirent.h:33: error: syntax error befor
e '*' token
../../../../../../newlib/libc/sys/psp/libcglue.c:29:22: error: psptypes.h: No su
ch file or directory
../../../../../../newlib/libc/sys/psp/libcglue.c:30:26: error: pspiofilemgr.h: N
o such file or directory
../../../../../../newlib/libc/sys/psp/libcglue.c:31:26: error: pspmodulemgr.h: N
o such file or directory
../../../../../../newlib/libc/sys/psp/libcglue.c:32:23: error: pspsysmem.h: No s
uch file or directory
../../../../../../newlib/libc/sys/psp/libcglue.c:33:26: error: pspthreadman.h: N
o such file or directory
../../../../../../newlib/libc/sys/psp/libcglue.c:34:22: error: psputils.h: No su
ch file or directory
../../../../../../newlib/libc/sys/psp/libcglue.c:35:24: error: psputility.h: No
such file or directory
../../../../../../newlib/libc/sys/psp/libcglue.c:36:22: error: pspstdio.h: No su
ch file or directory
../../../../../../newlib/libc/sys/psp/libcglue.c:37:24: error: pspintrman.h: No
such file or directory
make[5]: *** [libcglue.o] Error 1
make[5]: Leaving directory `/tmp/pspdev/newlib-1.13.0/build-psp/psp/newlib/libc/
sys/psp'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/tmp/pspdev/newlib-1.13.0/build-psp/psp/newlib/libc/
sys'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/tmp/pspdev/newlib-1.13.0/build-psp/psp/newlib/libc'

make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/pspdev/newlib-1.13.0/build-psp/psp/newlib'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/tmp/pspdev/newlib-1.13.0/build-psp/psp/newlib'
make: *** [all-target-newlib] Error 2
ERROR BUILDING NEWLIB
It looks like it is looking for include files in the wrong place, like "pspiofilemgr_dirent.h"

This is where I found it on my machine.

Code: Select all

C:\cygwin>dir pspiofilemgr_dirent.h /s

 Directory of C:\cygwin\tmp\pspdev\pspsdk\src\user

10/20/2005  05:08 AM             1,061 pspiofilemgr_dirent.h
               1 File(s)          1,061 bytes

 Directory of C:\cygwin\usr\local\pspdev\psp\sdk\include

02/28/2006  09:44 PM             1,061 pspiofilemgr_dirent.h
               1 File(s)          1,061 bytes
I also tried the newtoolchain script and it seemed to kick out earlier.
The psptoolchain script goes farther.

Any help getting this to work would be greatly appreciated![/code]
bobidop
Posts: 5
Joined: Sun Feb 19, 2006 5:37 am

Post by bobidop »

herley
Posts: 3
Joined: Wed Mar 01, 2006 9:31 pm

Post by herley »

I did all those steps "many times", and it still doesn't work.

I'm not a beginner C++ programmer, I'm just new to PSP programming.

I installed a fresh cygwin with Unix/binary setting, and it builds for a really long time, until it craps out at the end looking for those PSP include files that it can't find.

It looks like there is a problem with the psptoolchain script under cygwin.

I don't think I am doing anything wrong.

I think the script might ONLY FAIL ON NEW INSTALLS of cygwin.

It might only work for user that previously had the psptoolchain, and the new psptoolchain compiling with the old include files from the previous toolchain. But then again I might be wrong!

Please help!
herley
Posts: 3
Joined: Wed Mar 01, 2006 9:31 pm

Post by herley »

I got it to compile on another PC.

The only differences I can think of is at home I'm running on WinXP Home and the other PC is WinXP Pro. And at home I have installed other stuff like devkitPro and Msys that might be conflicting with the Cygwin environment.

I will look at the environment variables (using the "env" command in cygwin) on both machines to see if I can get it to work at home too.

I guess the psptoolchain scripts are fine, it's my PC at home that has too much crap on it.

Sorry for the inconvenience I might have caused.
Koba
Posts: 59
Joined: Thu Sep 29, 2005 10:57 am

Post by Koba »

ok, i have found in my time trying to install psptoolchain, that it all basically depends on what mirror you choose when installing cygwin. i chose a mirror near the top the other day, and psptoolchain installed without a fuss. so just uninstall cygwin, reinstall from another mirror, and try again.
ALiENiD
Posts: 5
Joined: Fri Mar 17, 2006 6:25 am

Post by ALiENiD »

Which mirror did you choose?
Post Reply