Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
fail during boot strap [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
marcus0263
Apprentice
Apprentice


Joined: 18 Mar 2005
Posts: 177
Location: Seattle

PostPosted: Sat Sep 23, 2006 12:36 am    Post subject: fail during boot strap [solved] Reply with quote

I'm boot strapping an AMD64 Opteron and while attempting to emerge usb I'm getting this -

Code:
/usb.o
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -Werror -march=opteron -O2 -pipe -Wall -MT usb.lo -MD -MP -MF .deps/usb.Tpo -c usb.c -o usb.o >/dev/null 2>&1
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -Werror -march=opteron -O2 -pipe -Wall -MT error.lo -MD -MP -MF .deps/error.Tpo -c error.c  -fPIC -DPIC -o .libs/error.o
if /bin/sh ./libtool --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H   -I.  -Werror  -march=opteron -O2 -pipe -Wall -MT descriptors.lo -MD -MP -MF ".deps/descriptors.Tpo" -c -o descriptors.lo descriptors.c; \
then mv -f ".deps/descriptors.Tpo" ".deps/descriptors.Plo"; else rm -f ".deps/descriptors.Tpo"; exit 1; fi
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -Werror -march=opteron -O2 -pipe -Wall -MT error.lo -MD -MP -MF .deps/error.Tpo -c error.c -o error.o >/dev/null 2>&1
if /bin/sh ./libtool --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H   -I.  -Werror  -march=opteron -O2 -pipe -Wall -MT linux.lo -MD -MP -MF ".deps/linux.Tpo" -c -o linux.lo linux.c; \
then mv -f ".deps/linux.Tpo" ".deps/linux.Plo"; else rm -f ".deps/linux.Tpo"; exit 1; fi
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -Werror -march=opteron -O2 -pipe -Wall -MT linux.lo -MD -MP -MF .deps/linux.Tpo -c linux.c  -fPIC -DPIC -o .libs/linux.o
cc1: warnings being treated as errors
linux.c: In function 'usb_os_determine_children':
linux.c:568: warning: format '%d' expects type 'int', but argument 3 has type 'long unsigned int'
make[2]: *** [linux.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -Werror -march=opteron -O2 -pipe -Wall -MT descriptors.lo -MD -MP -MF .deps/descriptors.Tpo -c descriptors.c  -fPIC -DPIC -o .libs/descriptors.o
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -Werror -march=opteron -O2 -pipe -Wall -MT descriptors.lo -MD -MP -MF .deps/descriptors.Tpo -c descriptors.c -o descriptors.o >/dev/null 2>&1
make[2]: Leaving directory `/var/tmp/portage/libusb-0.1.11/work/libusb-0.1.11'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/libusb-0.1.11/work/libusb-0.1.11'
make: *** [all] Error 2

!!! ERROR: dev-libs/libusb-0.1.11 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  libusb-0.1.11.ebuild, line 35:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.


Here's my info -

Code:
livecd portage # emerge --info                                                                                                                         
Portage 2.1.1 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r7 x86_64 AMD Opteron(tm) Processor 246
Gentoo Base System version 1.12.5
Last Sync: Thu, 21 Sep 2006 06:50:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.6.3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=opteron -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-march=opteron -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.f5net.com"
LINGUAS=""
MAKEOPTS="-j2"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://gentoo.f5net.com/gentoo-portage"
USE="amd64 bash-completion berkdb bitmap-fonts bzip2 bzlib cli crypt cups dbus dri elibc_glibc fortran gdbm gpm hal input_devices_keyboard input_devices_mouse ipv6 isdnlog kernel_linux libg++ ncurses nls nosound nptl nptlonly pam pcre perl ppds pppd python readline reflection session spl ssl tcpd truetype-fonts type1-fonts udev unicode userland_GNU userlocales video_cards_nvidia xorg zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


Last edited by marcus0263 on Sat Sep 23, 2006 1:45 am; edited 1 time in total
Back to top
View user's profile Send private message
psycepa
Veteran
Veteran


Joined: 27 Dec 2004
Posts: 1637
Location: Poland

PostPosted: Sat Sep 23, 2006 12:59 am    Post subject: Reply with quote

Hi
as for your error I have found:
Quote:

sizeof() returns a size_t type. so I suggest to use %z in the
format string instead and you should be fine.

the cast also works, as long as the number fits into an int,
which should be alwas true. personaly I think %z is cleaner.
but I have no idea if all plattforms support that format.


so you would have to change the sources, probabily in the line pointed out by eror

but
there are two things:
first - there is a newer version of libusb - 0.1.12, if you download the ebuild and sources maby you will be able to use it instead of 0.1.11

second - for god sake why are you boostrapping? isn't there a stage3 package for you arch?
it is much easier/quicker and less problematic to install from the stage3 and then emerge -e system && emerge -e world, the result is the same...
_________________
RLUNo. 376073
bo czytac, to trzeba ze zrozumieniem (c) by psycepa
"nigdy nie kloc sie z glupcem, najpierw sprowadzi cie do swojego poziomu a potem pokona doswiadczeniem"
"Life is complex. It has its real and imaginary part."
Back to top
View user's profile Send private message
marcus0263
Apprentice
Apprentice


Joined: 18 Mar 2005
Posts: 177
Location: Seattle

PostPosted: Sat Sep 23, 2006 1:25 am    Post subject: Reply with quote

psycepa wrote:
Hi
as for your error I have found:
Quote:

sizeof() returns a size_t type. so I suggest to use %z in the
format string instead and you should be fine.

the cast also works, as long as the number fits into an int,
which should be alwas true. personaly I think %z is cleaner.
but I have no idea if all plattforms support that format.


so you would have to change the sources, probabily in the line pointed out by eror

but
there are two things:
first - there is a newer version of libusb - 0.1.12, if you download the ebuild and sources maby you will be able to use it instead of 0.1.11

second - for god sake why are you boostrapping? isn't there a stage3 package for you arch?
it is much easier/quicker and less problematic to install from the stage3 and then emerge -e system && emerge -e world, the result is the same...


Yep, it's usually the simple things, it worked, Thanx

As t why I do a stage one bootstrap -

Well I attribute it to like building a house, build a good foundation the way I want too, it works. As to the time, well I've done the stage 3 gig and frankly it's like taking a bath in sand. It works and it really doesn't save that much time. I always do a stage 1 on x86 and have had great luck, basically it just works for me. I guess it's nothing more than to each their own, it suits me.

Cheers
Back to top
View user's profile Send private message
psycepa
Veteran
Veteran


Joined: 27 Dec 2004
Posts: 1637
Location: Poland

PostPosted: Sat Sep 23, 2006 1:35 am    Post subject: Reply with quote

well AFAIAO stage3 takes much less time
but it is just as you say :wink:
de gustibus non est disputandum
:wink:
although there are good and better ways :)
greetingz and good luck :)
_________________
RLUNo. 376073
bo czytac, to trzeba ze zrozumieniem (c) by psycepa
"nigdy nie kloc sie z glupcem, najpierw sprowadzi cie do swojego poziomu a potem pokona doswiadczeniem"
"Life is complex. It has its real and imaginary part."
Back to top
View user's profile Send private message
marcus0263
Apprentice
Apprentice


Joined: 18 Mar 2005
Posts: 177
Location: Seattle

PostPosted: Sat Sep 23, 2006 1:49 am    Post subject: Reply with quote

psycepa wrote:
well AFAIAO stage3 takes much less time
but it is just as you say :wink:
de gustibus non est disputandum
:wink:
although there are good and better ways :)
greetingz and good luck :)


Like I said, it works for me. I basically would rather build a house from the ground up than buy one just to rebuild it ;-)

Again, the time saved with a stage 3 then rebuild it........

I like my stage one's

Nostrovia!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 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