[Bug 750394] Review Request: dmtcp - Checkpoint/Restart functionality for Linux processes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=750394

--- Comment #30 from Kapil Arya <kapil@xxxxxxxxxxx> ---
Hi Orion,

Thanks for the review. Sorry, it took longer to fix things and get back to you
but here I am now :). 

Earlier, I didn't upgrade my VMs and that's why you saw those issues. I have
now updated to F17 and fixed the issues in dmtcp svn. However, I ran into a
different issue when building for ix86 architecture.

During compilation, I got the following error:

g++ -fPIC -O2 -g -march=i386 -mtune=i686 -fPIC  -o dmtcp_command
dmtcp_command.o libdmtcpinternal.a libjalib.a libnohijack.a -lpthread 
dmtcp_checkpoint.o: In function `__exchange_and_add':
/usr/lib/gcc/i686-redhat-linux/4.7.0/../../../../include/c++/4.7.0/ext/atomicity.h:48:
undefined reference to `__atomic_fetch_add_4'
....
<similar lines followed>

It turns out that rpmbuild defines -march=i386 and -mtune=i686 causing the
compilation errors. Here is the reason:

fedora17-i686:~> rpm --eval '%configure -g -O0'

  CFLAGS="${CFLAGS:--O2 -g -march=i386 -mtune=i686}" ; export CFLAGS ; 
  CXXFLAGS="${CXXFLAGS:--O2 -g -march=i386 -mtune=i686}" ; export CXXFLAGS ; 
  FFLAGS="${FFLAGS:--O2 -g -march=i386 -mtune=i686}" ; export FFLAGS ; 
  ./configure --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu \
        --program-prefix= \
        --prefix=/usr \
        --exec-prefix=/usr \
        --bindir=/usr/bin \
        --sbindir=/usr/sbin \
        --sysconfdir=/etc \
        --datadir=/usr/share \
        --includedir=/usr/include \
        --libdir=/usr/lib \
        --libexecdir=/usr/libexec \
        --localstatedir=/var \
        --sharedstatedir=/var/lib \
        --mandir=/usr/share/man \
        --infodir=/usr/share/info -g -O0

If I replace i386 with i486 or higher in CFLAGS/CXXFLAGS/FFLAGS, the
compilation error goes away. Is there a simple way to achieve it? Of course I
can conditionalize using %ifarch ix86 and modify the %configure section but I
am wondering if there is a simpler way to avoid this.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
package-review mailing list
package-review@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/package-review



[Index of Archives]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]