Re: [PATCH-0.9.33] common/pread_write.c: unbreak on archs without __NR_pread64

2013-10-15 Thread Peter Korsgaard
Peter == Peter Korsgaard pe...@korsgaard.com writes: Peter Some archs (avr32 in particular) still doesn't define __NR_pread64, so Peter we should fall back to __NR_pread if it isn't available. Peter The code nicely checks for it, but then ends up hard coding the syscall Peter to use

Re: [PATCH-0.9.33] common/pread_write.c: unbreak on archs without __NR_pread64

2013-10-15 Thread Peter Korsgaard
Peter == Peter Korsgaard pe...@korsgaard.com writes: Hi, Peter Some archs (avr32 in particular) still doesn't define __NR_pread64, so Peter we should fall back to __NR_pread if it isn't available. Peter The code nicely checks for it, but then ends up hard coding the syscall Peter to use

RE: non-interactive build question

2013-10-15 Thread Qais Yousef
I am new to building uclibc, but have experience building glibc and newlib, and I have a question about the best way to build multiple versions of uclibc from a script without any user interaction. Currently, I run 'make defconfig' to create a default .config file and then use grep to

Building uclibc for big-endian and little-endian target.

2013-10-15 Thread Steve Ellcey
I have a question about endiness and uclibc. I am trying to build multiple versions of uclibc for MIPS, including big and little endian versions. What I notice is that in Rules.mak there are lines: CPU_LDFLAGS-$(ARCH_LITTLE_ENDIAN) += -Wl,-EL CPU_LDFLAGS-$(ARCH_BIG_ENDIAN)+= -Wl,-EB to add

Re: non-interactive build question

2013-10-15 Thread Steve Ellcey
On Mon, 2013-10-14 at 22:21 +0200, Carmelo Amoroso wrote: Hello Il 14 ottobre 2013 18:43:34 Steve Ellcey sell...@mips.com ha scritto: I am new to building uclibc, but have experience building glibc and newlib, and I have a question about the best way to build multiple versions of

RE: non-interactive build question

2013-10-15 Thread Steve Ellcey
On Tue, 2013-10-15 at 03:31 -0700, Qais Yousef wrote: Modifying the .config manually is generally bad. The best way to do it I'd say is by running menuconfig for each config you want then copy the generated .config to a different file. In your script then simply copy the saved config file

Re: Building uclibc for big-endian and little-endian target.

2013-10-15 Thread Khem Raj
Hi Steve On Oct 15, 2013, at 10:30 AM, Steve Ellcey sell...@mips.com wrote: I have a question about endiness and uclibc. I am trying to build multiple versions of uclibc for MIPS, including big and little endian versions. What I notice is that in Rules.mak there are lines:

Re: [PATCH-0.9.33] common/pread_write.c: unbreak on archs without __NR_pread64

2013-10-15 Thread Mike Frysinger
On Friday 04 October 2013 17:45:20 Peter Korsgaard wrote: Peter == Peter Korsgaard pe...@korsgaard.com writes: Peter Some archs (avr32 in particular) still doesn't define __NR_pread64, so Peter we should fall back to __NR_pread if it isn't available. Peter The code nicely checks for it,

Re: [PATCH-0.9.33] common/pread_write.c: unbreak on archs without __NR_pread64

2013-10-15 Thread Mike Frysinger
On Friday 04 October 2013 15:41:20 Peter Korsgaard wrote: Some archs (avr32 in particular) still doesn't define __NR_pread64, so we should fall back to __NR_pread if it isn't available. The code nicely checks for it, but then ends up hard coding the syscall to use __NR_pread64 afterwards,

Re: [PATCH-0.9.33] common/pread_write.c: unbreak on archs without __NR_pread64

2013-10-15 Thread Peter Korsgaard
Mike == Mike Frysinger vap...@gentoo.org writes: Hi, I noticed another critical issue on ARM EABI. The use of __LONG_LONG_PAIR for the offset doesn't take alignment requirement of 64bit parameters on EABI into consideration, so the offset is off by one register :/

Re: [PATCH-0.9.33] common/pread_write.c: unbreak on archs without __NR_pread64

2013-10-15 Thread Peter Korsgaard
Mike == Mike Frysinger vap...@gentoo.org writes: Hi, The code nicely checks for it, but then ends up hard coding the syscall to use __NR_pread64 afterwards, rendering the check useless. Fix it by using the result of the test instead. Mike i think you should look at all the pread/pwrite

Re: Building uclibc for big-endian and little-endian target.

2013-10-15 Thread Steve Ellcey
On Tue, 2013-10-15 at 12:00 -0700, Khem Raj wrote: How do other architectures handle building multiple uclibc libraries with different endiness settings? Configure the toolchain and if you want additional tweaks then pass them via UCLIBC_EXTRA_CFLAGS Thanks, that helps clarify things.

Re: [PATCH-0.9.33] common/pread_write.c: unbreak on archs without __NR_pread64

2013-10-15 Thread Khem Raj
On Oct 15, 2013, at 1:41 PM, Peter Korsgaard pe...@korsgaard.com wrote: Mike == Mike Frysinger vap...@gentoo.org writes: Hi, The code nicely checks for it, but then ends up hard coding the syscall to use __NR_pread64 afterwards, rendering the check useless. Fix it by using the result of

Re: [PATCH-0.9.33] common/pread_write.c: unbreak on archs without __NR_pread64

2013-10-15 Thread Mike Frysinger
On Tuesday 15 October 2013 19:04:12 Khem Raj wrote: On Oct 15, 2013, at 1:41 PM, Peter Korsgaard pe...@korsgaard.com wrote: Mike == Mike Frysinger vap...@gentoo.org writes: Hi, The code nicely checks for it, but then ends up hard coding the syscall to use __NR_pread64 afterwards,