xkaraman left a comment (kamailio/kamailio#4333)
> Hi [@xkaraman](https://github.com/xkaraman),
>
> there's an error after
> [70ee233](https://github.com/kamailio/kamailio/commit/70ee233bf9a0cdf88be23d5e58e5df47f09926f2)
>
> Probably, the "arm" march doesn't supported on CLang. Can you see a log at
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291047 ?
>
> ```
> ===> Configuring for kamailio-6.0.4
> ===> Performing out-of-source build
> /bin/mkdir -p /wrkdirs/usr/ports/net/kamailio/work/.build
> -- The C compiler identification is Clang 19.1.7
> -- The CXX compiler identification is Clang 19.1.7
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Check for working C compiler: /usr/local/libexec/ccache/cc - skipped
> -- Detecting C compile features
> -- Detecting C compile features - done
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Check for working CXX compiler: /usr/local/libexec/ccache/c++ - skipped
> -- Detecting CXX compile features
> -- Detecting CXX compile features - done
> -- PROJECT_VERSION: 6.0.4
> -- RELEASE: 6.0.4
> -- VERSIONVAL: 6000004
> -- OS: FreeBSD
> -- OS version: 14.3-RELEASE-p4
> -- Host Processor: armv7
> -- Target Processor: armv7
> -- Target Processor Alias: arm
> -- Fast lock available: USE_FAST_LOCK=YES
> CMake Error at cmake/compiler-specific.cmake:238 (message):
> Unsupported compiler (Clang) for arm. Try GCC.
> Call Stack (most recent call first):
> cmake/defs.cmake:340 (include)
> CMakeLists.txt:67 (include)
> ```
Yeah, `cmake` migration from `make` tried to maintain a level of how `make` did
it. We know this is not the best `cmake` practices to include how one should
built the project with what flags or compilers.
For most of compilers i made that optional, so one of course can use whatever
compilers wants.
The relevant lines of this issue is here
https://github.com/kamailio/kamailio/blob/70ee233bf9a0cdf88be23d5e58e5df47f09926f2/cmake/compiler-specific.cmake#L220-L240.
As you can see there is this `FATAL_ERROR` message, which i should just
convert to warning like the rest
https://github.com/kamailio/kamailio/blob/70ee233bf9a0cdf88be23d5e58e5df47f09926f2/cmake/compiler-specific.cmake#L60-L65.
I will push some fixes that demote the `FATAL_ERROR` to `WARNING` for now,
until further testing.
Also note, that we are currently alias `armv7/8` to `arm`, due to how old
makefiles did it and didn't want to break builds.
We needed some testing on this to make sure it worked correctly, so it would
maybe a good opportunity to test it with the `armv7` flags if you would be
willing to.
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4333#issuecomment-3540817440
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/4333/[email protected]>
_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the
sender!