Quantcast

Compile fails

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Compile fails

Dirk Vornheder-2
Hi !


Compile latest version of lirc fails:


rm -f //usr/bin/lirc-setup
/usr/bin/python3 ./make_rel_symlink.py \
     //usr/lib/python3.4/site-packages/lirc/lirc-setup \
     //usr/bin/lirc-setup
cd //usr/bin;  \
     /usr/bin/sed -i '1s|python3[0-9\.]*|/usr/bin/python3|' \
         lirc-config-tool lirc-make-devinput pronto2lirc irdb-get irtext2udp
cd //usr/sbin;  \
     /usr/bin/sed -i '1s|python3[0-9\.]*|/usr/bin/python3|' \
         lircd-setup
make[5]: Leaving directory '/backup/privat/kernel/lirc/tools'
  /usr/bin/mkdir -p '/usr/lib/python3.4/site-packages/lirc'
  /usr/bin/install -c -m 644 lirc-setup/lirc-setup.ui
'/usr/lib/python3.4/site-packages/lirc'
  /usr/bin/mkdir -p '/usr/lib/python3.4/site-packages/lirc'
  /usr/bin/install -c lirc-setup/lirc-setup
'/usr/lib/python3.4/site-packages/lirc'
  /usr/bin/mkdir -p '/usr/lib/python3.4/site-packages/lirc'
  /usr/bin/install -c -m 644 config.py lirc-setup/mvc_control.py
lirc-setup/mvc_view.py lirc-setup/mvc_model.py lirc-setup/choosers.py
lirc-setup/baseview.py lirc-setup/database.py lirc-setup/util.py
'/usr/lib/python3.4/site-packages/lirc'
Byte-compiling python modules...
config.pymvc_control.pymvc_view.pyTraceback (most recent call last):
   File "<string>", line 16, in <module>
   File "/usr/lib64/python3.4/py_compile.py", line 115, in compile
     raise FileExistsError(msg.format(cfile))
FileExistsError:
/usr/lib/python3.4/site-packages/lirc/__pycache__/mvc_view.cpython-34.pyc
is a symlink and will be changed into a regular file if import writes a
byte-compiled file to it
Makefile:852: recipe for target 'install-pkgpythonPYTHON' failed
make[4]: *** [install-pkgpythonPYTHON] Error 1
make[4]: Leaving directory '/backup/privat/kernel/lirc/tools'
Makefile:1018: recipe for target 'install-am' failed
make[3]: *** [install-am] Error 2
make[3]: Leaving directory '/backup/privat/kernel/lirc/tools'
Makefile:1012: recipe for target 'install' failed
make[2]: *** [install] Error 2
make[2]: Leaving directory '/backup/privat/kernel/lirc/tools'
Makefile:660: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/backup/privat/kernel/lirc'
Makefile:958: recipe for target 'install' failed


Regards,

Dirk

------------------------------------------------------------------------------
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Compile fails

Dirk Vornheder-2
Hi !


Compile latest version of lirc fails:

...
rm -f //usr/bin/lirc-setup
/usr/bin/python3 ./make_rel_symlink.py \
     //usr/lib/python3.4/site-packages/lirc/lirc-setup \
     //usr/bin/lirc-setup
cd //usr/bin;  \
     /usr/bin/sed -i '1s|python3[0-9\.]*|/usr/bin/python3|' \
         lirc-config-tool lirc-make-devinput pronto2lirc irdb-get irtext2udp
cd //usr/sbin;  \
     /usr/bin/sed -i '1s|python3[0-9\.]*|/usr/bin/python3|' \
         lircd-setup
make[5]: Leaving directory '/backup/privat/kernel/lirc/tools'
  /usr/bin/mkdir -p '/usr/lib/python3.4/site-packages/lirc'
  /usr/bin/install -c -m 644 lirc-setup/lirc-setup.ui
'/usr/lib/python3.4/site-packages/lirc'
  /usr/bin/mkdir -p '/usr/lib/python3.4/site-packages/lirc'
  /usr/bin/install -c lirc-setup/lirc-setup
'/usr/lib/python3.4/site-packages/lirc'
  /usr/bin/mkdir -p '/usr/lib/python3.4/site-packages/lirc'
  /usr/bin/install -c -m 644 config.py lirc-setup/mvc_control.py
lirc-setup/mvc_view.py lirc-setup/mvc_model.py lirc-setup/choosers.py
lirc-setup/baseview.py lirc-setup/database.py lirc-setup/util.py
'/usr/lib/python3.4/site-packages/lirc'
Byte-compiling python modules...
config.pymvc_control.pymvc_view.pyTraceback (most recent call last):
   File "<string>", line 16, in <module>
   File "/usr/lib64/python3.4/py_compile.py", line 115, in compile
     raise FileExistsError(msg.format(cfile))
FileExistsError:
/usr/lib/python3.4/site-packages/lirc/__pycache__/mvc_view.cpython-34.pyc
is a symlink and will be changed into a regular file if import writes a
byte-compiled file to it
Makefile:852: recipe for target 'install-pkgpythonPYTHON' failed
make[4]: *** [install-pkgpythonPYTHON] Error 1
make[4]: Leaving directory '/backup/privat/kernel/lirc/tools'
Makefile:1018: recipe for target 'install-am' failed
make[3]: *** [install-am] Error 2
make[3]: Leaving directory '/backup/privat/kernel/lirc/tools'
Makefile:1012: recipe for target 'install' failed
make[2]: *** [install] Error 2
make[2]: Leaving directory '/backup/privat/kernel/lirc/tools'
Makefile:660: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/backup/privat/kernel/lirc'
Makefile:958: recipe for target 'install' failed


Regards,

Dirk

------------------------------------------------------------------------------
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Compile fails

Bengt Martensson-2
On 12/01/16 20:10, Dirk Vornheder wrote:
> Hi !
>
>
> Compile latest version of lirc fails:
>
...

> Byte-compiling python modules...
> config.pymvc_control.pymvc_view.pyTraceback (most recent call last):
>    File "<string>", line 16, in <module>
>    File "/usr/lib64/python3.4/py_compile.py", line 115, in compile
>      raise FileExistsError(msg.format(cfile))
> FileExistsError:
> /usr/lib/python3.4/site-packages/lirc/__pycache__/mvc_view.cpython-34.pyc
> is a symlink and will be changed into a regular file if import writes a
> byte-compiled file to it
> Makefile:852: recipe for target 'install-pkgpythonPYTHON' failed
> make[4]: *** [install-pkgpythonPYTHON] Error 1
> make[4]: Leaving directory '/backup/privat/kernel/lirc/tools'
> Makefile:1018: recipe for target 'install-am' failed
> make[3]: *** [install-am] Error 2
> make[3]: Leaving directory '/backup/privat/kernel/lirc/tools'
> Makefile:1012: recipe for target 'install' failed
> make[2]: *** [install] Error 2
> make[2]: Leaving directory '/backup/privat/kernel/lirc/tools'
> Makefile:660: recipe for target 'install-recursive' failed
> make[1]: *** [install-recursive] Error 1
> make[1]: Leaving directory '/backup/privat/kernel/lirc'
> Makefile:958: recipe for target 'install' failed

Please make a bug report at https://sourceforge.net/p/lirc/tickets/. I
have had a similar problem since some time by make install; however not
exactly the same error messages:

/usr/bin/sed -i '/class="footer"/,/p>/d'
/usr/local/share/doc/lirc/plugindocs/page.xsl
/usr/bin/python3 ./make_rel_symlink.py \
     /usr/local/var/lib/lirc/plugins
/usr/local/share/doc/lirc/plugindocs/var
Traceback (most recent call last):
   File "./make_rel_symlink.py", line 44, in <module>
     os.symlink( link_path, target)
FileExistsError: [Errno 17] File exists:
'../../../../var/lib/lirc/plugins' -> 'var'
Makefile:1246: recipe for target 'install-data-hook' failed
make[4]: *** [install-data-hook] Error 1
make[4]: Leaving directory '/home/bengt/lirc/master/doc'
Makefile:1158: recipe for target 'install-data-am' failed
make[3]: *** [install-data-am] Error 2
make[3]: Leaving directory '/home/bengt/lirc/master/doc'
Makefile:1107: recipe for target 'install-am' failed
make[2]: *** [install-am] Error 2
make[2]: Leaving directory '/home/bengt/lirc/master/doc'
Makefile:671: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/home/bengt/lirc/master'
Makefile:976: recipe for target 'install' failed
make: *** [install] Error 2

IIRC, you can fix it by manually cleaning out the already installed
stuff -- that you will overwrite anyhow.

Alec, I think this is your area of competence?

Greetz,

Bengt











------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Compile fails

Alec Leamas


On 04/12/16 12:20, Bengt Martensson wrote:

> On 12/01/16 20:10, Dirk Vornheder wrote:
>> Hi !
>>
>>
>> Compile latest version of lirc fails:
>>
> ...
>> Byte-compiling python modules...
>> config.pymvc_control.pymvc_view.pyTraceback (most recent call last):
>>    File "<string>", line 16, in <module>
>>    File "/usr/lib64/python3.4/py_compile.py", line 115, in compile
>>      raise FileExistsError(msg.format(cfile))

To me, it more looks like installation fails, right?

The proper way to "fix" this would be to rm -rf he installation
directory before proceeding. However, I somewhat hesitate to do this, it
just "feels" better to leave this to the user. After all, installing
into a non-empty directory IMHO is some kind of mistake.

Or, did I miss something here?

--alec

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Compile fails

Bengt Martensson-2
On 12/07/16 18:34, Alec Leamas wrote:

>
>
> On 04/12/16 12:20, Bengt Martensson wrote:
>> On 12/01/16 20:10, Dirk Vornheder wrote:
>>> Hi !
>>>
>>>
>>> Compile latest version of lirc fails:
>>>
>> ...
>>> Byte-compiling python modules...
>>> config.pymvc_control.pymvc_view.pyTraceback (most recent call last):
>>>    File "<string>", line 16, in <module>
>>>    File "/usr/lib64/python3.4/py_compile.py", line 115, in compile
>>>      raise FileExistsError(msg.format(cfile))
>
> To me, it more looks like installation fails, right?

Right!

> The proper way to "fix" this would be to rm -rf he installation
> directory before proceeding. However, I somewhat hesitate to do this, it
> just "feels" better to leave this to the user. After all, installing
> into a non-empty directory IMHO is some kind of mistake.

Respectfully disagree. First, if you want to prohibit the user to
install in a non-empty directory, the way to do it is

if [ xxxx ] ; then
    echo "Refusing to install in a nonempty dir"
    exit 1
fi

which would provide an error message on the right level of abstraction
(as opposed to the present (python is confused of finding a symlink
where it does not expect it)). The latter is confusing for the user (as
the OP proves :-)).

Secondly, overwriting is ("IMHO"?) the correct way here. The GNU
makefile guidelines
(https://www.gnu.org/prep/standards/html_node/Standard-Targets.html)
(the only wide spread make guidelines, AAIK) says:

        ‘install’

        Compile the program and copy the executables, libraries, and so on to
the file names where they should reside for actual use. ...

It does not say "... provided it does not exist already"- This lead to
me to believe that overwriting is intended. I also believe that this is
what people expect, "the principle of least surprise".

Personally, I am of the opinion that Makefile targets should be
idempotent
(https://en.wikipedia.org/wiki/Idempotence#Computer_science_meaning)

Greetz,

Bengt


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Compile fails

Dirk Vornheder-2
In reply to this post by Bengt Martensson-2

make uninstall

before new install helps ...

Regards,

Dirk


> On 12/01/16 20:10, Dirk Vornheder wrote:
>> Hi !
>>
>>
>> Compile latest version of lirc fails:
>>
> ...
>> Byte-compiling python modules...
>> config.pymvc_control.pymvc_view.pyTraceback (most recent call last):
>>    File "<string>", line 16, in <module>
>>    File "/usr/lib64/python3.4/py_compile.py", line 115, in compile
>>      raise FileExistsError(msg.format(cfile))
>> FileExistsError:
>> /usr/lib/python3.4/site-packages/lirc/__pycache__/mvc_view.cpython-34.pyc
>> is a symlink and will be changed into a regular file if import writes a
>> byte-compiled file to it
>> Makefile:852: recipe for target 'install-pkgpythonPYTHON' failed
>> make[4]: *** [install-pkgpythonPYTHON] Error 1
>> make[4]: Leaving directory '/backup/privat/kernel/lirc/tools'
>> Makefile:1018: recipe for target 'install-am' failed
>> make[3]: *** [install-am] Error 2
>> make[3]: Leaving directory '/backup/privat/kernel/lirc/tools'
>> Makefile:1012: recipe for target 'install' failed
>> make[2]: *** [install] Error 2
>> make[2]: Leaving directory '/backup/privat/kernel/lirc/tools'
>> Makefile:660: recipe for target 'install-recursive' failed
>> make[1]: *** [install-recursive] Error 1
>> make[1]: Leaving directory '/backup/privat/kernel/lirc'
>> Makefile:958: recipe for target 'install' failed
>
> Please make a bug report at https://sourceforge.net/p/lirc/tickets/. I
> have had a similar problem since some time by make install; however not
> exactly the same error messages:
>
> /usr/bin/sed -i '/class="footer"/,/p>/d'
> /usr/local/share/doc/lirc/plugindocs/page.xsl
> /usr/bin/python3 ./make_rel_symlink.py \
>      /usr/local/var/lib/lirc/plugins
> /usr/local/share/doc/lirc/plugindocs/var
> Traceback (most recent call last):
>    File "./make_rel_symlink.py", line 44, in <module>
>      os.symlink( link_path, target)
> FileExistsError: [Errno 17] File exists:
> '../../../../var/lib/lirc/plugins' -> 'var'
> Makefile:1246: recipe for target 'install-data-hook' failed
> make[4]: *** [install-data-hook] Error 1
> make[4]: Leaving directory '/home/bengt/lirc/master/doc'
> Makefile:1158: recipe for target 'install-data-am' failed
> make[3]: *** [install-data-am] Error 2
> make[3]: Leaving directory '/home/bengt/lirc/master/doc'
> Makefile:1107: recipe for target 'install-am' failed
> make[2]: *** [install-am] Error 2
> make[2]: Leaving directory '/home/bengt/lirc/master/doc'
> Makefile:671: recipe for target 'install-recursive' failed
> make[1]: *** [install-recursive] Error 1
> make[1]: Leaving directory '/home/bengt/lirc/master'
> Makefile:976: recipe for target 'install' failed
> make: *** [install] Error 2
>
> IIRC, you can fix it by manually cleaning out the already installed
> stuff -- that you will overwrite anyhow.
>
> Alec, I think this is your area of competence?
>
> Greetz,
>
> Bengt
>
>
>
>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Compile fails

Bengt Martensson-2
On 12/11/16 10:30, Dirk Vornheder wrote:

>
> make uninstall
>
> before new install helps ...
>
> Regards,
>
> Dirk
>
>
>> On 12/01/16 20:10, Dirk Vornheder wrote:
>>> Hi !
>>>
>>>
>>> Compile latest version of lirc fails:
>>>
>> ...
>>> Byte-compiling python modules...
>>> config.pymvc_control.pymvc_view.pyTraceback (most recent call last):
>>>    File "<string>", line 16, in <module>
>>>    File "/usr/lib64/python3.4/py_compile.py", line 115, in compile
>>>      raise FileExistsError(msg.format(cfile))
>>> FileExistsError:
>>> /usr/lib/python3.4/site-packages/lirc/__pycache__/mvc_view.cpython-34.pyc
>>> is a symlink and will be changed into a regular file if import writes a
>>> byte-compiled file to it
>>> Makefile:852: recipe for target 'install-pkgpythonPYTHON' failed
>>> make[4]: *** [install-pkgpythonPYTHON] Error 1


Please open a ticket for this at sourceforge:
https://sourceforge.net/p/lirc/tickets/

Greetz,

Bengt

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
Loading...