Coder Social home page Coder Social logo

muhakbaryasin / compile-gcc-5.3.0-ubuntu-18.04 Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 121.16 MB

Im trying to build gcc version <= 5.3 for regarding to use recently Ubuntu 18.04 but conserve using old version of CUDA 8.0

Emacs Lisp 0.01% HTML 3.50% Makefile 2.55% C 46.05% Assembly 0.99% Shell 0.74% M4 0.71% Roff 1.02% C++ 19.97% Awk 0.05% Perl 0.08% Python 0.10% Vim Script 0.01% Smarty 0.01% Logos 0.16% Objective-C 0.59% Ada 19.22% TeX 0.25% GCC Machine Description 3.97% OCaml 0.05%

compile-gcc-5.3.0-ubuntu-18.04's Introduction

compile-gcc-5.3.0-ubuntu-18.04

Im trying to build gcc version <= 5.3 for regarding I am using recent Ubuntu 18.04 but want to use CUDA 8.0.

The problem

Kubuntu 18.04 has installed gcc version 7. We can install gcc v 5 but the onlye the 5.5.x one. CUDA 8 on the other hand only support 5.3 <=

My RIG

  • AMD Ryzen 5 1600
  • 8GB Memory
  • Nvidia Gforce GTX 1050 2GB

My OS

  • Kubuntu 18.04

  • Installed gcc

    • gcc 4.8 (as default to compile gcc 5.3--)
    • gcc 6
    • gcc 7
  • Installed g++

    • g++ 4.8 (as default to compile gcc 5.3--)
    • g++ 6
    • g++ 7
  • GlibC 2.27

#Compile - ./configure --program-suffix=-5.3.0 --disable-checking --enable-languages=c,c++,objc --disable-multilib --with-system-zlib - make

#Obstacle 1

In file included from ../.././libgcc/unwind-dw2.c:401:0: ./md-unwind-support.h: In function ‘x86_64_fallback_frame_state’: ./md-unwind-support.h:65:47: error: dereferencing pointer to incomplete type ‘struct ucontext’ sc = (struct sigcontext *) (void *) &uc_->uc_mcontext; ^ ../.././libgcc/shared-object.mk:14: recipe for target 'unwind-dw2.o' failed make[3]: *** [unwind-dw2.o] Error 1

#Solution - obstacle 1

#Obstacle 2

In function ‘int __sanitizer::TracerThread(void*)’: ../../.././libsanitizer/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc:237:22: error: aggregate ‘sigaltstack handler_stack’ has incomplete type and cannot be defined struct sigaltstack handler_stack; ^ Makefile:449: recipe for target 'sanitizer_stoptheworld_linux_libcdep.lo' failed make[4]: *** [sanitizer_stoptheworld_linux_libcdep.lo] Error 1

#Solution - obstacle 2

#Obstacle 3

../../.././libsanitizer/asan/asan_linux.cc: In function ‘bool __asan::AsanInterceptsSignal(int)’: ../../.././libsanitizer/asan/asan_linux.cc:222:20: error: ‘SIGSEGV’ was not declared in this scope return signum == SIGSEGV && common_flags()->handle_segv; ^ Makefile:461: recipe for target 'asan_linux.lo' failed make[4]: *** [asan_linux.lo] Error 1

#Solution - obstacle 3

#Obstacle 4

../../.././libsanitizer/tsan/tsan_platform_linux.cc: In function ‘int __tsan::ExtractResolvFDs(void*, int*, int)’: ../../.././libsanitizer/tsan/tsan_platform_linux.cc:380:16: error: ‘statp’ was not declared in this scope __res_state statp = (__res_state)state; ^ ../../.././libsanitizer/tsan/tsan_platform_linux.cc:380:37: error: expected primary-expression before ‘)’ token __res_state statp = (__res_state)state; ^ Makefile:500: recipe for target 'tsan_platform_linux.lo' failed make[4]: *** [tsan_platform_linux.lo] Error 1

#Solution - obstacle 4

Reference

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.