make with problems in amd64???

Carlos F. A. Paniago pan at cnpm.embrapa.br
Fri Dec 17 04:37:48 PST 2004


I'm using an amd64 FreeBSD machine:
oliveira# uname -a
FreeBSD oliveira.cnpm.embrapa.br 5.3-STABLE FreeBSD 5.3-STABLE #2: Wed 
Dec 15 20:44:58 BRST 2004     
root at oliveira.cnpm.embrapa.br:/usr/src/sys/amd64/compile/OLIVEIRA  amd64
oliveira#  
in:
cd /usr/src
make
I'm getting the error:
===> gnu/usr.bin/cc/cc
===> gnu/usr.bin/cc/cc1
===> gnu/usr.bin/cc/include
===> gnu/usr.bin/cc/protoize
===> gnu/usr.bin/cc/doc
===> gnu/usr.bin/cc/cpp
Segmentation fault (core dumped)
*** Error code 139

Stop in /usr/src/gnu/usr.bin/cc.
*** Error code 1

Stop in /usr/src/gnu/usr.bin.
*** Error code 1

Stop in /usr/src/gnu.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
. If I have an make compiled with DEBUG_FLAGS=-g
I can see this in the gdb:
oliveira# gdb /usr/bin/make /usr/obj/usr/src/gnu/usr.bin/cc/cpp/make.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain 
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...
Core was generated by `make'.
Program terminated with signal 11, Segmentation fault.
#0  0x0000000000436df2 in memcpy ()
(gdb) where
#0  0x0000000000436df2 in memcpy ()
#1  0x000000000040f5d3 in SuffFindNormalDeps (gn=0x56af80, 
slst=0x556f40) at /usr/src/usr.bin/make/suff.c:1797
#2  0x000000000040fc3b in SuffFindDeps (gn=0x56af80, slst=0x556f40) at 
/usr/src/usr.bin/make/suff.c:2167
#3  0x000000000040fb30 in Suff_FindDeps (gn=0x800) at 
/usr/src/usr.bin/make/suff.c:2115
#4  0x000000000040226d in CompatMake (gnp=0x800, pgnp=0x5703b0) at 
/usr/src/usr.bin/make/compat.c:453
#5  0x0000000000415001 in Lst_ForEachFrom (l=0x800, ln=0x5703b0, 
proc=0x402230 <CompatMake>, d=0x56af00)
    at /usr/src/usr.bin/make/lst.lib/lstForEachFrom.c:94
#6  0x0000000000414f92 in Lst_ForEach (l=0x57b240, proc=0x402230 
<CompatMake>, d=0x56af00)
    at /usr/src/usr.bin/make/lst.lib/lstForEach.c:73
#7  0x000000000040227e in CompatMake (gnp=0x800, pgnp=0x5703b0) at 
/usr/src/usr.bin/make/compat.c:454
#8  0x0000000000402696 in Compat_Run (targs=0x57e6c0) at 
/usr/src/usr.bin/make/compat.c:701
#9  0x0000000000409e45 in main (argc=3, argv=0x7fffffffebe8) at 
/usr/src/usr.bin/make/main.c:899
(gdb) up
#1  0x000000000040f5d3 in SuffFindNormalDeps (gn=0x56af80, 
slst=0x556f40) at /usr/src/usr.bin/make/suff.c:1797
1797                memcpy(target->pref, sopref, prefLen);
(gdb) print prefLen
$1 = -1
(gdb)                       
The strange thing. If I go to the cpp diretory and give an make it 
resumes ok... What the debug is sugesting is that we need a test after 
getting the  prefLen variable, because it can be an invalid value;  
Is someone with the same problem?

Paniago                                        


More information about the freebsd-amd64 mailing list