forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ERROR BUILDING NEWLIB with Cygwin

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
herley



Joined: 01 Mar 2006
Posts: 3

PostPosted: Wed Mar 01, 2006 9:42 pm    Post subject: ERROR BUILDING NEWLIB with Cygwin Reply with quote

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:

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:

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]
Back to top
View user's profile Send private message
bobidop



Joined: 19 Feb 2006
Posts: 5

PostPosted: Fri Mar 03, 2006 12:48 am    Post subject: Reply with quote

see thirs topic...
http://forums.ps2dev.org/viewtopic.php?t=5055&sid=64f978a86a4ae6972ee240219e8d2280
Back to top
View user's profile Send private message
herley



Joined: 01 Mar 2006
Posts: 3

PostPosted: Fri Mar 03, 2006 2:18 am    Post subject: Reply with quote

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!
Back to top
View user's profile Send private message
herley



Joined: 01 Mar 2006
Posts: 3

PostPosted: Sat Mar 04, 2006 2:59 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Koba



Joined: 29 Sep 2005
Posts: 59

PostPosted: Sat Mar 04, 2006 4:36 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message AIM Address
ALiENiD



Joined: 17 Mar 2006
Posts: 5

PostPosted: Fri Mar 17, 2006 8:05 am    Post subject: Reply with quote

Which mirror did you choose?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
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