This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
#include <errno.h> #include <sys/types.h> #include <string.h> #include <stdlib.h> #include <argz.h> #define __need_ptrdiff_t #include <stddef.h>
error_t _DEFUN (argz_insert, (argz, argz_len, before, entry), char **argz _AND size_t *argz_len _AND char *before _AND const char *entry) { int len = 0;
if (before == NULL) return argz_add(argz, argz_len, entry);
if (before < *argz || before >= *argz + *argz_len) return EINVAL;
while (before != *argz && before[-1]) before--;
/* delta will always be non-negative, and < *argz_len */ ptrdiff_t delta = before - *argz;
Hi Jeff,
On Mon, 4 Jun 2007, Jeff Johnston wrote:
I am skeptical that the patch is at fault since no other embedded platforms are reporting problems.
I tried going back in one month decrements until it worked again.
It didn't work until I checked out with -D20060411, but with -D20060412 it fails a bit differently than current HEAD:
configure: configuring in libc
configure: running /bin/sh '../../../../src-pre/newlib/libc/configure' --prefix=/tmp/xxx '--cache-file=./config.cache' '--build=i686-pc-linux-gnu' '--host=z8k-coff' '--target=z8k-coff' '--with-newlib' '--enable-multilib' '--with-cross-host=i686-pc-linux-gnu' '--prefix=/tmp/xxx' '--program-transform-name=s,^,z8k-coff-,; ' '--with-target-subdir=z8k-coff' '--srcdir=../../../src-pre/newlib' 'CC=z8k-coff-gcc -B/local/newlib-cvs/b-test/z8k-coff/newlib/ -isystem /local/newlib-cvs/b-test/z8k-coff/newlib/targ-include -isystem /local/newlib-cvs/src-pre/newlib/libc/include' 'CFLAGS=-O2 -g -O2 ' 'CPPFLAGS=' 'LDFLAGS=' 'build_alias=i686-pc-linux-gnu' 'host_alias=z8k-coff' 'target_alias=z8k-coff' --cache-file=.././config.cache --srcdir=../../../../src-pre/newlib/libc
configure: loading cache .././config.cache
configure: error: `CFLAGS' has changed since the previous run:
configure: former value: -O2 -g -O2 configure: current value: -O2 -g -O2 configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm .././config.cache' and start over
configure: error: /bin/sh '../../../../src-pre/newlib/libc/configure' failed for libc
make[1]: *** [configure-target-newlib] Error 1
make[1]: Leaving directory `/local/newlib-cvs/b-test'
make: *** [all] Error 2
Can you please perform a fresh build into a completely empty build directory? Specify full directory paths for now and save the output of both your configure and build. Perhaps a tool isn't configuring properly for some reason.
Attached. I used cvs HEAD from right now.
regards, chris
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |