Tag Info

New answers tagged

0

You should think of a compiler as a function which generates output from some input, or output_program = compile_function(input_source, args) The exsistence of compile_function as a 32 or 64 bit binary affects how it does its job but not the output. If we grossly simplify the role of 64-bit to simply increasing the amount of addressable memory, then ...


3

GCC on Solaris has some defaults that are different, for example, than GCC on Linux. For compiling 64 binaries you have to add -m64 to your compile and link lines. This makes GCC compatible to the Solaris Studio C compiler, in that respect. On SPARC, compiling programs as 32 bit does not have as much disadvantages as on e.g. x86, where 64 Bit also ...


0

I am the one working on the Guix Hurd port. In order to actually use Guix on Hurd, Guix bootstrapping process must first be modified in order to support a GNU/Hurd system. This means Guix must be able to cross-build the hurd version of glibc, Gnumach and Hurd. With this part done, you must build the bootstrapping toolchain using the new glibc and produce ...


0

/opt/csw/bin/gcc-4.8 path indicates for OpenCSW that comes pre-installed with Oracle distro (either 4.8 is deleted or there is another version). Try setting the CC and CXX environment variables from inside setup.py with os.environ: os.environ["CC"] = "g++-4.7" os.environ["CXX"] = "g++-4.7" (4.7 is my version of g++, set it to what you have in your /bin). ...


4

TL;DR I have a different take on this as a Gentoo user. While I agree with peterph's approach of "Let the System Decide," I disagree when it comes to an ABI Update. An ABI Update is sometimes a major shift in behavior. In the case of GCC 4.7, the ABI Change was the adoption of the new C++11 Standard, which peterph also pointed out. Here is why I write ...


0

Following link solved the issue for me. How do you link to a specific version of a shared library in GCC Excerpt from the link that helped me- Instead of using "-lcurl" use "-l:libcurl.so.3" And ofcourse also use "-L _installed_path_" My error was the reverse- "Wrong JPEG library version: library is 80, caller expects 62" To find out which jpeg library ...


1

If I compile my source code into a .so (shared library) on one Linux environment(say RHEL), will it work on other environments also without being recompiled? In general, no. You want to use a build system that supports portability. Autotools is the standard. An alternative is Cmake.


2

Sorry I just saw your question now, and I had to deal with the same issue on Apalis T30. Toradex is quite helpful if you ask them questions, but I found the solution myself in their release notes. Newer images of Toradex builds for Apalis and Colibri have an issue with the Angstrom package feeds. (V2.3 Beta1+ is my understanding). You will need to manually ...


1

The package you're backporting is assuming GCC 4.9+ by adding -fstack-protector-strong to the command line. Your version of GCC (4.7.2) does not support this flag. I'm not sure how configure is being called in this case, but the fix is to remove this flag from the script that calls it. (I assume you didn't actually type that huge command at the top of your ...


1

gcc-4.7 is not included into Debian Jessie (see https://bugs.debian.org/765379 ). It is still in Debian unstable and does not conflict with anything. As Debian unstable and Debian Jessie are very similar at the moment (Nov 2014), you should not get any problems. See e.g. https://wiki.debian.org/AptPreferences or this answer how to install packages from ...


4

Libgcc is even more fundamental than libc. Libgcc contains code that is used by the GCC compiler when generating code for fundamental language constructs, such as 64-bit arithmetic on 32-bit platforms, stack maintenance, integers and floating point operations that the hardware doesn't perform, etc. Debian's gcc-base package contains only a couple of ...


2

It depends a lot on what kind of compiler upgrade you did. If it has been substantial, then everything should be recompiled because of possible changes in ABI by the compiler. In many cases it won't be necessary, but if your packages depend on something like C++11, then you might run into problems - see e.g. the Gentoo news about ABI change in GCC 4.7 or GCC ...


0

I had this issue the first and second time I went through LFS. I was using multiple console windows to build multiple packages at the same time because there are a lot of small packages to build. I started over a third time and decided just to build one package at a time. It took a long time but I got everything to compile correctly and work properly in the ...



Top 50 recent answers are included