You are not logged in.

#1 2005-10-06 00:03:47

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

C compiler cannot create executables

Oh dear...my system is up to date but I am getting the same thing...

mkdir: cannot create directory `kernel': File exists
  CONF    libjpeg
configure: error: installation or configuration problem: C compiler cannot create executables.
sed: can't read Makefile: No such file or directory
make[1]: Entering directory `/var/abs/aur/gensplashutils/src/splashutils-1.1.9.10/libs/jpeg-6b'
make[1]: *** No rule to make target `libjpeg.a'.  Stop.
make[1]: Leaving directory `/var/abs/aur/gensplashutils/src/splashutils-1.1.9.10/libs/jpeg-6b'
  MAKE    libjpeg
make[1]: *** No rule to make target `libjpeg.a'.  Stop.
make: *** [jpeglib] Error 2

That is the whole output tho I can see it is not relevant.  I have completely recompiled AEGIS since the updates without a problem and suddenly this...

Offline

#2 2005-10-06 10:35:44

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: C compiler cannot create executables

I am trying to build splashutils for gensplash - it now needs klibc.  This is all against latest archk pkg.

# Contributor: dibblethewrecker <dibblethewrecker.at.jiwe.org>

pkgname=klibc
pkgver=1.1
pkgrel=1
pkgdesc="A minimalistic libc subset for use with initramfs"
url="http://www.kernel.org/pub/linux/libs/klibc/"
license=""
depends=('perl' 'kernel26archck=2.6.13.archck6.1')
makedepends=()
install=
source=(http://www.kernel.org/pub/linux/libs/klibc/$pkgname-$pkgver.tar.gz)
md5sums=('a8afca95c1e3ea5ee02c536c5862d474')

build() {
  cd $startdir/src/$pkgname-$pkgver
  _kernel=2.6.13-archck6.1
  ln -sf /usr/src/linux-$_kernel linux
  make || return 1
  mkdir -p $startdir/pkg/usr/src/linux-$_kernel/{usr,scripts}
  chmod 755 ./cp-to-kernel.sh
  ./cp-to-kernel.sh $startdir/pkg/usr/src/linux-$_kernel
}
# Packager: dibblethewrecker dibblethewrecker.at.jiwe.dot.org
# Contributors: Steve "TheBashar" - original PKGBUILD
# darch theme by Rensel rensel.at.email.dot.it
pkgname=gensplashutils
pkgver=1.1.9.10
pkgrel=1
pkgdesc="Provides utilties to enable framebuffer splash screens and console backgrounds using the fbsplash kernel patch.  Also includes the darch splash theme."
url="http://dev.gentoo.org/~spock/projects/gensplash/"
license=""
depends=('libjpeg' 'libpng' 'perl' 'freetype2' 'kbd' 'klibc' 'miscsplashutils')
backup=('etc/conf.d/gensplash')
provides=('splashutils')
conflicts=('splashutils' 'bootsplash')
install=splashutils.install
source=(http://dev.gentoo.org/~spock/projects/gensplash/current/splashutils-$pkgver.tar.bz2 http://dtw.jiwe.org/share/gensplash/splashutils-arch-0.1.14.tar.bz2 http://dtw.jiwe.org/share/gensplash/themes/darch.tar.bz2)

build() {
  _kernel=2.6.13-archck6.1
  cd $startdir/src/splashutils-$pkgver
  sed -i "s|/usr/bin/install|/bin/install|g" Makefile
  ln -sf /usr/src/linux-$_kernel linux
  mkdir kernel
  
  make || return 1
  make DESTDIR=$startdir/pkg/ install

  # install arch splashutils
  cd $startdir/src/
  mkdir -p $startdir/pkg/etc/{rc.d,conf.d,splash}
  install -D -m755 splashutils-arch-0.1.14/gensplash $startdir/pkg/etc/rc.d/gensplash
  install -D -m644 splashutils-arch-0.1.14/splash-functions $startdir/pkg/etc/rc.d/splash-functions
  install -D -m755 splashutils-arch-0.1.14/splash $startdir/pkg/sbin/splash
  install -D -m644 splashutils-arch-0.1.14/gensplash.conf $startdir/pkg/etc/conf.d/gensplash
  install -D -m644 splashutils-arch-0.1.14/lilo.sample $startdir/pkg/etc/splash/lilo.sample
  install -D -m644 splashutils-arch-0.1.14/grub.sample $startdir/pkg/etc/splash/grub.sample

  # install default theme
  cp -pr $startdir/src/darch $startdir/pkg/etc/splash/
}

Offline

#3 2005-10-06 16:55:40

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: C compiler cannot create executables

The "cannot create executables" is a simple m4 rule... it does something like this:

echo "int main() { return 0; }" >> somefile.c
gcc somefile.c
if [ -f a.out ]; then
   echo "Can create executables"
else
   echo "Cannot create executables"
fi

Offline

#4 2005-10-19 07:51:20

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: C compiler cannot create executables

I dunno what that means phrak but I know have this debug info:

checking for gcc... klcc
checking whether the C compiler (klcc -w -ffunction-sections -fdata-sections  -I/var/abs/aur/gensplashutils/src/splashutils-1.1.9.10/libs/zlib-1.2.3 -I/var/abs/aur/gensplashutils/src/splashutils-1.1.9.10/libs/freetype-2.1.9/include -I/var/abs/aur/gensplashutils/src/splashutils-1.1.9.10/linux/include -I/var/abs/aur/gensplashutils/src/splashutils-1.1.9.10/linux/include2 -DWITH_ERRLIST -DTARGET_KERNEL -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

But then I checked the configure log...

configure:538: checking for gcc
configure:615: checking whether the C compiler (klcc -w -ffunction-sections -fdata-sections  -I/var/abs/aur/gensplashutils/src/splashutils-1.1.9.10/libs/zlib-1.2.3 -I/var/abs/aur/gensplashutils/src/splashutils-1.1.9.10/libs/freetype-2.1.9/include -I/var/abs/aur/gensplashutils/src/splashutils-1.1.9.10/linux/include -I/var/abs/aur/gensplashutils/src/splashutils-1.1.9.10/linux/include2 -DWITH_ERRLIST -DTARGET_KERNEL -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER ) works
configure:629: klcc -o conftest -w -ffunction-sections -fdata-sections  -I/var/abs/aur/gensplashutils/src/splashutils-1.1.9.10/libs/zlib-1.2.3 -I/var/abs/aur/gensplashutils/src/splashutils-1.1.9.10/libs/freetype-2.1.9/include -I/var/abs/aur/gensplashutils/src/splashutils-1.1.9.10/linux/include -I/var/abs/aur/gensplashutils/src/splashutils-1.1.9.10/linux/include2 -DWITH_ERRLIST -DTARGET_KERNEL -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER   conftest.c  1>&5
./configure: line 628: klcc: command not found
configure: failed program was:
#line 625 "configure"
#include "confdefs.h"
main(){return(0);}

and it all becomes clear...

Offline

#5 2005-10-19 17:18:07

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: C compiler cannot create executables

klcc - wtf? where'd that come from?

Offline

#6 2005-10-19 17:24:44

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: C compiler cannot create executables

Changelog reveals some dreadful info.

Offline

#7 2005-10-19 18:47:49

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: C compiler cannot create executables

lucke wrote:

Changelog reveals some dreadful info.

Baffles me...but I have it sorted now smile  Who would choose to use a lib that does not even feature a proper installation method and instructions on how to use it?

Offline

#8 2005-10-20 18:52:04

lunke
Member
From: Sweden
Registered: 2005-05-21
Posts: 86

Re: C compiler cannot create executables

dibblethewrecker wrote:

I am trying to build splashutils for gensplash - it now needs klibc.  This is all against latest archk pkg.

# Contributor: dibblethewrecker <dibblethewrecker.at.jiwe.org>

pkgname=klibc
pkgver=1.1
pkgrel=1
pkgdesc="A minimalistic libc subset for use with initramfs"
url="http://www.kernel.org/pub/linux/libs/klibc/"
license=""
depends=('perl' 'kernel26archck=2.6.13.archck6.1')
makedepends=()
install=
source=(http://www.kernel.org/pub/linux/libs/klibc/$pkgname-$pkgver.tar.gz)
md5sums=('a8afca95c1e3ea5ee02c536c5862d474')

build() {
  cd $startdir/src/$pkgname-$pkgver
  _kernel=2.6.13-archck6.1
  ln -sf /usr/src/linux-$_kernel linux
  make || return 1
  mkdir -p $startdir/pkg/usr/src/linux-$_kernel/{usr,scripts}
  chmod 755 ./cp-to-kernel.sh
  ./cp-to-kernel.sh $startdir/pkg/usr/src/linux-$_kernel
}
# Packager: dibblethewrecker dibblethewrecker.at.jiwe.dot.org
# Contributors: Steve "TheBashar" - original PKGBUILD
# darch theme by Rensel rensel.at.email.dot.it
pkgname=gensplashutils
pkgver=1.1.9.10
pkgrel=1
pkgdesc="Provides utilties to enable framebuffer splash screens and console backgrounds using the fbsplash kernel patch.  Also includes the darch splash theme."
url="http://dev.gentoo.org/~spock/projects/gensplash/"
license=""
depends=('libjpeg' 'libpng' 'perl' 'freetype2' 'kbd' 'klibc' 'miscsplashutils')
backup=('etc/conf.d/gensplash')
provides=('splashutils')
conflicts=('splashutils' 'bootsplash')
install=splashutils.install
source=(http://dev.gentoo.org/~spock/projects/gensplash/current/splashutils-$pkgver.tar.bz2 http://dtw.jiwe.org/share/gensplash/splashutils-arch-0.1.14.tar.bz2 http://dtw.jiwe.org/share/gensplash/themes/darch.tar.bz2)

build() {
  _kernel=2.6.13-archck6.1
  cd $startdir/src/splashutils-$pkgver
  sed -i "s|/usr/bin/install|/bin/install|g" Makefile
  ln -sf /usr/src/linux-$_kernel linux
  mkdir kernel
  
  make || return 1
  make DESTDIR=$startdir/pkg/ install

  # install arch splashutils
  cd $startdir/src/
  mkdir -p $startdir/pkg/etc/{rc.d,conf.d,splash}
  install -D -m755 splashutils-arch-0.1.14/gensplash $startdir/pkg/etc/rc.d/gensplash
  install -D -m644 splashutils-arch-0.1.14/splash-functions $startdir/pkg/etc/rc.d/splash-functions
  install -D -m755 splashutils-arch-0.1.14/splash $startdir/pkg/sbin/splash
  install -D -m644 splashutils-arch-0.1.14/gensplash.conf $startdir/pkg/etc/conf.d/gensplash
  install -D -m644 splashutils-arch-0.1.14/lilo.sample $startdir/pkg/etc/splash/lilo.sample
  install -D -m644 splashutils-arch-0.1.14/grub.sample $startdir/pkg/etc/splash/grub.sample

  # install default theme
  cp -pr $startdir/src/darch $startdir/pkg/etc/splash/
}

shouldn't klibc be a makedepend instead of a direct dependency for gensplashutils?

Offline

#9 2005-10-20 18:59:36

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: C compiler cannot create executables

yeah - it should I have yet to fix it - sorry!

Offline

#10 2005-11-11 19:32:27

Explosivo
Member
From: The Dark Side of the moon
Registered: 2005-11-05
Posts: 25

Re: C compiler cannot create executables

I'm wondering wether the klibc-PKGBUILD posted by dibblethewrecker will also work, even if I don't have the archck-Package installed. (actually I installed archck-Sources manually)? I'm having the same problem: I want to install gensplashuitls while there is not klibc-Package in pacman or abs!

Offline

#11 2005-11-11 19:38:57

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: C compiler cannot create executables

Here is the klibc PKGBUILD - I have deleted the parts that make it depend on the archck kernel

# Contributor: dibblethewrecker <dibblethewrecker.at.jiwe.org>

pkgname=klibc
pkgver=1.1
pkgrel=4
pkgdesc="A minimalistic libc subset for use with initramfs"
url="http://www.kernel.org/pub/linux/libs/klibc/"
license=""
depends=('perl')
makedepends=()
install=
source=(http://www.kernel.org/pub/linux/libs/klibc/$pkgname-$pkgver.tar.gz)
md5sums=('a8afca95c1e3ea5ee02c536c5862d474')

_kernel=`uname -r`

build() {
  cd $startdir/src/$pkgname-$pkgver
  ln -sf /usr/src/linux-$_kernel linux
  make || return 1
  make INSTALLROOT=$startdir/pkg/ install
  mkdir -p $startdir/pkg/usr/src/linux-$_kernel/{usr,scripts}
  chmod 755 ./cp-to-kernel.sh
  ./cp-to-kernel.sh $startdir/pkg/usr/src/linux-$_kernel
}

That should work fine for you smile

Offline

#12 2005-11-11 19:59:36

Explosivo
Member
From: The Dark Side of the moon
Registered: 2005-11-05
Posts: 25

Re: C compiler cannot create executables

Looking closely at the PKGBUILD I get the impression that I must recompile the Kernel after intalling klibc; must I???

PS: Thanks anyway for the your new version! smile

Offline

#13 2005-11-11 20:51:44

Explosivo
Member
From: The Dark Side of the moon
Registered: 2005-11-05
Posts: 25

Re: C compiler cannot create executables

As I had expected: there is a conflict between my already installed archck-sources and this klibc-Package: When trying to install it, I get this:

# pacman -A klibc-*
loading package data... done.
checking for file conflicts...
error: the following file conflicts were found:
  klibc: /usr/src/linux-2.6.14-archck3/scripts/Kbuild.include: exists in filesystem


errors occurred, no packages were upgraded.

.. and I'm not feeling comfortable about deleting those blocking files from the Kernel-Sources. So is there any other solution??

Offline

#14 2005-11-11 20:55:04

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: C compiler cannot create executables

Yeah - just add a line to the PKGBUILD to delete it from the pkg

rm $startdir/pkg/usr/src/linux-2.6.14-archck3/scripts/Kbuild.include

Offline

#15 2005-11-11 23:05:22

Explosivo
Member
From: The Dark Side of the moon
Registered: 2005-11-05
Posts: 25

Re: C compiler cannot create executables

OK, now I managed to install klibc, but my main intent (instaling gensplashutils) sitll fails. Running the makepkg I get this error:

  
CC      kernel/ttf.o
LD      splash_helper
CC      splash.o
splash.c: In Funktion »main«:
splash.c:229: Fehler: »FB_SPLASH_IO_ORIG_USER« nicht deklariert (erste Benutzung in dieser Funktion)
splash.c:229: Fehler: (Jeder nicht deklarierte Bezeichner wird nur einmal aufgeführt
splash.c:229: Fehler: für jede Funktion in der er auftritt.)
splash.c:262: Fehler: Variable »wrapper« hat Initialisierung, aber unvollständigen Typ
splash.c:263: Fehler: unbekanntes Feld »vc« in Initialisierung angegeben
splash.c:263: Warnung: Elementüberschreitung in struct-Initialisierung
splash.c:263: Warnung: (nahe der Initialisierung für »wrapper«)
splash.c:264: Fehler: unbekanntes Feld »origin« in Initialisierung angegeben
splash.c:264: Warnung: Elementüberschreitung in struct-Initialisierung
splash.c:264: Warnung: (nahe der Initialisierung für »wrapper«)
splash.c:265: Fehler: unbekanntes Feld »data« in Initialisierung angegeben
splash.c:265: Warnung: Elementüberschreitung in struct-Initialisierung
splash.c:265: Warnung: (nahe der Initialisierung für »wrapper«)
splash.c:262: Fehler: Speichergröße von »wrapper« ist unbekannt
splash.c:273: Fehler: »FBIOSPLASH_GETSTATE« nicht deklariert (erste Benutzung in dieser Funktion)
splash.c:262: Warnung: Variable »wrapper« wird nicht verwendet
make: *** [splash.o] Fehler 1

Sorry that the output is in German: In the first line it says i.e. that FB_SPLASH_IO_ORIG_USER is not declared or something like that .. well actually all lines say something about things being not declared or about "struct-initialisations" ... don't ask me what that means :?
Anyone got an Idea

Offline

Board footer

Powered by FluxBB