Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1242960

Summary: xmlada 2015 is FTBFS on aarch64
Product: [Fedora] Fedora Reporter: Peter Robinson <pbrobinson>
Component: xmladaAssignee: Pavel Zhukov <pavel>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: pavel, pbrobinson, pzhukov
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-13 13:04:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 922257    

Description Peter Robinson 2015-07-14 13:30:52 UTC
xmlada 2013 built without issues on aarch64, the new 2015 release doesn't.

http://arm.koji.fedoraproject.org/koji/taskinfo?taskID=3071166

+ make LIBRARY_TYPE=relocatable 'GPROPTS=-cargs -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -gnatn -gnat-p -gnatVd -gnatwn -gnatyN -largs -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -g -margs -j8 -R -p -XHARDWARE_PLATFORM=aarch64' prefix=/builddir/build/BUILDROOT/xmlada-2015-6.fc23.aarch64//usr
gprbuild -j0 -m -p -XLIBRARY_TYPE=relocatable -cargs -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -gnatn -gnat-p -gnatVd -gnatwn -gnatyN -largs -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -g -margs -j8 -R -p -XHARDWARE_PLATFORM=aarch64 xmlada.gpr
gprbuild: error while loading shared libraries: libxmlada_schema.so.2013: cannot open shared object file: No such file or directory
Makefile:49: recipe for target 'relocatable' failed
make: *** [relocatable] Error 127
error: Bad exit status from /var/tmp/rpm-tmp.KpjiHa (%build)
    Bad exit status from /var/tmp/rpm-tmp.KpjiHa (%build)

Comment 1 Pavel Zhukov 2015-07-14 15:25:54 UTC
It's chicken-egg problem. 
xmlada depends on gprbuild and gprbuild requires xmlada.so.%{version}
You have to temporary disable autogenerated dependencies in gprbuild before building xmlada.

Comment 2 Pavel Zhukov 2015-07-14 15:27:45 UTC
Sorry, forgot to mention
libxmlada.so.2015 -> libxmlada.so.2013 should be temporary created as well.

Comment 3 Peter Robinson 2015-07-14 15:58:19 UTC
what were the NVRs on mainline that were used for the bootstrap for both xmlada/gprbuild?

Comment 4 Pavel Zhukov 2015-07-14 16:13:48 UTC
I used this:
http://pkgs.fedoraproject.org/cgit/xmlada.git/commit/?id=088eb97c3bb0cd914a2f2b45a06c73b194fd89e7
and 
http://pkgs.fedoraproject.org/cgit/gprbuild.git/commit/?id=2d6f13af1a805fe11fe9c2fe44b39b3a323bbe7f

Spent few days to make it... This issue was introduced in 2015 release because before gnatmake was used to build gprbuild

Comment 5 Jan Kurik 2015-07-15 13:16:57 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 23 development cycle.
Changing version to '23'.

(As we did not run this process for some time, it could affect also pre-Fedora 23 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 23 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora23

Comment 6 Peter Robinson 2015-09-09 13:30:47 UTC
Having a look at this again, had to hack the above around a little to get it to sort of work with scratch builds on aarch64. But once I do I get the following errors when building:

+ make LIBRARY_TYPE=relocatable 'GPROPTS=-cargs -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -gnatn -gnat-p -gnatVd -gnatwn -gnatyN -largs -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -g -margs -j8 -R -p -XHARDWARE_PLATFORM=aarch64' prefix=/builddir/build/BUILDROOT/xmlada-2015-0.7.fc23.aarch64//usr
gprbuild -j0 -m -p -XLIBRARY_TYPE=relocatable -cargs -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -gnatn -gnat-p -gnatVd -gnatwn -gnatyN -largs -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -g -margs -j8 -R -p -XHARDWARE_PLATFORM=aarch64 xmlada.gpr
xmlada_schema.gpr:29:09: no languages defined for this project
xmlada_schema.gpr:31:25: warning: libraries are not supported on this platform
xmlada_sax.gpr:28:09: no languages defined for this project
xmlada_sax.gpr:30:25: warning: libraries are not supported on this platform
xmlada_unicode.gpr:26:09: no languages defined for this project
xmlada_unicode.gpr:28:25: warning: libraries are not supported on this platform
xmlada_input.gpr:27:09: no languages defined for this project
xmlada_input.gpr:29:25: warning: libraries are not supported on this platform
xmlada_dom.gpr:28:09: no languages defined for this project
xmlada_dom.gpr:30:25: warning: libraries are not supported on this platform
xmlada_dom.gpr:28:09: no languages defined for this project
xmlada_dom.gpr:30:25: warning: libraries are not supported on this platform
xmlada_sax.gpr:28:09: no languages defined for this project
xmlada_sax.gpr:30:25: warning: libraries are not supported on this platform
xmlada_unicode.gpr:26:09: no languages defined for this project
xmlada_unicode.gpr:28:25: warning: libraries are not supported on this platform
xmlada_input.gpr:27:09: no languages defined for this project
xmlada_input.gpr:29:25: warning: libraries are not supported on this platform
xmlada_sax.gpr:28:09: no languages defined for this project
xmlada_sax.gpr:30:25: warning: libraries are not supported on this platform
xmlada_unicode.gpr:26:09: no languages defined for this project
xmlada_unicode.gpr:28:25: warning: libraries are not supported on this platform
xmlada_input.gpr:27:09: no languages defined for this project
xmlada_input.gpr:29:25: warning: libraries are not supported on this platform
xmlada_unicode.gpr:26:09: no languages defined for this project
xmlada_unicode.gpr:28:25: warning: libraries are not supported on this platform
xmlada_input.gpr:27:09: no languages defined for this project
xmlada_input.gpr:29:25: warning: libraries are not supported on this platform
xmlada_unicode.gpr:26:09: no languages defined for this project
xmlada_unicode.gpr:28:25: warning: libraries are not supported on this platform
gprbuild: "xmlada.gpr" processing failed
Makefile:49: recipe for target 'relocatable' failed

Comment 7 Peter Robinson 2015-09-24 15:09:20 UTC
any update