This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

error: "storage class specified for parameter"


Hi,

On Linux RedHat 9 (i686) box I am using cross-compiler, built by the cross-tool :

[apovolot@localhost linux-2.6.7]$ /usr/local/bin/powerpc-860-linux-gnu-gcc-3.4.1 -v
Reading specs from /opt/crosstool/powerpc-860-linux-gnu/gcc-3.4.1-glibc-2.3.3/lib/gcc/powerpc-860-linux-gnu/3.4.1/specs
Configured with: /opt/crosstool/crosstool-0.28-rc36/build/powerpc-860-linux-gnu/gcc-3.4.1-glibc-2.3.3/gcc-3.4.1/configure --target=powerpc-860-linux-gnu --host=i686-host_pc-linux-gnu --prefix=/opt/crosstool/powerpc-860-linux-gnu/gcc-3.4.1-glibc-2.3.3 --with-cpu=860 --enable-cxx-flags=-mcpu=860 --with-headers=/opt/crosstool/powerpc-860-linux-gnu/gcc-3.4.1-glibc-2.3.3/powerpc-860-linux-gnu/include --with-local-prefix=/opt/crosstool/powerpc-860-linux-gnu/gcc-3.4.1-glibc-2.3.3/powerpc-860-linux-gnu --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-__cxa_atexit --enable-languages=c,c++ --enable-shared --enable-c99 --enable-long-long
Thread model: posix
gcc version 3.4.1

It works fine for cross-building (for ppc 860) Linux 2.4.26 

However it gives me the error: "storage class specified for parameter" when I tried to cross-build (also for ppc 860) Linux 2.6.8 
By the way - I was capable of cross-building the same Linux 2.6.8 distro
on the Cygwin (with all additional Cygwin related patches) and then I tar-zipped (keeping all additional Cygwin related patches - I hope it's OK ?) and ftp'd it from Cygwin's laptop to Linux RedHat 9 (i686) box. 

****************************
Make zImage

  CHK     include/linux/version.h
make[1]: `arch/ppc/kernel/asm-offsets.asm' is up to date.
  CHK     include/linux/compile.h
  CC      arch/ppc/8xx_io/uart.o
arch/ppc/8xx_io/uart.c:82: warning: type defaults to `int' in declaration of `DECLARE_TASK_QUEUE'
arch/ppc/8xx_io/uart.c:82: warning: parameter names (without types) in function declaration
arch/ppc/8xx_io/uart.c: In function `serial_console_device':
arch/ppc/8xx_io/uart.c:145: error: storage class specified for parameter `rs_table'
arch/ppc/8xx_io/uart.c:145: error: parameter `rs_table' is initialized
*****************
Here are more details:
both 2.4.26 and 2.6.8 cross-builds are started by executing bash script
****************************************
#!/bin/bash
AR=/usr/local/bin/powerpc-860-linux-gnu-ar \
NM=/usr/local/bin/powerpc-860-linux-gnu-nm \
CC=/usr/local/bin/powerpc-860-linux-gnu-gcc-3.4.1 \
GCC=/usr/local/bin/powerpc-860-linux-gnu-gcc-3.4.1 \
HOSTCC=/usr/local/bin/powerpc-860-linux-gnu-gcc-3.4.1 \
CXX=/usr/local/bin/powerpc-860-linux-gnu-g++ \
CFLAGS=-stdvOs \
CXXFLAGS=-Os \
RANLIB=/usr/local/bin/powerpc-860-linux-gnu-ranlib \
GCC_EXEC_PREFIX=/usr/local/lib/gcc-lib/
perl ./go 60pots
****************
the "go" - from above is the perl script:
**************
#!/usr/local/bin/perl

use Getopt::Long;

($target) = @ARGV;


if(! $target){
        die("\n\nUsage: go targetname\n\n");
}
if(!(-d "targets/$target")){
        die("\n\nError: target  doesn't exist\n\n");
}

print "\n****************************************";
print "\n\nMake zImage\n\n";
system "GCC_EXEC_PREFIX=/usr/local/lib/gcc-lib/ make zImage";
***************************************
The Makefile (for both 2.4.26 and 2.6.8 cross-builds)is using bash env variable "CROSS"

[apovolot@localhost linux-2.6.7]$ echo $CROSS
powerpc-860-linux-gnu-

[apovolot@localhost linux-2.6.7]$ grep CROSS Makefile
Makefile:CROSS_COMPILE  = $(CROSS)
Makefile:AS             = $(CROSS_COMPILE)as
Makefile:LD             = $(CROSS_COMPILE)ld
Makefile:CC             = $(CROSS_COMPILE)gcc
Makefile:AR             = $(CROSS_COMPILE)ar
Makefile:NM             = $(CROSS_COMPILE)nm
Makefile:STRIP          = $(CROSS_COMPILE)strip
Makefile:OBJCOPY                = $(CROSS_COMPILE)objcopy
Makefile:OBJDUMP                = $(CROSS_COMPILE)objdump

Thanks,
Best Regards,
Alex

________________________________________________________________
Juno Gift Certificates
Give the gift of Internet access this holiday season.
http://www.juno.com/give


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]