Hi list.

I'd like to have a small uclibc-gentoo system with iscsi target software
iscsi enterprise http://iscsitarget.sourceforge.net/ 
It's in portage and it's name is iscsitarget.
It's x86 and amd64 masked, but with amd64 and x86 glibc-based gentoo compile
fine and runs very well.

But when I try to compile it in my development system I get this error:


 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.16-gentoo-r13
 * Checking for suitable kernel configuration options...                   
                                                                           [
ok ]
>>> Unpacking source...
>>> Unpacking iscsitarget-0.4.14.tar.gz to
/var/tmp/portage/sys-block/iscsitarget-0.4.14/work
 * Applying iscsitarget-0.4.13-usrbuildfix.patch ...                       
                                                                           [
ok ]
 * Applying iscsitarget-0.4.14-isns-compilefix.patch ...                   
                                                                           [
ok ]
 * Converting iscsitarget-0.4.14/Makefile to use M= instead of SUBDIRS= ...
                                                                           [
ok ]
>>> Source unpacked.
>>> Compiling source in
/var/tmp/portage/sys-block/iscsitarget-0.4.14/work/iscsitarget-0.4.14 ...
 * Building userspace
make -C usr
make[1]: Entering directory
`/var/tmp/portage/sys-block/iscsitarget-0.4.14/work/iscsitarget-0.4.14/usr'
cc  -march=prescott -Os -pipe -fomit-frame-pointer -mmmx -Wall
-Wstrict-prototypes -I../include   -c -o ietd.o ietd.c
cc  -march=prescott -Os -pipe -fomit-frame-pointer -mmmx -Wall
-Wstrict-prototypes -I../include   -c -o iscsid.o iscsid.c
cc  -march=prescott -Os -pipe -fomit-frame-pointer -mmmx -Wall
-Wstrict-prototypes -I../include   -c -o conn.o conn.c
cc  -march=prescott -Os -pipe -fomit-frame-pointer -mmmx -Wall
-Wstrict-prototypes -I../include   -c -o session.o session.c
cc  -march=prescott -Os -pipe -fomit-frame-pointer -mmmx -Wall
-Wstrict-prototypes -I../include   -c -o target.o target.c
cc  -march=prescott -Os -pipe -fomit-frame-pointer -mmmx -Wall
-Wstrict-prototypes -I../include   -c -o message.o message.c
cc  -march=prescott -Os -pipe -fomit-frame-pointer -mmmx -Wall
-Wstrict-prototypes -I../include   -c -o ctldev.o ctldev.c
cc  -march=prescott -Os -pipe -fomit-frame-pointer -mmmx -Wall
-Wstrict-prototypes -I../include   -c -o log.o log.c
cc  -march=prescott -Os -pipe -fomit-frame-pointer -mmmx -Wall
-Wstrict-prototypes -I../include   -c -o chap.o chap.c
cc  -march=prescott -Os -pipe -fomit-frame-pointer -mmmx -Wall
-Wstrict-prototypes -I../include   -c -o event.o event.c
cc  -march=prescott -Os -pipe -fomit-frame-pointer -mmmx -Wall
-Wstrict-prototypes -I../include   -c -o param.o param.c
cc  -march=prescott -Os -pipe -fomit-frame-pointer -mmmx -Wall
-Wstrict-prototypes -I../include   -c -o plain.o plain.c
cc  -march=prescott -Os -pipe -fomit-frame-pointer -mmmx -Wall
-Wstrict-prototypes -I../include   -c -o isns.o isns.c
isns.c: In function 'isns_scn_register':
isns.c:259: error: expected expression before '{' token
make[1]: *** [isns.o] Error 1
make[1]: Leaving directory
`/var/tmp/portage/sys-block/iscsitarget-0.4.14/work/iscsitarget-0.4.14/usr'
make: *** [progs] Error 2

!!! ERROR: sys-block/iscsitarget-0.4.14 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 4039:   Called src_compile
  iscsitarget-0.4.14.ebuild, line 33:   Called die

!!! failed to build userspace
!!! If you need support, post the topmost build error, and the call stack if
relevant.
!!! A complete build log is located at
'/var/tmp/portage/sys-block/iscsitarget-0.4.14/temp/build.log'.



this is emerge --info:

Portage 2.1.2.2 (uclibc/x86, gcc-4.1.1, uclibc-0.9.28.1-r0, 2.6.20-gentoo
i686)
=================================================================
System uname: 2.6.20-gentoo i686 Intel(R) Pentium(R) D  CPU 2.66GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Tue, 13 Mar 2007 13:50:01 +0000
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.61
sys-devel/automake:  1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-gentoo-linux-uclibc"
CFLAGS="-march=prescott -Os -pipe -fomit-frame-pointer -mmmx"
CHOST="i686-gentoo-linux-uclibc"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-march=prescott -Os -pipe -fomit-frame-pointer -mmmx"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg distlocks metadata-transfer nodoc noinfo noman
sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo";
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
--compress --force --whole-file --delete --delete-after --stats
--timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages
--filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="bitmap-fonts cli cracklib dri midi minimal mmx ncurses nodoc noinfo
noman pcre readline reflection session spl truetype-fonts type1-fonts uclibc
x86 xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop
empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw
multi null plug rate route share shm softvol" ELIBC="uclibc"
INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad
cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS,
LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY



this is make.conf


USE="minimal mmx noman nodoc noinfo"
CHOST="i686-gentoo-linux-uclibc"
CFLAGS="-march=prescott -Os -pipe -fomit-frame-pointer -mmmx"
CXXFLAGS="${CFLAGS}"
FEATURES="buildpkg"

#VIDEO_CARDS="chips"
UCLIBC_CPU="PENTIUM4"



Any suggestion?

Thanks.

Lorenzo Marussi




--
[email protected] mailing list

Reply via email to