make-compel: Add CC=gcc

Submitted by Radostin Stoyanov on April 10, 2019, 10:27 p.m.

Details

Message ID 20190410222752.31973-1-rstoyanov1@gmail.com
State New
Series "make-compel: Add CC=gcc"
Headers show

Commit Message

Radostin Stoyanov April 10, 2019, 10:27 p.m.
$ sudo make install PREFIX=/usr
...
make: [Makefile.compel:73: compel/libcompel.so] Error 127 (ignored)
  CC       compel/arch/x86/src/lib/handle-elf.o
  CC       compel/src/lib/handle-elf.o
  CC       compel/src/main.o
  LINK     compel/built-in.o
  LINK     compel/compel
make: O2: Command not found
make: [Makefile.compel:66: compel/compel] Error 127 (ignored)
make[1]: *** No rule to make target 'compel/compel', needed by 'install'.  Stop.
make: *** [Makefile.install:44: install-compel] Error 2

Signed-off-by: Radostin Stoyanov <rstoyanov1@gmail.com>
---
 Makefile.compel | 1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/Makefile.compel b/Makefile.compel
index 764afadc8..89dddd19c 100644
--- a/Makefile.compel
+++ b/Makefile.compel
@@ -1,3 +1,4 @@ 
+CC=gcc
 COMPEL_BIN		:= ./compel/compel-host
 export COMPEL_BIN
 

Comments

Zhang, Ning A April 11, 2019, 1:46 a.m.
No, this will break Clang compiler.

在 2019-04-10三的 23:27 +0100,Radostin Stoyanov写道:
> $ sudo make install PREFIX=/usr
> ...
> make: [Makefile.compel:73: compel/libcompel.so] Error 127 (ignored)
>   CC       compel/arch/x86/src/lib/handle-elf.o
>   CC       compel/src/lib/handle-elf.o
>   CC       compel/src/main.o
>   LINK     compel/built-in.o
>   LINK     compel/compel
> make: O2: Command not found
> make: [Makefile.compel:66: compel/compel] Error 127 (ignored)
> make[1]: *** No rule to make target 'compel/compel', needed by 'install'.  Stop.
> make: *** [Makefile.install:44: install-compel] Error 2
> 
> Signed-off-by: Radostin Stoyanov <rstoyanov1@gmail.com>
> ---
>  Makefile.compel | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/Makefile.compel b/Makefile.compel
> index 764afadc8..89dddd19c 100644
> --- a/Makefile.compel
> +++ b/Makefile.compel
> @@ -1,3 +1,4 @@
> +CC=gcc
>  COMPEL_BIN		:= ./compel/compel-host
>  export COMPEL_BIN
>
Radostin Stoyanov April 11, 2019, 8:17 a.m.
Ok, any ideas for alternative solution?

On 11/04/2019 02:46, Zhang, Ning A wrote:
> No, this will break Clang compiler.
>
> 在 2019-04-10三的 23:27 +0100,Radostin Stoyanov写道:
>> $ sudo make install PREFIX=/usr
>> ...
>> make: [Makefile.compel:73: compel/libcompel.so] Error 127 (ignored)
>>   CC       compel/arch/x86/src/lib/handle-elf.o
>>   CC       compel/src/lib/handle-elf.o
>>   CC       compel/src/main.o
>>   LINK     compel/built-in.o
>>   LINK     compel/compel
>> make: O2: Command not found
>> make: [Makefile.compel:66: compel/compel] Error 127 (ignored)
>> make[1]: *** No rule to make target 'compel/compel', needed by 'install'.  Stop.
>> make: *** [Makefile.install:44: install-compel] Error 2
>>
>> Signed-off-by: Radostin Stoyanov <rstoyanov1@gmail.com>
>> ---
>>  Makefile.compel | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/Makefile.compel b/Makefile.compel
>> index 764afadc8..89dddd19c 100644
>> --- a/Makefile.compel
>> +++ b/Makefile.compel
>> @@ -1,3 +1,4 @@
>> +CC=gcc
>>  COMPEL_BIN		:= ./compel/compel-host
>>  export COMPEL_BIN
>>
Zhang, Ning A April 11, 2019, 9:05 a.m.
did you try: 

CC=gcc make?

see:
https://github.com/checkpoint-restore/criu/commit/7428b3794ac09cf6a546c
0a51f92800f52b7daeb

which compiler do you use?

BR.
Ning.


在 2019-04-11四的 09:17 +0100,Radostin Stoyanov写道:
> Ok, any ideas for alternative solution?
> 
> On 11/04/2019 02:46, Zhang, Ning A wrote:
> > No, this will break Clang compiler.
> > 
> > 在 2019-04-10三的 23:27 +0100,Radostin Stoyanov写道:
> > > $ sudo make install PREFIX=/usr
> > > ...
> > > make: [Makefile.compel:73: compel/libcompel.so] Error 127
> > > (ignored)
> > >   CC       compel/arch/x86/src/lib/handle-elf.o
> > >   CC       compel/src/lib/handle-elf.o
> > >   CC       compel/src/main.o
> > >   LINK     compel/built-in.o
> > >   LINK     compel/compel
> > > make: O2: Command not found
> > > make: [Makefile.compel:66: compel/compel] Error 127 (ignored)
> > > make[1]: *** No rule to make target 'compel/compel', needed by
> > > 'install'.  Stop.
> > > make: *** [Makefile.install:44: install-compel] Error 2
> > > 
> > > Signed-off-by: Radostin Stoyanov <rstoyanov1@gmail.com>
> > > ---
> > >  Makefile.compel | 1 +
> > >  1 file changed, 1 insertion(+)
> > > 
> > > diff --git a/Makefile.compel b/Makefile.compel
> > > index 764afadc8..89dddd19c 100644
> > > --- a/Makefile.compel
> > > +++ b/Makefile.compel
> > > @@ -1,3 +1,4 @@
> > > +CC=gcc
> > >  COMPEL_BIN		:= ./compel/compel-host
> > >  export COMPEL_BIN
> > >  
>