The strange thing is that xroar builds fine in mock for F16. What can
be the problem?
I dunno why it succeeds for you in mock, I get the same error when doing a local
build on Fedora-16 x86_64. There are 2 ways to fix this:
1) In the spec file change:
make %{?_smp_mflags} VERBOSE=1
to:
make %{?_smp_mflags} VERBOSE=1 LDLIBS=-lm
2)
Using the attached patch (which should be send upstream).
Since 2 is upstreamable my vote goes to 2.
Regards,
Hans
Bye,
Andrea.
---------- Forwarded message ----------
From: ** <rpmfusion-buildsys(a)lists.rpmfusion.org
<mailto:rpmfusion-buildsys@lists.rpmfusion.org>>
Date: Sat, Oct 1, 2011 at 3:40 PM
Subject: Build Error (Job 10323): xroar-0_27-1_fc16 on fedora-development-rpmfusion_free
To: musuruan(a)gmail.com <mailto:musuruan@gmail.com>
Job failed on arch i686
Build logs may be found at
http://buildsys.rpmfusion.org/logs/fedora-development-rpmfusion_free/1032...
-------------------------------------------------
gcc -pipe -o m6809_trace.o -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -D_XOPEN_SOURCE=700 -pthread -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2
-I/usr/include/libpng12 -pthread -I/usr/include/gtkglext-1.0
-I/usr/lib/gtkglext-1.0/include -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
-I/usr/include/atk-1.0 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D_REENTRANT
-I/builddir/build/BUILD/xroar-0.27 -I. -Wall -W -Wstrict-prototypes -Wpointer-arith
-Wcast-align -Wcast-qual -Wshadow -Waggregate-return -Wnested-externs -Winline
-Wwrite-strings -Wundef -Wmissing-prototypes -Wredundant-decls
-DVERSION=\"0.27\" -DROMPATH=\"~/.xroar/roms:/usr/share/xroar/roms:\"
-DCONFPATH=\"~/.xroar:/etc:/usr/share/xroar\" -c m6809_trace.c
gcc -pipe -o xroar crc16.o list.o misc.o path.o portalib.o xconfig.o breakpoint.o cart.o
deltados.o dragondos.o events.o hexs19.o input.o joystick.o keyboard.o m6809.o machine.o
mc6821.o module.o printer.o rsdos.o sam.o snapshot.o sound.o tape.o tape_cas.o ui_null.o
vdg.o vdg_palette.o vdisk.o vdrive.o vo_null.o wd279x.o xroar.o vdg_bitmaps.o fs_unix.o
main_unix.o gtk2/ui_gtk2.o gtk2/tapecontrol.o gtk2/drivecontrol.o gtk2/filereq_gtk2.o
gtk2/keyboard_gtk2.o gtk2/vo_gtkgl.o sdl/ui_sdl.o sdl/vo_sdl.o sdl/vo_sdlyuv.o
sdl/ao_sdl.o sdl/keyboard_sdl.o sdl/joystick_sdl.o sdl/vo_sdlgl.o
alsa/ao_alsa.o oss/ao_oss.o pulseaudio/ao_pulse.o tape_sndfile.o ao_null.o
linux/joystick_linux.o m6809_trace.o -Wl,-z,relro -pthread -lgtk-x11-2.0
-lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo
-lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt
-lglib-2.0 -Wl,--export-dynamic -pthread -lgtkglext-x11-1.0 -lgdkglext
-x11-1.0 -lGLU -lGL -lXmu -lXt -lSM -lICE -lgtk-x11-2.0 -lpangox-1.0 -lX11
-lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo
-lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt
-lglib-2.0 -lSDL -lpthread -lGL -lasound -lpulse-simple -lpulse -lsndfile
/usr/bin/ld: vdg_palette.o: undefined reference to symbol 'powf@(a)GLIBC_2.0'
/usr/bin/ld: note: 'powf@(a)GLIBC_2.0' is defined in DSO /lib/libm.so.6 so try
adding it to the linker command line
/lib/libm.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make: *** [xroar] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.vNLmLs (%build)
Bad exit status from /var/tmp/rpm-tmp.vNLmLs (%build)
RPM build errors:
Child returncode was: 1
EXCEPTION: Command failed. See logs for output.
# ['bash', '--login', '-c', 'rpmbuild -bb --target i686
--nodeps builddir/build/SPECS/xroar.spec']
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/mock/trace_decorator.py", line 70, in
trace
result = func(*args, **kw)
File "/usr/lib/python2.6/site-packages/mock/util.py", line 345, in do
raise mock.exception.Error, ("Command failed. See logs for output.\n # %s"
% (command,), child.returncode)
Error: Command failed. See logs for output.
# ['bash', '--login', '-c', 'rpmbuild -bb --target i686
--nodeps builddir/build/SPECS/xroar.spec']
LEAVE do --> EXCEPTION RAISED