Hot answers tagged

22

They're deliberately set to a fixed value: The Old New Thing: Why are the module timestamps in Windows 10 so nonsensical? One of the changes to the Windows engineering system begun in Windows 10 is the move toward reproducible builds. This means that if you start with the exact same source code, then you should finish with the exact same binary code. […] ...


17

When you compile vim you can pass the option/flag --with-features, e.g.: --with-features=huge This will determine which features are included in the install. A list of all features can be found here (http://vimdoc.sourceforge.net/htmldoc/various.html) with a letter indicating which version the feature is included in: Here is an overview of the features. ...


16

Workaround: CXX=/usr/bin/g++ ./configure Anyway it's very strange and it seems to be a bug in the configure script. It seems to be a known problem. Oh well... EDIT: It seems that --with-cxx-main is an option with a different purpose. It's required on some platforms to support C++ extension modules. I updated my answer above.


15

First, you need to get the source code, easiest through Vim's Mercurial repository; see vim.org for details. Then, you need a build environment and the dev libraries, especially for the desired Python. This greatly depends on the platform. On Ubuntu / Debian, it's a simple $ sudo apt-get build-dep vim-gnome An Internet search will tell you more. To ...


11

Navigate to Debug > Options and Settings in the VS menu or Tools > Options... Go to 'Projects and Solutions' > 'Build and Run' and make sure that the “Only build startup projects and dependencies on Run” box is left unchecked.


11

Based on the comments, I got Xwidgets and Cairo to work. Here's what I did: Install gtk3 libraries: sudo apt-get install libgtk-3-dev libwebkitgtk-3.0-dev Configure with ./configure --with-cairo --with-xwidgets --with-x-toolkit=gtk3 Menus feel much nicer now! Thanks!


10

This is easier said than done, and has taken me over a month to figure out how to do without any issues, but I've spent enough time on it that I decided I'd document the process well enough to be completed virtually seamlessly by anyone following me. Unfortunately, Cygwin's default toolchain (i.e. the gcc-core package included with the Cygwin installer) is ...


9

-frandom-seed=123 controls some GCC internal randomness. man gcc says: This option provides a seed that GCC uses in place of random numbers in generating certain symbol names that have to be different in every compiled file. It is also used to place unique stamps in coverage data files and the object files that produce them. You can use the -frandom-...


8

RISC, when honestly stated, stands for "Reduced Instruction Set Complexity" -- The number of instruction is not necessarily reduced, but each instruction is simpler, in terms of the machine cycles required to execute it and in terms of the number of gates (or microcode store) devoted to implementing it. The theory (which is at least partially realized) is ...


8

I guess people may be aware but pinfo is now available from brew: brew install pinfo If you're curious about obtaining autopoint on MacOS/X - it's available from the gettext brew formula - the catch is that it is keg-only which means it's not sym-linked to /usr/local by default as it can conflict with MacOS's internal version, however MacOS doesn't provide ...


7

Unless the binaries were complied to check for extensions and also to use them if they are present, they do not take advantage of new instructions from instruction set extensions.


7

On my recent AMD64 build of 4.4.0-57 on Ubuntu 16.04, I needed about 14.5 GB of space for the build outputs. That seems a a lot and it seems that is mostly transiently needed files (e.g., .o files resulting from compiling a .c file).


6

To fix this, run it like this: export PREFIX=~/usr PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig; ./configure --prefix=${PREFIX}


6

The output from objdump is a little excessive for this purpose, and requires a good bit of parsing to find the actual imports. I prefer readelf for this purpose: readelf -d dynamic-buffer-test Dynamic section at offset 0x630a8 contains 23 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [...


6

The make modules command will just compile the modules, leaving the compiled binaries in the build directory. make modules_install will make sure that there are compiled binaries (and compile the modules, if not) and install the binaries into your kernel's modules directory. If you are sure that all modules compile without problems, you can use make ...


6

The make program is only going to see names that are actually files (or directories). It does not know anything about shell aliases. Rather than an alias, if you had g77 in your $PATH as a symbolic link, that would work. In many environments, if you have a $HOME/bin directory, that is automatically added to your $PATH. (If not, it is simple to do this ...


6

If you don't want to make a symlink like @Thomas suggested, you can basically make an alias right in the Makefile like so by placing this line somewhere near the top of the Makefile: G77 := /usr/local/bin/gfortran-5 and then, in your target somewhere, use it like: $(G77) -w -c -o Abfind.o Abfind.f


5

I prefer readelf. readelf -s <file>


5

The x64 version of nmake.exe is located in the VC\bin\amd64 subdirectory. The 32-bit version of nmake.exe is located in VC\bin. If you open up the Visual Studio x64 Command Prompt VS2013 x64 Native Tools Command Prompt the paths should be set up to find the x64 versions of tools. You can also type "where nmake.exe" to find the version you are looking ...


5

In ubuntu I compile vim the following way: sudo apt-get build-dep vim sudo apt-get build-dep libx11-dev libxtst-dev make distclean ./configure --with-compiledby="David Gamba <davidgamba@gambaeng.com>" \ --with-features=huge \ --enable-gui=auto \ --with-x \ --enable-rubyinterp \ --with-ruby-command=/usr/bin/ruby \ --enable-perlinterp \ --enable-...


4

You can set the location of g++ manually using an environment variable passed to configure, as described in the help: Usage: ./configure [OPTION]... [VAR=VALUE]... For example, if you are running configure with a custom prefix your command would be: ./configure --prefix=/home/user/.local CXX="/usr/bin/g++"


4

Put the backticks containing the pkg-config command at the end of the line. For some reason, gcc only reads it correctly if it's last. I had the exact same problem today trying to build examples from the GTK repo. The line in their makefiles, $(CC) -o $(@F) $(LIBS) $(OBJS) ought to be $(CC) -o $(@F) $(OBJS) $(LIBS) instead.


4

Your problem is that you're using OpenSSL 1.1 and an old version of Python that doesn't support that version of OpenSSL. Python 3.2 was released in 2011 and OpenSSL 1.1.0 was released in 2016. Since OpenSSL 1.0 is no longer security supported, you'll need to upgrade the version of Python you're using to a suitable version. If you can't wait and you plan to ...


3

Since linux-2.6.23 ARG_MAX is not necessarily a pre-determined constant, the total size for arguments is permitted to be up to 1/4 of the stack size (see ulimit -s, stack size in kB; but /proc/1/limits is more definitive) . However, ARG_MAX is not just for the process arguments, it also contains the environment variables, which you may need to take into ...


3

I'd say NO, it is not 100% deterministic. I previously worked with a version of GCC which generates target binaries for the Hitachi H8 processor. It is not a problem with the time stamp. Even if the time stamp issue is ignored, the specific processor architecture may allow the same instruction to be encoded in 2 slightly different ways where some bits can ...


3

Refer to this link >> https://ubuntuforums.org/showthread.php?t=2266609 I compiled/made linux kernel 4.0.0-rc1 on my HP Stream 13 (2GB RAM, dual core Intel Celeron N2840) based on the clear instruction on https://wiki.ubuntu.com/KernelTeam/GitKernelBuild, and this is my experience: After the "git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/...


3

brew install gcc --with-java it will appear as /usr/local/bin/gcj-5 (for example)


3

Please check How can I avoid the prompts when installing a FreeBSD port? It's still pretty much the same, although I'd recommend setting BATCH in /etc/make.conf rather than your shell profile.


3

The easiest method is to use a static build of ffmpeg. Just download, extract, and execute it. You can move the binary wherever you prefer. To use it either: place it somewhere in your PATH, or navigate to the directory containing the binary and run ./ffmpeg, or provide the full path to the binary, such as /Users/Tenaciousd93/ffmpeg. If the static build ...


3

Will that software actually perform better if I use a newer/better compiler? This entirely depends on if work is done to the code optimization feature, of the compiler, in a given release. For instance, right now I use the Mac OS X system version of Clang, and it's been suggested that I use a later version instead. You should stick with the same ...


Only top voted, non community-wiki answers of a minimum length are eligible