[M3devel] missing M3_FRONT_FLAGS from libm3: m3overrides

Jay jay.krell at cornell.edu
Sat May 16 00:27:08 CEST 2009


specifically:
 
 
C:\dev2\cm3.2\m3-sys\cminstall\src\config-no-install\cm3cfg.common



if equal(M3_BACKEND_MODE, "0") or equal(M3_BACKEND_MODE, "1")
        or equal(M3_BACKEND_MODE, "IntegratedObject") or equal(M3_BACKEND_MODE, "IntegratedAssembly")
    M3_FRONT_FLAGS = ["-unfold_nested_procs", "-check_procs"]
% --- internal configuration options passed directly to the Modula-3 front-end
else
    M3_FRONT_FLAGS = [ ]
end

 
 - Jay

----------------------------------------
> From: jay.krell at cornell.edu
> To: eiserlohpp at yahoo.com; m3devel at elegosoft.com
> Subject: RE: [M3devel] missing M3_FRONT_FLAGS from libm3: m3overrides
> Date: Fri, 15 May 2009 22:25:25 +0000
>
>
> I "fixed" this I guess, but as it was working for me, maybe your config files are not right?
> It is "quake" by the way, which I assume means "quick make" but I don't know.
> obliq is something else, like for scripting network objects?
>
> The file now reads:
>
> override("m3core", ROOT & "/m3-libs")
> if defined("M3_FRONT_FLAGS")
> M3_FRONT_FLAGS += "-vsdebug"
> else
> M3_FRONT_FLAGS = ["-vsdebug"]
> end
> _M3BUNDLE_OVERRIDE = "T"
>
>
> - Jay
>
> ----------------------------------------
>> Date: Fri, 15 May 2009 14:00:58 -0700
>> From: eiserlohpp at yahoo.com
>> To: m3devel at elegosoft.com
>> Subject: [M3devel] missing M3_FRONT_FLAGS from libm3: m3overrides
>>
>>
>> Hi Guys,
>>
>> I downloaded a new archive: cm3-src-all-d5.8.0-2009-05-15-06-57-11.tgz,
>> as I wanted to look at Olaf's changes.
>>
>> I attempted to "./scripts/do-cm3-std.sh build", and while
>> it did build m3core, it failed to build libm3.
>>
>> Its 'm3overrides' file attempts to append ( using += ) to a
>> variable (M3_FRONT_FLAGS), but since the variable doesn't
>> exist it fails. Should an obliq script fail like that, if
>> you attempt to append to a non-existing variable, or should
>> it silently create that variable?
>>
>> Log follows:
>>
>> *** excerpt from Build.log ***
>> new exporters -> recompiling Date.i3
>> new exporters -> recompiling Text.i3
>> -> archiving libm3core.a
>> ==> m3-libs/m3core done
>>
>> === package m3-libs/libm3 ===
>> +++ /usr/local/cm3/bin/cm3 -build -override -DROOT='/data/peter3/src/modula-3/cm3/src-all-20090515' -DCM3_VERSION_TEXT='d5.8.0' -DCM3_VERSION_NUMBER='050800' -DCM3_LAST_CHANGED='2009-05-06' +++
>> --- building in AMD64_LINUX ---
>>
>> "/data/peter3/src/modula-3/cm3/src-all-20090515/m3-libs/libm3/AMD64_LINUX/../src/m3overrides", line 7: quake runtime error: undefined variable: M3_FRONT_FLAGS
>>
>> --procedure-- -line- -file---
>> 7 /data/peter3/src/modula-3/cm3/src-all-20090515/m3-libs/libm3/AMD64_LINUX/../src/m3overrides
>>
>> Fatal Error: package build failed
>> ==> m3-libs/libm3 done
>> *** END excerpt Build.log ***
>>
>>
>> *** m3overrides ***
>>
>>
>> %%XXDIR = { "WIN32" : "N:\\m3-libs", "POSIX" : "/proj/cmass/src.2/m3-libs" }
>> %%WORKDIR = XXDIR {OS_TYPE}
>>
>> % override ("m3core", WORKDIR)
>> override("m3core", ROOT & "/m3-libs")
>> M3_FRONT_FLAGS += "-vsdebug"
>> _M3BUNDLE_OVERRIDE = "T"
>> ** END m3overrides ***
>>
>>
>>
>>
>> +--------------------------------------------------------+
>> | Peter P. Eiserloh |
>> +--------------------------------------------------------+
>>
>>
>>


More information about the M3devel mailing list