[csw-maintainers] gcc doesn't display any error and yet fails to build a binary

Maciej (Matchek) Blizinski maciej at opencsw.org
Sun Mar 7 23:01:39 CET 2010


I'm building a piece of software with gcc and it's displaying strange
behavior: the compilation succeeds, but linking fails.  Interestingly,
it doesn't show any error message.  It just fails to produce a binary
and returns a non-zero exit code.

maciej at netra ~/src/opencsw/pkg/awesome/trunk $ (cd
/home/maciej/src/opencsw/pkg/awesome/trunk/work/build-isa-sparcv8/awesome-3.4.4/.build-netra.chopin.edu.pl-sparc-sun-solaris2.8-4.3.3;
/opt/csw/gcc4/bin/gcc  -O2 -pipe -mcpu=v8  -O3 -DNDEBUG
-L/opt/csw/gcc4/lib/. -mcpu=v8 -L/opt/csw/lib -export-dynamic
CMakeFiles/awesome.dir/awesome.c.o CMakeFiles/awesome.dir/client.c.o
CMakeFiles/awesome.dir/strut.c.o CMakeFiles/awesome.dir/dbus.c.o
CMakeFiles/awesome.dir/root.c.o CMakeFiles/awesome.dir/event.c.o
CMakeFiles/awesome.dir/property.c.o CMakeFiles/awesome.dir/ewmh.c.o
CMakeFiles/awesome.dir/key.c.o CMakeFiles/awesome.dir/keygrabber.c.o
CMakeFiles/awesome.dir/mousegrabber.c.o
CMakeFiles/awesome.dir/banning.c.o CMakeFiles/awesome.dir/luaa.c.o
CMakeFiles/awesome.dir/spawn.c.o CMakeFiles/awesome.dir/hooks.c.o
CMakeFiles/awesome.dir/mouse.c.o CMakeFiles/awesome.dir/button.c.o
CMakeFiles/awesome.dir/screen.c.o CMakeFiles/awesome.dir/stack.c.o
CMakeFiles/awesome.dir/selection.c.o CMakeFiles/awesome.dir/wibox.c.o
CMakeFiles/awesome.dir/systray.c.o CMakeFiles/awesome.dir/tag.c.o
CMakeFiles/awesome.dir/titlebar.c.o CMakeFiles/awesome.dir/widget.c.o
CMakeFiles/awesome.dir/window.c.o CMakeFiles/awesome.dir/image.c.o
CMakeFiles/awesome.dir/draw.c.o CMakeFiles/awesome.dir/font.c.o
CMakeFiles/awesome.dir/color.c.o CMakeFiles/awesome.dir/timer.c.o
CMakeFiles/awesome.dir/common/buffer.c.o
CMakeFiles/awesome.dir/common/atoms.c.o
CMakeFiles/awesome.dir/common/util.c.o
CMakeFiles/awesome.dir/common/version.c.o
CMakeFiles/awesome.dir/common/xembed.c.o
CMakeFiles/awesome.dir/common/xutil.c.o
CMakeFiles/awesome.dir/common/xcursor.c.o
CMakeFiles/awesome.dir/common/backtrace.c.o
CMakeFiles/awesome.dir/common/luaobject.c.o
CMakeFiles/awesome.dir/common/luaclass.c.o
CMakeFiles/awesome.dir/widgets/graph.c.o
CMakeFiles/awesome.dir/widgets/progressbar.c.o
CMakeFiles/awesome.dir/widgets/textbox.c.o
CMakeFiles/awesome.dir/widgets/systray.c.o
CMakeFiles/awesome.dir/widgets/imagebox.c.o
CMakeFiles/awesome.dir/common/tokenize.c.o  -o awesome
-L/usr/local/lib -lxcb -L/opt/csw/X11/lib -lxcb -lX11 -lpangocairo-1.0
-lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -lxcb-randr
-lxcb-xtest -lxcb-xinerama -lxcb-shape -lxcb-aux -lxcb-keysyms
-lxcb-icccm -lxcb-atom -lxcb-image -lxcb-shm -lxcb-property
-lxcb-event -lcairo -lxcb-render-util -lxcb-render -lxcb
-lstartup-notification-1 -lImlib2 -lxdg-basedir /opt/csw/lib/libev.so
/opt/csw/lib/liblua.so -lm -L/opt/csw/lib -ldbus-1 -lxcb -lX11
-lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0
-lintl -lxcb-randr -lxcb-xtest -lxcb-xinerama -lxcb-shape -lxcb-aux
-lxcb-keysyms -lxcb-icccm -lxcb-atom -lxcb-image -lxcb-shm
-lxcb-property -lxcb-event -lcairo -lxcb-render-util -lxcb-render
-lstartup-notification-1 -lImlib2 -lxdg-basedir -lm -ldbus-1
-Wl,-R/usr/local/lib:/opt/csw/lib: -liconv)
maciej at netra ~/src/opencsw/pkg/awesome/trunk $ echo $?
1

Any ideas what is going on in here?  Why is there no error message?

Maciej


More information about the maintainers mailing list