FreeBSD Build Failing #30

Open
opened 2024-01-13 17:16:56 -05:00 by jordan · 1 comment
Owner

Take a look at Job #21. The FreeBSD builds (both x86 and x64) are failing with the following error:

clang -Wall -Werror -pedantic -std=c99 -O1 -D_DEFAULT_SOURCE -Isrc/include -DTLS_IMPL=TLS_OPENSSL '-DLIB_NAME="Cytoplasm"' -fPIC -c -o "build/Runtime.o" "src/Runtime.c"
src/Runtime.c:92:15: error: '_Generic' is a C11 extension [-Werror,-Wc11-extensions]
    namePtr = basename(reportName);
              ^
/usr/include/libgen.h:60:21: note: expanded from macro 'basename'
#define basename(x)     __generic(x, const char *, __old_basename, basename)(x)
                        ^
/usr/include/sys/cdefs.h:322:2: note: expanded from macro '__generic'
        _Generic(expr, t: yes, default: no)
        ^
1 error generated.
*** Error code 1
Stop.

I think this is a well-known FreeBSD issue. Ideally, this needs to be fixed in the FreeBSD libc, but unfortunately until it is, we have to deal with it somehow.

The leading recommendation is to simply disable -pedantic on FreeBSD, but I shouldn't have to do that because this is a POSIX conforming program; there are no extensions being used in the code itself.

Take a look at [Job #21](/Telodendria/Cytoplasm/actions/runs/21). The FreeBSD builds (both x86 and x64) are failing with the following error: ``` clang -Wall -Werror -pedantic -std=c99 -O1 -D_DEFAULT_SOURCE -Isrc/include -DTLS_IMPL=TLS_OPENSSL '-DLIB_NAME="Cytoplasm"' -fPIC -c -o "build/Runtime.o" "src/Runtime.c" src/Runtime.c:92:15: error: '_Generic' is a C11 extension [-Werror,-Wc11-extensions] namePtr = basename(reportName); ^ /usr/include/libgen.h:60:21: note: expanded from macro 'basename' #define basename(x) __generic(x, const char *, __old_basename, basename)(x) ^ /usr/include/sys/cdefs.h:322:2: note: expanded from macro '__generic' _Generic(expr, t: yes, default: no) ^ 1 error generated. *** Error code 1 Stop. ``` I think this is a well-known FreeBSD issue. Ideally, this needs to be fixed in the FreeBSD libc, but unfortunately until it is, we have to deal with it somehow. The leading recommendation is to simply disable `-pedantic` on FreeBSD, but I shouldn't have to do that because this is a POSIX conforming program; there are no extensions being used in the code itself.
jordan added the
bug
label 2024-01-13 17:16:56 -05:00
Author
Owner

Currently, all runners are offline due to limitations of my hardware. I just don't have the resources to run all these anymore. Hoping to upgrade my server soon though to have more RAM.

Currently, all runners are offline due to limitations of my hardware. I just don't have the resources to run all these anymore. Hoping to upgrade my server soon though to have more RAM.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Telodendria/Cytoplasm#30
No description provided.