This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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]

segmentation fault in argz_append.c


Hi,

I'm trying to generate a cross-compiler for m6812 with the following
toolset:
GCC 4.4.1
Binutils 2.19.1
GDB 6.8
Newlib 1.17
GMP 4.3.1
MPFR 2.4.1

I'm getting the following error in newlib:
m6812-gcc
-B/cygdrive/d/cross_compiler/m6812_new_tools/CSE_build/b_newlib_m6812/
m6812/m68hc11/newlib/ -isystem
/cygdrive/d/cross_compiler/m6812_new_tools/CSE_bu
ild/b_newlib_m6812/m6812/m68hc11/newlib/targ-include -isystem
/cygdrive/d/cross_
compiler/m6812_new_tools/CSE_build/newlib-1.17.0/newlib/libc/include
-B/cygdrive
/d/cross_compiler/m6812_new_tools/CSE_build/b_newlib_m6812/m6812/m68hc11
/libglos
s/m68hc11
-L/cygdrive/d/cross_compiler/m6812_new_tools/CSE_build/b_newlib_m6812/
m6812/m68hc11/libgloss/libnosys
-L/cygdrive/d/cross_compiler/m6812_new_tools/CSE
_build/newlib-1.17.0/libgloss/m68hc11  -m68hc11
-DPACKAGE_NAME=\"newlib\" -DPACK
AGE_TARNAME=\"newlib\" -DPACKAGE_VERSION=\"1.17.0\"
-DPACKAGE_STRING=\"newlib\ 1
.17.0\" -DPACKAGE_BUGREPORT=\"\"  -I.
-I../../../../../../newlib-1.17.0/newlib/l
ibc/argz -DPREFER_SIZE_OVER_SPEED -Os -mrelax -DNO_EXEC -DABORT_PROVIDED
-DSMALL
_MEMORY -DMISSING_SYSCALL_NAMES -fno-builtin      -g -O2    -m68hc11 -c
-o lib_a
-argz_append.o `test -f 'argz_append.c' || echo
'../../../../../../newlib-1.17.0
/newlib/libc/argz/'`argz_append.c
../../../../../../newlib-1.17.0/newlib/libc/argz/argz_append.c: In
function 'argz_append':
../../../../../../newlib-1.17.0/newlib/libc/argz/argz_append.c:32:
internal compiler error: Segmentation fault

The problem is isolated to the memcpy() call, specifically the length
parameter. If I use a whole number, it builds fine.
This problem occurs for other argz files as well.

I don't see the problem if I use GCC 3.4.6 or 4.2.4 (both do not need
GMP or MPFR). But I do see the problem with GCC 4.3.2 and 4.4.1 (both
require GMP and MPFR). 

Any thoughts?

Thanks,
Dave



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