Bug 1293396

Summary: lua FTBFS during stage2 bootstrap - luac.c:305: undefined reference to `luaP_opnames'
Product: [Fedora] Fedora Reporter: Jaromír Cápík <jcapik>
Component: luaAssignee: Tim Niemueller <tim>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: athmanem, drjohnson1, michel, ovasik, tcallawa, tim
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-01-08 13:09:27 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: 1224209    
Attachments:
Description Flags
lua.log none

Description Jaromír Cápík 2015-12-21 16:42:01 UTC
Created attachment 1108337 [details]
lua.log

Description of problem:
After switching from f21 to f22 sources, we hit a problem with lua FTBFS in stage2. The build log is attached.

Version-Release number of selected component (if applicable):
lua-5.3.0-2.fc22

Comment 1 d. johnson 2015-12-22 02:27:35 UTC
Please try again, but with the newer version:

lua.x86_64                     5.3.2-2.fc22                     @updates-testing

Comment 2 Jaromír Cápík 2015-12-22 09:48:36 UTC
Thanks, gonna try with the next batch.

Comment 3 Jaromír Cápík 2016-01-06 13:44:38 UTC
Tested with lua-5.3.2-2.fc22 and still failing ...

Comment 4 d. johnson 2016-01-06 16:01:33 UTC
How did you try building it?

Did you do something like this?

fedpkg clone -a --branch f22 lua; cd lua; fedpkg srpm; fedpkg mockbuild 

That should work using the same sources that fedora uses in f22.

Comment 5 Jaromír Cápík 2016-01-07 11:02:11 UTC
The stage1 bootstrap calls the %prep section of the spec file on the parent builder during the stage1 bootstrap using the parent's rpm and then uses the STAGE2-lua recipe to substitute the %build and %install sections as there's no rpmbuild in the second stage. The recipe can be found in the lua git repository. I see there were some bootstrap related tweaks made in f22 and these probably need to be propagated to the stage2 recipe. I see there was a new bootstrap source package added in the list of sources and the recipe apparently doesn't count with such change.

Comment 6 Jaromír Cápík 2016-01-07 12:32:56 UTC
It seems the removal of luac_LDADD="liblua.la -lm -ldl -lreadline" from the make arguments fixes the problem. Let me do a full rebuild and I'll close that if that works.