[aspectc-user] Re: Segfault compiling code from SVN on Mac OS X
os at aspectc.org
Wed Dec 3 17:40:00 CET 2008
I haven't looked into MacOS for some. There might be something broken.
The recommended procedure is:
1. Weave Puma on your Ubuntu machine:
make EXTENSIONS="gnuext acppext" weave
->This only creates the woven sources.
2. Copy the whole Puma source tree to MacOS
make EXTENSIONS="gnuext acppext" TARGET=macosx-release compile
-> This only compiles and does not weave again.
Let's see how it works ...
Stefan Marr wrote:
> I am still struggling with this problem.
> The next thing I've tried was weaving the code on a Ubuntu 8.10 where
> a '1.0pre4 svn' package is available.
> But unfortunately, now I get a segfault on linking while using the
> prewoven code on MacOSX:
> Copying sources not to weave...
> Generating library header files...
> /bin/sh: line 1: 96230 Segmentation fault ac++ -a
> -DNDEBUG -I
> /Users/smarr/Projects/PhD/AspectC++/Puma/gen-release/step1/inc -I
> /Users/smarr/Projects/PhD/AspectC++/Puma/gen-release/step1/aspects -I
> /Users/smarr/Projects/PhD/AspectC++/Puma/gen-release/step1/src -r
> /Users/smarr/Projects/PhD/AspectC++/Puma/gen-release/puma.acp --config
> --gen_size_type __SIZE_TYPE__ -i -p.
> make: ***
> Error 139
> make: *** [step2] Error 2
> make: *** [src] Error 2
> Any ideas how to proceed next?
> Thanks and regards
> On 02 Dec 2008, at 17:04, Stefan Marr wrote:
>> I tried to compile the latest code from the SVN on Mac OS X, since
>> the current binaries available are already quite old :-/
>> In the first step I installed the 1.0pre3 which is available on the
>> web site.
>> Then I tried compiling the code from SVN, starting with
>> -/Puma$ make TARGET=macosx-release
>> Here I got an error referring to something like __attribute. So my
>> guess was, my GCC might be to old. (Mac OS X standard GCC is 4.01)
>> So I installed gcc/g++ 4.3.2.
>> Now I get a segfault while compiling:
>> Copying sources not to weave...
>> Calling ac++ on PreFileIncluder.cc...
>> Calling ac++ on PreprocessorParser.cc...
>> Calling ac++ on UnitManager.cc...
>> Calling ac++ on CScanner.cc...
>> Calling ac++ on CCBuilder.cc...
>> make: ***
>> Segmentation fault
>> make: *** [step2] Error 2
>> make: *** [src] Error 2
>> I would guess, that there is some bug in the public binary?
>> ag++ 0.6 built: Mar 16 2006
>> ac++ 1.0pre3 (Mar 16 2006)
>> Would it be possible to either publish a new pre-release or some new
>> prewoven code?
>> Or give me a hint what I could try else, please :)
>> Thanks and regards
> aspectc-user mailing list
> aspectc-user at aspectc.org
More information about the aspectc-user