Build using GNU extensions #52

Закрыто
открыта 2019-06-11 12:06:51 +02:00 devnexen · комментариев: 6
devnexen прокомментировал(а) 2019-06-11 12:06:51 +02:00
Участник

-fsplit-stack flag is GNU extension thus might not working with all combinations of compilers/oses (FreeBSD/gcc for instance).

Also with Linux and FreeBSD clang

clang -fPIC -Iinclude -I. -W -Wunused -Wall -DPH7_LIBRARY_SUFFIX=\".so\" -O0 -g3 -fsplit-stack -c engine/lib/libfmt.c -o build/engine/lib/libfmt.o fatal error: error in backend: Segmented stacks do not support vararg functions. clang: error: clang frontend command failed with exit code 70 (use -v to see invocation)

-fsplit-stack flag is GNU extension thus might not working with all combinations of compilers/oses (FreeBSD/gcc for instance). Also with Linux and FreeBSD clang ` clang -fPIC -Iinclude -I. -W -Wunused -Wall -DPH7_LIBRARY_SUFFIX=\".so\" -O0 -g3 -fsplit-stack -c engine/lib/libfmt.c -o build/engine/lib/libfmt.o fatal error: error in backend: Segmented stacks do not support vararg functions. clang: error: clang frontend command failed with exit code 70 (use -v to see invocation) `
belliash прокомментировал(а) 2019-06-11 15:39:22 +02:00
Владелец

https://llvm.org/docs/SegmentedStacks.html
https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang-fsplit-stack

According to mentioned documentation, same option should be available under clang, isn't it?

https://llvm.org/docs/SegmentedStacks.html https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang-fsplit-stack According to mentioned documentation, same option should be available under clang, isn't it?
belliash прокомментировал(а) 2019-06-11 15:41:22 +02:00
Владелец
Seems like a bug in LLVM: https://bugs.llvm.org/show_bug.cgi?id=19197
devnexen прокомментировал(а) 2019-06-11 15:48:29 +02:00
Автор
Участник

Oh the flag is supported, I was just highlighting the build issue. Will try with other versions eventually.

Segmented stacks do not support vararg functions

Wonders if it works under MacOS ...

Oh the flag is supported, I was just highlighting the build issue. Will try with other versions eventually. `Segmented stacks do not support vararg functions` Wonders if it works under MacOS ...
belliash прокомментировал(а) 2019-06-12 06:51:12 +02:00
Владелец

Seems, this option is unavailable on OSX. I think, it can work only under Linux.

Seems, this option is unavailable on OSX. I think, it can work only under Linux.
devnexen прокомментировал(а) 2019-06-12 08:48:55 +02:00
Автор
Участник

Makes sense, I think (w/o being 100% sure) clang in mac is built w/o GNU extensions.

Makes sense, I think (w/o being 100% sure) clang in mac is built w/o GNU extensions.
belliash прокомментировал(а) 2019-06-12 09:53:49 +02:00
Владелец

Fixed build on systems other to Linux with commit da2e74ba08.

Fixed build on systems other to Linux with commit da2e74ba08.
devnexen закрыл(а) эту задачу 2019-06-12 10:01:29 +02:00
Войдите, чтобы присоединиться к обсуждению.
Нет этапа
Нет назначенных лиц
2 участников
Уведомления
Срок выполнения
Срок действия недействителен или находится за пределами допустимого диапазона. Пожалуйста, используйте формат 'гггг-мм-дд'.

Срок выполнения не установлен.

Зависимости

Зависимостей нет.

Ссылка: aerscript/Aer#52
Описание отсутствует.