Discuss the development of new homebrew software, tools and libraries.
	Moderators:  cheriff , TyRaNiD 
			
		
		
			
				
																			
								stinos 							 
									
		Posts:  12 Joined:  Mon Oct 17, 2005 7:36 am 
		
						
					
													
							
						
									
						Post 
					 
								by stinos  Sun Sep 30, 2007 1:55 am 
			
			
			
			
			I did a quick search but it seems nobody had this problem before:
binutils compiles fine (after putting make -r in script), but then
compiling gcc fails with
Code: Select all 
gcc -c   -g -O2  -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute    -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../../gcc -I../../gcc/build -I../../gcc/../include -I./../intl -I../../gcc/../libcpp/include     -o build/genmodes.o ../../gcc/genmodes.c
Assembler messages:
Fatal error: invalid listing option `r'
which means (afaik) that gcc is using OsX's as instead of psp-as.. any idea how to fix this??
gcc version:
Code: Select all 
Target: i686-apple-darwin8
Configured with: /private/var/tmp/gcc/gcc-5367.obj~1/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=powerpc-apple-darwin8 --with-arch=nocona --with-tune=generic --program-prefix= --host=i686-apple-darwin8 --target=i686-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5367)
path setup
Code: Select all 
## PSPDEV SETTINGS
export PSPDEV=/usr/local/pspdev
export PSPSDK=$PSPDEV/psp/sdk
export PSPPATH=$PSPDEV/bin:$PSPDEV/psp/bin:$PSPSDK/bin
export PATH=./:$PATH:$PSPPATH
thanks in advance!
					Last edited by 
stinos  on Thu Oct 04, 2007 5:59 am, edited 1 time in total.
									
 
		 
				
		
		 
	 
				
		
		
			
				
								paraita 							 
									
		Posts:  12 Joined:  Tue Sep 25, 2007 8:51 amLocation:  Nice, France
				Contact: 
				
			 
				
		 
		
						
					
						 
													
							
						
									
						Post 
					 
								by paraita  Sun Sep 30, 2007 10:53 am 
			
			
			
			
			hi, it's weird, i don't have all that stuff when i type gcc --version or g++ --version, it just ouput something like this:
Code: Select all 
i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5367)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
how did you install gcc ? via latest Xcode ? i used Xcode 2.4.1.
 
		 
				
		
		 
	 
				
		
		
			
				
																			
								stinos 							 
									
		Posts:  12 Joined:  Mon Oct 17, 2005 7:36 am 
		
						
					
						 
													
							
						
									
						Post 
					 
								by stinos  Sun Sep 30, 2007 8:06 pm 
			
			
			
			
			paraita wrote: hi, it's weird, i don't have all that stuff when i type gcc --version or g++ --version
try gcc -v instead
how did you install gcc ? via latest Xcode ? i used Xcode 2.4.1.
via latest XCode
 
		 
				
		
		 
	 
				
		
		
			
				
								Wally 							 
									
		Posts:  663 Joined:  Mon Sep 26, 2005 11:25 am 
		
						
					
						 
													
							
						
									
						Post 
					 
								by Wally  Sun Sep 30, 2007 8:11 pm 
			
			
			
			
			try doing each script individually. 
			
			
									
									
						 
		 
				
		
		 
	 
				
		
		
			
				
																			
								stinos 							 
									
		Posts:  12 Joined:  Mon Oct 17, 2005 7:36 am 
		
						
					
						 
													
							
						
									
						Post 
					 
								by stinos  Sun Sep 30, 2007 8:48 pm 
			
			
			
			
			that's what i'm doing already.. I even manually entered each step from the script apart..
			
			
									
									
						 
		 
				
		
		 
	 
				
		
		
			
				
																			
								bulb 							 
									
		Posts:  50 Joined:  Thu Jan 19, 2006 10:59 pm 
		
						
					
						 
													
							
						
									
						Post 
					 
								by bulb  Mon Oct 01, 2007 2:53 am 
			
			
			
			
			It really seems that the improper assembler is being used, although I have no idea why.
Check the file: psptoolchain/build/gcc-4.1.0/build-psp/gcc/as
The content of this file is:
Code: Select all 
#!/bin/sh
exec /usr/local/pspdev/bin/psp-as "$@"
Also, the error log will be more informative if you type make commands by hand (as previously suggested). At least use make without option -j 2.
 
		 
				
		
		 
	 
				
		
		
			
				
																			
								stinos 							 
									
		Posts:  12 Joined:  Mon Oct 17, 2005 7:36 am 
		
						
					
						 
													
							
						
									
						Post 
					 
								by stinos  Tue Oct 02, 2007 3:19 am 
			
			
			
			
			content of that file was ok;