[Vm-dev] Cannot compile Cog: GCC 4.7
Tobias Pape
Das.Linux at gmx.de
Fri Apr 10 20:38:36 UTC 2015
On 10.04.2015, at 21:40, Levente Uzonyi <leves at elte.hu> wrote:
> 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.
>
ah. ok.
My bad.
I tracked it down to -luuid, one error masked another…
This is a real pain. when developing on x64, and have the 64bit devel packages
for uuid installed, I cannot install the 32bit devel package -.-'
My Bonkers Workaround:
cd /lib/i386-linux-gnu
sudo ln -s $PWD/libuuid.so.1 $PWD/libuuid.so
At least I get it passt configure now.
Thanks
-Tobias
>
> 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