public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* recent snapshot fail to compile on BSD/OS
@ 1998-04-13  3:22 Shigeya Suzuki
  1998-04-13  3:22 ` Shigeya Suzuki
  1998-04-13  9:38 ` Krister Walfridsson
  0 siblings, 2 replies; 5+ messages in thread
From: Shigeya Suzuki @ 1998-04-13  3:22 UTC (permalink / raw)
  To: egcs

I've been trying this recently, but everytime I built from CVS
snapshot (I tried several times, including ss-980406) no luck.

I've got coredump on stage1, and stage2. Anything I can help?

shigeya

------------------------------

./xgcc -B./  -DIN_GCC    -g -I./include   enquire.o -o enquire
./enquire -f > tmp-float.h
Segmentation fault - core dumped

------------------------------

stage1/xgcc -Bstage1/  -DIN_GCC    -W -Wall -O2 -g -O2  -DHAVE_CONFIG_H   -o gen
genrtl \
 gengenrtl.o ` case "obstack.o" in ?*) echo obstack.o ;; esac ` ` case "" in ?*)
 echo  ;; esac ` ` case "" in ?*) echo  ;; esac ` 
./gengenrtl tmp-genrtl.h tmp-genrtl.c
gmake[2]: *** [s-genrtl] Segmentation fault (core dumped)
gmake[2]: Leaving directory `/usr/home/shigeya/work/egcs/snap1/gcc'
gmake[1]: *** [bootstrap] Error 2
gmake[1]: Leaving directory `/usr/home/shigeya/work/egcs/snap1/gcc'
gmake: *** [bootstrap] Error 2

------------------------------

stack traces:

enquire:

(gdb) bt
#0  0x14b1 in main (argc=2, argv=0xefbfcc58)
    at ../../cvs-snap/egcs/gcc/enquire.c:680
(gdb) l 680
675     /* Add more calls as necessary */
676     
677             Unexpected(1);
678     
679             bad=0;
680             for (i=1; i < argc; i++) {
681                     s= argv[i];
682                     if (*s == '-') {
683                             s++;
684                             while (*s) {

argc = 2,  argv[2] = 0x00, looks no problem.


gengenrtl:

pooh 68% gdb gengenrtl gengenrtl.core 
Core was generated by `gengenrtl'.
Program terminated with signal 11, Segmentation fault.
#0  0x1cab in find_formats () at ../../cvs-snap/egcs/gcc/gengenrtl.c:126
126             if (!strcmp(*f, defs[i].format))
Breakpoint 1 at 0x9ebf
(gdb) bt
#0  0x1cab in find_formats () at ../../cvs-snap/egcs/gcc/gengenrtl.c:126
#1  0x2525 in main (argc=3, argv=0xefbfcbd4)
    at ../../cvs-snap/egcs/gcc/gengenrtl.c:290
(gdb) l
121     
122           if (special_format (defs[i].format))
123             continue;
124     
125           for (f = formats; *f ; ++f)
126             if (!strcmp(*f, defs[i].format))
127               break;
128     
129           if (!*f)
130             *f = defs[i].format;
(gdb) p f
$1 = (char **) 0xc814
(gdb) p *f
$2 = 0x0
(gdb) p defs[i].format
$3 = 0x190c "ue"

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: recent snapshot fail to compile on BSD/OS
  1998-04-13  3:22 recent snapshot fail to compile on BSD/OS Shigeya Suzuki
@ 1998-04-13  3:22 ` Shigeya Suzuki
  1998-04-13  9:38 ` Krister Walfridsson
  1 sibling, 0 replies; 5+ messages in thread
From: Shigeya Suzuki @ 1998-04-13  3:22 UTC (permalink / raw)
  To: egcs

>> I've got coredump on stage1, and stage2. Anything I can help?

Whole bootstrap log available as:

http://www.foretune.co.jp/people/shigeya/egcs/snap-test/ss980406-boot.out

shigeya

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: recent snapshot fail to compile on BSD/OS
  1998-04-13  3:22 recent snapshot fail to compile on BSD/OS Shigeya Suzuki
  1998-04-13  3:22 ` Shigeya Suzuki
@ 1998-04-13  9:38 ` Krister Walfridsson
  1998-04-14  3:48   ` Shigeya Suzuki
  1998-04-14 13:21   ` Jeffrey A Law
  1 sibling, 2 replies; 5+ messages in thread
From: Krister Walfridsson @ 1998-04-13  9:38 UTC (permalink / raw)
  To: Shigeya Suzuki; +Cc: egcs

On Mon, 13 Apr 1998, Shigeya Suzuki wrote:

> stage1/xgcc -Bstage1/  -DIN_GCC    -W -Wall -O2 -g -O2  -DHAVE_CONFIG_H   -o gen
> genrtl \
>  gengenrtl.o ` case "obstack.o" in ?*) echo obstack.o ;; esac ` ` case "" in ?*)
>  echo  ;; esac ` ` case "" in ?*) echo  ;; esac ` 
> ./gengenrtl tmp-genrtl.h tmp-genrtl.c
> gmake[2]: *** [s-genrtl] Segmentation fault (core dumped)
> gmake[2]: Leaving directory `/usr/home/shigeya/work/egcs/snap1/gcc'
> gmake[1]: *** [bootstrap] Error 2
> gmake[1]: Leaving directory `/usr/home/shigeya/work/egcs/snap1/gcc'
> gmake: *** [bootstrap] Error 2

This looks like the ASM_OUTPUT_ALIGN problem that {Net,Free,Open}BSD had.
Does this patch (to egcs/gcc/config/i386/bsd386.h) solve your problem?

   /Krister



Mon Apr 13 18:07:03 1998  Krister Walfridsson <cato@df.lth.se>

        * bsd386.h (ASM_OUTPUT_ALIGN): Redefine.


*** bsd386.h.old        Mon Apr 13 17:55:56 1998
--- bsd386.h    Mon Apr 13 17:58:05 1998
***************
*** 24,26 ****
--- 24,33 ----
  /* Until they use ELF or something that handles dwarf2 unwinds
     and initialization stuff better.  */
  #define DWARF2_UNWIND_INFO 0
+ 
+ /* BSD/OS still uses old binutils that don't insert nops by default
+    when the .align directive demands to insert extra space in the text
+    segment.  */
+ #undef ASM_OUTPUT_ALIGN
+ #define ASM_OUTPUT_ALIGN(FILE,LOG) \
+   if ((LOG)!=0) fprintf ((FILE), "\t.align %d,0x90\n", (LOG))




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: recent snapshot fail to compile on BSD/OS
  1998-04-13  9:38 ` Krister Walfridsson
@ 1998-04-14  3:48   ` Shigeya Suzuki
  1998-04-14 13:21   ` Jeffrey A Law
  1 sibling, 0 replies; 5+ messages in thread
From: Shigeya Suzuki @ 1998-04-14  3:48 UTC (permalink / raw)
  To: cato; +Cc: egcs

>>>>> "cato" == Krister Walfridsson <cato@df.lth.se> writes:

cato> This looks like the ASM_OUTPUT_ALIGN problem that {Net,Free,Open}BSD had.
cato> Does this patch (to egcs/gcc/config/i386/bsd386.h) solve your problem?

It works. I try to build with latest snapshot on CVS but I couldn't
build, but snapshot ss-980406 with this patch built without
problem. I'm running check now. 

Thank you!

shigeya

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: recent snapshot fail to compile on BSD/OS
  1998-04-13  9:38 ` Krister Walfridsson
  1998-04-14  3:48   ` Shigeya Suzuki
@ 1998-04-14 13:21   ` Jeffrey A Law
  1 sibling, 0 replies; 5+ messages in thread
From: Jeffrey A Law @ 1998-04-14 13:21 UTC (permalink / raw)
  To: Krister Walfridsson; +Cc: Shigeya Suzuki, egcs, wilson

  In message < Pine.LNX.3.96.980413180435.19758A-100000@bartlet.df.lth.se >you wr
  > This looks like the ASM_OUTPUT_ALIGN problem that {Net,Free,Open}BSD had.
  > Does this patch (to egcs/gcc/config/i386/bsd386.h) solve your problem?
  > 
  >    /Krister
  > 
  > 
  > 
  > Mon Apr 13 18:07:03 1998  Krister Walfridsson <cato@df.lth.se>
  > 
  >         * bsd386.h (ASM_OUTPUT_ALIGN): Redefine.
Thanks.  I've installed this patch.
jeff

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1998-04-14 13:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-04-13  3:22 recent snapshot fail to compile on BSD/OS Shigeya Suzuki
1998-04-13  3:22 ` Shigeya Suzuki
1998-04-13  9:38 ` Krister Walfridsson
1998-04-14  3:48   ` Shigeya Suzuki
1998-04-14 13:21   ` Jeffrey A Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).