Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 696034 - media-libs/allegro-4.4.2-r2 USE=jpeg - ../lib/libjpgalleg.so.4.4.2: error: undefined reference to 'get_value'
Summary: media-libs/allegro-4.4.2-r2 USE=jpeg - ../lib/libjpgalleg.so.4.4.2: error: un...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Games
URL: https://sourceforge.net/p/alleg/bugs/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-02 06:01 UTC by Alessandro Barbieri
Modified: 2019-10-03 20:48 UTC (History)
0 users

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


Attachments
allegro-4.4.2-r2:20191001-222337.log (allegro-4.4.2-r2:20191001-222337.log,293.64 KB, text/plain)
2019-10-02 06:02 UTC, Alessandro Barbieri
Details
info (info,14.62 KB, text/plain)
2019-10-02 06:02 UTC, Alessandro Barbieri
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Barbieri 2019-10-02 06:01:35 UTC
Only happens with USE="jpeg"

/usr/bin/gcc -Os -pipe -march=native -mtune=native -mfpmath=sse -fopenmp -pthread -fno-unroll-all-loops -fno-unroll-loops -fno-peel-loops -Wformat -Wformat-security -Warray-bounds -Wclobbered -Wvolatile-register-var -Wdate-time -Wno-erro
r=implicit-function-declaration -Wimplicit-function-declaration -Wl,-O1 -Wl,--as-needed -Wl,-fuse-ld=gold -lpthread -lgomp -W -Wall -Wno-unused-parameter -Wdeclaration-after-statement  -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -Wl,
-fuse-ld=gold -lpthread -lgomp -rdynamic CMakeFiles/pat2dat.dir/pat2dat.c.o  -o pat2dat -Wl,-rpath,/var/tmp/portage/media-libs/allegro-4.4.2-r2/work/allegro-4.4.2/lib: ../lib/libaldat.a ../lib/libjpgalleg.so.4.4.2 ../lib/liballeg.so.4.4.
2 -ldl -lm -lrt -lSM -lICE -lX11 -lXext -lXcursor -lXpm -lXxf86vm -ldl
../lib/libjpgalleg.so.4.4.2: error: undefined reference to 'get_value'
collect2: error: ld returned 1 exit status
make[2]: *** [tools/CMakeFiles/pat2dat.dir/build.make:96: tools/pat2dat] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-libs/allegro-4.4.2-r2/work/allegro-4.4.2'
make[1]: *** [CMakeFiles/Makefile2:868: tools/CMakeFiles/pat2dat.dir/all] Error 2
[100%] Linking C executable grabber
cd /var/tmp/portage/media-libs/allegro-4.4.2-r2/work/allegro-4.4.2/tools && /usr/bin/cmake -E cmake_link_script CMakeFiles/grabber.dir/link.txt --verbose=1
/usr/bin/gcc -Os -pipe -march=native -mtune=native -mfpmath=sse -fopenmp -pthread -fno-unroll-all-loops -fno-unroll-loops -fno-peel-loops -Wformat -Wformat-security -Warray-bounds -Wclobbered -Wvolatile-register-var -Wdate-time -Wno-erro
r=implicit-function-declaration -Wimplicit-function-declaration -Wl,-O1 -Wl,--as-needed -Wl,-fuse-ld=gold -lpthread -lgomp -W -Wall -Wno-unused-parameter -Wdeclaration-after-statement  -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -Wl,
-fuse-ld=gold -lpthread -lgomp -rdynamic CMakeFiles/grabber.dir/grabber.c.o  -o grabber -Wl,-rpath,/var/tmp/portage/media-libs/allegro-4.4.2-r2/work/allegro-4.4.2/lib: ../lib/libaldat.a ../lib/libjpgalleg.so.4.4.2 ../lib/liballeg.so.4.4.
2 -ldl -lm -lrt -lSM -lICE -lX11 -lXext -lXcursor -lXpm -lXxf86vm -ldl
../lib/libjpgalleg.so.4.4.2: error: undefined reference to 'get_value'
collect2: error: ld returned 1 exit status
make[2]: *** [tools/CMakeFiles/grabber.dir/build.make:96: tools/grabber] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-libs/allegro-4.4.2-r2/work/allegro-4.4.2'
make[1]: *** [CMakeFiles/Makefile2:646: tools/CMakeFiles/grabber.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/media-libs/allegro-4.4.2-r2/work/allegro-4.4.2'
make: *** [Makefile:130: all] Error 2
 * ERROR: media-libs/allegro-4.4.2-r2::gentoo failed (compile phase):
 *   emake failed
Comment 1 Alessandro Barbieri 2019-10-02 06:02:36 UTC
Created attachment 591542 [details]
allegro-4.4.2-r2:20191001-222337.log

buildlog
Comment 2 Alessandro Barbieri 2019-10-02 06:02:55 UTC
Created attachment 591544 [details]
info

emerge --info
Comment 3 James Le Cuirot gentoo-dev 2019-10-03 19:28:42 UTC
I am unable to reproduce this. Please try without the ridiculous CFLAGS before reporting bugs.
Comment 4 James Le Cuirot gentoo-dev 2019-10-03 19:53:31 UTC
I've managed to reproduce this with no flags at all. -O1 and -O2 work but -O0 and -Os do not. I've tried narrowing down the flag with "g++ -Q --help=optimizer" but no luck.
Comment 5 Alessandro Barbieri 2019-10-03 20:29:10 UTC
Patch, untested
https://sourceforge.net/p/alleg/bugs/398/attachment/50_fix_get_value_gcc_5.patch
Comment 6 Larry the Git Cow gentoo-dev 2019-10-03 20:48:31 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=361616ee4d919fd2c898f673cb50ea0ee2d8ba7c

commit 361616ee4d919fd2c898f673cb50ea0ee2d8ba7c
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2019-10-03 20:47:19 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2019-10-03 20:48:00 +0000

    media-libs/allegro: Patch against undefined ref to get_value in 4.4.2
    
    Closes: https://bugs.gentoo.org/696034
    Package-Manager: Portage-2.3.76, Repoman-2.3.17
    Signed-off-by: James Le Cuirot <chewi@gentoo.org>

 media-libs/allegro/allegro-4.4.2-r2.ebuild               |  1 +
 media-libs/allegro/files/allegro-4.4.2-static-func.patch | 13 +++++++++++++
 2 files changed, 14 insertions(+)