Re: compiling gpc on Mac OS 10.10.5 Yosemite

Schneider <[email protected]> Tue, 17 Nov 2015 17:23:20 -0500
Newsgroups gmane.comp.compilers.gpc
Message-ID <[email protected]>
Peter:

> And/Or  set one of the following to -gdwarf-2
> 
> LIBGCC2_DEBUG_CFLAGS
> TARGET_LIBGCC2_CFLAGS

I did:

setenv LIBGCC2_DEBUG_CFLAGS -gdwarf-2
setenv TARGET_LIBGCC2_CFLAGS -gdwarf-2

/var/folders/vg/ts3vj22j2y3d5n3cmmhw6gt9dzb4gf/T//ccnnRCza.s:524:9: error: unsupported directive '.stabs'
        .stabs "",100,0,0,Letext
               ^
make[3]: *** [libgcc/./_muldi3.o] Error 1
make[2]: *** [libgcc.a] Error 2
make[1]: *** [stage1_build] Error 2
make: *** [bootstrap] Error 2

> Maybe use --without-stabs instead of --with-dwarf2  ?

                setenv GPC_CONFIG_EXTRAS "--with-arch=pentium-m --with-tune=prescott --without-stabs"

/var/folders/vg/ts3vj22j2y3d5n3cmmhw6gt9dzb4gf/T//cc5bKMiz.s:524:9: error: unsupported directive '.stabs'
        .stabs "",100,0,0,Letext
               ^
make[3]: *** [libgcc/./_muldi3.o] Error 1
make[2]: *** [libgcc.a] Error 2
make[1]: *** [stage1_build] Error 2
make: *** [bootstrap] Error 2

> I recommend following Jonas' suggestion to try Xcode 6.4, at least
> temporarily, to see if the debug format is the only issue, or whether
> there are a raft of other problems waiting to reveal themselves.

Ok, I found:
http://developer.apple.com/devcenter/download.action?path=/Developer_Tools/Xcode_6.4/Xcode_6.4.dmg

This went into /Applications and so I set this inside the build script:

setenv GPC_SDK /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
setenv GPC_ALWAYS_USE_SDK       1

It crashed:

The directory that should contain system headers does not exist:
  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs//usr/include
make[2]: *** [stmp-fixinc] Error 1
make[1]: *** [stage1_build] Error 2
make: *** [bootstrap] Error 2

This is a total mess.

Tom

  Thomas D. Schneider, Ph.D.
  Senior Investigator
  National Institutes of Health
  National Cancer Institute
  Center for Cancer Research
  Gene Regulation and Chromosome Biology Laboratory
  Molecular Information Theory Group
  Frederick, Maryland  21702-1201
  [email protected]
  https://schneider.ncifcrf.gov (current link)
  https://alum.mit.edu/www/toms (permanent link)

_______________________________________________
Gpc mailing list
[email protected]
https://www.g-n-u.de/mailman/listinfo/gpc