Yeah, I have no idea what the compiler is objecting to. There's nothing
wrong with that bit of code.

Rick

On Mon, Feb 18, 2019 at 5:18 PM Enrico Sorichetti via Oorexx-devel <
oorexx-devel@lists.sourceforge.net> wrote:

> Unfortunately it seems there are some issues with the centos 7 gcc
> compilers
>  they are a bit outdated g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-36)
>
> And  the build chokes with
>
> In file included from
> /home/vagrant/ooRexx.svn.src/interpreter/platform/unix/SysRexxUtil.cpp:181:0:
> /home/vagrant/ooRexx.svn.src/interpreter/runtime/RexxUtilCommon.hpp: In
> constructor 'TreeFinder::AttributeMask::AttributeMask()':
> /home/vagrant/ooRexx.svn.src/interpreter/runtime/RexxUtilCommon.hpp:278:11:
> error: array used as initializer
>            {
>
> Installed clang and everything seems to work even if clang is not the
> latest one
>
> clang version 3.4.2 (tags/RELEASE_34/dot2-final)
>
> The cmake command
>
> cmake -G Ninja -DCMAKE_C_COMPILER=`which clang`
> -DCMAKE_CXX_COMPILER=`which clang++`
> -DCMAKE_INSTALL_PREFIX=/home/vagrant/ooRexx
> -DCMAKE_BUILD_TYPE=Release /home/vagrant/ooRexx.svn.src
>
>
>
> To be sure I run the build 2 x 2 and the second run confirmed the first one
>
> Clang works gcc does not
> Ninja
> E
>
> On 18 Feb 2019, at 22:15, Rick McGuire <object.r...@gmail.com> wrote:
>
>
> There are spurious leading "_" characters on the #ifdef test. I'll fix
> this with the other issues you raised shortly.
>
> Rick
>
> On Mon, Feb 18, 2019 at 3:53 PM Erich Steinböck <
> erich.steinbo...@gmail.com> wrote:
>
>> Our Mac build slave finds _PC_CASE_SENSITIVE
>>
>> ~~~
>> -- Looking for _PC_CASE_SENSITIVE
>> -- Looking for _PC_CASE_SENSITIVE - found
>> ~~~
>>
>> but still correctly builds SysFileSystem which seems impossible due to a
>> typo `if (res \= -1)` that should prevent compilation. (The bug repeats
>> a few lines further down).
>>
>> The built Rexx executable incorrectly returns true for
>> .File~isCaseSensitive (the file system is not case sensitive).
>>
>> SysFileSystem:
>>
>> ~~~
>> bool SysFileSystem::isCaseSensitive()
>> {
>> #ifndef _HAVE_PC_CASE_SENSITIVE
>>     return true;
>> #else
>>     long res = pathconf("/", _PC_CASE_SENSITIVE);
>>     if (res \= -1)
>>     {
>>         return res == 1;
>>     }
>> ~~~
>> _______________________________________________
>> Oorexx-devel mailing list
>> Oorexx-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>>
> _______________________________________________
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
>
> _______________________________________________
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to