[Go to BBS]
All articles in a thread
SubjectSAD compilatin error
Article No819
Date: 2010/05/25(Tue) 03:23:15
ContributorH Sayed < >
Hi All,

I have a problem compiling SAD, the same problem could be seen in Mac Os X 10.6.3 and linux box.

when I give make command that is the error I get

!************************************************************************************************
g77 -o temit.o -c -g -O1 -Wall -ff90 -pedantic -fno-second-underscore -fdollar-ok -fargument-alias -mpreferred-stack-boundary=4 -I/Users/hsayed/mac.accelerator.software/SAD/oldsad-snapshot-2010-05-24/src -I/usr/X11R6/include -I/Users/hsayed/mac.accelerator.software/SAD/oldsad-snapshot-2010-05-24/arch/i386-Darwin10/include \
/Users/hsayed/mac.accelerator.software/SAD/oldsad-snapshot-2010-05-24/src/temit.f
Warning: Mixed CHARACTER and non-CHARACTER types via COMMON/EQUIVALENCE -- for example, `pbuf' and `buf'
Warning: Mixed CHARACTER and non-CHARACTER types via COMMON/EQUIVALENCE -- for example, `opcode' and `constop'
Warning: Mixed CHARACTER and non-CHARACTER types via COMMON/EQUIVALENCE -- for example, `pname' and `idtype'
/Users/hsayed/mac.accelerator.software/SAD/oldsad-snapshot-2010-05-24/src/temit.f: In block-data unit `inittemw':
/Users/hsayed/mac.accelerator.software/SAD/oldsad-snapshot-2010-05-24/src/temit.f:178: warning:
common /temw/ r(6,6),ri(6,7),emx,emy,emz
1
/Users/hsayed/mac.accelerator.software/SAD/oldsad-snapshot-2010-05-24/src/temit.f:761: (continued):
common /temw/ r(6,6),ri(6,7),emx,emy,emz
2
Common block `temw' is SAVEd, explicitly or implicitly, at (2) but not SAVEd at (1)
/Users/hsayed/mac.accelerator.software/SAD/oldsad-snapshot-2010-05-24/src/temit.f: In subroutine `tintraconv':
/Users/hsayed/mac.accelerator.software/SAD/oldsad-snapshot-2010-05-24/src/temit.f:950:
integer*4 itoul,id
1
/Users/hsayed/mac.accelerator.software/SAD/oldsad-snapshot-2010-05-24/src/temit.f:952: (continued):
common /toul/itoul,id
2
Invalid declaration of or reference to symbol `itoul' at (2) [initially seen at (1)]
/Users/hsayed/mac.accelerator.software/SAD/oldsad-snapshot-2010-05-24/src/temit.f:950:
integer*4 itoul,id
1
/Users/hsayed/mac.accelerator.software/SAD/oldsad-snapshot-2010-05-24/src/temit.f:952: (continued):
common /toul/itoul,id
2
Invalid declaration of or reference to symbol `id' at (2) [initially seen at (1)]
Warning: Mixed CHARACTER and non-CHARACTER types via COMMON/EQUIVALENCE -- for example, `pbuf' and `buf'
Warning: Mixed CHARACTER and non-CHARACTER types via COMMON/EQUIVALENCE -- for example, `opcode' and `constop'
Warning: Mixed CHARACTER and non-CHARACTER types via COMMON/EQUIVALENCE -- for example, `pname' and `idtype'
/Users/hsayed/mac.accelerator.software/SAD/oldsad-snapshot-2010-05-24/src/temit.f:302: warning:
call tfsetlist(ntflist,itfcopy1(iari),0.d0,iamat,4)
1
/Users/hsayed/mac.accelerator.software/SAD/oldsad-snapshot-2010-05-24/src/temit.f:1003: (continued):
call tfsetlist(ntfreal,0,dble(id),iax,1)
2
Argument #3 of `tfsetlist' is one type at (2) but is some other type at (1) [info -f g77 M GLOBALS]
/Users/hsayed/mac.accelerator.software/SAD/oldsad-snapshot-2010-05-24/src/temit.f: Outside of any program unit:
In file included from /Users/hsayed/mac.accelerator.software/SAD/oldsad-snapshot-2010-05-24/src/temit.f:8:
In file included from /Users/hsayed/mac.accelerator.software/SAD/oldsad-snapshot-2010-05-24/src/temit.f:645:
/Users/hsayed/mac.accelerator.software/SAD/oldsad-snapshot-2010-05-24/src/temit.f:952: error: size of variable 'toul_' is too large
make[2]: *** [temit.o] Error 1
make[1]: *** [all] Error 2
make: *** [all] Error 2
***************************************************************************************

Did it show for anyone else before, is there a work around?
Thanks in advance

Hisham

SubjectRe: SAD compilatin error
Article No820
Date: 2010/05/30(Sun) 00:34:50
ContributorKAMADA Susumu < >

I use GCC4.4 on Mac Os X 10.6.3. and never find such error messages in SAD compiling, neither in "main trunk" case nor in "amorita branch" case.

The main trunk version will fail in build on LINUX as reported by Morita as in the following.
----------------
Subject: SAD on Linux TIPS
Article No: 749
Date: 2009/11/25(Wed) 02:29:13
Contributor: Akio Morita
1. MAIN trunk after "2009/10/03" fails in build on linux because of the header error of "src/sim/sad_signal.h".

Workaround
A. Rewind "src/sim/sad_signal.h" to revision 1.4.

2. By GCC 4.5, src/tfProcess_.o will fails in build.

Workaround
A. Use GCC before "4.4.x".
B. Use "src/tfProcess_.c" in the "amorita branch" newer than "revision 2904".
----------------

SubjectRe^2: SAD compilatin error
Article No872
Date: 2011/01/02(Sun) 16:40:43
ContributorZhe Duan < >
I'm attempting to compile SAD Main Trunk oldsad-snapshot-2010-12-27 on SLC5.5, and gcc4.4.0 is used. However, during make all process, the following error comes out:
******************************************************************************
[root@duanz oldsad-snapshot-2010-12-27]# make all
make[1]: Entering directory `/usr/src/oldsad/oldsad-snapshot-2010-12-27'
make[2]: Entering directory `/usr/src/oldsad/oldsad-snapshot-2010-12-27/obj/i386-Linux2'
[ -d /usr/src/oldsad/oldsad-snapshot-2010-12-27/src/gdtoa ] || mkdir -p /usr/src/oldsad/oldsad-snapshot-2010-12-27/src/gdtoa
(cd /usr/src/oldsad/oldsad-snapshot-2010-12-27/src/gdtoa; /usr/src/oldsad/oldsad-snapshot-2010-12-27/bin/lndir /usr/src/oldsad/oldsad-snapshot-2010-12-27/contrib/gdtoa)
/usr/src/oldsad/oldsad-snapshot-2010-12-27/contrib/gdtoa/test:
/usr/src/oldsad/oldsad-snapshot-2010-12-27/contrib/gdtoa/test/obad:
(cd /usr/src/oldsad/oldsad-snapshot-2010-12-27/obj/i386-Linux2/libtai-0.60; make it && touch /usr/src/oldsad/oldsad-snapshot-2010-12-27/obj/i386-Linux2/libtai-0.60/.build_done)
make[3]: Entering directory `/usr/src/oldsad/oldsad-snapshot-2010-12-27/obj/i386-Linux2/libtai-0.60'
./compile leapsecs.c
leapsecs.c:13: error: return type defaults to ‘int’
leapsecs.c: In function ‘main’:
leapsecs.c:27: warning: implicit declaration of function ‘exit’
leapsecs.c:27: warning: incompatible implicit declaration of built-in function ‘exit’
make[3]: *** [leapsecs.o] Error 1
make[3]: Leaving directory `/usr/src/oldsad/oldsad-snapshot-2010-12-27/obj/i386-Linux2/libtai-0.60'
make[2]: *** [/usr/src/oldsad/oldsad-snapshot-2010-12-27/obj/i386-Linux2/libtai-0.60/.build_done] Error 2
make[2]: Leaving directory `/usr/src/oldsad/oldsad-snapshot-2010-12-27/obj/i386-Linux2'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/oldsad/oldsad-snapshot-2010-12-27'
make: *** [all] Error 2
******************************************************************************

I wonder if this error is related to the head error of "src/sim/sad_signal.h" as you mentioned, and how to get the "src/sim/sad_signal.h" revision 1.4 ?

Thanks!

Best wishes!

duanz

SubjectRe^3: SAD compilatin error
Article No873
Date: 2011/01/04(Tue) 14:28:16
ContributorAnonymous Coward
Don't pass $SYS_COPT to 3rd party build framework(eg. libtai's conf-cc/conf-ld)

SubjectRe^4: SAD compilatin error
Article No875
Date: 2011/01/04(Tue) 16:58:29
ContributorZhe Duan < >
Thanks for your reply. I made a mistake in the "sad.conf" because I did not set "CC gcc44", which means gcc 4.1.2 was used to compile SAD. After this correction, gcc 4.4.0 was used, however, new errors appeared as below. As you suggested, I tried changing in the oldsad/mk/sad.libtai.mk
echo "$(CC) -I. $(SYS_COPT) $(COPT)" >conf-cc;
echo "$(CC) $(SYS_COPT) $(COPT)" >conf-ld;

to

echo "$(CC) -I. $(COPT)" >conf-cc;
echo "$(CC) $(COPT)" >conf-ld;

but the same error info was always there. I wonder if I understood your suggestion.

Thanks very much!

*********************************************
[root@duanz oldsad]# make all
make[1]: Entering directory `/usr/src/oldsad'
make[2]: Entering directory `/usr/src/oldsad/obj/i386-Linux2'
[ -d /usr/src/oldsad/src/gdtoa ] || mkdir -p /usr/src/oldsad/src/gdtoa
(cd /usr/src/oldsad/src/gdtoa; /usr/src/oldsad/bin/lndir /usr/src/oldsad/contrib/gdtoa)
/usr/src/oldsad/contrib/gdtoa/test:
/usr/src/oldsad/contrib/gdtoa/test/obad:
(cd /usr/src/oldsad/obj/i386-Linux2/libtai-0.60; make it && touch /usr/src/oldsad/obj/i386-Linux2/libtai-0.60/.build_done)
make[3]: Entering directory `/usr/src/oldsad/obj/i386-Linux2/libtai-0.60'
./compile leapsecs_read.c
leapsecs_read.c: In function ‘leapsecs_read’:
leapsecs_read.c:24: error: implicit declaration of function ‘free’
leapsecs_read.c:24: warning: incompatible implicit declaration of built-in function ‘free’
leapsecs_read.c:30: error: implicit declaration of function ‘close’
leapsecs_read.c:32: error: implicit declaration of function ‘malloc’
leapsecs_read.c:32: warning: incompatible implicit declaration of built-in function ‘malloc’
leapsecs_read.c:35: error: implicit declaration of function ‘read’
leapsecs_read.c:37: warning: incompatible implicit declaration of built-in function ‘free’
leapsecs_read.c:46: warning: incompatible implicit declaration of built-in function ‘free’
make[3]: *** [leapsecs_read.o] Error 1
make[3]: Leaving directory `/usr/src/oldsad/obj/i386-Linux2/libtai-0.60'
make[2]: *** [/usr/src/oldsad/obj/i386-Linux2/libtai-0.60/.build_done] Error 2
make[2]: Leaving directory `/usr/src/oldsad/obj/i386-Linux2'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/oldsad'
make: *** [all] Error 2
********************************************

SubjectRe^5: SAD compilatin error
Article No876
Date: 2011/01/04(Tue) 20:38:11
ContributorAnonymous Coward
Execute mostlyclean target before new build in order to remove miss-configured conf-cc.
The correct obj/i386-Linux2/libtai-0.60/conf-cc SHOULD be ``gcc44 -I. -g -O1'' under default $COPT and CC=gcc44.

SubjectRe^6: SAD compilatin error
Article No877
Date: 2011/01/05(Wed) 00:56:46
ContributorZhe Duan < >
OK, it works. Thanks for your help!