swarm-support
[Top][All Lists]
Advanced

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

[Swarm-Support] Swarm, Fedora & gcc compiler flags. question to remind M


From: Paul Johnson
Subject: [Swarm-Support] Swarm, Fedora & gcc compiler flags. question to remind Marcus and Alex of the olden days :)
Date: Thu, 24 May 2012 22:07:42 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20120510 Icedove/10.0.4

Greetings, Old and New friends:

I got an email from a friend asking about Swarm RPM for Fedora 16.

I built some, they do work, Users can find rpms here:

http://pj.freefaculty.org/Swarm/Swarm-Packages/Fedora/16/x86_64

Now here is the question. I installed a clean Fedora 16 in a VM and get a good 
build as long as I DO NOT have the
package called "redhat-rpm-config" installed. TBecause I could not believe that 
details were so fatal, I trapped the
stdout and stdin in text files for comparison. The success outcome is uploaded 
here

http://pj.freefaculty.org/Swarm/swarmbldsucceed.txt

http://pj.freefaculty.org/Swarm/swarmbldfails.txt

The failure ends like so:

home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.4.1/tools/findImp.m: In 
function 'main':
/home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.4.1/tools/findImp.m:45:3: 
warning: implicit declaration of function
'swarm_force_references' [-Wimplicit-function-declaration]
libtool: compile:  gcc -DHAVE_CONFIG_H -I. 
-I/home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.4.1/tools -I..
-I../libobjc -I/home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.4.1/libobjc 
-I../src
-I/home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.4.1/src
-I/home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.4.1/src/collections
-I/home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.4.1/src/defobj
-I/home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.4.1/src/activity
-I/home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.4.1/src/objectbase
-I/home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.4.1/src/random
-I/home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.4.1/src/simtools
-I/home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.4.1/src/gui
-I/home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.4.1/src/simtoolsgui
-I/home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.4.1/src/misc -I. 
-DDLL_EXPORT -D_GNU_SOURCE -g -O2 -fgnu-runtime
-fno-strict-aliasing -Wall -Wno-import -Wno-protocol -Wno-long-long -MT 
findImp.lo -MD -MP -MF .deps/findImp.Tpo -c
/home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.4.1/tools/findImp.m -o 
findImp.o >/dev/null 2>&1
mv -f .deps/findImp.Tpo .deps/findImp.Plo
/bin/sh ../libtool   --mode=link gcc  -g -O2 -fgnu-runtime -fno-strict-aliasing 
-Wall -Wno-import -Wno-protocol
-Wno-long-long -L../src -L../libobjc   -o findImp findImp.lo -lswarm
libtool: link: gcc -g -O2 -fgnu-runtime -fno-strict-aliasing -Wall -Wno-import 
-Wno-protocol -Wno-long-long -o
.libs/findImp .libs/findImp.o  
-L/home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.4.1/=with-hdf/src
-L/home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.4.1/=with-hdf/libobjc
/home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.4.1/=with-hdf/src/.libs/libswarm.so
-L/home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.4.1/=with-hdf/src/space
-L/home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.4.1/=with-hdf/src/analysis
-L/home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.4.1/=with-hdf/src/simtoolsgui
-L/home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.4.1/=with-hdf/src/simtools
-L/home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.4.1/=with-hdf/src/random
-L/home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.4.1/=with-hdf/src/tkobjc
-L/home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.4.1/=with-hdf/src/tclobjc
-L/home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.4.1/=with-hdf/src/objectbase
-L/home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.4.1/=with-hdf/src/activity
-L/home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.4.1/=with-hdf/src/defobj
-L/home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.4.1/=with-hdf/src/collections
-L/home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.4.1/=with-hdf/src/misc 
-L/usr/lib64 -lXft -lfreetype -lieee -lBLT24
-ltk8.5 -ltcl8.5 -lXpm -lpng -lhdf5 -lz -lX11 -lm -ldl  -Wl,-rpath 
-Wl,/usr/lib64/swarm
/home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.4.1/=with-hdf/src/.libs/libswarm.so:
 undefined reference to
`__gnu_objc_personality_v0'
collect2: ld returned 1 exit status
make[2]: *** [findImp] Error 1
make[2]: Leaving directory 
`/home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.4.1/=with-hdf/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
`/home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.4.1/=with-hdf'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.rOTnDo (%build)


I took a diff to see what damage was caused by redhat-rpm-config and it 
*appears* to me that this is the BIG change:

This:

+ CFLAGS='-fPIC -g -O2 -g'

changes to this:

+ CFLAGS='-fPIC -g -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector --param=ssp-buffer-size=4
-m64 -mtune=generic'

That change ripples through the whole build, it in every libtool or gcc command.

Since I did succeed in making an RPM, I should be happy, I know, but it is just 
like the old days. I want to know what
the heck is going on.

Do you have an opinion if I should have an opinion?  I stopped running Fedora 
full time when they were on version 9, I
can't say if this is a big deal or not.   As far as I can tell, the main reason 
to add the rpm redhat-rpm-config is to
get a separate "debuginfo" rpm with debugging symbols in it. I don't really 
want the symbols in a separate file, I think
it is more convenient to have them in the package!  So maybe I don't care.

On the other hand, if the problem is caused by some security motivated settings 
like -fstack-protector, well, then maybe
we could put our heads to gether and fix it.  Like in the old days, that can 
consist of you all finding the answer and
tell me, and then I'll build it :)

pj
-- 
Paul E. Johnson                 email: address@hidden
http://pj.freefaculty.org       Assoc. Director
Professor, Political Science    Center for Research Methods and Data Analysis
1541 Lilac Lane, Rm 504         1425 Jayhawk Blvd.      
University of Kansas            Watson Library, Rm. 470         
Lawrence, Kansas 66045-3129     Lawrence, Kansas 66045-7555
Ph: (785) 864-3523              Ph: (785) 864-3353



reply via email to

[Prev in Thread] Current Thread [Next in Thread]