[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-apl] Error compiling on Mac OS X 10.13.6
From: |
Dr . Jürgen Sauermann |
Subject: |
Re: [Bug-apl] Error compiling on Mac OS X 10.13.6 |
Date: |
Thu, 25 Apr 2019 18:39:28 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 |
Hi Louis,
I fixed the chdir() warning (*SVN 1142*). This empty if statement was
only included to silence another gcc warning.
I also removed the *-W-old-style-cast* warning which seems to be no
longer required (all cast should be converted
to C++ casts by now).
Thanks,
/// Jürgen
On 4/25/19 6:02 PM, Louis Chrétien wrote:
> I don’t know what the “-Wno-old-style-cast” does, but it did the
> trick! SVN 1140 now compiles without errors.
>
> One other thing: Clang complains about file UserPreferences.cc
> <http://UserPreferences.cc>, line 235: it has an empty body. To
> silence the warning, you have to move the semicolon to the next line…
>
> g++ -DHAVE_CONFIG_H -I. -I.. -Wall -I sql -Wold-style-cast -Werror
> -march=native -I/opt/local/include -Wno-deprecated-declarations
> -Wno-old-style-cast -MT apl-UserPreferences.o -MD -MP -MF
> .deps/apl-UserPreferences.Tpo -c -o apl-UserPreferences.o `test -f
> 'UserPreferences.cc <http://UserPreferences.cc>' || echo
> './'`UserPreferences.cc <http://UserPreferences.cc>
> UserPreferences.cc:235 <http://userpreferences.cc:235>:33: error: if
> statement has empty body [-Werror,-Wempty-body]
> if (chdir("/")) ;
> ^
> UserPreferences.cc:235 <http://userpreferences.cc:235>:33: note: put
> the semicolon on a separate line to silence this warning
> 1 error generated.
> make[3]: *** [apl-UserPreferences.o] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
>
>
>> On Apr 25, 2019, at 11:28, Xiao-Yong Jin <address@hidden
>> <mailto:address@hidden>> wrote:
>>
>> This is what I use for configure
>> CXXFLAGS="-march=native -I/opt/local/include
>> -Wno-deprecated-declarations -Wno-old-style-cast"
>>
>>
>>> On Apr 25, 2019, at 8:45 AM, Dr. Jürgen Sauermann
>>> <address@hidden <http://jrgen-sauermann-zvb.de>> wrote:
>>>
>>> Hi Louis,
>>>
>>> I vaguely remember that we had that problem on MacOS earlier, but I
>>> don't remember
>>> anymore what the solution was. Any proposals?
>>>
>>> /// Jürgen
>>>
>>>
>>>
>>> On 4/25/19 2:51 PM, Louis Chrétien wrote:
>>>> I’ve just tried to compile SVN 1140 on Mac OS X 10.13.6, with XCode
>>>> 10.1.
>>>>
>>>> The last version i managed to compile was 1061 (i know, i was a bit
>>>> negligent… ;) )
>>>>
>>>> I get the following error:
>>>>
>>>> g++ -DHAVE_CONFIG_H -I. -I.. -Wall -I sql -Wold-style-cast
>>>> -Werror -g -O2 -MT apl-Id.o -MD -MP -MF .deps/apl-Id.Tpo -c -o
>>>> apl-Id.o `test -f 'Id.cc <http://Id.cc>' || echo './'`Id.cc
>>>> <http://Id.cc>
>>>> In file included from Id.cc:42 <http://id.cc:42>:
>>>> ./Quad_PLOT.hh:43:6: error: 'sem_init' is deprecated
>>>> [-Werror,-Wdeprecated-declarations]
>>>> { sem_init(&plot_threads_sema, 0, 1); }
>>>> ^
>>>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/semaphore.h:55:42:
>>>> note:
>>>> 'sem_init' has been explicitly marked deprecated here
>>>> int sem_init(sem_t *, int, unsigned int) __deprecated;
>>>> ^
>>>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:176:37:
>>>> note:
>>>> expanded from macro '__deprecated'
>>>> #define __deprecated __attribute__((deprecated))
>>>> ^
>>>> 1 error generated.
>>>> make[3]: *** [apl-Id.o] Error 1
>>>> make[2]: *** [all-recursive] Error 1
>>>> make[1]: *** [all-recursive] Error 1
>>>> make: *** [all] Error 2
>>>>
>>>>
>>>> ---
>>>> Louis Chrétien
>>>> address@hidden <mailto:address@hidden>
>>>>
>>>>
>>>>
>>>>
>>>
>>
>
>
> ---
> Louis Chrétien
> address@hidden <mailto:address@hidden>
>
>
>
>
- [Bug-apl] Patch for building svn r1138 on macOS, Xiao-Yong Jin, 2019/04/24
- Re: [Bug-apl] Patch for building svn r1138 on macOS, Dr . Jürgen Sauermann, 2019/04/25
- Re: [Bug-apl] *** Spam *** Error compiling on Mac OS X 10.13.6, Jay Foad, 2019/04/29
- Re: [Bug-apl] *** Spam *** Error compiling on Mac OS X 10.13.6, Dr . Jürgen Sauermann, 2019/04/29
- Re: [Bug-apl] Error compiling on Mac OS X 10.13.6, Dr . Jürgen Sauermann, 2019/04/29
- Re: [Bug-apl] Error compiling on Mac OS X 10.13.6, Christian Robert, 2019/04/29
- Re: [Bug-apl] Error compiling on Mac OS X 10.13.6, Dr . Jürgen Sauermann, 2019/04/30