Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 120796 - ncurses build fails
Summary: ncurses build fails
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-29 00:35 UTC by inventore1
Modified: 2006-01-29 00:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description inventore1 2006-01-29 00:35:38 UTC
when i try to compile ncurses, it gives me an error:

x86_64-pc-linux-gnu-ranlib ../lib/libncurses++.a
g++: : linker input file unused because linking not done
/usr/bin/g++  -o demo ../obj_s/demo.o -L../lib -lncurses++ -L../lib -lform -lmenu -lpanel -lncurses  -Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s, -Bdirect -ldl  -Wl,-rpath,/var/tmp/portage/ncurses-5.5-r1/work/narrowc/lib  -I../c++ -I../include -I/var/tmp/portage/ncurses-5.5-r1/work/ncurses-5.5/c++ -DHAVE_CONFIG_H -I/var/tmp/portage/ncurses-5.5-r1/work/ncurses-5.5/c++/../include -I. -I../include  -D_GNU_SOURCE -DNDEBUG -O3 -march=athlon64 -fomit-frame-pointer -funroll-all-loops -fpeel-loops -funswitch-loops -ftree-vectorize -pipe -fweb -frename-registers -ftracer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays -fvisibility-inlines-hidden -Wl, -O1  -fPIC
g++: unrecognized option '-s,'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.0-beta20060127/../../../../x86_64-pc-linux-gnu/bin/ld: : No such file: No such file or directory
collect2: ld returned 1 exit status
make[1]: *** [demo] Error 1
make[1]: Leaving directory `/var/tmp/portage/ncurses-5.5-r1/work/narrowc/c++'
make: *** [all] Error 2

here is the emerge info

Portage 2.1_pre4 (default-linux/amd64/2005.1, gcc-4.1.0-beta20060127, glibc-2.3.90.20060121-r0, 2.6.14-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.14-gentoo-r2 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5-r2
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16.91.0.5
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=athlon64 -fomit-frame-pointer -funroll-all-loops -fpeel-loops -funswitch-loops -ftree-vectorize -pipe -fweb -frename-registers -ftracer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon64 -fomit-frame-pointer -funroll-all-loops -fpeel-loops -funswitch-loops -ftree-vectorize -pipe -fweb -frename-registers -ftracer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays -fvisibility-inlines-hidden -Wl, -O1"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict userpriv"
GENTOO_MIRRORS="ftp://ftp.belnet.be/linux/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s, -Bdirect"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.belnet.be/gentoo-portage"
USE="amd64 X alsa avi berkdb bitmap-fonts crypt cups eds emboss encode foomaticdb fortran gif glibc-omitfp gnome gpm gstreamer gtk gtk2 imlib ipv6 jpeg kde lzw lzw-tiff mp3 mpeg ncurses nls nptl nptlonly opengl pam pdflib perl png python qt quicktime readline sdl spell ssl tcpd tiff truetype-fonts type1-fonts unicode usb userlocales xpm xv zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LINGUAS

gcc: 4.1 beta
glibc: 2.3.90
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-01-29 00:39:12 UTC
Kindly read man gcc and man ld to find out correct syntax for your C[XX]FLAGS and LDFLAGS.