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]

Re: armv5b-softfloat with gcc-3.4.3 and glibc-2.3.3


Hi Dan,

I tried your program, but gave the following compile with Mazur's
headers. 

===================================================================
[nvinay@vpntest nvinay]$ armv5b-softfloat-linux-gcc x.c
x.c: In function `main':
x.c:7: error: `PAGE_SIZE' undeclared (first use in this function)
x.c:7: error: (Each undeclared identifier is reported only once
x.c:7: error: for each function it appears in.)
===================================================================

I managed to compile it after including <asm/page.h> and gave the
following output:
PAGE_SIZE = 4096
sysconf(_SC_PAGE_SIZE) = 4096

It does compile fine with my native gcc (i386) without including
<asm/page.h>

Thanks
Vinay

On Mon, 2005-03-28 at 05:01 -0800, Dan Kegel wrote:
> Vinay K Nallamothu wrote:
> > Just wanted to share my experience building a big endian toolchain for
> > IXP425 with crosstool-0.28-rc37.
> >
> > I used armv5b-softfloat-linux with the following configuration.
> > ==================gcc-3.4.3-glibc-2.3.3.dat=========================
> > BINUTILS_DIR=binutils-2.15.94.0.2.2
> > GCC_DIR=gcc-3.4.3
> > GLIBC_DIR=glibc-2.3.3
> > LINUX_DIR=linux-2.6.8
> > GLIBCTHREADS_FILENAME=glibc-linuxthreads-2.3.3
> > ====================================================================
> >
> > Although the glibc built works well for applications on 2.6 arm kernels,
> > I faced various issues on system with 2.4 kernels such zombie process,
> > module loading problems.
> >
> > Apparently, this was due to some system calls removed during 2.6
> > especially related to module loading.
> >
> > To overcome this problem, after some googling, instead of using the
> > plain kernel-2.6.8 headers, I have replaced the kernel "include" folder
> > with Mariusz Mazur's linux-libc-headers-2.6.8.1 ...
> > and re-compiled. I have been using this toolchain compiling, 2.4 kernels
> > and userland for about 3 weeks and have found no issues so far.
> >
> > From my experience, it seems better to use linux-libc-headers than using
> > headers from kernel sources.
> 
> Thanks for the info!
> I'd like to check one thing about how glibc and Mazur's sanitized
> headers interact.  Can you compile the following program and
> tell me what it prints on a system whose glibc was compiled
> as you describe?
> 
> #include <stdio.h>
> #include <sys/user.h>
> #include <unistd.h>
> 
> int main(int argc, char **argv)
> {
>          printf("PAGE_SIZE = %d\n", PAGE_SIZE);
>          printf("sysconf(_SC_PAGE_SIZE) = %d\n", sysconf(_SC_PAGE_SIZE));
> }
> 
> Thanks,
> Dan
> 
> --
> Trying to get a job as a c++ developer?  See http://kegel.com/academy/getting-hired.html
-- 
Views expressed in this mail are those of the individual sender and 
do not bind Gsec1 Limited. or its subsidiary, unless the sender has done
so expressly with due authority of Gsec1.
_________________________________________________________________________



------
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]