Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Genkernel - integer expression expected
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
joeyjoey
n00b
n00b


Joined: 25 Jun 2007
Posts: 12

PostPosted: Wed Nov 14, 2007 11:51 pm    Post subject: Genkernel - integer expression expected Reply with quote

I have been trying to upgrade to genkernel 2.6.22-gentoo-r9 and am getting the following error.

Before doing this I have used eselect to to point to the correct kernel. I have tried uninstalling and reinstalling the kernel in case there was an issue but this did not help.

Code:
 # genkernel all
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected

/usr/share/genkernel/gen_funcs.sh: line 46: ${LOGFILE}: ambiguous redirect
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_compile.sh: line 219: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
/usr/share/genkernel/gen_funcs.sh: line 151: ${LOGFILE}: ambiguous redirect
/usr/share/genkernel/gen_compile.sh: line 228: ${LOGFILE}: ambiguous redirect
/usr/share/genkernel/gen_funcs.sh: line 46: ${LOGFILE}: ambiguous redirect
/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected

/usr/share/genkernel/gen_funcs.sh: line 96: [: : integer expression expected
Back to top
View user's profile Send private message
nativemad
Developer
Developer


Joined: 30 Aug 2004
Posts: 918
Location: Switzerland

PostPosted: Fri Nov 16, 2007 3:44 pm    Post subject: Reply with quote

hi

etc-update! Or to be more precise, update your /etc/genkernel.conf! :wink:

Cheers
Back to top
View user's profile Send private message
joeyjoey
n00b
n00b


Joined: 25 Jun 2007
Posts: 12

PostPosted: Fri Nov 16, 2007 11:47 pm    Post subject: Reply with quote

nativemad wrote:
hi

etc-update! Or to be more precise, update your /etc/genkernel.conf! :wink:

Cheers


OK - I have run etc-update and then tried genkernel all and the same error message appeared.

I have no idea how to update my /etc/genkernel.conf because I do not know what the problem is.

I have also tried to run genkernel on my older genkernels but get the same error message.

What to do next?
Back to top
View user's profile Send private message
hema
n00b
n00b


Joined: 11 Apr 2007
Posts: 50
Location: Vlissingen, Netherlands

PostPosted: Sat Nov 17, 2007 7:40 am    Post subject: Reply with quote

I have the same problem. How can this be possible in such an important program?
I just follow the instructions from the handbook, but that is not enough.

Sometimes I'm beginning to get a bit tired of gentoo, to many simple things that go wrong.

https://forums.gentoo.org/viewtopic-t-616010-highlight-hema.html
_________________
Computers = patience needed
Computers + gentoo = double patience needed

Met groeten uit Vlissingen
Henk
Back to top
View user's profile Send private message
nativemad
Developer
Developer


Joined: 30 Aug 2004
Posts: 918
Location: Switzerland

PostPosted: Sun Nov 18, 2007 10:45 am    Post subject: Reply with quote

i could almost swear that i just updated genkernel.conf, when i had this last week on one box.
Just check if there is any /etc/._cfg000_genkernel.conf left and if you havn't manually modified /etc/genkernel.conf, just move the ._cfg-one there! :wink:
As genkernel is dependant on the kernel, also check that /usr/src/linux ist pointing to the recent Kernel. If you don't like to upgrade the Kernel, you could try to downgrade genkernel... :wink:

Hope that helps...
Back to top
View user's profile Send private message
hema
n00b
n00b


Joined: 11 Apr 2007
Posts: 50
Location: Vlissingen, Netherlands

PostPosted: Sun Nov 18, 2007 11:43 am    Post subject: Reply with quote

nativemad wrote:
i could almost swear that i just updated genkernel.conf, when i had this last week on one box.
Just check if there is any /etc/._cfg000_genkernel.conf left and if you havn't manually modified /etc/genkernel.conf, just move the ._cfg-one there! :wink:
As genkernel is dependant on the kernel, also check that /usr/src/linux ist pointing to the recent Kernel. If you don't like to upgrade the Kernel, you could try to downgrade genkernel... :wink:

Hope that helps...


Could you be more precise on what to change in genkernel.conf.
My listing is at the end.

When running etc-update I get all kind of questions I don't understand


Code:
# Genkernel Configuration File

# ===========GENKERNEL BASIC CONFIGURATION=============

# Run 'make menuconfig' before compiling this kernel?
MENUCONFIG="no"

# Run 'make clean' before compilation?
# If set to NO, implies MRPROPER WILL NOT be run
# Also, if clean is NO, it won't copy over any configuration
# file, it will use what's there.
CLEAN="yes"

# Run 'make mrproper' before configuration/compilation?
MRPROPER="yes"

# Copy bootsplash into the initrd image?
BOOTSPLASH="yes"

# Override the arch detection?
# ARCH_OVERRIDE="x86"

# Mount BOOTDIR automatically if it isn't mounted?
MOUNTBOOT="yes"

# Save the new configuration in /etc/kernels upon
# successfull compilation
SAVE_CONFIG="yes"

# Use Color output in Genkernel?
USECOLOR="yes"

# Add new kernel to grub?
# BOOTLOADER="grub"

# Clear build cache dir
# CLEAR_CACHE_DIR="yes"

# Genkernel uses an independent configuration for MAKEOPTS, and does not source
# /etc/make.conf . You can override the default setting by uncommenting and
# tweaking the following line. Default setting is set up by
# ${GK_SHARE}/${ARCH_OVERRIDE}/config.sh . The recommended value for -j
# argument is: <number of processors>*<number of cores per processor>+1
# MAKEOPTS="-j2"

# =========GENKERNEL LOCATION CONFIGURATION============
# Variables:
#   %%ARCH%%  - Final determined architecture
#   %%CACHE%% - Final determined cache location

# Set the boot directory, default is /boot
#BOOTDIR="/boot"

# Default share directory location
GK_SHARE="/usr/share/genkernel"

# Location of helper-scripts
GK_BIN="${GK_SHARE}"
# Location of the default cache
CACHE_DIR="/var/cache/genkernel/%%ARCH%%"
# Log output file
DEBUGFILE="/var/log/genkernel.log"
# Debug Level
DEBUGLEVEL=1

# Default location of kernel source
DEFAULT_KERNEL_SOURCE="/usr/src/linux"
# Default kernel config (only use to override using
# %%ARCH%%/kernel-config-${VER}.${PAT} !)
# DEFAULT_KERNEL_CONFIG="${GK_SHARE}/%%ARCH%%/kernel-config"

# Configuration file for busybox
BUSYBOX_CONFIG="${GK_SHARE}/%%ARCH%%/busy-config"
# BusyBox Version
BUSYBOX_VER="1.1.3+gentoo"
# Busybox bin-cache location, to store pre-compiled busybox
# binary is just a bzip2 busybox executable
BUSYBOX_BINCACHE="%%CACHE%%/busybox-${BUSYBOX_VER}-%%ARCH%%.bz2"
# Location of BusyBox source tarball
BUSYBOX_SRCTAR="${GK_SHARE}/pkg/busybox-${BUSYBOX_VER}.tar.bz2"
# Directory created after busybox tarball is extracted
BUSYBOX_DIR="busybox-${BUSYBOX_VER}"

MODULE_INIT_TOOLS_VER="0.9.15-pre4"
MODULE_INIT_TOOLS_SRCTAR="${GK_SHARE}/pkg/module-init-tools-${MODULE_INIT_TOOLS_VER}.tar.bz2"
MODULE_INIT_TOOLS_DIR="module-init-tools-${MODULE_INIT_TOOLS_VER}"
MODULE_INIT_TOOLS_BINCACHE="%%CACHE%%/insmod-%%ARCH%%-static-2.6.bz2"

MODUTILS_VER="2.4.26"
MODUTILS_SRCTAR="${GK_SHARE}/pkg/modutils-${MODUTILS_VER}.tar.bz2"
MODUTILS_DIR="modutils-${MODUTILS_VER}"
MODUTILS_BINCACHE="%%CACHE%%/insmod-%%ARCH%%-static-2.4.bz2"

DIETLIBC_VER="0.27"
DIETLIBC_SRCTAR="${GK_SHARE}/pkg/dietlibc-${DIETLIBC_VER}.tar.bz2"
DIETLIBC_DIR="dietlibc-${DIETLIBC_VER}"
DIETLIBC_BINCACHE="%%CACHE%%/dietlibc-${DIETLIBC_VER}-%%ARCH%%.tar.bz2"
DIETLIBC_BINCACHE_TEMP="%%CACHE%%/dietlibc-${DIETLIBC_VER}-%%ARCH%%-tempdir"

DEVFSD_VER="1.3.25-dietlibc-kernel25"
DEVFSD_SRCTAR="${GK_SHARE}/pkg/devfsd-${DEVFSD_VER}.tar.bz2"
DEVFSD_DIR="devfsd"
DEVFSD_BINCACHE="%%CACHE%%/devfsd-${DEVFSD_VER}-%%ARCH%%.bz2"
DEVFSD_CONF_BINCACHE="%%CACHE%%/devfsd-conf-${DIETLIBC_VER}-%%ARCH%%.bz2"

DEVICE_MAPPER_VER="1.02.07"
DEVICE_MAPPER_DIR="device-mapper.${DEVICE_MAPPER_VER}"
DEVICE_MAPPER_SRCTAR="${GK_SHARE}/pkg/device-mapper.${DEVICE_MAPPER_VER}.tgz"
DEVICE_MAPPER_BINCACHE="%%CACHE%%/device-mapper-${DEVICE_MAPPER_VER}-%%ARCH%%.tar.bz2"

LVM2_VER="2.02.05"
LVM2_DIR="LVM2.${LVM2_VER}"
LVM2_SRCTAR="${GK_SHARE}/pkg/LVM2.${LVM2_VER}.tgz"
LVM2_BINCACHE="%%CACHE%%/LVM2.${LVM2_VER}-%%ARCH%%.tar.bz2"

DMRAID_VER="1.0.0.rc13"
DMRAID_DIR="dmraid/${DMRAID_VER}"
DMRAID_SRCTAR="${GK_SHARE}/pkg/dmraid-${DMRAID_VER}.tar.bz2"
DMRAID_BINCACHE="%%CACHE%%/dmraid-${DMRAID_VER}-%%ARCH%%.tar.bz2"

# Kernel Version Compatibility
# (from http://www.am-utils.org/project-unionfs.html)
UNIONFS_VER="1.5pre-cvs200701042308"
UNIONFS_DIR="unionfs-${UNIONFS_VER}"
UNIONFS_SRCTAR="${GK_SHARE}/pkg/unionfs-${UNIONFS_VER}.tar.gz"
UNIONFS_BINCACHE="%%CACHE%%/unionfs-${UNIONFS_VER}-tools-%%ARCH%%.tar.bz2"
UNIONFS_MODULES_BINCACHE="%%CACHE%%/unionfs-${UNIONFS_VER}-modules-%%KV%%-%%ARCH%%.tar.bz2"

E2FSPROGS_VER="1.38"
E2FSPROGS_DIR="e2fsprogs-${E2FSPROGS_VER}"
E2FSPROGS_SRCTAR="${GK_SHARE}/pkg/e2fsprogs-${E2FSPROGS_VER}.tar.gz"
BLKID_BINCACHE="%%CACHE%%/blkid-${E2FSPROGS_VER}-%%ARCH%%.bz2"

SUSPEND_VER="0.5"
SUSPEND_DIR="suspend-${SUSPEND_VER}"
SUSPEND_SRCTAR="${GK_SHARE}/pkg/suspend-${SUSPEND_VER}.tar.gz"
SUSPEND_BINCACHE="%%CACHE%%/suspend-${SUSPEND_VER}-%%ARCH%%.tar.bz2"


_________________
Computers = patience needed
Computers + gentoo = double patience needed

Met groeten uit Vlissingen
Henk
Back to top
View user's profile Send private message
nativemad
Developer
Developer


Joined: 30 Aug 2004
Posts: 918
Location: Switzerland

PostPosted: Sun Nov 18, 2007 12:05 pm    Post subject: Reply with quote

Quote:
Could you be more precise on what to change in genkernel.conf.
My listing is at the end.

To just say the truth, i don't know! :P
If you don't changed anything in genkernel.conf manually (this is normally the case :wink: ), then just have a look which is the last version of that config-file by an "ls -la /etc/*genkernel.conf*". If there is more than one ._cfg in the listing, take the one with the highest number and do a "cp /etc/genkernel.conf /etc/backup_genkernel.conf" for keeping a backup. And then just copy the latest file there. For example "cp /etc/._cfg004_genkernel.conf /etc/genkernel.conf"

man etc-update
http://gentoo-wiki.com/HOWTO_etc-update
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3&chap=4
have a good reading! :wink:
Back to top
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Mon Nov 19, 2007 10:11 am    Post subject: Reply with quote

Moved from Kernel & Hardware to Duplicate Threads, refer to topic "Problem with rebuilding kernel".
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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