Builtin function __builtin___clear_cache is unavailable on GCC 4.2
|Reported by:||heatsink||Owned by:|
|Operating System:||MacOS X||Architecture:||x86_64 (amd64)|
|Type of failure:||GHC doesn't work at all||Difficulty:||Unknown|
|Test Case:||Blocked By:|
A recent update to the RTS uses the GCC builtin function __builtin___clear_cache. This function was introduced in GCC 4.3. In older GCCs that don't have this builtin function, it's treated as an undefined function, leading to a link-time error. My system has GCC 4.2.1, bundled with XCode 3.2.6.
The function is called from rts/sm/Storage.c.
It seems that x86 architectures don't need a cache flush, so a possible fix is to do nothing on GCC < 4.3.6 on x86 architectures.
Change History (9)
comment:5 Changed 5 months ago by thoughtpolice
- Resolution set to fixed
- Status changed from new to closed
comment:6 Changed 5 months ago by heatsink
- Owner simonmar deleted
- Resolution fixed deleted
- Status changed from closed to new