[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gEDA: Compile Problems: Icarus Verilog Snapshot 20020921



On Thu, 17 Oct 2002, Alexandre P. Nunes wrote:
> >-- Cut here --
> >From: Jason Doege <jdoege@inovys.com>
> >
> >So, I recently upgraded to the newest Cygwin release which changed over 
> >to gcc 3.2 20020818.
> >When I try to ./configure on snapshot 20020921, I get:
> >
> >...
> >checking for malloc.h... (cached) yes
> >checking size of unsigned long long... configure: error: can not run 
> >test program while cross compiling
> >configure: error: ./configure failed for vvp
> >
> >I can send the whole log, if requested.


Jason,

The test for cross compiling is to compile and run a tiny program.  If you
can't compile and run the program, configure assumes you are cross
compiling.  Since you got the message and you apparently aren't trying to
cross compile, it sounds like your compiler or libraries are not set up
right.

See if you can duplicate this:

unix$ echo 'main(){return(0);}' > conftest.c 
unix$ gcc -o conftest conftest.c
unix$ echo $?
0
unix$ ./conftest
unix$ echo $?
0

As you can see, most lines should have no output, and the two echo lines
should return 0.  What do you get on your system?  If the application you
are trying to configure uses the C++ compiler, test it too.

unix$ echo 'main(){return(0);}' > conftest.cc
unix$ g++ -o conftest conftest.cc
unix$ echo $?         
0
unix$ ./conftest      
unix$ echo $?         
0

If you see any errors in these tiny tests, you should check that your
compiler and libraries are up to date and in sync with each other.

Good luck,
Bryce