with the GNAT_LARGS argument for the Makefile and -gnatwa I can build until the 
linker starts its work:


gnatlink ghdl_mcode.ali -g memsegs_c.o chkstk.o -Wl,-no_compact_unwind i386.o 
linux.o times.o grt-cbinding.o grt-cvpi.o
ld: warning: can't find atom for N_GSYM stabs 
ada_main__gnat_version:G(0,12)=k(0,13)=B(0,14)=ar(0,9);1;67;(0,4) in 
b~ghdl_mcode.o
ld: warning: can't find atom for N_GSYM stabs 
ada_main__ada_main_program_name:G(0,15)=k(0,16)=B(0,17)=ar(0,9);1;16;(0,4) in 
b~ghdl_mcode.o
ld: warning: can't find atom for N_GSYM stabs 
ada_main__u00001:G(0,18)=k(0,19)=B(0,20)=r(0,20);0;037777777777; in 
b~ghdl_mcode.o
ld: warning: can't find atom for N_GSYM stabs ada_main__u00002:G(0,18) in 
b~ghdl_mcode.o
ld: warning: can't find atom for N_GSYM stabs ada_main__u00003:G(0,18) in 
b~ghdl_mcode.o
ld: warning: can't find atom for N_GSYM stabs ada_main__u00004:G(0,18) in 
b~ghdl_mcode.o
…
...
…
ld: warning: can't find atom for N_GSYM stabs ada_main__u00439:G(0,18) in 
b~ghdl_mcode.o
ld: warning: can't find atom for N_GSYM stabs 
ada__exceptions__exception_propagation__others_valueXn:G(0,141)=k(0,142)=B(0,34)
 in 
/usr/local/ada-4.3/lib/gcc/i686-apple-darwin8/4.3.0/adalib/libgnat.a(a-except.o)
ld: warning: can't find atom for N_GSYM stabs 
ada__exceptions__exception_propagation__all_others_valueXn:G(0,141) in 
/usr/local/ada-4.3/lib/gcc/i686-apple-darwin8/4.3.0/adalib/libgnat.a(a-except.o)
ld: warning: can't find atom for N_GSYM stabs 
ada__exceptions__exception_traces__global_actionXn:G(0,145)=B(0,146)=*(0,147)=f(0,31)
 in 
/usr/local/ada-4.3/lib/gcc/i686-apple-darwin8/4.3.0/adalib/libgnat.a(a-except.o)
ld: warning: can't find atom for N_GSYM stabs 
ada__exceptions__exception_traces__raise_hook_initializedXn:G(0,148)=B(0,24) in 
/usr/local/ada-4.3/lib/gcc/i686-apple-darwin8/4.3.0/adalib/libgnat.a(a-except.o)
ld: warning: can't find atom for N_GSYM stabs 
system__standard_library__constraint_error_def:G(0,16)=B(0,17)=xssystem__standard_library__exception_data:
 in 
/usr/local/ada-4.3/lib/gcc/i686-apple-darwin8/4.3.0/adalib/libgnat.a(s-stalib.o)
ld: warning: can't find atom for N_GSYM stabs 
system__standard_library__numeric_error_def:G(0,16) in 
/usr/local/ada-4.3/lib/gcc/i686-apple-darwin8/4.3.0/adalib/libgnat.a(s-stalib.o)
ld: warning: can't find atom for N_GSYM stabs 
system__standard_library__program_error_def:G(0,16) in 
/usr/local/ada-4.3/lib/gcc/i686-apple-darwin8/4.3.0/adalib/libgnat.a(s-stalib.o)
ld: warning: can't find atom for N_GSYM stabs 
system__standard_library__storage_error_def:G(0,16) in 
/usr/local/ada-4.3/lib/gcc/i686-apple-darwin8/4.3.0/adalib/libgnat.a(s-stalib.o)
ld: warning: can't find atom for N_GSYM stabs 
system__standard_library__tasking_error_def:G(0,16) in 
/usr/local/ada-4.3/lib/gcc/i686-apple-darwin8/4.3.0/adalib/libgnat.a(s-stalib.o)
ld: warning: can't find atom for N_GSYM stabs 
system__standard_library__abort_signal_def:G(0,16) in 
/usr/local/ada-4.3/lib/gcc/i686-apple-darwin8/4.3.0/adalib/libgnat.a(s-stalib.o)


Don’t know if this is an error, which prevents ghdl from working… ghdl don’t 
exist, so I create a symbolic link.
Then I can do make install.mcode. After this step, I add the ghdl binary into 
the $PATH and try to run the test suite:


**** GNA ****
*************
GNA dir bug15368:
analyze 15368.vhd
elaborate and simulate bug
15368.vhd:16:6:@0ms:(report note): o event
15368.vhd:16:6:@5ns:(report note): o event
15368.vhd:16:6:@10ns:(report note): o event
Remove work library
Test successful
GNA dir bug18351:
analyze 18351.vhd
elaborate and simulate problem
../../testenv.sh: line 79:  4004 Segmentation fault: 11  $GHDL --elab-run 
$GHDL_FLAGS $GHDL_ELABFLAGS $@
 

Something seems to be wrong with my OSX, I don’t understand why it’s different 
to Davids results :(

I build with the GNAT tools, not with Xcode:
which gcc
/usr/local/ada-4.3/bin/gcc



Greetings,
Torsten



Am 26.12.2013 um 21:45 schrieb David Koontz <[email protected]>:

> https://sourceforge.net/p/ghdl-updates/wiki/build%20mcode%20ghdl/
> 
> I added a caution about line lengths for default_pathes.ads in the second 
> paragraph, and in the make command to build ghdl_mcode for OS X, added the 
> linker switch:
> 
> # Mac OS X
> # /usr/bin/make target=i686-darwin GNAT_LARGS=-Wl,-no_compact_unwind
> 
> (the default state for the script is to build on Linux)
> 
> I'm not sure why Torsten Meißner had all the difficulty.  He said he uses 
> Homebrew which builds things in /usr/local.  
> 
>> ../../ortho/mcode/ortho_code-decls.ads:25:21: (style) bad column
>> ../../ortho/mcode/ortho_code-decls.ads:28:21: (style) bad column
>> ../../ortho/mcode/ortho_code-decls.ads:31:21: (style) bad column
>> gnatmake: "/Users/torsten/ghdl/ortho/mcode/ortho_code-decls.adb" 
> 
> These sound like leading tab and space issues with comments (these are all 
> comments, gnat is saying it doesn't like them indented extraordinarily).  I 
> don't get them which says the particular style flag is turned off for me.  I 
> never change gnat flags if I can help it, and I haven't.
> 
> There has to be something different about your gnat installation compared to 
> mine.  Check you're environment for gnat things.  The other thing that comes 
> to mind is changes to the Makefile which I also avoid.  (hence the make 
> argument for GNAT_LARGS above).
> 
> In any event Tristan's suggestion of -gnatwa instead of -gnatwae should 
> prevent gnat from being anal retentive.
> 
> I looked inside the disk image for the ada and didn't see anything.  You 
> aren't trying to build this under Xcode, are you?
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Ghdl-discuss mailing list
> [email protected]
> https://mail.gna.org/listinfo/ghdl-discuss


_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to