You are not logged in.

#1 2007-02-28 18:06:01

qdlaty
Member
Registered: 2005-04-18
Posts: 32

[SOLVED] Problem with recompilation of gcc (and kernel too)

Hi, after many successful recompilations of mostly all packages I have installed I'm stucked with strange issue. When I try to makepkg of gcc I got error:

make[1]: Leaving directory `/var/abs/base/gcc/src/gcc-build/libcpp'
mkdir -p -- ./gcc
Configuring in ./gcc
configure: creating cache ./config.cache
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking LIBRARY_PATH variable... contains current directory
configure: error:
*** LIBRARY_PATH shouldn't contain the current directory when
*** building gcc. Please change the environment variable
*** and run configure again.
make: *** [configure-gcc] Error 1
==> ERROR: Build Failed.  Aborting...

While sometime ago I've builded this package without problems.

What do you have in LIBRARY_PATH?

and other thing is that I can not compile anything for kernel (and kernel itself).
It gives me errors like this:

In file included from ./include/asm/system.h:4,
                 from ./include/asm/processor.h:18,
                 from ./include/asm/atomic.h:5,
                 from ./include/linux/crypto.h:20,
                 from arch/i386/kernel/asm-offsets.c:7:
./include/linux/kernel.h:117: error: expected declaration specifiers or '...' before 'va_list'
./include/linux/kernel.h:121: error: expected declaration specifiers or '...' before 'va_list'
./include/linux/kernel.h:125: error: expected declaration specifiers or '...' before 'va_list'
./include/linux/kernel.h:132: error: expected declaration specifiers or '...' before 'va_list'
./include/linux/kernel.h:147: error: expected declaration specifiers or '...' before 'va_list'
  HOSTCC  scripts/mod/mk_elfconfig
make[1]: *** [arch/i386/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
  HOSTCC  scripts/kallsyms
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/pnmtologo
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
  HOSTCC  scripts/conmakehash
  HOSTCC  scripts/bin2c
==> ERROR: Build Failed.  Aborting...

and

make[1]: Entering directory `/usr/src/linux-2.6.20-ck'
  CC [M]  /var/abs/local/acpi4asus/acpi4asus/driver/asus-laptop.o
In file included from /var/abs/local/acpi4asus/acpi4asus/driver/asus-laptop.c:43:
./include/linux/kernel.h:10:20: error: stdarg.h: No such file or directory
In file included from /var/abs/local/acpi4asus/acpi4asus/driver/asus-laptop.c:43:
./include/linux/kernel.h:117: error: expected declaration specifiers or '...' before 'va_list'
./include/linux/kernel.h:121: error: expected declaration specifiers or '...' before 'va_list'
./include/linux/kernel.h:125: error: expected declaration specifiers or '...' before 'va_list'
./include/linux/kernel.h:132: error: expected declaration specifiers or '...' before 'va_list'
./include/linux/kernel.h:147: error: expected declaration specifiers or '...' before 'va_list'
In file included from ./include/acpi/acpi.h:61,
                 from ./include/linux/acpi.h:37,
                 from ./include/acpi/acpi_drivers.h:29,
                 from /var/abs/local/acpi4asus/acpi4asus/driver/asus-laptop.c:53:
./include/acpi/acpiosxf.h:260: error: expected declaration specifiers or '...' before 'va_list'
make[2]: *** [/var/abs/local/acpi4asus/acpi4asus/driver/asus-laptop.o] Error 1
make[1]: *** [_module_/var/abs/local/acpi4asus/acpi4asus/driver] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.20-ck'
make: *** [default] Error 2

Do you have a clue what is wrong here ?

Thanks.

Last edited by qdlaty (2007-03-03 17:17:51)

Offline

#2 2007-03-03 15:48:07

Valheru
Member
Registered: 2005-02-06
Posts: 49

Re: [SOLVED] Problem with recompilation of gcc (and kernel too)

No, and neither do the devs for some f*cked up reason. It's totally screwed up my week. It's the same shit I left Gentoo for, and it sucks to find it in Arch as well.

Offline

#3 2007-03-03 16:13:44

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [SOLVED] Problem with recompilation of gcc (and kernel too)

http://bugs.archlinux.org/task/6506

Valheru - please check your facts before posting. That bug report was raised from a forum thread in which you posted.

Offline

#4 2007-03-03 16:23:44

Valheru
Member
Registered: 2005-02-06
Posts: 49

Re: [SOLVED] Problem with recompilation of gcc (and kernel too)

I know that full well. The post that it was solved was only added yesterday, I missed it. Sorry for that. Still sucks that it was b0rked tongue

Last edited by Valheru (2007-03-03 16:23:59)

Offline

#5 2007-03-03 17:17:25

qdlaty
Member
Registered: 2005-04-18
Posts: 32

Re: [SOLVED] Problem with recompilation of gcc (and kernel too)

Seem to me I've to answer my post myself.

new qt-enhanced 3,3,8 from kdemod causing this problem by adding it's part to LIBRARY_PATH. Simple
cool

unset LIBRARY_PATH

does the trick.

Big thanks for people from Linux From Scratch!

EDIT:
But the best solution is to copy qt.profile from new qt-enhanced package over /etc/profile.d/qt.sh

Last edited by qdlaty (2007-03-03 17:34:18)

Offline

Board footer

Powered by FluxBB