Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 482368 - games-puzzle/atomix-2.14.0: fails to build (underlinking?)
Summary: games-puzzle/atomix-2.14.0: fails to build (underlinking?)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-24 21:21 UTC by Denis Lisov
Modified: 2013-12-08 05:37 UTC (History)
0 users

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


Attachments
emerge --info (emerge-info.txt,18.67 KB, text/plain)
2013-08-24 21:21 UTC, Denis Lisov
Details
build log (atomix-2.14.0:20130824-211825.log.gz,12.31 KB, application/gzip)
2013-08-25 07:07 UTC, Denis Lisov
Details
build log (uncompressed) (atomix-2.14.0:20130824-211825.log,97.43 KB, patch)
2013-08-25 11:08 UTC, Denis Lisov
Details | Diff
emerge log (atomix-2.14.0:20131123-103302.log,95.54 KB, text/plain)
2013-11-24 20:04 UTC, Denis Lisov
Details
emerge --info (emerge-info.txt,18.74 KB, text/plain)
2013-11-24 20:05 UTC, Denis Lisov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Lisov 2013-08-24 21:21:13 UTC
Build fails with

x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=native  -Wl,-O1 -Wl,--as-needed -o atomix  main.o board.o undo.o goal.o goal-view.o clock.o libatomix.a -lgnomeui-2 -lSM -lICE -lgnomevfs-2 -lgconf-2 -lxml2 -lbonoboui-2 -lgnomecanvas-2 -lart_lgpl_2 -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lfreetype -lfontconfig -lgnome-2 -lpopt -lbonobo-2 -lbonobo-activation -lgmodule-2.0 -pthread -lORBit-2 -lgthread-2.0 -pthread -lgobject-2.0 -lglib-2.0  
x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=native  -Wl,-O1 -Wl,--as-needed -o level-convert  playfield.o tile.o level.o level-convert.o theme.o -L../src -lgnomeui-2 -lSM -lICE -lgnomevfs-2 -lgconf-2 -lxml2 -lbonoboui-2 -lgnomecanvas-2 -lart_lgpl_2 -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lfreetype -lfontconfig -lgnome-2 -lpopt -lbonobo-2 -lbonobo-activation -lgmodule-2.0 -pthread -lORBit-2 -lgthread-2.0 -pthread -lgobject-2.0 -lglib-2.0  
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.1/../../../../x86_64-pc-linux-gnu/bin/ld: libatomix.a(canvas_helper.o): undefined reference to symbol 'ceil@@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.1/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'ceil@@GLIBC_2.2.5' is defined in DSO /lib64/libm.so.6 so try adding it to the linker command line
/lib64/libm.so.6: could not read symbols: Invalid operation


Reproducible: Always
Comment 1 Denis Lisov 2013-08-24 21:21:31 UTC
Created attachment 356906 [details]
emerge --info
Comment 2 Julian Ospald 2013-08-24 22:00:41 UTC
attach the whole build log, not only what you think is relevant
Comment 3 Julian Ospald 2013-08-24 22:05:03 UTC
tested with gold (extremely prone to underlinking): works fine

so removing the blocker unless it get's confirmed
Comment 4 Denis Lisov 2013-08-25 07:07:43 UTC
Created attachment 356950 [details]
build log
Comment 5 Julian Ospald 2013-08-25 09:51:33 UTC
you compressed it twice
Comment 6 Denis Lisov 2013-08-25 11:08:54 UTC
Created attachment 356962 [details, diff]
build log (uncompressed)

Oops, forgot to decompress the log
Comment 7 Denis Lisov 2013-11-24 20:03:31 UTC
Still fails to build. Attaching a new build log and info.
Comment 8 Denis Lisov 2013-11-24 20:04:41 UTC
Created attachment 363910 [details]
emerge log
Comment 9 Denis Lisov 2013-11-24 20:05:17 UTC
Created attachment 363912 [details]
emerge --info
Comment 10 Tupone Alfredo gentoo-dev 2013-12-07 21:15:06 UTC
I don't have this problem too.

But here the call to ceil from canvas_helper is inlined so the libm is not needed.

I suggest to add -lm to the link command to support the case where compiler does not inline that call
Comment 11 Tupone Alfredo gentoo-dev 2013-12-07 21:40:39 UTC
SHould be fixed now. Please test
Comment 12 Denis Lisov 2013-12-08 05:13:18 UTC
Builds correctly, thanks for the fix.