I've got (another) build error when trying to build my Buildroot environment. Note this question is in relation to (but not dependent on) my previous (resolved) questions here and here.
I'm trying to include Bluetooth support in the kernel as well as JamVM , but I have ALREADY succesfully built a Buildroot environment which includes Jamvm but now for some reason the build is failing.
When the build process gets to:
jamvm 1.5.1 Configuring
It eventually fails with the error:
checking for ecj... (cached) javac
-Xlint:unchecked,cast,divzero,empty,finally,overrides
checking for pthread_self in -lpthread... yes
checking for fmod in -lm... yes
checking for dlopen in -ldl... (cached) yes
checking for inflate in -lz... yes
checking for ANSI C header files... (cached) yes
checking for sys/time.h... (cached) yes
checking for unistd.h... (cached) yes
checking endian.h usability... yes
checking endian.h presence... yes
checking for endian.h... yes
checking for sys/param.h... (cached) yes
checking for locale.h... (cached) yes
checking for zlib.h... (cached) no
configure: error: zlib.h is missing
I've checked the output location /output/build/zlib-1.2.3 and I can see the file zlib.h so I'm puzzled as to why make claims to be unable to find it. Also I altered jamvm.mk to depend upon zlib and tried make again (note I did not do a 'make clean')
Anyone have any ideas? I don't understand why jamvm won't build now, other than it must be something in the build process.
In my case, I put zconf.h header file into my toolchain include folder and the zlib missing configuration error message is gone.
give it a try.
Related
I'm learning C and want to install Valgrind on my system, however when I attempt to install Valgrin I get an error saying Valgrind is OS specific. Sorry I'm running Windows 7, with Mingw64 GIT installed. I've done some research and found this. According to that I need to run sh ./configure --host x86_64 w64-mingw32 However when I run this I get the following output:
$ sh ./configure --host x86_64-w64-mingw32
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for x86_64-w64-mingw64-strip... no
checking for strip... strip
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether ln -s works... no, using cp -pR
checking for x86_64-w64-mingw64-gcc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
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 ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for x86_64-w64-mingw64-g++... no
checking for x86_64-w64-mingw64-c++... no
checking for x86_64-w64-mingw64-gpp... no
checking for x86_64-w64-mingw64-aCC... no
checking for x86_64-w64-mingw64-CC... no
checking for x86_64-w64-mingw64-cxx... no
checking for x86_64-w64-mingw64-cc++... no
checking for x86_64-w64-mingw64-cl.exe... no
checking for x86_64-w64-mingw64-FCC... no
checking for x86_64-w64-mingw64-KCC... no
checking for x86_64-w64-mingw64-RCC... no
checking for x86_64-w64-mingw64-xlC_r... no
checking for x86_64-w64-mingw64-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++... gcc3
checking for x86_64-w64-mingw64-ranlib... no
checking for ranlib... ranlib
checking for a sed that does not truncate output... /usr/bin/sed
checking for ar... /c/mingw/bin/ar
checking for perl... /usr/bin/perl
checking for gdb... /c/mingw/bin/gdb
checking dependency style of gcc... gcc3
checking for diff -u... yes
checking for a supported version of gcc... ok (4.7.2)
checking build system type... x86_64-pc-mingw64
checking host system type... x86_64-w64-mingw64
checking for a supported CPU... ok (x86_64)
checking for a 64-bit only build... no
checking for a 32-bit only build... no
checking for a supported OS... no (mingw64)
configure: error: Valgrind is operating system specific. Sorry.
So I thought, well I have I Mingw64, so may I should try that, same thing. Why is throwing the exception that I don't have Mingw, and how do I fix this?
The error is saying that your OS is not supported and it found Mingw on your system which is not supported.
In general valgrind is not supported on Windows. Microsoft have their own version of glibc and their own kernel. Making a version of valgrind that can run on Windows would require a lot of porting work which no one is willing to make at the moment.
Valgrind compiled only for: {x86,amd64,arm32,arm64,ppc32,ppc64le,ppc64be,s390x,mips32,mips64}-linux, {arm32,arm64,x86,mips32}-android, {x86,amd64}-solaris and {x86,amd64}-darwin (Mac OS X 10.13
Is there a good Valgrind substitute for Windows? Read more this
You can try download Code::Blocks IDE with MinGW for Windows7 32/64 bit
Official site here
This might be a silly question, actually I have just started with it.
I am following a tutorial to LCTHW
and I am trying to install valgrind, the author specifies steps:
1) Download it (use wget if you don't have curl)
curl -O http://valgrind.org/downloads/valgrind-3.6.1.tar.bz2
use md5sum to make sure it matches the one on the site
md5sum valgrind-3.6.1.tar.bz2
2) Unpack it.
tar -xjvf valgrind-3.6.1.tar.bz2
cd into the newly created directory
cd valgrind-3.6.1
3) configure it
./configure
4) make it
make
5) install it (need root)
sudo make install
I am stuck at step 4, what to make here? What should the command look like? I have made c programs before but which specific file in here do I need to specify?
This is what I get when I run make:
Blackbeard#PC-DEV-A179:~/valgrind-3.6.1$ make
make: *** No targets specified and no makefile found. Stop.
Edit:
As pinted out by user43250937, ./configure is not working properly, I get the following:
$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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 ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
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++... gcc3
checking for ranlib... ranlib
checking for a sed that does not truncate output... /bin/sed
checking for ar... /usr/bin/ar
checking for perl... /usr/bin/perl
checking for gdb... /usr/bin/gdb
checking dependency style of gcc... gcc3
checking for diff -u... yes
checking for a supported version of gcc... ok (4.8.2)
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a supported CPU... ok (x86_64)
checking for a 64-bit only build... no
checking for a 32-bit only build... no
checking for a supported OS... ok (linux-gnu)
checking for the kernel version... unsupported (3.13.0-49-generic)
configure: error: Valgrind works on kernels 2.4, 2.6
I am running Ubuntu 14.04 LTS
Step 3 (configure), likely didn't complete correctly due to missing dependecies/libraries, check the output of that command.
Edit: You need a newer version of Valgrind that supports kernel 3.x, now they are at valgrind-3.10.1, that will work.
From your output:
configure: error: Valgrind works on kernels 2.4, 2.6
Did you download a ridiculously old copy of valgrind? Also, on Ubuntu, you can just
sudo apt-get install valgrind
I am currently getting the following error when attempting to get basemap-1.0.7 to work on my MAC OS v10.7.3:
error: C compiler cannot create executables
I downloaded basemap-1.0.7.tar.gz from here, and upon installation, I followed the numbered instructions in the README file:
0) Install pre-requisite python modules numpy and matplotlib.
1) Then download basemap-X.Y.Z.tar.gz (approx 100 mb) from
the sourceforge download site, unpack and cd to basemap-X.Y.Z.
2) Install the GEOS library. If you already have it on your
system, just set the environment variable GEOS_DIR to point to the location
of libgeos_c and geos_c.h (if libgeos_c is in /usr/local/lib and
geos_c.h is in /usr/local/include, set GEOS_DIR to /usr/local).
Then go to step (3). If you don't have it, you can build it from
the source code included with basemap by following these steps:
> cd geos-3.3.3
> export GEOS_DIR=<where you want the libs and headers to go>
A reasonable choice on a Unix-like system is /usr/local, or
if you don't have permission to write there, your home directory.
> ./configure --prefix=$GEOS_DIR
> make; make install
0) Done: I use anaconda, so both import numpy and import matplotlib work in an interactive session of ipython.
1) Done: basemap 1.0.7 is downloaded, unpacked, and I have changed my working directory to to Downloads/basemap-1.0.7/
2) Problem: I do not have the GEOS library. Therefore, I followed the instructions as per the README file:
cd geos-3.3.3
export GEOS_DIR=/Users/ged/anaconda/lib/python2.7/site-packages/
./configure --prefix=$GEOS_DIR
The ensuing terminal output is:
checking build system type... i386-apple-darwin11.3.0
checking host system type... i386-apple-darwin11.3.0
checking target system type... i386-apple-darwin11.3.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/Users/ged/Downloads/basemap-1.0.7/geos-3.3.3':
configure: error: C compiler cannot create executables
See `config.log' for more details
The config.log file is a bit long to put it here, so I've made it available here
I have tried installing GEOS through GDAL 1.11, and I also looked into upgrading to xcode 4.6.3 but, to be honest, I feel a little out of my depth.
I'm getting the following message:
error: C compiler cannot create executables
Could you please provide some insight on how to solve this issue?
Thanks in advance!
i want to compile glib2 for a specific platform. It needs gettext, so I passed where the gettext libraries are. For example:
$ ./configure CC=.. CFLAGS=... -prefix=.. LDFLAGS="-L../libconv/lib/ -L../gettext/usr/local/lib" --enable-shared=no
but it returns:
....
checking libintl.h usability... no
checking libintl.h presence... no
checking for libintl.h... no
configure: error:
*** You must have either have gettext support in your C library, or use the
*** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html
Do you have any idea about why it doesn't detect gettext?
Thanks.
While "installing" everything in a directory under your home directory, you needed to add the "bin" subdirectory of the --prefix directory to your $PATH before running configure.
download the latest package from here:
http://ftp.gnu.org/pub/gnu/gettext/
compile it and run your configure command again and it should fix the issue.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I have a linux device that has armv4 CPU, and develop C code on it. I would like to debug my code via valgrind. However, I get a message saying that valgrind does not support armv4l. I wonder if there would be a way to suppress the error or what could be an alternative debugging package to analyze memory leaks?
Here is how I try to install the valgrind
ts7500:/home# tar -xjf valgrind-3.8.1.tar.bz2
ts7500:/home# cd valgrind-3.8.1
ts7500:/home/valgrind-3.8.1# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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 ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
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++... gcc3
checking for ranlib... ranlib
checking for a sed that does not truncate output... /bin/sed
checking for ar... /usr/bin/ar
checking for perl... /usr/bin/perl
checking for gdb... /usr/bin/gdb
checking dependency style of gcc... gcc3
checking for diff -u... yes
checking for a supported version of gcc... ok (4.3.2)
checking build system type... armv4l-unknown-linux-gnu
checking host system type... armv4l-unknown-linux-gnu
checking for a supported CPU... no (armv4l)
configure: error: Unsupported host architecture. Sorry
ts7500:/home/valgrind-3.8.1#