Summary: | devel/qt5-qmake: Doesn't use the right compiler in case USE_GCC is selected | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Yuri Victorovich <yuri> |
Component: | Individual Port(s) | Assignee: | freebsd-kde (group) <kde> |
Status: | Closed Feedback Timeout | ||
Severity: | Affects Only Me | CC: | adridg, mikhail.rokhin, tcberner |
Priority: | --- | Flags: | tcberner:
maintainer-feedback+
|
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any |
Description
Yuri Victorovich
2017-12-06 01:20:14 UTC
Can you provide the log of such a build? mfg Tobias (In reply to Tobias C. Berner from comment #1) Without the g++ command tests for external libraries fail: > Checking for ffmpeg... no > Checking for gstreamer... no > Checking for jack... no when it should be: > Checking for ffmpeg... yes > Checking for ffmpeg_avcodec_contextframerate... yes > Checking for ffmpeg_avcodec_extracodecformats... yes > Checking for ffmpeg_avcodec_freecontext... yes > Checking for ffmpeg_avcodec_packetref... yes > Checking for ffmpeg_avcodec_rescalets... yes > Checking for ffmpeg_avcodec_sendrecv... yes > Checking for ffmpeg_avcodec_subtitledata... yes > Checking for ffmpeg_avformat_allocoutputcontext... yes > Checking for ffmpeg_avformat_codecpar... yes > Checking for ffmpeg_avutil_extraoptions... yes > Checking for ffmpeg_avutil_extrapixformats... yes > Checking for ffmpeg_avutil_framealloc... yes > Checking for ffmpeg_avutil_sampleformat64... yes > Checking for ffmpeg_avresample... yes > Checking for ffmpeg_swresample... yes As a result, some shared libs aren't built. The external libs are tested with macros like this: qtCompileTest(ffmpeg_avcodec_contextframerate) I guess, this qmake macro calls the g++ command instead of ${CXX}. This is basically the same as PR 204923. Because of the way qmake's mkspecs work, the compiler from the mkspec is used, rather than ${CC} or ${CXX}. *** Bug 228341 has been marked as a duplicate of this bug. *** There is some progress on fixing this now. At least on GCC based architectures, the freebsd-gcc mkspec now contains gcc${GCC_DEFAULT}. This will not yet solve your problem unfortunately. However, could you try using BINARY_ALIAS=gcc=${CC} g++=${CXX} mfg Tobias Please reopen if this is still an issue. |