Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 653484 - dev-ada/gps: compilation of bookmark_views.adb failed
Summary: dev-ada/gps: compilation of bookmark_views.adb failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tupone Alfredo
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2018-04-18 16:21 UTC by teefax
Modified: 2018-04-20 18:25 UTC (History)
0 users

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


Attachments
gps-2017.patch (gps-2017.patch,308 bytes, patch)
2018-04-18 16:21 UTC, teefax
Details | Diff
build.log (build.log,20.75 KB, text/x-log)
2018-04-19 10:01 UTC, teefax
Details

Note You need to log in before you can comment on or make changes to this bug.
Description teefax 2018-04-18 16:21:01 UTC
Created attachment 527932 [details, diff]
gps-2017.patch

The build fails with the following error:

Changing to object directory of "Views": "/var/tmp/portage/dev-ada/gps-2017/work/gps-gpl-2017-src/views/obj/"
/usr/bin/gcc-6.3.0 -c -x ada -gnatA --RTS=/usr/lib64/gcc/x86_64-pc-linux-gnu/6.3.0/ -g -gnat12 -fPIC -O0 -gnata -gnatVa -gnatQ -gnatygO -gnatwaCJe -gnateE -march=native -O2 -pipe -gnatec=/var/tmp/portage/dev-ada/gps-2017/temp/GNAT-TEMP-000016.TMP -gnatec=/var/tmp/portage/dev-ada/gps-2017/work/gps-gpl-2017-src/gps/gnat_debug.adc -gnatem=/var/tmp/portage/dev-ada/gps-2017/temp/GNAT-TEMP-000017.TMP /var/tmp/portage/dev-ada/gps-2017/work/gps-gpl-2017-src/views/src/bookmark_views.adb
bookmark_views.adb:297:04: warning: in instantiation at gtkada-tree_view.adb:924
bookmark_views.adb:297:04: warning: possible aliasing problem for type "Detached_Data_Access"
bookmark_views.adb:297:04: warning: use -fno-strict-aliasing switch for references
bookmark_views.adb:297:04: warning: or use "pragma No_Strict_Aliasing (Detached_Data_Access);"

   compilation of bookmark_views.adb failed


Adding -fno-strict-aliasing to ADAFLAGS fixes the issue.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2018-04-18 18:29:54 UTC
No actual error message was printed? Could you attach the complete build log, please?
Comment 2 teefax 2018-04-19 10:01:53 UTC
Created attachment 528040 [details]
build.log

I've attached the entire build.log.
Comment 3 Larry the Git Cow gentoo-dev 2018-04-20 18:25:45 UTC
The bug has been closed via the following commit(s):

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

commit dc8a6f56367d1d16b8a1fc0090612351e8e95360
Author:     Tupone Alfredo <tupone@gentoo.org>
AuthorDate: 2018-04-20 18:25:30 +0000
Commit:     Tupone Alfredo <tupone@gentoo.org>
CommitDate: 2018-04-20 18:25:30 +0000

    dev-ada/gps: No strict aliasing
    
    Closes: https://bugs.gentoo.org/653484
    Package-Manager: Portage-2.3.24, Repoman-2.3.6

 dev-ada/gps/gps-2017.ebuild | 1 +
 1 file changed, 1 insertion(+)