Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1050440

Summary: FTBFS
Product: Red Hat Enterprise Linux 7 Reporter: Zenon Panoussis <redhatbugs>
Component: ocamlAssignee: Richard W.M. Jones <rjones>
Status: CLOSED DUPLICATE QA Contact: qe-baseos-tools-bugs
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: riehecky
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-08 22:50:43 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:

Description Zenon Panoussis 2014-01-08 22:40:12 UTC
Building in mock:

make[1]: Entering directory `/builddir/build/BUILD/ocaml-4.00.1/ocamldoc'
../ocamlcompopt.sh -pp './remove_DEBUG' -I ../parsing -I ../utils -I ../typing -I ../driver -I ../bytecomp -I ../tools -I ../toplevel/ -I ../stdlib -I ../otherlibs/str -I ../otherlibs/dynlink -I ../otherlibs/unix -I ../otherlibs/num -I ../otherlibs/graph -warn-error A -c odoc_config.ml
../ocamlcompopt.sh -pp './remove_DEBUG' -I ../parsing -I ../utils -I ../typing -I ../driver -I ../bytecomp -I ../tools -I ../toplevel/ -I ../stdlib -I ../otherlibs/str -I ../otherlibs/dynlink -I ../otherlibs/unix -I ../otherlibs/num -I ../otherlibs/graph -warn-error A -c odoc_messages.ml
make[1]: Leaving directory `/builddir/build/BUILD/ocaml-4.00.1/ocamldoc'
make[1]: *** [odoc_messages.cmx] Segmentation fault
make: *** [ocamldoc.opt] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.xNX3Jh (%build)
RPM build errors:
    bogus date in %changelog: Wed May 29 2012 Richard W.M. Jones <rjones> 3.12.1-8
    bogus date in %changelog: Thu Aug 29 2008 Richard W.M. Jones <rjones> - 3.10.2-5
    bogus date in %changelog: Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
    Bad exit status from /var/tmp/rpm-tmp.xNX3Jh (%build)
Child return code was: 1
EXCEPTION: Command failed. See logs for output.

Comment 2 Richard W.M. Jones 2014-01-08 22:50:43 UTC

*** This bug has been marked as a duplicate of bug 1048889 ***

Comment 3 Pat Riehecky 2014-01-17 15:50:19 UTC
I'm seeing this too, but bug 1048889 is private, any suggestions?

Comment 4 Zenon Panoussis 2014-01-17 15:57:06 UTC
(In reply to Pat Riehecky from comment #3)
> I'm seeing this too, but bug 1048889 is private, any suggestions?

Yes, 

--- a/ocaml.spec
+++ b/ocaml.spec
@@ -1,6 +1,6 @@
 Name:           ocaml
 Version:        4.00.1
-Release:        3%{?dist}
+Release:        4%{?dist}
 
 Summary:        OCaml compiler and programming environment
 
@@ -250,7 +250,14 @@ ulimit -Hs 65536
 ulimit -Ss 65536
 %endif
 
+# For the use of -mpreferred-stack-boundary to workaround gcc stack
+# alignment issues, see: http://caml.inria.fr/mantis/view.php?id=5700
+# ONLY use this on i386.
+%ifarch %{ix86}
+CFLAGS="$RPM_OPT_FLAGS -mpreferred-stack-boundary=2" \
+%else
 CFLAGS="$RPM_OPT_FLAGS" \
+%endif
 ./configure \
     -bindir %{_bindir} \
     -libdir %{_libdir}/ocaml \
@@ -510,6 +517,10 @@ fi
 
 
 %changelog
+* Mon Jan  6 2014 Richard W.M. Jones <rjones> - 4.01.0-7
+- Work around gcc stack alignment issues, see
+  http://caml.inria.fr/mantis/view.php?id=5700
+
 * Fri Dec 27 2013 Daniel Mach <dmach> - 4.00.1-3
 - Mass rebuild 2013-12-27

Comment 5 Richard W.M. Jones 2014-01-17 18:54:32 UTC
I've made bug 1048889 public.