Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 81972 - Cannot compile rosegarden-4.0.9.91
Summary: Cannot compile rosegarden-4.0.9.91
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-14 02:25 UTC by David
Modified: 2005-02-14 06:59 UTC (History)
1 user (show)

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 David 2005-02-14 02:25:18 UTC
The compilation stops at:
libs/PlayableAudioFile.o(.text+0x1c40): unresolvable relocation against symbol

Reproducible: Always
Steps to Reproduce:
1. emerge rosegarden
2.
3.

Actual Results:  
(...)
if /bin/sh ../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++
-DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.3/include -I/usr/qt/3/include -I.  
-I../gui -I../base    -DQT_THREAD_SUPPORT  -D_REENTRANT  -DRGKDE3
-Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500
-D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W
-Wpointer-arith -Wwrite-strings -O2 -O2 -march=pentium4 -pipe
-fomit-frame-pointer -fvisibility-inlines-hidden -Wformat-security
-Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -fno-gcse
-fexceptions -MT PeakFileManager.moc.lo -MD -MP -MF
".deps/PeakFileManager.moc.Tpo" \
  -c -o PeakFileManager.moc.lo `test -f 'PeakFileManager.moc.cc' || echo
'./'`PeakFileManager.moc.cc; \
then mv -f ".deps/PeakFileManager.moc.Tpo" ".deps/PeakFileManager.moc.Plo"; \
else rm -f ".deps/PeakFileManager.moc.Tpo"; exit 1; \
fi
/bin/sh ../libtool --silent --mode=link --tag=CXX i686-pc-linux-gnu-g++ 
-DRGKDE3 -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500
-D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W
-Wpointer-arith -Wwrite-strings -O2 -O2 -march=pentium4 -pipe
-fomit-frame-pointer -fvisibility-inlines-hidden -Wformat-security
-Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -fno-gcse
-fexceptions  -Wl,-O1 -o libRosegardenSound.la   AudioCache.lo AudioFile.lo
AudioFileManager.lo AudioPlayQueue.lo AudioProcess.lo Audit.lo BWFAudioFile.lo
ControlBlock.lo DSSIPluginFactory.lo DSSIPluginInstance.lo
LADSPAPluginFactory.lo LADSPAPluginInstance.lo MappedComposition.lo
MappedDevice.lo MappedEvent.lo MappedInstrument.lo MappedRealTime.lo
MappedStudio.lo MidiEvent.lo MidiFile.lo MP3AudioFile.lo PeakFile.lo
PeakFileManager.lo PluginFactory.lo PluginIdentifier.lo RIFFAudioFile.lo
RunnablePluginInstance.lo SequencerDataBlock.lo SF2PatchExtractor.lo
SoundFile.lo WAVAudioFile.lo MidiFile.moc.lo PeakFile.moc.lo
AudioFileManager.moc.lo PeakFileManager.moc.lo   -lmad -llrdf -lrt -lasound -lm
-ldl -lpthread
/bin/sh ../libtool --silent --mode=link --tag=CXX i686-pc-linux-gnu-g++ 
-DRGKDE3 -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500
-D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W
-Wpointer-arith -Wwrite-strings -O2 -O2 -march=pentium4 -pipe
-fomit-frame-pointer -fvisibility-inlines-hidden -Wformat-security
-Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -fno-gcse
-fexceptions  -Wl,-O1 -o libRosegardenSequencer.la -rpath /usr/lib -L/usr/lib
-L/usr/qt/3/lib -L/usr/kde/3.3/lib  -R /usr/kde/3.3/lib -R /usr/qt/3/lib -R
/usr/lib -module -no-undefined AlsaDriver.lo AlsaPort.lo JackDriver.lo
PlayableAudioFile.lo SoundDriver.lo SoundDriverFactory.lo -lqt-mt  -lz -lpng -lz
-lm -lXext -lX11  -lSM -lICE -lpthread  libRosegardenSound.la ../base/libbase.la
 -lasound -lm -ldl -lpthread  -ljack   -lmad -llrdf -lrt -lasound -lm -ldl -lpthread
/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/ld:
.libs/PlayableAudioFile.o(.text+0x1c40): unresolvable relocation against symbol
`std::basic_string<char, std::char_traits<char>, std::allocator<char>
>::~basic_string()@@GLIBCXX_3.4'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/ld: final
link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make[2]: *** [libRosegardenSequencer.la] Error 1
make[2]: Leaving directory
`/usr/temp/portage/rosegarden-4.0.9.91/work/rosegarden-4-0.9.91/sound'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/usr/temp/portage/rosegarden-4.0.9.91/work/rosegarden-4-0.9.91'
make: *** [all] Error 2

!!! ERROR: media-sound/rosegarden-4.0.9.91 failed.
!!! Function src_compile, Line 54, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.



make.conf:
# These settings were set by the catalyst build script that automatically built
this stage
CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden"
CHOST="i686-pc-linux-gnu"
LDFLAGS="-Wl,-O1"
USE="gnome gtk2 gtkhtml imap -arts acpi -apm dvd alsa cdr nptl ipv6 nls cjk
unicode sse mmx java sasl mysql wmf curl apache2 hal dbus pic"
MAKEOPTS="-j2"
ACCEPT_KEYWORDS="~x86"
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://mirror.datapipe.net/gentoo http://mirror.gentoo.gr.jp
http://ftp.gentoo.or.kr/"
PORTDIR_OVERLAY="/usr/local/portage/"
PORTAGE_NICENESS=19
PORTAGE_TMPDIR="/usr/temp"
DO_NOT_COMPILE="ksysguard"
Comment 1 Stian Skjelstad 2005-02-14 05:06:02 UTC
What version of i686-pc-linux-gnu-g++ are you using?

emerge info   would be nice to have too.
Comment 2 David 2005-02-14 06:11:53 UTC
I am using i686-pc-linux-gnu-3.4.3

emerge info gives the following:
Portage 2.0.51-r15 (default-linux/x86/2004.0, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r7 i686)
=================================================================
System uname: 2.6.10-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.6.9
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  8 2005, 15:12:27)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://mirror.datapipe.net/gentoo http://mirror.gentoo.gr.jp http://ftp.gentoo.or.kr/"
LANG="zh_CN.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/usr/temp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aalib acpi alsa apache2 avi berkdb bitmap-fonts bonobo cdr cjk crypt cups curl dbus dvd encode esd f77 fam flac font-server foomaticdb fortran gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal imagemagick imap imlib ipv6 jack java jpeg junit kde ldap libg++ libwww mad mikmod mmx motif mozilla mpeg mysql ncurses nls nptl odbc oggvorbis opengl oss pam pdflib perl pic png python qt quicktime readline samba sasl sdl slang spell sqlite sse ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts unicode wmf xml xml2 xmms xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET
Comment 3 Stian Skjelstad 2005-02-14 06:15:14 UTC
try to drop -fvisibility-inlines-hidden in CXXFLAGS btw the way.

It seems like ld is linking a c++ source without -lstdc++  ? can that be right to do??
Comment 4 David 2005-02-14 06:57:36 UTC
The compilation went smoothly after the removal of -fvisibility-inlines-hidden flag. Don't understand how it could be related though. Thank you very much!
Comment 5 David 2005-02-14 06:59:08 UTC
change the state the FIXED