Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do you test the ubuntu libmraa ? #31

Open
Pillar1989 opened this issue Sep 26, 2017 · 0 comments
Open

Do you test the ubuntu libmraa ? #31

Pillar1989 opened this issue Sep 26, 2017 · 0 comments

Comments

@Pillar1989
Copy link
Contributor

I tested ubuntu lauchpad mraa. But faild.

Source file was:
int main() { return 0; }
Performing C++ SOURCE FILE Test HAS_CXX__Woverloaded_virtual succeeded with the following output:
Change Dir: /<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_276d6/fast"
make[2]: Entering directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles/CMakeTmp'
/usr/bin/make -f CMakeFiles/cmTC_276d6.dir/build.make CMakeFiles/cmTC_276d6.dir/build
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_276d6.dir/src.cxx.o
/usr/bin/c++     -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror=main -Wformat -Wmain -Wuninitialized -Winit-self -Wnon-virtual-dtor -DHAS_CXX__Woverloaded_virtual   -Woverloaded-virtual -o CMakeFiles/cmTC_276d6.dir/src.cxx.o -c /<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTC_276d6
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_276d6.dir/link.txt --verbose=1
/usr/bin/c++   -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror=main -Wformat -Wmain -Wuninitialized -Winit-self -Wnon-virtual-dtor -DHAS_CXX__Woverloaded_virtual  -Wl,-z,relro  CMakeFiles/cmTC_276d6.dir/src.cxx.o  -o cmTC_276d6 -rdynamic 
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles/CMakeTmp'
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles/CMakeTmp'

Source file was:
int main() { return 0; }
Performing C++ SOURCE FILE Test HAS_CXX__Wreorder succeeded with the following output:
Change Dir: /<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_825eb/fast"
make[2]: Entering directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles/CMakeTmp'
/usr/bin/make -f CMakeFiles/cmTC_825eb.dir/build.make CMakeFiles/cmTC_825eb.dir/build
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_825eb.dir/src.cxx.o
/usr/bin/c++     -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror=main -Wformat -Wmain -Wuninitialized -Winit-self -Wnon-virtual-dtor -Woverloaded-virtual -DHAS_CXX__Wreorder   -Wreorder -o CMakeFiles/cmTC_825eb.dir/src.cxx.o -c /<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTC_825eb
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_825eb.dir/link.txt --verbose=1
/usr/bin/c++   -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror=main -Wformat -Wmain -Wuninitialized -Winit-self -Wnon-virtual-dtor -Woverloaded-virtual -DHAS_CXX__Wreorder  -Wl,-z,relro  CMakeFiles/cmTC_825eb.dir/src.cxx.o  -o cmTC_825eb -rdynamic 
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles/CMakeTmp'
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles/CMakeTmp'

Source file was:
int main() { return 0; }
        "tail -v -n +0 CMakeFiles/CMakeError.log"
==> CMakeFiles/CMakeError.log <==
Determining if the pthread_create exist failed with the following output:
Change Dir: /<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_c24e3/fast"
make[2]: Entering directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles/CMakeTmp'
/usr/bin/make -f CMakeFiles/cmTC_c24e3.dir/build.make CMakeFiles/cmTC_c24e3.dir/build
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_c24e3.dir/CheckSymbolExists.c.o
/usr/bin/cc    -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2    -o CMakeFiles/cmTC_c24e3.dir/CheckSymbolExists.c.o   -c /<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_c24e3
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_c24e3.dir/link.txt --verbose=1
/usr/bin/cc  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2   -Wl,-z,relro  CMakeFiles/cmTC_c24e3.dir/CheckSymbolExists.c.o  -o cmTC_c24e3 -rdynamic 
CMakeFiles/cmTC_c24e3.dir/CheckSymbolExists.c.o: In function `main':
./obj-arm-linux-gnueabihf/CMakeFiles/CMakeTmp/CheckSymbolExists.c:13: undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_c24e3.dir/build.make:97: recipe for target 'cmTC_c24e3' failed
make[3]: *** [cmTC_c24e3] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_c24e3/fast' failed
make[2]: *** [cmTC_c24e3/fast] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles/CMakeTmp'

File /<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef pthread_create
  return ((int*)(&pthread_create))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_86ccd/fast"
make[2]: Entering directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles/CMakeTmp'
/usr/bin/make -f CMakeFiles/cmTC_86ccd.dir/build.make CMakeFiles/cmTC_86ccd.dir/build
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_86ccd.dir/CheckFunctionExists.c.o
/usr/bin/cc    -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTC_86ccd.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-3.7/Modules/CheckFunctionExists.c
Linking C executable cmTC_86ccd
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_86ccd.dir/link.txt --verbose=1
/usr/bin/cc  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DCHECK_FUNCTION_EXISTS=pthread_create  -Wl,-z,relro  CMakeFiles/cmTC_86ccd.dir/CheckFunctionExists.c.o  -o cmTC_86ccd -rdynamic -lpthreads 
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_86ccd.dir/build.make:97: recipe for target 'cmTC_86ccd' failed
make[3]: *** [cmTC_86ccd] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_86ccd/fast' failed
make[2]: *** [cmTC_86ccd/fast] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles/CMakeTmp'


dh_auto_configure: cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DBUILDDOC=ON -DBUILDSWIGPYTHON=ON -DBUILDSWIGNODE=ON -DBUILDSWIGJAVA=ON -DFIRMATA=ON -DINSTALLTOOLS=ON -DIMRAA=on returned exit code 1
debian/rules:23: recipe for target 'override_dh_auto_configure' failed
make[1]: *** [override_dh_auto_configure] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:20: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
--------------------------------------------------------------------------------
Build finished at 2017-09-26T03:35:54Z

Finished
--------


+------------------------------------------------------------------------------+
| Cleanup                                                                      |
+------------------------------------------------------------------------------+

Purging /<<BUILDDIR>>
Not cleaning session: cloned chroot in use
E: Build failure (dpkg-buildpackage died)

+------------------------------------------------------------------------------+
| Summary                                                                      |
+------------------------------------------------------------------------------+

Build Architecture: armhf
Build Type: full
Build-Space: 3552
Build-Time: 29
Distribution: stretch
Fail-Stage: build
Host Architecture: armhf
Install-Time: 303
Job: /mnt/farm/incoming/stretch/mraa_1.7.0-git20170906-0rcnee1/mraa_1.7.0-git20170906-0rcnee1~stretch+20170911.dsc
Machine Architecture: arm64
Package: mraa
Package-Time: 353
Source-Version: 1.7.0-git20170906-0rcnee1~stretch+20170911
Space: 3552
Status: attempted
Version: 1.7.0-git20170906-0rcnee1~stretch+20170911
--------------------------------------------------------------------------------
Finished at 2017-09-26T03:35:54Z
Build needed 00:05:53, 3552k disk space
E: Build failure (dpkg-buildpackage died)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant