Gentoo Archives: gentoo-embedded

From: Lorenzo Marussi <lorenzo@×××××××××××××××.it>
To: gentoo-embedded@l.g.o
Subject: [gentoo-embedded] emerge iscitarget error
Date: Tue, 13 Mar 2007 22:05:17
Message-Id: 99bd8798f0fe667a9bafcdb6dc0042fa@aurora
1 Hi list.
2
3 I'd like to have a small uclibc-gentoo system with iscsi target software
4 iscsi enterprise http://iscsitarget.sourceforge.net/
5 It's in portage and it's name is iscsitarget.
6 It's x86 and amd64 masked, but with amd64 and x86 glibc-based gentoo compile
7 fine and runs very well.
8
9 But when I try to compile it in my development system I get this error:
10
11
12 * Determining the location of the kernel source code
13 * Found kernel source directory:
14 * /usr/src/linux
15 * Found sources for kernel version:
16 * 2.6.16-gentoo-r13
17 * Checking for suitable kernel configuration options...
18 [
19 ok ]
20 >>> Unpacking source...
21 >>> Unpacking iscsitarget-0.4.14.tar.gz to
22 /var/tmp/portage/sys-block/iscsitarget-0.4.14/work
23 * Applying iscsitarget-0.4.13-usrbuildfix.patch ...
24 [
25 ok ]
26 * Applying iscsitarget-0.4.14-isns-compilefix.patch ...
27 [
28 ok ]
29 * Converting iscsitarget-0.4.14/Makefile to use M= instead of SUBDIRS= ...
30 [
31 ok ]
32 >>> Source unpacked.
33 >>> Compiling source in
34 /var/tmp/portage/sys-block/iscsitarget-0.4.14/work/iscsitarget-0.4.14 ...
35 * Building userspace
36 make -C usr
37 make[1]: Entering directory
38 `/var/tmp/portage/sys-block/iscsitarget-0.4.14/work/iscsitarget-0.4.14/usr'
39 cc -march=prescott -Os -pipe -fomit-frame-pointer -mmmx -Wall
40 -Wstrict-prototypes -I../include -c -o ietd.o ietd.c
41 cc -march=prescott -Os -pipe -fomit-frame-pointer -mmmx -Wall
42 -Wstrict-prototypes -I../include -c -o iscsid.o iscsid.c
43 cc -march=prescott -Os -pipe -fomit-frame-pointer -mmmx -Wall
44 -Wstrict-prototypes -I../include -c -o conn.o conn.c
45 cc -march=prescott -Os -pipe -fomit-frame-pointer -mmmx -Wall
46 -Wstrict-prototypes -I../include -c -o session.o session.c
47 cc -march=prescott -Os -pipe -fomit-frame-pointer -mmmx -Wall
48 -Wstrict-prototypes -I../include -c -o target.o target.c
49 cc -march=prescott -Os -pipe -fomit-frame-pointer -mmmx -Wall
50 -Wstrict-prototypes -I../include -c -o message.o message.c
51 cc -march=prescott -Os -pipe -fomit-frame-pointer -mmmx -Wall
52 -Wstrict-prototypes -I../include -c -o ctldev.o ctldev.c
53 cc -march=prescott -Os -pipe -fomit-frame-pointer -mmmx -Wall
54 -Wstrict-prototypes -I../include -c -o log.o log.c
55 cc -march=prescott -Os -pipe -fomit-frame-pointer -mmmx -Wall
56 -Wstrict-prototypes -I../include -c -o chap.o chap.c
57 cc -march=prescott -Os -pipe -fomit-frame-pointer -mmmx -Wall
58 -Wstrict-prototypes -I../include -c -o event.o event.c
59 cc -march=prescott -Os -pipe -fomit-frame-pointer -mmmx -Wall
60 -Wstrict-prototypes -I../include -c -o param.o param.c
61 cc -march=prescott -Os -pipe -fomit-frame-pointer -mmmx -Wall
62 -Wstrict-prototypes -I../include -c -o plain.o plain.c
63 cc -march=prescott -Os -pipe -fomit-frame-pointer -mmmx -Wall
64 -Wstrict-prototypes -I../include -c -o isns.o isns.c
65 isns.c: In function 'isns_scn_register':
66 isns.c:259: error: expected expression before '{' token
67 make[1]: *** [isns.o] Error 1
68 make[1]: Leaving directory
69 `/var/tmp/portage/sys-block/iscsitarget-0.4.14/work/iscsitarget-0.4.14/usr'
70 make: *** [progs] Error 2
71
72 !!! ERROR: sys-block/iscsitarget-0.4.14 failed.
73 Call stack:
74 ebuild.sh, line 1614: Called dyn_compile
75 ebuild.sh, line 971: Called qa_call 'src_compile'
76 environment, line 4039: Called src_compile
77 iscsitarget-0.4.14.ebuild, line 33: Called die
78
79 !!! failed to build userspace
80 !!! If you need support, post the topmost build error, and the call stack if
81 relevant.
82 !!! A complete build log is located at
83 '/var/tmp/portage/sys-block/iscsitarget-0.4.14/temp/build.log'.
84
85
86
87 this is emerge --info:
88
89 Portage 2.1.2.2 (uclibc/x86, gcc-4.1.1, uclibc-0.9.28.1-r0, 2.6.20-gentoo
90 i686)
91 =================================================================
92 System uname: 2.6.20-gentoo i686 Intel(R) Pentium(R) D CPU 2.66GHz
93 Gentoo Base System release 1.12.9
94 Timestamp of tree: Tue, 13 Mar 2007 13:50:01 +0000
95 dev-lang/python: 2.4.3-r4
96 dev-python/pycrypto: 2.0.1-r5
97 sys-apps/sandbox: 1.2.17
98 sys-devel/autoconf: 2.61
99 sys-devel/automake: 1.9.6-r2, 1.10
100 sys-devel/binutils: 2.16.1-r3
101 sys-devel/gcc-config: 1.3.14
102 sys-devel/libtool: 1.5.22
103 virtual/os-headers: 2.6.17-r2
104 ACCEPT_KEYWORDS="x86"
105 AUTOCLEAN="yes"
106 CBUILD="i686-gentoo-linux-uclibc"
107 CFLAGS="-march=prescott -Os -pipe -fomit-frame-pointer -mmmx"
108 CHOST="i686-gentoo-linux-uclibc"
109 CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
110 /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
111 CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
112 CXXFLAGS="-march=prescott -Os -pipe -fomit-frame-pointer -mmmx"
113 DISTDIR="/usr/portage/distfiles"
114 FEATURES="autoconfig buildpkg distlocks metadata-transfer nodoc noinfo noman
115 sandbox sfperms strict"
116 GENTOO_MIRRORS="http://distfiles.gentoo.org
117 http://distro.ibiblio.org/pub/linux/distributions/gentoo"
118 PKGDIR="/usr/portage/packages"
119 PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
120 --compress --force --whole-file --delete --delete-after --stats
121 --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages
122 --filter=H_**/files/digest-*"
123 PORTAGE_TMPDIR="/var/tmp"
124 PORTDIR="/usr/portage"
125 SYNC="rsync://rsync.gentoo.org/gentoo-portage"
126 USE="bitmap-fonts cli cracklib dri midi minimal mmx ncurses nodoc noinfo
127 noman pcre readline reflection session spl truetype-fonts type1-fonts uclibc
128 x86 xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop
129 empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw
130 multi null plug rate route share shm softvol" ELIBC="uclibc"
131 INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad
132 cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
133 USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l"
134 Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS,
135 LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
136 PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
137
138
139
140 this is make.conf
141
142
143 USE="minimal mmx noman nodoc noinfo"
144 CHOST="i686-gentoo-linux-uclibc"
145 CFLAGS="-march=prescott -Os -pipe -fomit-frame-pointer -mmmx"
146 CXXFLAGS="${CFLAGS}"
147 FEATURES="buildpkg"
148
149 #VIDEO_CARDS="chips"
150 UCLIBC_CPU="PENTIUM4"
151
152
153
154 Any suggestion?
155
156 Thanks.
157
158 Lorenzo Marussi
159
160
161
162
163 --
164 gentoo-embedded@g.o mailing list