[Haskell-cafe] Error trying to build haskell-dbus on FreeBSD
Ben Franksen
ben.franksen at online.de
Sat Feb 1 15:18:52 UTC 2020
Am 01.02.20 um 11:36 schrieb Merijn Verstraaten:
>
>> On 1 Feb 2020, at 10:01, Viktor Dukhovni <ietf-dane at dukhovni.org>
>> wrote:
>>
>> The package developer. Neither GHC nor Clang are at-fault for
>> invalid CPP macro syntax.
>
> This isn't the package developers fault. Standard Haskell just cannot
> be properly preprocessed by an ISO C preprocessor. As the definition
> of valid tokens just aren't compatible.
>
> GHC's use of the CPP has long (maybe since forever?) been
> incompatible with CPP as standardised in the ISO C spec, and its
> relies on the -traditional flag to make GCC use it's pre-ISO C
> implementations. This flag isn't necessarily portable across C
> compilers and I recall this breaking things in the past.
This situation strikes me as being precarious. It means we rely on the
gcc developers to retain the -traditional flag (with its current
semantics). My personal experience makes me think that such reliance is
ill-advised: breaking compatibility with anything other than C or C++
source code is not regarded as a problem and bug reports to that effect
are rejected as invalid.
Cheers
Ben
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pEpkey.asc
Type: application/pgp-keys
Size: 4211 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20200201/6ca7f29a/attachment.key>
More information about the Haskell-Cafe
mailing list