[Aldor-l] Compiling setup

Gabriel Dos Reis gdr at integrable-solutions.net
Thu Aug 10 20:56:00 EDT 2006


PCR <pcr at pcrt.com> writes:

| I was trying a first problem in Aldor, and got this result.  Mayhap I 
| set things up wrong?  Thanks for any help.
| 
| pcr1 at Delta:~/aldor$ aldor -fx -laldor sieve.as
| cc1: error: unrecognized command line option "-fwritable-strings"

I suspect you must be using a recent version of GCC -- the Aldor
configuration file that ships with the RPM is for a very old GCC.  
What you have to do is that you need to modify the variable gcc-hacks
from section [gcc] of /usr/local/aldor/linux/1.0.3/aldor.conf
not to include -fwritable-strings.  There is an obscure comment about
why that flags is needed.  

Mine now reads:

  # On some platforms string literals are stored in read-only segments.
  # This causes problems when users write Aldor programs in which a
  # string literal is used as a buffer. The result is a segfault that
  # is extremely hard to track down, even for experienced Aldor coders.
  # GDR: Well, either that is a bug in Aldor, or a bug in those experienced
  # GDR: aldor coders' programs.  At any rate, that option is no
  # longer supported.
  #  gcc-hacks = -fwritable-strings
     gcc-hacks = 

-- Gaby



More information about the Aldor-l mailing list