Welcome to WhatIf!

Welcome to WhatIf!

What if Intel started to share ideas and prototype software products as they were being developed? Intel is pleased to now offer advanced research items in the form of pre-production tools, add-ons, and prototypes online for you to try out. We invite you to test drive these tools, and then collaborate with your peers and offer us feedback here.

The technologies we are posting come from some of the best and brightest engineers here at Intel, engineers from Intels research and advanced development groups who are passionate about software development. If you are a software developer or early adopter of new technologies, this is the site where youll be able to preview early technology implementations that we post. These technologies complement and augment Intel commercial product and open source offerings youll find at other sites.

Use this forum to comment on and discuss Intel's WhatIf offerings. For more information, including blogs, articles and links, visit http://whatif.intel.com/

Steve
5 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Thank You

I want to about Cloud Computing. From where can I get more information for it?

Thanks

Thank you. google

I'm attempting to use the Intel® Direct Ethernet Transport with Fedora 20.  I encountered the following issue:

>>>>>

$ rpmbuild -tb det-1.1.0.tar.gz
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.J2GGyw
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd /root/rpmbuild/BUILD
+ rm -rf det-1.1.0
+ /usr/bin/gzip -dc /home/ojohnson/Downloads/det-1.1/det-1.1.0.tar.gz
+ /usr/bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd det-1.1.0
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.hjoAAa
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd det-1.1.0
+ CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches  -m64 -mtune=generic'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches  -m64 -mtune=generic'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches  -m64 -mtune=generic -I/usr/lib64/gfortran/modules'
+ export FFLAGS
+ FCFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches  -m64 -mtune=generic -I/usr/lib64/gfortran/modules'
+ export FCFLAGS
+ LDFLAGS='-Wl,-z,relro '
+ export LDFLAGS
++ find . -name config.guess -o -name config.sub
+ for i in '$(find . -name config.guess -o -name config.sub)'
++ basename ./config/config.sub
+ '[' -f /usr/lib/rpm/redhat/config.sub ']'
+ /usr/bin/rm -f ./config/config.sub
++ basename ./config/config.sub
+ /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config/config.sub
'/usr/lib/rpm/redhat/config.sub' -> './config/config.sub'
+ for i in '$(find . -name config.guess -o -name config.sub)'
++ basename ./config/config.guess
+ '[' -f /usr/lib/rpm/redhat/config.guess ']'
+ /usr/bin/rm -f ./config/config.guess
++ basename ./config/config.guess
+ /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config/config.guess
'/usr/lib/rpm/redhat/config.guess' -> './config/config.guess'
+ ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-redhat-linux-gnu
checking host system type... x86_64-redhat-linux-gnu
checking for style of include used by make... GNU
checking for x86_64-redhat-linux-gnu-gcc... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... none
checking for a sed that does not truncate output... /usr/bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... nm
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for x86_64-redhat-linux-gnu-g++... no
checking for x86_64-redhat-linux-gnu-c++... no
checking for x86_64-redhat-linux-gnu-gpp... no
checking for x86_64-redhat-linux-gnu-aCC... no
checking for x86_64-redhat-linux-gnu-CC... no
checking for x86_64-redhat-linux-gnu-cxx... no
checking for x86_64-redhat-linux-gnu-cc++... no
checking for x86_64-redhat-linux-gnu-cl... no
checking for x86_64-redhat-linux-gnu-FCC... no
checking for x86_64-redhat-linux-gnu-KCC... no
checking for x86_64-redhat-linux-gnu-RCC... no
checking for x86_64-redhat-linux-gnu-xlC_r... no
checking for x86_64-redhat-linux-gnu-xlC... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... none
checking how to run the C++ preprocessor... g++ -E
checking for x86_64-redhat-linux-gnu-g77... no
checking for x86_64-redhat-linux-gnu-f77... no
checking for x86_64-redhat-linux-gnu-xlf... no
checking for x86_64-redhat-linux-gnu-frt... no
checking for x86_64-redhat-linux-gnu-pgf77... no
checking for x86_64-redhat-linux-gnu-fort77... no
checking for x86_64-redhat-linux-gnu-fl32... no
checking for x86_64-redhat-linux-gnu-af77... no
checking for x86_64-redhat-linux-gnu-f90... no
checking for x86_64-redhat-linux-gnu-xlf90... no
checking for x86_64-redhat-linux-gnu-pgf90... no
checking for x86_64-redhat-linux-gnu-epcf90... no
checking for x86_64-redhat-linux-gnu-f95... no
checking for x86_64-redhat-linux-gnu-fort... no
checking for x86_64-redhat-linux-gnu-xlf95... no
checking for x86_64-redhat-linux-gnu-ifc... no
checking for x86_64-redhat-linux-gnu-efc... no
checking for x86_64-redhat-linux-gnu-pgf95... no
checking for x86_64-redhat-linux-gnu-lf95... no
checking for x86_64-redhat-linux-gnu-gfortran... no
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... no
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse nm output from gcc object... ok
checking for objdir... .libs
checking for x86_64-redhat-linux-gnu-ar... no
checking for ar... ar
checking for x86_64-redhat-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for x86_64-redhat-linux-gnu-strip... no
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... no
checking if g77 supports -c -o file.o... no
checking whether the g77 linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for x86_64-redhat-linux-gnu-gcc... gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) none
checking whether ld accepts --version-script... yes
checking Check for bitops support... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating kernel/Makefile
config.status: creating usr/Makefile
config.status: creating det.spec
config.status: creating config.h
config.status: executing depfiles commands
+ make
make  all-recursive
make[1]: Entering directory `/root/rpmbuild/BUILD/det-1.1.0'
Making all in kernel
make[2]: Entering directory `/root/rpmbuild/BUILD/det-1.1.0/kernel'
mv Makefile Makefile~
cp ./Makefile-module Makefile
chmod 0644 Makefile
make SUBDIRS=.
make[3]: Entering directory `/root/rpmbuild/BUILD/det-1.1.0/kernel'
make -C /lib/modules/3.16.2-201.fc20.x86_64/build SUBDIRS=/root/rpmbuild/BUILD/det-1.1.0/kernel/. modules
make[4]: Entering directory `/usr/src/kernels/3.16.2-201.fc20.x86_64'
  CC [M]  /root/rpmbuild/BUILD/det-1.1.0/kernel/./det_main.o
In file included from /root/rpmbuild/BUILD/det-1.1.0/kernel/./det_driver.h:72:0,
                 from /root/rpmbuild/BUILD/det-1.1.0/kernel/./det_main.c:21:
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_memops.h: In function 'det_memcpy':
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_memops.h:50:2: error: implicit declaration of function 'prefetch_range' [-Werror=implicit-function-declaration]
  prefetch_range(from, size);
  ^
In file included from /root/rpmbuild/BUILD/det-1.1.0/kernel/./det_main.c:21:0:
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_driver.h: In function 'det_get_id':
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_driver.h:1135:2: error: implicit declaration of function 'idr_get_new' [-Werror=implicit-function-declaration]
  return idr_get_new(idp, ptr, id);
  ^
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_driver.h: In function 'det_idr_pre_get':
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_driver.h:1158:2: error: implicit declaration of function 'idr_pre_get' [-Werror=implicit-function-declaration]
  ret = idr_pre_get(idp, GFP_ATOMIC);
  ^
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_driver.h: In function 'det_kmap_src':
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_driver.h:1614:27: error: 'KM_SOFTIRQ0' undeclared (first use in this function)
  return kmap_atomic(page, KM_SOFTIRQ0);
                           ^
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_driver.h:1614:27: note: each undeclared identifier is reported only once for each function it appears in
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_driver.h:1614:2: error: too many arguments to function 'kmap_atomic'
  return kmap_atomic(page, KM_SOFTIRQ0);
  ^
In file included from include/linux/pagemap.h:10:0,
                 from /root/rpmbuild/BUILD/det-1.1.0/kernel/./det_driver.h:27,
                 from /root/rpmbuild/BUILD/det-1.1.0/kernel/./det_main.c:21:
include/linux/highmem.h:66:21: note: declared here
 static inline void *kmap_atomic(struct page *page)
                     ^
In file included from /root/rpmbuild/BUILD/det-1.1.0/kernel/./det_main.c:21:0:
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_driver.h: In function 'det_kunmap_src':
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_driver.h:1624:35: error: macro "kunmap_atomic" passed 2 arguments, but takes just 1
   kunmap_atomic(vaddr, KM_SOFTIRQ0);
                                   ^
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_driver.h:1624:3: error: 'kunmap_atomic' undeclared (first use in this function)
   kunmap_atomic(vaddr, KM_SOFTIRQ0);
   ^
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_driver.h: In function 'det_kmap_dst':
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_driver.h:1630:27: error: 'KM_SOFTIRQ1' undeclared (first use in this function)
  return kmap_atomic(page, KM_SOFTIRQ1);
                           ^
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_driver.h:1630:2: error: too many arguments to function 'kmap_atomic'
  return kmap_atomic(page, KM_SOFTIRQ1);
  ^
In file included from include/linux/pagemap.h:10:0,
                 from /root/rpmbuild/BUILD/det-1.1.0/kernel/./det_driver.h:27,
                 from /root/rpmbuild/BUILD/det-1.1.0/kernel/./det_main.c:21:
include/linux/highmem.h:66:21: note: declared here
 static inline void *kmap_atomic(struct page *page)
                     ^
In file included from /root/rpmbuild/BUILD/det-1.1.0/kernel/./det_main.c:21:0:
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_driver.h: In function 'det_kunmap_dst':
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_driver.h:1637:35: error: macro "kunmap_atomic" passed 2 arguments, but takes just 1
   kunmap_atomic(vaddr, KM_SOFTIRQ1);
                                   ^
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_driver.h:1637:3: error: 'kunmap_atomic' undeclared (first use in this function)
   kunmap_atomic(vaddr, KM_SOFTIRQ1);
   ^
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_main.c: At top level:
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_main.c:28:15: error: expected declaration specifiers or '...' before string constant
 MODULE_AUTHOR("Intel Corporation");
               ^
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_main.c:29:16: error: expected declaration specifiers or '...' before string constant
 MODULE_LICENSE("GPL");
                ^
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_main.c:23:26: error: expected declaration specifiers or '...' before string constant
 #define DET_MODULE_NAME  "Intel(R) Direct Ethernet Transport"
                          ^
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_main.c:31:20: note: in expansion of macro 'DET_MODULE_NAME'
 MODULE_DESCRIPTION(DET_MODULE_NAME);
                    ^
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_main.c:24:26: error: expected declaration specifiers or '...' before string constant
 #define DET_MODULE_ALIAS "det"
                          ^
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_main.c:32:14: note: in expansion of macro 'DET_MODULE_ALIAS'
 MODULE_ALIAS(DET_MODULE_ALIAS);
              ^
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_main.c:25:28: error: expected declaration specifiers or '...' before string constant
 #define DET_MODULE_VERSION "1.1" " - " __DATE__ " " __TIME__
                            ^
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_main.c:33:16: note: in expansion of macro 'DET_MODULE_VERSION'
 MODULE_VERSION(DET_MODULE_VERSION);
                ^
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_main.c:174:2: error: unknown field 'ioctl' specified in initializer
  ioctl:  det_ioctl,
  ^
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_main.c:174:2: warning: initialization from incompatible pointer type [enabled by default]
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_main.c:174:2: warning: (near initialization for 'det_fops.aio_read') [enabled by default]
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_main.c:194:29: error: 'RW_LOCK_UNLOCKED' undeclared here (not in a function)
 rwlock_t detdev_list_lock = RW_LOCK_UNLOCKED;
                             ^
In file included from /root/rpmbuild/BUILD/det-1.1.0/kernel/./det_main.c:21:0:
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_driver.h:693:42: error: 'SPIN_LOCK_UNLOCKED' undeclared here (not in a function)
 #define DET_SPIN_LOCK_UNLOCKED { .lock = SPIN_LOCK_UNLOCKED }
                                          ^
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_main.c:209:38: note: in expansion of macro 'DET_SPIN_LOCK_UNLOCKED'
 det_spinlock_t scheduler_list_lock = DET_SPIN_LOCK_UNLOCKED;
                                      ^
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_main.c: In function 'det_idr_free':
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_main.c:267:22: error: 'IDR_FREE_MAX' undeclared (first use in this function)
   idp->id_free_cnt = IDR_FREE_MAX;
                      ^
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_main.c: In function 'det_exit':
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_main.c:753:3: error: implicit declaration of function 'breakpoint' [-Werror=implicit-function-declaration]
   assert(list_empty(&scheduler->qp_list));
   ^
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_main.c: In function 'det_open':
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_main.c:801:2: error: implicit declaration of function 'try_module_get' [-Werror=implicit-function-declaration]
  try_module_get(THIS_MODULE);
  ^
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_main.c: In function 'det_close':
/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_main.c:836:2: error: implicit declaration of function 'module_put' [-Werror=implicit-function-declaration]
  module_put(THIS_MODULE);
  ^
cc1: some warnings being treated as errors
make[5]: *** [/root/rpmbuild/BUILD/det-1.1.0/kernel/./det_main.o] Error 1
make[4]: *** [_module_/root/rpmbuild/BUILD/det-1.1.0/kernel/.] Error 2
make[4]: Leaving directory `/usr/src/kernels/3.16.2-201.fc20.x86_64'
make[3]: *** [default] Error 2
make[3]: Leaving directory `/root/rpmbuild/BUILD/det-1.1.0/kernel'
make[2]: *** [det.ko] Error 2
make[2]: Leaving directory `/root/rpmbuild/BUILD/det-1.1.0/kernel'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/rpmbuild/BUILD/det-1.1.0'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.hjoAAa (%build)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.hjoAAa (%build)

<<<<<

My development environment is as follows:

$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.3/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-isl=/builddir/build/BUILD/gcc-4.8.3-20140911/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.3-20140911/obj-x86_64-redhat-linux/cloog-install --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.3 20140911 (Red Hat 4.8.3-7) (GCC) 

>>>>>

Any ideas as to how I can resolve the errors?

Thanks,

Oran 

 

 

Login to leave a comment.