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 

Need help in toolchain

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



Joined: 26 Jul 2008
Posts: 6

PostPosted: Sat Nov 08, 2008 3:58 pm    Post subject: Need help in toolchain Reply with quote

i was compiling the psptoolchain and i got this what does it mean and how do i fix it?

Help would be appreciated

Code:

psp-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/libc/include -I../../src/base -I
../../src/kernel -I../../src/user -I../../src/debug    -g -O2 -G0 -Wall -DF_glue
_gettimeofday libcglue.c -c -o glue_gettimeofday.o
libcglue.c:45: error: conflicting types for 'gettimeofday'
/usr/local/pspdev/lib/gcc/psp/4.3.1/../../../../psp/include/sys/time.h:73: error
: previous declaration of 'gettimeofday' was here
make: *** [glue_gettimeofday.o] Error 1

Alexis@AJ-829-Dev ~/trunk/psptoolchain/build/pspsdk/src/libc
$

Back to top
View user's profile Send private message
asphodeli



Joined: 29 Jun 2008
Posts: 20
Location: Singapore

PostPosted: Sun Nov 09, 2008 1:08 am    Post subject: Reply with quote

Try commenting out the function in libcglue.c. On another note, latest svn broke compilation of my game engine (which previously was fine on psp-gcc 4.3.0), so I tried to go back to a previous revision, and still it failed, because the install script somehow will always download latest svn revision.
Back to top
View user's profile Send private message
ne0h



Joined: 21 Feb 2008
Posts: 386

PostPosted: Sun Nov 09, 2008 1:12 am    Post subject: Reply with quote

AJ-829, check if the declaration in time.h is the same ad in the libcglue.c lib!
It is probably different!
Back to top
View user's profile Send private message
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Wed Nov 12, 2008 2:20 pm    Post subject: Reply with quote

I've reverted back libcglue.c to how it was before the recent patch.

Should work fine now.
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Wed Nov 12, 2008 11:55 pm    Post subject: Reply with quote

asphodeli: Can you elaborate on the specific problems you're having?
Back to top
View user's profile Send private message Visit poster's website
asphodeli



Joined: 29 Jun 2008
Posts: 20
Location: Singapore

PostPosted: Thu Nov 13, 2008 12:58 am    Post subject: Reply with quote

Insert_witty_name wrote:
I've reverted back libcglue.c to how it was before the recent patch.

Should work fine now.


Tried installing rev 2445, still no go.
Back to top
View user's profile Send private message
sakya



Joined: 28 Apr 2006
Posts: 190

PostPosted: Thu Nov 13, 2008 1:01 am    Post subject: Reply with quote

Hi! :)

Insert_witty_name wrote:
I've reverted back libcglue.c to how it was before the recent patch.

I tried to compile the toolchain today and I got the error reported by AJ-829.
I fixed it changing /usr/local/pspdev/psp/include/sys/time.h this way:
Code:
//int _EXFUN(gettimeofday, (struct timeval *__p, void *__tz));
int _EXFUN(gettimeofday, (struct timeval *__p, struct timezone *__tz));


Ciaooo
Sakya
Back to top
View user's profile Send private message Visit poster's website
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Thu Nov 13, 2008 11:57 pm    Post subject: Reply with quote

I re-committed the patch for libcglue and performed a full install of the toolchain from scratch to test (revision 2446).

Worked fine for me.
Back to top
View user's profile Send private message
asphodeli



Joined: 29 Jun 2008
Posts: 20
Location: Singapore

PostPosted: Fri Nov 14, 2008 11:03 am    Post subject: Reply with quote

ooPo wrote:
asphodeli: Can you elaborate on the specific problems you're having?


With a working rev 2446, error is as follows:

Using -Os:
Code:

psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -Os -G0 -Wall -I. -I/usr/local/pspdev/psp/sdk/include -Os -G0 -Wall -D_PSP_FW_VERSION=390 -I../../include -Izlib -Ijpeglib -Ilibpng /usr/local/pspdev/psp/sdk/include   -c -o CCameraSceneNode.o CCameraSceneNode.cpp
../../include/SViewFrustum.h: In constructor ‘engine::scene::SViewFrustum::SViewFrustum()’:
../../include/SViewFrustum.h:55: internal compiler error: in simplify_subreg, at simplify-rtx.c:4928
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [CCameraSceneNode.o] Error 1


Using -O1
Code:

psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -O1 -G0 -Wall -I. -I/usr/local/pspdev/psp/sdk/include -O1 -G0 -Wall -D_PSP_FW_VERSION=390 -I../../include -Izlib -Ijpeglib -Ilibpng /usr/local/pspdev/psp/sdk/include   -c -o CCameraSceneNode.o CCameraSceneNode.cpp
CCameraSceneNode.cpp:303: internal compiler error: output_operand: floating constant misused
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [CCameraSceneNode.o] Error 1


Using -O2:
Code:

psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -D_PSP_FW_VERSION=390 -I../../include -Izlib -Ijpeglib -Ilibpng /usr/local/pspdev/psp/sdk/include   -c -o CCameraSceneNode.o CCameraSceneNode.cpp
CCameraSceneNode.cpp: In constructor ‘engine::scene::CCameraSceneNode::CCameraSceneNode(engine::scene::ISceneNode*, engine::scene::ISceneManager*, engine::s32, const engine::core::vector3df&, const engine::core::vector3df&)’:
CCameraSceneNode.cpp:40: internal compiler error: in simplify_subreg, at simplify-rtx.c:4928
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [CCameraSceneNode.o] Error 1


Using -O3 (for some strange reason, it compiles more files than the other -O options):
Code:

psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -O3 -G0 -Wall -I. -I/usr/local/pspdev/psp/sdk/include -O3 -G0 -Wall -D_PSP_FW_VERSION=390 -I../../include -Izlib -Ijpeglib -Ilibpng /usr/local/pspdev/psp/sdk/include   -c -o CAttributes.o CAttributes.cpp
In file included from CAttributes.cpp:6:
CAttributeImpl.h: In member function ‘virtual engine::s32 engine::io::CUserPointerAttribute::getInt()’:
CAttributeImpl.h:1945: warning: dereferencing type-punned pointer will break strict-aliasing rules
CAttributeImpl.h: In member function ‘virtual void engine::io::CUserPointerAttribute::getString(char*)’:
CAttributeImpl.h:1955: warning: dereferencing type-punned pointer will break strict-aliasing rules
../../include/fast_atof.h: In function ‘const char* engine::core::fast_atof_move(const char*, engine::f32&)’:
../../include/fast_atof.h:157: warning: ‘afterDecimal’ may be used uninitialized in this function
CAttributes.cpp: At global scope:
CAttributes.cpp:1552: internal compiler error: output_operand: floating constant misused
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [CAttributes.o] Error 1
Back to top
View user's profile Send private message
alpher



Joined: 17 Nov 2008
Posts: 5

PostPosted: Mon Nov 17, 2008 5:07 pm    Post subject: Reply with quote

Insert_witty_name wrote:
I re-committed the patch for libcglue and performed a full install of the toolchain from scratch to test (revision 2446).

Worked fine for me.



There is still error, now in the svn, the time.h says:
int _EXFUN(gettimeofday, (struct timeval *__p, struct timezone *__z));
BUT libcglue.c :
int gettimeofday(struct timeval *tp, void *tzp)
Back to top
View user's profile Send private message
Heimdall



Joined: 10 Nov 2005
Posts: 259
Location: Netherlands

PostPosted: Mon Nov 17, 2008 6:19 pm    Post subject: Reply with quote

That change on libcglue was to support the newlib 1.16 if you reverted it you must link against newlib 1.15
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
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