swarm-support
[Top][All Lists]
Advanced

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

Strange compiler warnings with heatbugs


From: Jan Kreft
Subject: Strange compiler warnings with heatbugs
Date: Tue, 4 May 1999 21:14:01 +0100 (BST)

Hi all,

just installing Swarm on my new computer, I'd like to share some odd
compiler messages with you.

Strangely enough, it all compiles and runs, despite all the warnings.

System is SuSE-Linux 6.1, kernel 2.2.5, recompiled with egcs:
Reading specs from /usr/lib/gcc-lib/i486-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
gcc 2.7.2.3 is also present, but the gcc-called egcs is used by default.

Got all the needed software from SFI apart from gcc, gdb, make,
ffcall, and xpm.
Compiled the stuff and always installed in /usr/local:
zlib, libpng, libffi, R: no problems.
hdf5: had the error Paul Johnson reported a while ago and used the fix
Marcus suggested. Maybe the source could be patched in this way?

-----------------------------------------------------------------------------
On 8 Feb 1999, Marcus G. Daniels wrote:

> >>>>> "PJ" == Paul E Johnson <address@hidden> writes:
>
> PJ> Now I'm working on compiling the HDF5-1.0.1 software and it is giving me
> PJ> some crap.
>
> The problem is that HDF5 defines "__unused__" as shorthand to the
> GCC directive "__attribute__ ((unused))".  Unfortunately, __unused__
> should really be treated as a reserved alternative to unused, to allow
> namespace cleanliness for header files (ironically).
>
> One way to work around the problem is to move the include
> of math.h above the include H5Iprivate.h in src/H5Tconv.c.
-----------------------------------------------------------------------------

Since SuSE had installed a new and old version of tcl/tk in the same
directories, I decided to remove the new versions and install them
again from source in /usr/local.
Compiling tcl, tk, and blt was fine, 95% of the tests were working, so
I proceeded to compile swarm with
configure --prefix=/home/jan/swarm-1.4.1 --with-defaultdir=/usr/local 
--disable-shared
(used --disable-shared also for the above, though I did the same
procedure with --enable-shared for all libs first, doesn't seem to
make a difference).

Then I compiled heatbugs and got the following messages:

address@hidden:~/swarmapps-1.4.1/heatbugs > make
gcc -c -Wno-import -Wno-protocol -g -O2 -D_GNU_SOURCE 
-I/home/jan/swarm-1.4.1/include Heatbug.m   
gcc -c -Wno-import -Wno-protocol -g -O2 -D_GNU_SOURCE 
-I/home/jan/swarm-1.4.1/include HeatSpace.m   
gcc -c -Wno-import -Wno-protocol -g -O2 -D_GNU_SOURCE 
-I/home/jan/swarm-1.4.1/include main.m   
gcc -c -Wno-import -Wno-protocol -g -O2 -D_GNU_SOURCE 
-I/home/jan/swarm-1.4.1/include HeatbugModelSwarm.m   
gcc -c -Wno-import -Wno-protocol -g -O2 -D_GNU_SOURCE 
-I/home/jan/swarm-1.4.1/include HeatbugObserverSwarm.m   
gcc -c -Wno-import -Wno-protocol -g -O2 -D_GNU_SOURCE 
-I/home/jan/swarm-1.4.1/include HeatbugBatchSwarm.m   
/bin/sh /home/jan/swarm-1.4.1/bin/libtool-swarm --mode link gcc -g -O2 
-L/home/jan/swarm-1.4.1/lib -rpath /home/jan/swarm-1.4.1/lib -L/usr/local/lib 
-L/usr/local/lib -L/usr/X11R6/lib -rpath /usr/X11R6/lib -L/usr/local/lib 
-L/usr/local/lib -rpath /usr/loca
l/lib -L/usr/local/lib -rpath /usr/local/lib -L/usr/local/lib -L/usr/local/lib 
-rpath /usr/local/lib -L/usr/X11R6/lib  -o heatbugs Heatbug.o HeatSpace.o 
main.o HeatbugModelSwarm.o HeatbugObserverSwarm.o HeatbugBatchSwarm.o  -lspace 
-lanalysis -lsimtools -
lsimtoolsgui -ltkobjc -ltclobjc -lactivity -lrandom -lobjectbase -lcollections 
-ldefobj -lmisc -lBLT -ltk8.0 -ltcl8.0 -lXpm -lpng -lhdf5 -lz -lffi -lX11  -lm 
-lobjc -ldl 
gcc -g -O2 -L/home/jan/swarm-1.4.1/lib -L/usr/local/lib -L/usr/local/lib 
-L/usr/X11R6/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib 
-L/usr/local/lib -L/usr/local/lib -L/usr/X11R6/lib -o heatbugs Heatbug.o 
HeatSpace.o main.o HeatbugModelSwarm.o He
atbugObserverSwarm.o HeatbugBatchSwarm.o -lspace -lanalysis -lsimtools 
-lsimtoolsgui -ltkobjc -ltclobjc -lactivity -lrandom -lobjectbase -lcollections 
-ldefobj -lmisc -lBLT -ltk8.0 -ltcl8.0 -lXpm -lpng -lhdf5 -lz -lffi -lX11 -lm 
-lobjc -ldl -Wl,--rpath -W
l,/home/jan/swarm-1.4.1/lib -Wl,--rpath -Wl,/usr/X11R6/lib -Wl,--rpath 
-Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib
/home/jan/swarm-1.4.1/lib/libtkobjc.a(ButtonPanel.o): warning: multiple common 
of `globalTkInterp'
/home/jan/swarm-1.4.1/lib/libtkobjc.a(Button.o): warning: previous common is 
here
/home/jan/swarm-1.4.1/lib/libtkobjc.a(ClassDisplayHideButton.o): warning: 
multiple common of `globalTkInterp'
/home/jan/swarm-1.4.1/lib/libtkobjc.a(Button.o): warning: previous common is 
here
/home/jan/swarm-1.4.1/lib/libtkobjc.a(ClassDisplayLabel.o): warning: multiple 
common of `globalTkInterp'
/home/jan/swarm-1.4.1/lib/libtkobjc.a(Button.o): warning: previous common is 
here
/home/jan/swarm-1.4.1/lib/libtkobjc.a(Colormap.o): warning: multiple common of 
`globalTkInterp'
/home/jan/swarm-1.4.1/lib/libtkobjc.a(Button.o): warning: previous common is 
here
/home/jan/swarm-1.4.1/lib/libtkobjc.a(CompleteProbeDisplayLabel.o): warning: 
multiple common of `globalTkInterp'
/home/jan/swarm-1.4.1/lib/libtkobjc.a(Button.o): warning: previous common is 
here
/home/jan/swarm-1.4.1/lib/libtkobjc.a(Frame.o): warning: multiple common of 
`globalTkInterp'
/home/jan/swarm-1.4.1/lib/libtkobjc.a(Button.o): warning: previous common is 
here
/home/jan/swarm-1.4.1/lib/libtkobjc.a(Graph.o): warning: multiple common of 
`globalTkInterp'
/home/jan/swarm-1.4.1/lib/libtkobjc.a(Button.o): warning: previous common is 
here
/home/jan/swarm-1.4.1/lib/libtkobjc.a(Label.o): warning: multiple common of 
`globalTkInterp'
/home/jan/swarm-1.4.1/lib/libtkobjc.a(Button.o): warning: previous common is 
here
/home/jan/swarm-1.4.1/lib/libtkobjc.a(MessageProbeEntry.o): warning: multiple 
common of `globalTkInterp'
/home/jan/swarm-1.4.1/lib/libtkobjc.a(Button.o): warning: previous common is 
here
/home/jan/swarm-1.4.1/lib/libtkobjc.a(ProbeCanvas.o): warning: multiple common 
of `globalTkInterp'

This goes on a bit, believe me.

Nevertheless, heatbugs just runs fine. The other apps as well.

So what is wrong here? Maybe it's obvious, but I'm stumped.

Another thing I'm unclear about is the pow() inlining bug Steve Emsley
reported. According to the SwarmFaq info and my /usr/include/__math.h,
my gcc should have the bug, but the Swarm configure appears to check
for this bug and can't find it. So, is the bug fix somewhere else then
in the code snippet in the SwarmFaq?

That's enough for today, tomorrow will prob bring you more reports of
this kind.

Cheers,

Jan.

Jan Kreft                               Phone +44 (0)1222 876036
Cardiff School of Biosciences           Fax   +44 (0)1222 874305
Cardiff University                      E-mail address@hidden
PO Box 915, Cardiff CF1 3TL, UK
 



                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

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