[mpich-discuss] Assembler messages at build ?

Lou Picciano loupicciano at comcast.net
Sat Nov 23 23:31:35 CST 2013


Junchao,

Tests you propose - on our 32-bit attempt - are below. I hope something is useful!:

----- Original Message -----
From: "Junchao Zhang" <jczhang at mcs.anl.gov>
To: discuss at mpich.org
Sent: Saturday, November 23, 2013 10:02:04 PM
Subject: Re: [mpich-discuss] Assembler messages at build ?

Hi, Lou, 
It seems you met a compiler bug which shows up at the assemble stage. 
Let's look at what it is. Try make V=1 src/mpi/coll/helper_fns.lo ...

Copy the command which gcc used to compile helper_fns.c , Then add extra flags " -v -save-temps" to the command. You should find the error happens at which line of the helper_fns.s file. Let's see what you will find. 
Thanks. 

--Junchao Zhang 

>>> ---------------  

$ gcc -v -save-temps -DHAVE_CONFIG_H -I. -I./src/include  -I./src/include -I./src/mpi/datatype -I./src/mpi/spawn -Isrc/util/logging/common -I./src/util/wrappers -I./src/util/wrappers -I./src/binding/cxx -I/datapool/home/drlou/Downloads/mpich-3.0.4/src/binding/f77 -Isrc/binding/f90 -I./src/mpid/ch3/include -I./src/mpid/ch3/include  -I./src/mpid/ch3/channels/nemesis/include -I./src/mpid/ch3/channels/nemesis/include -I./src/mpid/ch3/channels/nemesis/utils/monitor
 -I./src/mpid/common/datatype -I./src/mpid/common/datatype -I./src/mpid/common/sched   -I./src/mpid/common/thread   -I./src/pmi/simple  -I/datapool/home/drlou/Downloads/mpich-3.0.4/src/mpl/include -I/datapool/home/drlou/Downloads/mpich-3.0.4/src/mpl/include -I/datapool/home/drlou/Downloads/mpich-3.0.4/src/openpa/src -I/datapool/home/drlou/Downloads/mpich-3.0.4/src/openpa/src -I/datapool/home/drlou/Downloads/mpich-3.0.4/src/mpi/romio/include  -m3epbase.Tpo -c -o src/mpi/coll/helper_fns.lo src/mpi/coll/helper_fns.c

Using built-in specs.
COLLECT_GCC=gcc
Target: i386-pc-solaris2.11
Configured with: /data/jenkins/jobs/oi-userland/workspace/components/gcc47/gcc-4.7.3/configure CC=/usr/gcc/4.7/bin/gcc CXX=/usr/gcc/4.7/bin/g++ CFLAGS='-g -O2' CXXFLAGS=' ' LDFLAGS=-m32 PKG_CONFIG_PATH=/usr/lib/pkgconfig --prefix=/usr/gcc/4.7 --mandir=/usr/gcc/4.7/share/man --bindir=/usr/gcc/4.7/bin --libdir=/usr/gcc/4.7/lib --sbindir=/usr/gcc/4.7/sbin --sbindir=/usr/gcc/4.7/bin --libdir=/usr/gcc/4.7/lib --libexecdir=/usr/gcc/4.7/lib --host i386-pc-solaris2.11 --build i386-pc-solaris2.11 --target i386-pc-solaris2.11 --with-boot-ldflags=-R/usr/gcc/4.7/lib --enable-plugins --enable-objc-gc --enable-languages=c,c++,fortran,lto,objc --enable-ld=no --with-as=/usr/bin/gas --with-gnu-as --with-build-time-tools=/usr/gnu/i386-pc-solaris2.11/bin --disable-libitm LDFLAGS=-R/usr/gcc/4.7/lib
Thread model: posix
gcc version 4.7.3 (GCC) 
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-D' 'HAVE_CONFIG_H' '-I' '.' '-I' './src/include' '-I' './src/include' '-I' './src/mpi/datatype' '-I' './src/mpi/spawn' '-I' 'src/util/logging/common' '-I' './src/util/wrappers' '-I' './src/util/wrappers' '-I' './src/binding/cxx' '-I' '/datapool/home/drlou/Downloads/mpich-3.0.4/src/binding/f77' '-I' 'src/binding/f90' '-I' './src/mpid/ch3/include' '-I' './src/mpid/ch3/include' '-I' './src/mpid/ch3/channels/nemesis/include' '-I' './src/mpid/ch3/channels/nemesis/include' '-I' './src/mpid/ch3/channels/nemesis/utils/monitor' '-I' './src/mpid/common/datatype' '-I' './src/mpid/common/datatype' '-I' './src/mpid/common/sched' '-I' './src/mpid/common/thread' '-I' './src/pmi/simple' '-I' '/datapool/home/drlou/Downloads/mpich-3.0.4/src/mpl/include' '-I' '/datapool/home/drlou/Downloads/mpich-3.0.4/src/mpl/include' '-I' '/datapool/home/drlou/Downloads/mpich-3.0.4/src/openpa/src' '-I' '/datapool/home/drlou/Downloads/mpich-3.0.4/src/openpa/src' '-I' '/datapool/home/drlou/Downloads/mpich-3.0.4/src/mpi/romio/include' '-m32' '-O2' '-MT' 'src/mpi/coll/helper_fns.lo' '-MD' '-MP' '-MF' '.Tpo' '-c' '-o' 'src/mpi/coll/helper_fns.lo' '-mtune=generic' '-march=pentium4'
 /usr/gcc/4.7/lib/gcc/i386-pc-solaris2.11/4.7.3/cc1 -E -quiet -v -I . -I ./src/include -I ./src/include -I ./src/mpi/datatype -I ./src/mpi/spawn -I src/util/logging/common -I ./src/util/wrappers -I ./src/util/wrappers -I ./src/binding/cxx -I /datapool/home/drlou/Downloads/mpich-3.0.4/src/binding/f77 -I src/binding/f90 -I ./src/mpid/ch3/include -I ./src/mpid/ch3/include -I ./src/mpid/ch3/channels/nemesis/include -I ./src/mpid/ch3/channels/nemesis/include -I ./src/mpid/ch3/channels/nemesis/utils/monitor -I ./src/mpid/common/datatype -I ./src/mpid/common/datatype -I ./src/mpid/common/sched -I ./src/mpid/common/thread -I ./src/pmi/simple -I /datapool/home/drlou/Downloads/mpich-3.0.4/src/mpl/include -I /datapool/home/drlou/Downloads/mpich-3.0.4/src/mpl/include -I /datapool/home/drlou/Downloads/mpich-3.0.4/src/openpa/src -I /datapool/home/drlou/Downloads/mpich-3.0.4/src/openpa/src -I /datapool/home/drlou/Downloads/mpich-3.0.4/src/mpi/romio/include -MD src/mpi/coll/helper_fns.d -MF .Tpo -MP -MT src/mpi/coll/helper_fns.lo -D HAVE_CONFIG_H src/mpi/coll/helper_fns.c -m32 -mtune=generic -march=pentium4 -O2 -fpch-preprocess -o helper_fns.i
ignoring nonexistent directory "/usr/gcc/4.7/lib/gcc/i386-pc-solaris2.11/4.7.3/include-fixed"
ignoring nonexistent directory "/usr/gcc/4.7/lib/gcc/i386-pc-solaris2.11/4.7.3/../../../../i386-pc-solaris2.11/include"
ignoring duplicate directory "./src/include"
ignoring duplicate directory "./src/util/wrappers"
ignoring duplicate directory "./src/mpid/ch3/include"
ignoring duplicate directory "./src/mpid/ch3/channels/nemesis/include"
ignoring duplicate directory "./src/mpid/common/datatype"
ignoring duplicate directory "/datapool/home/drlou/Downloads/mpich-3.0.4/src/mpl/include"
ignoring duplicate directory "/datapool/home/drlou/Downloads/mpich-3.0.4/src/openpa/src"
#include "..." search starts here:
#include <...> search starts here:
 .
 ./src/include
 ./src/mpi/datatype
 ./src/mpi/spawn
 src/util/logging/common
 ./src/util/wrappers
 ./src/binding/cxx
 /datapool/home/drlou/Downloads/mpich-3.0.4/src/binding/f77
 src/binding/f90
 ./src/mpid/ch3/include
 ./src/mpid/ch3/channels/nemesis/include
 ./src/mpid/ch3/channels/nemesis/utils/monitor
 ./src/mpid/common/datatype
 ./src/mpid/common/sched
 ./src/mpid/common/thread
 ./src/pmi/simple
 /datapool/home/drlou/Downloads/mpich-3.0.4/src/mpl/include
 /datapool/home/drlou/Downloads/mpich-3.0.4/src/openpa/src
 /datapool/home/drlou/Downloads/mpich-3.0.4/src/mpi/romio/include
 /usr/gcc/4.7/lib/gcc/i386-pc-solaris2.11/4.7.3/include
 /usr/local/include
 /usr/gcc/4.7/include
 /usr/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-D' 'HAVE_CONFIG_H' '-I' '.' '-I' './src/include' '-I' './src/include' '-I' './src/mpi/datatype' '-I' './src/mpi/spawn' '-I' 'src/util/logging/common' '-I' './src/util/wrappers' '-I' './src/util/wrappers' '-I' './src/binding/cxx' '-I' '/datapool/home/drlou/Downloads/mpich-3.0.4/src/binding/f77' '-I' 'src/binding/f90' '-I' './src/mpid/ch3/include' '-I' './src/mpid/ch3/include' '-I' './src/mpid/ch3/channels/nemesis/include' '-I' './src/mpid/ch3/channels/nemesis/include' '-I' './src/mpid/ch3/channels/nemesis/utils/monitor' '-I' './src/mpid/common/datatype' '-I' './src/mpid/common/datatype' '-I' './src/mpid/common/sched' '-I' './src/mpid/common/thread' '-I' './src/pmi/simple' '-I' '/datapool/home/drlou/Downloads/mpich-3.0.4/src/mpl/include' '-I' '/datapool/home/drlou/Downloads/mpich-3.0.4/src/mpl/include' '-I' '/datapool/home/drlou/Downloads/mpich-3.0.4/src/openpa/src' '-I' '/datapool/home/drlou/Downloads/mpich-3.0.4/src/openpa/src' '-I' '/datapool/home/drlou/Downloads/mpich-3.0.4/src/mpi/romio/include' '-m32' '-O2' '-MT' 'src/mpi/coll/helper_fns.lo' '-MD' '-MP' '-MF' '.Tpo' '-c' '-o' 'src/mpi/coll/helper_fns.lo' '-mtune=generic' '-march=pentium4'
 /usr/gcc/4.7/lib/gcc/i386-pc-solaris2.11/4.7.3/cc1 -fpreprocessed helper_fns.i -quiet -dumpbase helper_fns.c -m32 -mtune=generic -march=pentium4 -auxbase-strip src/mpi/coll/helper_fns.lo -O2 -version -o helper_fns.s
GNU C (GCC) version 4.7.3 (i386-pc-solaris2.11)
        compiled by GNU C version 4.7.3, GMP version 5.0.5, MPFR version 3.1.2, MPC version 1.0.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C (GCC) version 4.7.3 (i386-pc-solaris2.11)
        compiled by GNU C version 4.7.3, GMP version 5.0.5, MPFR version 3.1.2, MPC version 1.0.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: c7fe0bd573806c06972d4854854faddb
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-D' 'HAVE_CONFIG_H' '-I' '.' '-I' './src/include' '-I' './src/include' '-I' './src/mpi/datatype' '-I' './src/mpi/spawn' '-I' 'src/util/logging/common' '-I' './src/util/wrappers' '-I' './src/util/wrappers' '-I' './src/binding/cxx' '-I' '/datapool/home/drlou/Downloads/mpich-3.0.4/src/binding/f77' '-I' 'src/binding/f90' '-I' './src/mpid/ch3/include' '-I' './src/mpid/ch3/include' '-I' './src/mpid/ch3/channels/nemesis/include' '-I' './src/mpid/ch3/channels/nemesis/include' '-I' './src/mpid/ch3/channels/nemesis/utils/monitor' '-I' './src/mpid/common/datatype' '-I' './src/mpid/common/datatype' '-I' './src/mpid/common/sched' '-I' './src/mpid/common/thread' '-I' './src/pmi/simple' '-I' '/datapool/home/drlou/Downloads/mpich-3.0.4/src/mpl/include' '-I' '/datapool/home/drlou/Downloads/mpich-3.0.4/src/mpl/include' '-I' '/datapool/home/drlou/Downloads/mpich-3.0.4/src/openpa/src' '-I' '/datapool/home/drlou/Downloads/mpich-3.0.4/src/openpa/src' '-I' '/datapool/home/drlou/Downloads/mpich-3.0.4/src/mpi/romio/include' '-m32' '-O2' '-MT' 'src/mpi/coll/helper_fns.lo' '-MD' '-MP' '-MF' '.Tpo' '-c' '-o' 'src/mpi/coll/helper_fns.lo' '-mtune=generic' '-march=pentium4'
 /usr/bin/gas -v -I . -I ./src/include -I ./src/include -I ./src/mpi/datatype -I ./src/mpi/spawn -I src/util/logging/common -I ./src/util/wrappers -I ./src/util/wrappers -I ./src/binding/cxx -I /datapool/home/drlou/Downloads/mpich-3.0.4/src/binding/f77 -I src/binding/f90 -I ./src/mpid/ch3/include -I ./src/mpid/ch3/include -I ./src/mpid/ch3/channels/nemesis/include -I ./src/mpid/ch3/channels/nemesis/include -I ./src/mpid/ch3/channels/nemesis/utils/monitor -I ./src/mpid/common/datatype -I ./src/mpid/common/datatype -I ./src/mpid/common/sched -I ./src/mpid/common/thread -I ./src/pmi/simple -I /datapool/home/drlou/Downloads/mpich-3.0.4/src/mpl/include -I /datapool/home/drlou/Downloads/mpich-3.0.4/src/mpl/include -I /datapool/home/drlou/Downloads/mpich-3.0.4/src/openpa/src -I /datapool/home/drlou/Downloads/mpich-3.0.4/src/openpa/src -I /datapool/home/drlou/Downloads/mpich-3.0.4/src/mpi/romio/include -V -Qy -s --32 -o src/mpi/coll/helper_fns.lo helper_fns.s
GNU assembler version 2.23.1 (i386-pc-solaris2.11) using BFD version (GNU Binutils) 2.23.1
helper_fns.s: Assembler messages:
helper_fns.s:851: Error: number of operands mismatch for `mov'
helper_fns.s:859: Error: number of operands mismatch for `mov'

>>> ---------------  



On Sat, Nov 23, 2013 at 11:13 AM, Lou Picciano < loupicciano at comcast.net > wrote: 


mpich Wizards, 

Trying our first build of mpich-3.0.4, and seeing Assembler messages at build time: 
(there are clearly a lot of config options to become familiar with; but, as a first pass): 

Configure is: 
./configure --prefix=/usr/local/mpi32 \ 
CFLAGFS="-m32" FFLAGS="-m32" \ 
| tee c.txt 

$ make 
... 
CC src/mpi/attr/attrutil.lo 
CC src/mpi/attr/dup_fn.lo 
CC src/mpi/coll/allred_group.lo 
CC src/mpi/coll/barrier_group.lo 
CC src/mpi/coll/helper_fns.lo 
/var/tmp//ccf4aaqC.s: Assembler messages: 
/var/tmp//ccf4aaqC.s:851: Error: number of operands mismatch for `mov' 
/var/tmp//ccf4aaqC.s:859: Error: number of operands mismatch for `mov' 
make[2]: *** [src/mpi/coll/helper_fns.lo] Error 1 
make[2]: Leaving directory `<build_path>/mpich-3.0.4' 
make[1]: *** [all-recursive] Error 1 

gcc 4.7.3 
Platform is i86 OpenIndiana (Illumos, Solaris-ish) 

Can anyone point me in the right direction? 

Lou 
_______________________________________________ 
discuss mailing list discuss at mpich.org 
To manage subscription options or unsubscribe: 
https://lists.mpich.org/mailman/listinfo/discuss 


_______________________________________________
discuss mailing list     discuss at mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss



More information about the discuss mailing list