Menu ▾ ▴

#33 '/' in os name leads to compile fail

v1.0 (example)
closed
nobody
None
1
5 days ago
2026-10-08
No

OSNAME in Makefile must not contain '/'

~/nmon$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 13 (trixie)
Release:        13
Codename:       trixie
~/nmon$ make list
HW X86
osname DebianGNU/Linux
osversion 13
~/nmon$ make
cc nmon_numa.c -o nmon_X86_DebianGNU/Linux13_16s -g -O3 -Wall -lm -lncurses -D X86 -D DebianGNU/Linux13
<command-line>: warning: ISO C99 requires whitespace after the macro name
/usr/bin/ld: cannot open output file nmon_X86_DebianGNU/Linux13_16s: No such file or directory
collect2: error: ld returned 1 exit status
make: *** [Makefile:16: nmon] Error 1

patch included (replace '/' with underscore)

1 Attachments

Discussion

  • Nigel Griffiths

    Nigel Griffiths - 2026-10-08

    Hi,
    Thanks for the feedback.
    Not sure what nmon_numa.c is about! Perhaps some experimental code.
    A similar fix for the strange OS Name that Debian uses is in the Makefile for nmon16t released about a week ago.
    The OS Name for a distro does not need a "GNU" a "/" or a "Linux" in it.

    Just one of the many quirks in Linux, I guess.

     
  • Sergey Tatarintsev

    yes, it's just an experimental version with cpu by NUMA aggregation.
    anyway, thanks for your attention. I guess ticket may be closed

     
  • Nigel Griffiths

    Nigel Griffiths - 5 days ago
    • status: open --> closed
     

Log in to post a comment.