| View previous topic :: View next topic |
| Author |
Message |
AJ-829
Joined: 26 Jul 2008 Posts: 6
|
Posted: Sat Nov 08, 2008 3:58 pm Post subject: Need help in toolchain |
|
|
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 |
|
 |
asphodeli
Joined: 29 Jun 2008 Posts: 20 Location: Singapore
|
Posted: Sun Nov 09, 2008 1:08 am Post subject: |
|
|
| 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 |
|
 |
ne0h
Joined: 21 Feb 2008 Posts: 386
|
Posted: Sun Nov 09, 2008 1:12 am Post subject: |
|
|
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 |
|
 |
Insert_witty_name
Joined: 10 May 2006 Posts: 376
|
Posted: Wed Nov 12, 2008 2:20 pm Post subject: |
|
|
I've reverted back libcglue.c to how it was before the recent patch.
Should work fine now. |
|
| Back to top |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Wed Nov 12, 2008 11:55 pm Post subject: |
|
|
| asphodeli: Can you elaborate on the specific problems you're having? |
|
| Back to top |
|
 |
asphodeli
Joined: 29 Jun 2008 Posts: 20 Location: Singapore
|
Posted: Thu Nov 13, 2008 12:58 am Post subject: |
|
|
| 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 |
|
 |
sakya
Joined: 28 Apr 2006 Posts: 190
|
Posted: Thu Nov 13, 2008 1:01 am Post subject: |
|
|
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 |
|
 |
Insert_witty_name
Joined: 10 May 2006 Posts: 376
|
Posted: Thu Nov 13, 2008 11:57 pm Post subject: |
|
|
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 |
|
 |
asphodeli
Joined: 29 Jun 2008 Posts: 20 Location: Singapore
|
Posted: Fri Nov 14, 2008 11:03 am Post subject: |
|
|
| 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 |
|
 |
alpher
Joined: 17 Nov 2008 Posts: 5
|
Posted: Mon Nov 17, 2008 5:07 pm Post subject: |
|
|
| 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 |
|
 |
Heimdall
Joined: 10 Nov 2005 Posts: 259 Location: Netherlands
|
Posted: Mon Nov 17, 2008 6:19 pm Post subject: |
|
|
| 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 |
|
 |
|