Issue while building : KeyError: 'LOGNAME'
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- python
- Domain
- build-system
Research direction
Start in make-wrappers.py at StandardFileHeader, where the traceback shows os.environ["LOGNAME"] is accessed, and review the make-wrappers.py invocation from the Makefile. Reproduce the build with LOGNAME unset; done means mpiPi_def.h is generated and make completes without the KeyError.
Written by the indexing model from the issue text.
Description
Hello,
I am trying to build mpiP and see below error:
==> 'make'
python /home/guest/workarena/softwares/sources/spack/var/spack/stage/mpip-3.4.1-x7l5jk256ayuuirddcxdpbpytlnis3hq/mpiP-3.4.1/make-wrappers.py --xlate --arch=x86_64 --f77symbol symbol_ mpi.protos.txt make-wrappers.py
MPI Wrapper Generator ($Revision: 498 $)
-----*----- Parsing input file
-----*----- Parsing completed: 162 functions found.
-----*----- Beginning parameter optimization
-----*----- Generating structure files
Traceback (most recent call last):
File "/home/guest/workarena/softwares/sources/spack/var/spack/stage/mpip-3.4.1-x7l5jk256ayuuirddcxdpbpytlnis3hq/mpiP-3.4.1/make-wrappers.py", line 1425, in <module>
main()
File "/home/guest/workarena/softwares/sources/spack/var/spack/stage/mpip-3.4.1-x7l5jk256ayuuirddcxdpbpytlnis3hq/mpiP-3.4.1/make-wrappers.py", line 1414, in main
GenerateStructureFile()
File "/home/guest/workarena/softwares/sources/spack/var/spack/stage/mpip-3.4.1-x7l5jk256ayuuirddcxdpbpytlnis3hq/mpiP-3.4.1/make-wrappers.py", line 745, in GenerateStructureFile
olist = StandardFileHeader(sname)
File "/home/guest/workarena/softwares/sources/spack/var/spack/stage/mpip-3.4.1-x7l5jk256ayuuirddcxdpbpytlnis3hq/mpiP-3.4.1/make-wrappers.py", line 712, in StandardFileHeader
olist.append("/* Creator: " + os.environ["LOGNAME"] + " */\n")
File "/usr/lib/python2.7/UserDict.py", line 40, in __getitem__
raise KeyError(key)
KeyError: 'LOGNAME'
Makefile:235: recipe for target 'mpiPi_def.h' failed
make: *** [mpiPi_def.h] Error 1
==> Error: ProcessError: Command exited with status 2:
'make'
The LOGNAME env variable is not set on this system (actually container). Would be nice if we handle this case.
- Dominant language
- C
- Stars
- 112
- Forks
- 35
- PR merge metrics
- No merged PRs in 30d
Getting set up
We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from llnl/mpiP
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
-
MPI 4.0 SupportOpen
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Communication matrixOpen
Difficulty 4/5 3-5 days Newbie friendliness 30/100
-
ARM supportOpen
Difficulty 4/5 3-5 days Newbie friendliness 30/100
Similar issues
-
bug needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
netdata/netdata#24062 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
BasedHardware/omi#19463 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
EchoTools/nevr-runtime#30 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
riscv-software-src/riscv-isa-sim#2448 ·
Maintainers usually reply within 2 days