Changes between Initial Version and Version 2 of Ticket #1195


Ignore:
Timestamp:
Mar 12, 2007 10:57:49 AM (7 years ago)
Author:
igloo
Comment:

I suspect the problem is with mk/target.mk, around line 1172, which looks roughly like this:

all:
    @case '${MFLAGS}' in *-[ik]*) x_on_err=0;; *-r*[ik]*) x_on_err=0;; *) x_on_err=1;; esac; \
    for i in $(SUBDIRS); do \
        $(MAKE) -C $$i all; \
        if [ $$? -eq 0 -o $$x_on_err -eq 0 ]; then true; else exit 1; fi; \
    done

I've pushed a patch to the 6.6 branch and HEAD which will should give some more information about what's going on:

hunk ./mk/target.mk 1179
+       if [ $$x_on_err -eq 0 ]; \
+           then echo "Won't exit on error due to MFLAGS: ${MFLAGS}"; \
+       fi; \
hunk ./mk/target.mk 1188
-         if [ $$? -eq 0 -o $$x_on_err -eq 0 ] ;  then true; else exit 1; fi; \
+         if [ $$? -eq 0 -o $$x_on_err -eq 0 ]; \
+             then echo "Finished making $@ in $$i": $$?; \
+             else echo "Failed making $@ in $$i": $$?; exit 1; \
+         fi; \

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1195

    • Property Milestone changed from to 6.6.2
  • Ticket #1195 – Description

    initial v2  
    11make on MacOSX does not seem to stop when built errors occur.  The first error message is: 
    22 
     3{{{ 
    34/tmp/ghc23705_0/ghc23705_0.split__38.s:unknown:missing indirect symbols for section (__TEXT,__symbol_stub) 
     5}}} 
    46 
    57which happens after build step: 
    68 
     9{{{ 
    710== make all -r -f Makefile; 
    811 in /Users/nominolo/Devel/Haskell/ghc/libraries/base 
     
    1013../../compiler/ghc-inplace -H16m -O -fglasgow-exts -cpp -Iinclude -"#include" HsBase.h -funbox-strict-fields -package-name  base-2.0 -O -Rghc-timing -fgenerics  -fgenerics -split-objs    -c GHC/Float.lhs -o GHC/Float.o  -ohi GHC/Float.hi 
    1114------------------------------------------------------------------------ 
     15}}} 
    1216 
    1317All following files consequently fail to build with the error message: 
     18{{{ 
    1419 <File>.hs:1:0: 
    1520    Failed to load interface for `Prelude': 
    1621      Use -v to see a list of the files searched for. 
    17  
     22}}} 
    1823 
    1924I was building with: 
     25{{{ 
    2026$ uname -a 
    2127Darwin <hostname> 8.8.1 Darwin Kernel Version 8.8.1: Mon Sep 25 19:42:00 PDT 2006; root:xnu-792.13.8.obj~1/RELEASE_I386 i386 i386 
     28}}} 
    2229 
     30{{{ 
    2331$ gcc -v 
    2432Using built-in specs. 
     
    3038$ ghc --version 
    3139The Glorious Glasgow Haskell Compilation System, version 6.6 
     40}}}