[Vm-dev] Cannot compile Cog: GCC 4.7

Levente Uzonyi leves at elte.hu
Fri Apr 10 19:40:29 UTC 2015


On Fri, 10 Apr 2015, Tobias Pape wrote:

>
>
> On 10.04.2015, at 21:19, Levente Uzonyi <leves at elte.hu> wrote:
>
>> What happens if you just remove that -V. It makes no sense without an argument anyway.
>
> Well, I did not put that in.
> I think, Autoconf did. I just ran ./mvm
> (for 32bit on a 64bit machine, to be frank)

In that case you should use a custom configure command:

../../../platforms/unix/config/configure CC="gcc -m32" CXX="g++ -m32" --without-npsqueak CFLAGS="-g -O2 -msse2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DNDEBUG -DITIMER_HEARTBEAT=1 -DNO_VM_PROFILE=1 -DCOGMTVM=0 -DDEBUGVM=0" LIBS=-lpthread

The docs lack a ../ from the beginning of the command btw.


Levente

>
>
> Best
>
> 	-Tobias
>>
>> Levente
>>
>> On Fri, 10 Apr 2015, Tobias Pape wrote:
>>
>>>
>>> Hi all
>>>
>>> just for fun and profit, I tried compiling Cog on my server.
>>> It bails with:
>>>
>>> 	gcc version 4.7.2 (Debian 4.7.2-5)
>>> 	configure:2190: $? = 0
>>> 	configure:2192: gcc -m32 -V </dev/null >&5
>>> 	gcc: error: unrecognized command line option '-V'
>>> 	gcc: fatal error: no input files
>>>
>>> Some related info: http://stackoverflow.com/questions/20678016/autoconf-complains-c-compiler-cannot-create-executables-on-linux-mint
>>>
>>> Has someone put in this -V on purpose? do I really have to _downgrade_
>>> my GCC?
>>>
>>> Best
>>> 	-Tobias
>
>
>


More information about the Vm-dev mailing list