Skip to content

FreeBSD port#1

Closed
ghost wants to merge 5 commits intomasterfrom
FreeBSD_port
Closed

FreeBSD port#1
ghost wants to merge 5 commits intomasterfrom
FreeBSD_port

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Jan 5, 2019

No description provided.

mastersin and others added 5 commits January 5, 2019 12:38
for using changed cmake build directory
There is no `sigval_t` in FreeBSD so I introduced a simple (standard)
workaround so the code will be able to be built on FreeBSD.
The problem is that when you set:
```
set(KUMIR2_CXXFLAGS "-fno-exceptions -std=c++0x -fPIC")
```
and later try to add flags with:
```
list(APPEND KUMIR2_CXXFLAGS "-stdlib=libstdc++")
```
it will be expnded into
```
-fno-exceptions -std=c++0x -fPIC;-stdlib=libstdc++
```
and this line will effectively prevent the command from compiling
files because the semicolon will designate the end of the command and
the rest of the arguments (file name to compile, for example) will
be treated like a new command.

Tested with CMake 3.12.2 on FreeBSD 11.2
Clang is unable to find type_traits in FreeBSD 11.2 so this is
an explicit inclusion of `/usr/include/c++/v1` in order to enable
Kumir2 builds on FreeBSD.
@ghost ghost added the enhancement New feature or request label Jan 5, 2019
@ghost ghost self-assigned this Jan 5, 2019
@ghost ghost requested a review from mastersin January 5, 2019 18:36
@mastersin
Copy link
Copy Markdown
Member

А какая версия CMake используется во FreeBSD. И какая версия FreeBSD, кстати?

@ghost
Copy link
Copy Markdown
Author

ghost commented Jan 6, 2019

А какая версия CMake используется во FreeBSD. И какая версия FreeBSD, кстати?

Там в коммитах написано - FreeBSD 11.2 (самая свежая из стабильных) и CMake 3.12.2 (из стандартных пакетов).

@ghost
Copy link
Copy Markdown
Author

ghost commented Jan 6, 2019

Компилятор - Clang 6.0.0 (идущий в стандартной поставке с системой), хотя желающие могут обновиться до 8.2 (или какой там сейчас свежак).

@ghost ghost requested review from shubin and vanaf January 6, 2019 12:00
@mastersin
Copy link
Copy Markdown
Member

Сделал rebase поверх текущего master в апстриме, перезалил master, отправил merge request:
a-a-maly#5
(https://git.niisi.ru/kumir/kumir2)

@mastersin mastersin closed this Aug 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant