NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-sparc64/57219: ./configure for gcl-2.6.14 crashes kernel (reboot) on NetBSD 9.3 sparc64



The following reply was made to PR port-sparc64/57219; it has been noted by GNATS.

From: Harold Gutch <logix%foobar.franken.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: port-sparc64/57219: ./configure for gcl-2.6.14 crashes kernel (reboot) on NetBSD 9.3 sparc64
Date: Sun, 5 Feb 2023 22:54:05 +0100

 Hi,
 
 Unfortunately I cannot reproduce this in Qemu, I am seeing the same
 behavior there as on amd64:
 
   checking output_arch... bfd_arch_sparc
   configure: trying to adjust text start
   [1]   Abort trap              (${CC} ${LDFLAGS} -Wl,-T gcl.script foo.c -o f...
   [1]   Abort trap              (${CC} ${LDFLAGS} -Wl,-T gcl.script foo.c -o f...
   [1]   Abort trap              (${CC} ${LDFLAGS} -Wl,-T gcl.script foo.c -o f...
   [...]
 
 The "trying to adjust text start" loop in the configure script starts
 prety much like this:
 
   echo "int main() {return 0;}" >foo.c
 
   gcc -no-pie -Wl,--verbose foo.c -o foo 2>&1 | \
      awk '/==================================================/{i=1-i;next}
      {if (i) print}' >gcl.script.def
 
   cat gcl.script.def | awk '/SIZEOF_HEADERS/ {gsub("0x[0-9]*","0x" j,$0);}
      {print}' j=0 >gcl.script
 
   gcc -no-pie -Wl,-T gcl.script foo.c -o foo
 
   ./foo
 
 What happens if you run this one by one in a shell?  Do you get the
 same panic when running "./foo"?
 
 
 thanks,
   Harold
 


Home | Main Index | Thread Index | Old Index