DiscDev source archive doesn't compile
Colin (478) 2433 posts |
Anyone else managed to compile the DiscDev source archive. A download today fails for me as the mbedtls library doesn’t compile.
|
David Pitt (3386) 1248 posts |
It’s good here, built on a Titanium, but it is a later DDE, DDE28d, C vsn 5.78, though that may not have anything to do with it. c.blowfish: 1042 warnings, 0 errors, 0 serious errors cc -Wp -c -depend !Depend -DMBEDTLS_CONFIG_FILE="\"h.ro_config\"" -DRISCOS -ITCPIPLibs: -ff -fah -o o.bignum c.bignum Norcroft RISC OS ARM C vsn 5.78 [05 Feb 2019] cc -Wp -c -depend !Depend -DMBEDTLS_CONFIG_FILE="\"h.ro_config\"" -DRISCOS -ITCPIPLibs: -ff -fah -o o.base64 c.base64 This appears to be the source that is tripping it up. /* Nothing to do on bigendian systems. */ #if ( __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ ) return( x ); #endif /* __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ */ #if ( __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ ) /* For GCC and Clang, have builtins for byte swapping. */ #if defined(__GNUC__) && defined(__GNUC_PREREQ) #if __GNUC_PREREQ(4,3) #define have_bswap #endif #endif #if defined(__clang__) && defined(__has_builtin) #if __has_builtin(__builtin_bswap32) && \ __has_builtin(__builtin_bswap64) #define have_bswap #endif #endif |
Colin (478) 2433 posts |
Ah good. It looks like a compiler bug. I hadn’t realised that my compiler version was so old. Does the d in DDE28d signify a test version? The ROOL shop doesn’t indicate what the current version is. |
Jeffrey Lee (213) 6048 posts |
‘d’ is the patch version – there have been a few free patches/updates released for DDE28 since the initial release. So if you were to buy/upgrade now, it should be DDE28d you receive. |
David Pitt (3386) 1248 posts |
I have tried the build with DDE27, cc vsn 5.72 [07 Apr 2016], it does fall over as originally described. |
Colin (478) 2433 posts |
I can confirm that a new version of the compiler does work correctly. I’m having problems with !builder though. The first time I run it after boot it gives the error ‘amu not found’ after acknowledging the error it starts up. If I quit !builder and restart it works ok. Removing the build variables with Do you see that problem? |
David Pitt (3386) 1248 posts |
A simple work around is to increase the next slot, 1024k suffices here. This comes from a comment I saw somehere in git. HTH. |
Colin (478) 2433 posts |
I normally run with a 4096k next slot so never got the memory error. I get the gawk error if AcornC/C++ setpaths has been seen so presumably in that case builder sees amu and fails at the next tool it can’t find. |
David Pitt (3386) 1248 posts |
Hmm. A build today completed without any other error with a 1024k next slot. I am not seeing ‘amu not found’. Hmm. |
Colin (478) 2433 posts |
I needed to modify
so that the fixed amu test can access the tools Did you you use git by any chance – I didn’t – the file may be different. |
Colin (478) 2433 posts |
Forget that it made no difference and looking more at the file I can’t see why it would. |
David Pitt (3386) 1248 posts |
This might be worth a look. The amu check is removed. It is only two files that can be downloaded individually. I did not use them for these DiscDev test builds as tweaking the next slot works. P.S. I have now done a further build using those two files, |
Colin (478) 2433 posts |
I was nearly right.
|