Results 1 to 3 of 3

Thread: Build fails for SameSame package (GNU make)

  1. #1

    Default Build fails for SameSame package (GNU make)

    Hi,

    I tried to compile a GNU project, but this fails on me. The GNU files (Makefile.in, aclocal.m4, config.h.in, configure, ect.) where generated under FreeBSD (with autoconf-2.62 and automake-1.10.1) and compiles under FreeBSD.

    The log within OBS says:
    > configure: error: C++ compiler cannot create executables
    > See `config.log' for more details.
    > error: Bad exit status from /var/tmp/rpm-tmp.52006 (%build)

    How can I acces this file to see what goes wrong? (I'm a newbie)

    https://build.opensuse.org/package/s...ome%3Aakruijff

    The specfile:
    Code:
    # Name: samesame  
    # Version: 1.3  
    # Release: 0  
    # URL: http://samesame.kruijff.org/  
    # Source: http://samesame.kruijff.org/%{name}-%{version}.tar.bz2  
    # License: BSD (2 Clauses), Copyright (c) 2009 Alex de Kruijff  
    # Group: Applications/File  
    # Summary: Find identical files and optionally link them together  
    # BuildRoot: %{_tmppath}/%{name}-%{version}-build  
    #   
    # %description  
    # SameSame is a collection of tools that fall in to the category of file management software. These tools will prevent that you need to delete files or buy more disk space. Instead they solve low disk space problems by linking identical files together and thus free up waisted disk space.  
    #   
    # This collection was inspired by the application samefile written by Jens Schweikhardt. The collection comes with its own version of samefile that is noticeable faster and is able to process a much larger file list. Samefile is the duplicate file finder and combined with samelink it acts as a duplicate file remover.  
    #   
    # This port contains the applications: samefile, samelink and samearchive. The latter does the same as samefile but for file-based archives. The port also contains a version that uses just 10% of the resources compared to samearchive. The application samelink hard link identical files for you.  
    #   
    # Typical usage would be: find / | samefile -i | samelink. This would search for identical files and clean up wasted disk space by linking them together. Add the option -vn after samelink for a verbose dry-run.   
    #   
    # %prep  
    # %setup  
    #   
    # %build  
    # %configure  
    # make  
    #   
    # %install  
    # %makeinstall  
    #   
    # %clean  
    # rm -rf $RPM_BUILD_ROOT  
    #   
    # %files  
    # %defattr(-, root, root, 0755)  
    # %doc INSTALL README  
    # %doc %{_mandir}/man1/samefile.1*  
    # %doc %{_mandir}/man1/samelink.1*  
    # %doc %{_mandir}/man1/samearchive.1*  
    # %doc %{_mandir}/man1/samearchive-lite.1*  
    # %{_prefix}/bin/samefile  
    # %{_prefix}/bin/samelink  
    # %{_prefix}/bin/samearchive  
    # %{_prefix}/bin/samearchive-lite
    The (partial) log:
    Code:
    Using BUILD_ROOT=/abuild/root_8/.mount
    Using BUILD_ARCH=x86_64:i686:i586:i486:i386
    Doing xen build in /dev/abuild/8_root
    
    
    build16 started "build samesame.spec" at Wed Jul 1 23:40:31 UTC 2009.
    
    Building SameSame for project 'home:akruijff' repository 'CentOS_5' arch 'x86_64' srcmd5 'e35ddf7476cdc3ab593edb6e686b9481'
    
    processing specfile /abuild/root_8/.build-srcdir/samesame.spec ...
    running changelog2spec --target rpm --file /abuild/root_8/.build-srcdir/samesame.spec
    init_buildsystem --prepare --clean --rpmlist /abuild/root_8/.build.rpmlist /abuild/root_8/.build-srcdir/samesame.spec build rpmlint-Factory ...
    <SNIP>
    -----------------------------------------------------------------
    I have the following modifications for samesame.spec:
    3c3
    < Release: 0
    ---
    > Release: 25.1
    -----------------------------------------------------------------
    ----- building samesame.spec (user abuild)
    -----------------------------------------------------------------
    -----------------------------------------------------------------
    + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --define 'disturl obs://build.opensuse.org/home:akruijff/CentOS_5/e35ddf7476cdc3ab593edb6e686b9481-SameSame' --eval %suse_insert_debug_package /usr/src/redhat/SOURCES/samesame.spec
    
    
    Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.52006
    + umask 022
    + cd /usr/src/redhat/BUILD
    + cd /usr/src/redhat/BUILD
    + rm -rf samesame-1.3
    + /usr/bin/bzip2 -dc /usr/src/redhat/SOURCES/samesame-1.3.tar.bz2
    + tar -xvvf -
    <SNIP>
    + STATUS=0
    + '[' 0 -ne 0 ']'
    + cd samesame-1.3
    ++ /usr/bin/id -u
    + '[' 399 = 0 ']'
    ++ /usr/bin/id -u
    + '[' 399 = 0 ']'
    + /bin/chmod -Rf a+rX,u+w,g-w,o-w .
    + exit 0
    Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.52006
    + umask 022
    + cd /usr/src/redhat/BUILD
    + cd samesame-1.3
    + CFLAGS='-O2 -g'
    + export CFLAGS
    + CXXFLAGS='-O2 -g'
    + export CXXFLAGS
    + FFLAGS='-O2 -g'
    + export FFLAGS
    + ./configure --host=x86_64-redhat-linux-gnu --build=x86_64-redhat-linux-gnu --target=x86_64-redhat-linux --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking for x86_64-redhat-linux-gnu-g++... no
    checking for x86_64-redhat-linux-gnu-c++... no
    checking for x86_64-redhat-linux-gnu-gpp... no
    checking for x86_64-redhat-linux-gnu-aCC... no
    checking for x86_64-redhat-linux-gnu-CC... no
    checking for x86_64-redhat-linux-gnu-cxx... no
    checking for x86_64-redhat-linux-gnu-cc++... no
    checking for x86_64-redhat-linux-gnu-cl.exe... no
    checking for x86_64-redhat-linux-gnu-FCC... no
    checking for x86_64-redhat-linux-gnu-KCC... no
    checking for x86_64-redhat-linux-gnu-RCC... no
    checking for x86_64-redhat-linux-gnu-xlC_r... no
    checking for x86_64-redhat-linux-gnu-xlC... no
    checking for g++... no
    checking for c++... no
    checking for gpp... no
    checking for aCC... no
    checking for CC... no
    checking for cxx... no
    checking for cc++... no
    checking for cl.exe... no
    checking for FCC... no
    checking for KCC... no
    checking for RCC... no
    checking for xlC_r... no
    checking for xlC... no
    checking for C++ compiler default output file name...
    configure: error: C++ compiler cannot create executables
    See `config.log' for more details.
    error: Bad exit status from /var/tmp/rpm-tmp.52006 (%build)
    
    
    RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.52006 (%build)
    System halted.
    Tanks.

  2. #2

    Default Re: Build fails for SameSame package (GNU make)

    Code:
    checking for g++... no
    checking for c++... no
    checking for gpp... no
    checking for aCC... no
    checking for CC... no
    checking for cxx... no
    checking for cc++... no
    checking for cl.exe... no
    checking for FCC... no
    checking for KCC... no
    checking for RCC... no
    checking for xlC_r... no
    checking for xlC... no
    Compiling C++ without a c++-compiler is not very likely to work.

    Code:
    BuildRequires:  gcc-c++

  3. #3

    Default Re: Build fails for SameSame package (GNU make)

    Thanks, that did it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •