Gwinel / likwid

Automatically exported from code.google.com/p/likwid
GNU General Public License v3.0
0 stars 0 forks source link

Compilation issue on debian jessie #142

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. call make

What is the expected output? What do you see instead?
the compilation start by 
/bin/sh: 1: [: -lt: unexpected operator
This error happens because the command used to guess the kernel version return 
nothing, it can be easily fixed by modifying the second awk command (see 
attached patch).

What version of the product are you using?
changeset:   551:57f322cdba1e
branch:      v3.1

The bug affect also the stable version available here :
http://ftp.fau.de/pub/likwid/likwid-stable.tar.gz

Please provide any additional information below.
A small fix is provided in the attached patch

Original issue reported on code.google.com by dbeniam...@gmail.com on 21 Mar 2014 at 12:40

Attachments:

GoogleCodeExporter commented 9 years ago
Both checks for the kernel version are not really good. On my machine both 
variables KERNEL_VERSION and KERNEL_VERSION_MAJOR contain the string "generic". 
I think that's not the intention of those variables. There are better checks 
for this.

Original comment by Thomas.R...@googlemail.com on 1 Apr 2014 at 9:03

GoogleCodeExporter commented 9 years ago

Original comment by jan.trei...@gmail.com on 8 May 2014 at 12:41

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 8075fb8751f8.

Original comment by Thomas.R...@googlemail.com on 9 May 2014 at 11:01