Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] c compiler test failed - FFmpeg & cinelerraGG
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
DeIM
Guru
Guru


Joined: 11 Apr 2006
Posts: 429

PostPosted: Tue Jul 30, 2019 7:43 am    Post subject: [solved] c compiler test failed - FFmpeg & cinelerraGG Reply with quote

I have custom ebuild of Cinelerra GG and ffmpeg config gives me on one similar to my pc "gcc is unable to create an executable file." Other PC's are OK.

Code:
CONFIGURING ffmpeg
cd ffmpeg* &&   ./configure --enable-pthreads --enable-gpl --disable-ffplay --enable-vaapi --disable-vdpau  --enable-nvenc --enable-nvdec --enable-libtwolame --enable-libopenjpeg --enable-libmp3lame   --enable-libopus --enable-libvorbis --enable-libtheora --enable-libvpx --enable-libx264 --enable-libx265 --extra-cflags="-Wno-attributes  -I/var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/ffnvcodec/.  -I/var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/twolame-0.3.13/libtwolame  -I/var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/lame-3.100/include    -I/var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/openjpeg-2.3.0/src/lib/openjp2  -I/var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/libogg-1.3.3/include  -I/var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/opus-1.3/include  -I/var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/libvorbis-1.3.6/include -I/var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/libvorbis-1.3.6/.  -I/var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/libtheora-1.1.1/.  -I/var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/libvpx-1.8.0/.  -I/var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/x264-snapshot-20190117-2245-stable/.  -I/var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/x265_3.0/. -I/var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/x265_3.0/source  -I/var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/x265_3.0/. -I/var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/x265_3.0/source " --extra-cxxflags="-D__STDC_CONSTANT_MACROS" --pkg-config=true --extra-libs="-Wl,--start-group -L/var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/twolame-0.3.13/libtwolame/.libs /var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/twolame-0.3.13/libtwolame/.libs/libtwolame.a  -L/var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/lame-3.100/libmp3lame/.libs /var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/lame-3.100/libmp3lame/.libs/libmp3lame.a /var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/lame-3.100/mpglib/.libs/libmpgdecoder.a    -L/var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/openjpeg-2.3.0/bin /var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/openjpeg-2.3.0/bin/libopenjp2.a  -L/var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/opus-1.3/.libs /var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/opus-1.3/.libs/libopus.a  -L/var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/libogg-1.3.3/lib/.libs /var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/libogg-1.3.3/src/.libs/libogg.a  -L/var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/libvorbis-1.3.6/lib/.libs /var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/libvorbis-1.3.6/lib/.libs/libvorbis.a /var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/libvorbis-1.3.6/lib/.libs/libvorbisenc.a /var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/libvorbis-1.3.6/lib/.libs/libvorbisfile.a  -L/var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/libtheora-1.1.1/lib/.libs /var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/libtheora-1.1.1/lib/.libs/libtheora.a /var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/libtheora-1.1.1/lib/.libs/libtheoradec.a /var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/libtheora-1.1.1/lib/.libs/libtheoraenc.a  -L/var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/libvpx-1.8.0/ /var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/libvpx-1.8.0/libvpx.a  -L/var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/x264-snapshot-20190117-2245-stable/ /var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/x264-snapshot-20190117-2245-stable/libx264.a  -L/var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/x265_3.0/ /var/tmp/portage/media-video/cinelerraGG-9999/work/cinelerraGG-9999/cinelerra-5.1/thirdparty/../thirdparty/x265_3.0/libx265.a  -Wl,--end-group -lm -lstdc++ -pthread -lfdk-aac -lnuma -lva -lva-x11 -lva-drm -ldl" --enable-libfdk-aac --enable-nonfree --extra-ldflags=" -lva -lva-x11 -lva-drm -ldl" 
gcc is unable to create an executable file.
If gcc is a cross-compiler, use the --enable-cross-compile option.
Only do this if you know what cross compiling means.
C compiler test failed.(B


make.conf:
Code:
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
#CFLAGS="-march=silvermont -mmmx -msse -msse2 -msse3 -mssse3 -mcx16 -msahf -mmovbe -mpclmul -mpopcnt -msse4.2 -msse4.1 -mrdrnd -mprfchw -mfxsr -mtune=generic -fstack-protector-strong -O2 -pipe"
CFLAGS="-march=silvermont -mmmx -msse -msse2 -msse3 -mssse3 -mcx16 -msahf -mmovbe -mno-aes -mpclmul -mpopcnt -msse4.2 -msse4.1 -mrdrnd -mprfchw -mfxsr --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=1024 -mtune=silvermont -fstack-protector-strong -O2 -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE and USE_EXPAND flags that were used for
# buidling in addition to what is provided by the profile.
USE="-bindist nfsv4 nfsv41 python -qt4 -gtk truetype X dbus consolekit \
     sqlite lame wmf s3tc matroska imagemagick gstreamer gimp ocr \
     faad wma-fixed cdr dvd encode icu opus exif pdf svg usb gif \
     flac aac aacplus faac speex mp3 ogg vorbis vpx x264 xvid \
     corefonts alsa jpeg jpeg2k cairo pango png webp x265 pulseaudio \
     glamor vaapi -ppp -modemmanager samba nfs openssl exiv2 raw \
     ffmpeg lzma aspell hunspell http download qt5 graphicsmagick \
     streaming java threads bluetooth opencl"

#PORTDIR="/usr/portage"
#DISTDIR="${PORTDIR}/distfiles"
#PKGDIR="${PORTDIR}/packages"
GENTOO_MIRRORS="rsync://ftp.fi.muni.cz/pub/linux/gentoo/ rsync://mirror.dkm.cz/gentoo/ ftp://ftp.fi.muni.cz/pub/linux/gentoo/ ftp://mirror.dkm.cz/gentoo/"
MAKEOPTS="-j5 -l5"
CONFIG_PROTECT="*"
ACCEPT_LICENSE="*"

AUTOCLEAN="yes"
LINGUAS="cs en cs_CZ"
L10N="cs en"

CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"
GRUB_PLATFORMS="efi-64"

VIDEO_CARDS="intel i965"
INPUT_DEVICES="libinput wacom"
LLVM_TARGETS="X86 BPF"

FEATURES="${FEATURES} -xattr getbinpkg"
BINPKG_COMPRESS="xz"
PKGDIR="/home/binpkg_roxy/"
CONFIG_PROTECT="*"
ACCEPT_LICENSE="*"

AUTOCLEAN="yes"
LINGUAS="cs en cs_CZ"
L10N="cs en"


ebuild:
Code:
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

DESCRIPTION="The most advanced non-linear video editor and compositor - Good Guy's version"
HOMEPAGE="https://cinelerra-cv.org/"

IUSE="+pref opus vpx +fdk"

RDEPEND=">=sci-libs/fftw-3
   >=media-libs/libtheora-1.1:="

DEPEND="${RDEPEND}
   app-arch/xz-utils
        virtual/pkgconfig
        dev-lang/nasm
   dev-util/ctags"

if [[ ${PV} = *9999* ]]; then
        inherit git-r3
#        EGIT_REPO_URI="git://git.cinelerra-cv.org/goodguy/cinelerra.git"
        EGIT_REPO_URI="git://git.cinelerra-gg.org/goodguy/cinelerra"
   EGIT_CLONE_TYPE=shallow
else
        SRC_URI=""
        KEYWORDS="~amd64 ~arm ~arm64 ~x86"
fi

SLOT="0"

S="${WORKDIR}"/${P}/cinelerra-5.1

PATCHES=(
)

src_prepare() {
        ./autogen.sh
   default
}

src_configure() {
   CONF=""
   if use fdk ; then
      export FFMPEG_EXTRA_CFG=" --enable-libfdk-aac --enable-nonfree"
      export EXTRA_LIBS=" -lfdk-aac"
   fi
   if use pref ; then
      CONF="${CONF} --prefix=/usr/local_cin"
   fi
        if use opus ; then
                CONF="${CONF} --with-opus --enable-opus"
        fi
        if use vpx ; then
                CONF="${CONF} --enable-libvpx"
        fi
   econf ${CONF}
}

src_compile() {
   emake
}

src_install() {
   emake -j1 -l1 DESTDIR="${D}" install

   # patch better render templates
   tar -xzf "${FILESDIR}"/fqt_mp4.tar.gz -C "${D}"/usr/share/cin/ffmpeg/

   if use pref ; then
      mkdir -p "${D}"/etc/env.d/
                cp "${FILESDIR}"/99local_cin "${D}"/etc/env.d/
        fi
}

pkg_postinst() {
   if use pref ; then
      elog "Don't forget to run env-update if first install"
   fi
}


Last edited by DeIM on Tue Jul 30, 2019 4:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Tue Jul 30, 2019 1:46 pm    Post subject: Reply with quote

Please look at the last lines of 'ffbuild/config.log'.

For example, if I run the ffmpeg configure script with a non-existing GCC (x86_64-pc-linux-gnu-gcc-invalid), I get exactly the error message you showed in your post. 'ffbuild/config.log' tells me what went wrong:
Code:
# tail ffbuild/config.log
WARNING: Unknown C compiler x86_64-pc-linux-gnu-gcc-invalid, unable to select optimal CFLAGS
test_ld cc
test_cc
BEGIN /tmp/ffconf.wLibNgcy/test.c
    1   int main(void){ return 0; }
END /tmp/ffconf.wLibNgcy/test.c
x86_64-pc-linux-gnu-gcc-invalid -c -o /tmp/ffconf.wLibNgcy/test.o /tmp/ffconf.wLibNgcy/test.c
./configure: line 952: x86_64-pc-linux-gnu-gcc-invalid: command not found
C compiler test failed.
Back to top
View user's profile Send private message
DeIM
Guru
Guru


Joined: 11 Apr 2006
Posts: 429

PostPosted: Tue Jul 30, 2019 4:20 pm    Post subject: Reply with quote

you made my day! :D

I saw in ffmpeg's log fdk library is missing and it works now.

Thank You!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum