Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: llua_do_call: function conky_main execution failed: #1867

Closed
belrus65 opened this issue Apr 28, 2024 · 39 comments · Fixed by #1874
Closed

[Bug]: llua_do_call: function conky_main execution failed: #1867

belrus65 opened this issue Apr 28, 2024 · 39 comments · Fixed by #1874
Assignees
Labels
bug Bug report or bug fix PR cairo Issue or PR related to cairo lua Issue or PR related to Lua code

Comments

@belrus65
Copy link

belrus65 commented Apr 28, 2024

What happened?

Lua scripts fail - ua:896: attempt to call a nil value (global 'cairo_xlib_surface_create') when drawing shapes.

Version

1.20.2

Which OS/distro are you seeing the problem on?

Gentoo

Conky config

Panel Config:

conky.config = {
background = true,
update_interval = 1,
double_buffer = true,
no_buffers = true,
xinerama_head = 1,
alignment = "top_left",
gap_x = 96,
gap_y = 832,
maximum_width = 190,
minimum_width = 190,
minimum_height = 190,
own_window = true,
own_window_class = "Conky",
own_window_title = "Core1-Rings",
own_window_type = "desktop",
own_window_transparent = true,
own_window_argb_visual = true,
own_window_argb_value = 255,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
border_inner_margin = 0,
border_outer_margin = 1,
border_width = 1,
use_xft = true,
xftalpha = 1,
override_utf8_locale = true,
default_color = "FFFFFF",
color0 = "FFFFFF", -- white
color1 = "00FFFF", -- cyan1
color2 = "007F7F", -- cyan2
lua_load = "/data/configs/conky/dreamlan/scripts/draw-shapes.lua",
lua_draw_hook_pre = "conky_main cyan cpu1"
};

conky.text = [[
${execpi 1 /data/configs/conky/dreamlan/scripts/get-core-info.sh 1 13}
]]

Lua script:

require 'cairo'

function hexa_to_rgb(color, alpha)
-- ugh, whish this wans't an oneliner
return ((color / 0x10000) % 0x100) / 255., ((color / 0x100) % 0x100) / 255., (color % 0x100) / 255., alpha
end

function get_conky_value(conky_value, is_number)
-- evaluate a conky template to get its current value
-- example: "cpu cpu0" --> 20

local value = conky_parse(string.format('${%s}', conky_value))

if is_number then
    value = tonumber(value)
end
if value==nil then
  return 0
end
return value

end

function get_critical_or_not_suffix (value, threshold, change_color_on_critical, change_alpha_on_critical, change_thickness_on_critical)
local result = {
color = '',
alpha = '',
thickness = ''
}
if value >= threshold then
if change_color_on_critical then
result.color = '_critical'
end
if change_alpha_on_critical then
result.alpha = '_critical'
end
if change_thickness_on_critical then
result.thickness = '_critical'
end
end
return result
end

function draw_background(display, element)
-- draw a window background

local width = conky_window.width
local height = conky_window.height

cairo_move_to(display, element.radius, 0)
cairo_line_to(display, width - element.radius, 0)
cairo_curve_to(display, width, 0, width, 0, width, element.radius)
cairo_line_to(display, width, height - element.radius)
cairo_curve_to(display, width, height, width, height, width - element.radius, height)
cairo_line_to(display, element.radius, height)
cairo_curve_to(display, 0, height, 0, height, 0, height - element.radius)
cairo_line_to(display, 0, element.radius)
cairo_curve_to(display, 0, 0, 0, 0, element.radius, 0)
cairo_close_path(display)

cairo_set_source_rgba(display, hexa_to_rgb(element.color, element.alpha))

if element.outline_thickness > 0 then
  cairo_fill_preserve(display)
  cairo_set_source_rgba(display, hexa_to_rgb(element.outline_color, element.outline_alpha))
  cairo_set_line_width(display, element.outline_thickness)
  cairo_stroke(display)
else
  -- fill the background
  cairo_fill(display)
end

end

function draw_line(display, element)
-- draw a line

-- deltas for x and y (cairo expects a point and deltas for both axis)
local x_side = element.to.x - element.from.x -- not abs! because they are deltas
local y_side = element.to.y - element.from.y -- and the same here
local from_x = element.from.x
local from_y = element.from.y

if not element.graduated then
  -- draw line
  cairo_set_source_rgba(display, hexa_to_rgb(element.color, element.alpha))
  cairo_set_line_width(display, element.thickness);
  cairo_move_to(display, element.from.x, element.from.y);
  cairo_rel_line_to(display, x_side, y_side);
else
  if element.number_graduation == 0 or element.space_between_graduation == 0 then
    error ("The values of number_graduation and space_between_graduation must be non-zero as they are used as divisors. Dividing by zero causes undefined behavior (usually it results in an 'inf').")
  end

  -- draw graduated line
  cairo_set_source_rgba(display, hexa_to_rgb(element.color, element.alpha))
  cairo_set_line_width(display, element.thickness);
  local space_graduation_x = (x_side-x_side/element.space_between_graduation+1)/element.number_graduation
  local space_graduation_y =(y_side-y_side/element.space_between_graduation+1)/element.number_graduation
  local space_x = x_side/element.number_graduation-space_graduation_x
  local space_y = y_side/element.number_graduation-space_graduation_y

  if math.floor (element.number_graduation) > 0 then
    for i=1,element.number_graduation do
        cairo_move_to(display,from_x,from_y)
        from_x=from_x+space_x+space_graduation_x
        from_y=from_y+space_y+space_graduation_y
        cairo_rel_line_to(display,space_x,space_y)
    end
  end
end
cairo_stroke(display)

end

function draw_bar_graph(display, element)
-- draw a bar graph
if element.max_value == 0 then
error ("The value of max_value must be non-zero as it is used a divisor. Dividing by zero causes undefined behavior (usually it results in an 'inf').")
end

-- get current value
value = get_conky_value(element.conky_value, true)
if value > element.max_value   then
    value = element.max_value
end

-- dimensions of the full graph
local x_side = element.to.x - element.from.x
local y_side = element.to.y - element.from.y
local bar_x_side = x_side*value/element.max_value
local bar_y_side = y_side*value/element.max_value

-- is it in critical value?
local critical_or_not_suffix = get_critical_or_not_suffix (value, element.critical_threshold, element.change_color_on_critical, element.change_alpha_on_critical, element.change_thickness_on_critical)

-- background line (full graph)
background_line = {
    from = element.from,
    to = element.to,

    color = element['background_color' .. critical_or_not_suffix.color],
    alpha = element['background_alpha' .. critical_or_not_suffix.alpha],
    thickness = element['background_thickness' .. critical_or_not_suffix.thickness],
    graduated = element.graduated,
    number_graduation=element.number_graduation,
    space_between_graduation=element.space_between_graduation,
}
bar_line = {
    from = element.from,
    to = {x=element.from.x + math.floor(bar_x_side), y=element.from.y + math.floor(bar_y_side)},

    color = element['bar_color' .. critical_or_not_suffix.color],
    alpha = element['bar_alpha' .. critical_or_not_suffix.alpha],
    thickness = element['bar_thickness' .. critical_or_not_suffix.thickness],
}
-- draw background lines
draw_line(display, background_line)

if element.graduated then
if element.space_between_graduation == 0 or element.number_graduation == 0 then
error ("The values of number_graduation and space_between_graduation must be non-zero as they are used as divisors. Dividing by zero causes undefined behavior (usually it results in an 'inf').")
end

  -- draw bar line if graduated
  cairo_set_source_rgba(display, hexa_to_rgb(bar_line.color, bar_line.alpha))
  cairo_set_line_width(display, bar_line.thickness);
  local from_x = bar_line.from.x
  local from_y = bar_line.from.y
  local space_graduation_x = (x_side-x_side/element.space_between_graduation+1)/element.number_graduation
  local space_graduation_y =(y_side-y_side/element.space_between_graduation+1)/element.number_graduation
  local space_x = x_side/element.number_graduation-space_graduation_x
  local space_y = y_side/element.number_graduation-space_graduation_y

  local number_of_bars_to_fill = math.floor(value / element.max_value * element.number_graduation)

  if math.floor (number_of_bars_to_fill) > 0 then
    for i=1,number_of_bars_to_fill do
      cairo_move_to(display,from_x,from_y)
      from_x=from_x+space_x+space_graduation_x
      from_y=from_y+space_y+space_graduation_y
      cairo_rel_line_to(display,space_x,space_y)
    end
  end

cairo_stroke(display)

else
-- draw bar line if not graduated
draw_line(display,bar_line);
end

end

function draw_ring(display, element)
-- draw a ring

-- the user types degrees, but we need radians
local start_angle, end_angle = math.rad(element.start_angle), math.rad(element.end_angle)

-- direction of the ring changes the function we must call
local arc_drawer = cairo_arc
local orientation = 1
if start_angle > end_angle then
    arc_drawer = cairo_arc_negative
    orientation = -1
end
cairo_set_source_rgba(display, hexa_to_rgb(element.color, element.alpha))
cairo_set_line_width(display, element.thickness);
-- draw the ring
if not element.graduated then
  -- draw the ring if not graduated
  arc_drawer(display, element.center.x, element.center.y, element.radius, start_angle, end_angle)
  cairo_stroke(display);
else
  -- draw the ring if graduated
  if element.number_graduation == 0 then
    error ("The value of number_graduation must be non-zero as it is used as a divisor. Dividing by zero causes undefined behavior (usually it results in an 'inf').")
  end
  local angle_between_graduation = math.rad(element.angle_between_graduation)
  local graduation_size = math.abs(end_angle-start_angle)/element.number_graduation - angle_between_graduation
  local current_start = start_angle

  if math.floor(element.number_graduation) > 0 then
    for i=1, element.number_graduation do
      arc_drawer(display, element.center.x, element.center.y, element.radius, current_start, current_start+graduation_size* orientation)
      current_start= current_start+ (graduation_size+angle_between_graduation)* orientation
      cairo_stroke(display);
    end
  end
end

end

function draw_ring_graph(display, element)
-- draw a ring graph
if element.max_value == 0 then
error ("The value of max_value must be non-zero as it is used a divisor. Dividing by zero causes undefined behavior (usually it results in an 'inf').")
end

-- get current value
local value = get_conky_value(element.conky_value, true)

if value > element.max_value then
    value = element.max_value
end

-- dimensions of the full graph
local degrees = element.end_angle - element.start_angle

-- dimensions of the value bar
local bar_degrees = value * (degrees / element.max_value)

-- is it in critical value?
local critical_or_not_suffix = get_critical_or_not_suffix (value, element.critical_threshold, element.change_color_on_critical, element.change_alpha_on_critical, element.change_thickness_on_critical)

-- background ring (full graph)
background_ring = {
    center = element.center,
    radius = element.radius,

    start_angle = element.start_angle,
    end_angle = element.end_angle,

    graduated=element.graduated,
    number_graduation= element.number_graduation,
    angle_between_graduation =element.angle_between_graduation,

    color = element['background_color' .. critical_or_not_suffix.color],
    alpha = element['background_alpha' .. critical_or_not_suffix.alpha],
    thickness = element['background_thickness' .. critical_or_not_suffix.thickness],
}

-- bar ring
bar_ring = {
    center = element.center,
    radius = element.radius,

    start_angle = element.start_angle,
    end_angle = element.start_angle + bar_degrees,

    color = element['bar_color' .. critical_or_not_suffix.color],
    alpha = element['bar_alpha' .. critical_or_not_suffix.alpha],
    thickness = element['bar_thickness' .. critical_or_not_suffix.thickness],
}

-- draw background rings
draw_ring(display, background_ring)
if not element.graduated then
  -- draw bar ring if not graduated
  draw_ring(display, bar_ring)
else
  -- draw bar ring if graduated
  local start_angle, end_angle = math.rad(element.start_angle), math.rad(element.end_angle)
  local arc_drawer = cairo_arc
  local orientation = 1
  if start_angle > end_angle then
      arc_drawer = cairo_arc_negative
      orientation = -1
  end
  cairo_set_source_rgba(display, hexa_to_rgb(bar_ring.color, bar_ring.alpha))
  cairo_set_line_width(display, bar_ring.thickness);

  local angle_between_graduation = math.rad(element.angle_between_graduation)
  local graduation_size = math.abs(end_angle-start_angle)/element.number_graduation - angle_between_graduation
  local current_start = start_angle
  bar_degrees=math.rad(bar_degrees)

  if (graduation_size+angle_between_graduation)*orientation == 0 then
    error ("A division by zero would lead to an infinitely running for loop.")
  end
  if math.floor(bar_degrees/(graduation_size+angle_between_graduation)*orientation) > 0 then
    for i=1, bar_degrees/(graduation_size+angle_between_graduation)*orientation do
      arc_drawer(display, element.center.x, element.center.y, element.radius, current_start, current_start+graduation_size* orientation)
      current_start= current_start+ (graduation_size+angle_between_graduation)* orientation
      cairo_stroke(display);
    end
  end
end

end

function draw_ellipse_graph(display, element)
-- draw a ellipse graph
if element.max_value == 0 then
error ("The value of max_value must be non-zero as it is used a divisor. Dividing by zero causes undefined behavior (usually it results in an 'inf').")
end

-- get current value
local value = get_conky_value(element.conky_value, true)

if value > element.max_value then
    value = element.max_value
end

-- dimensions of the full graph
local degrees = element.end_angle - element.start_angle

-- dimensions of the value bar
local bar_degrees = value * (degrees / element.max_value)

-- is it in critical value?
local critical_or_not_suffix = get_critical_or_not_suffix (value, element.critical_threshold, element.change_color_on_critical, element.change_alpha_on_critical, element.change_thickness_on_critical)

-- background ellipse (full graph)
background_ellipse = {
    center = element.center,
    radius = element.radius,
    width = element.width,
    height = element.height,
    start_angle = element.start_angle,
    end_angle = element.end_angle,
    rotation_angle = element.rotation_angle,

    graduated = element.graduated,
    number_graduation = element.number_graduation,
    angle_between_graduation = element.angle_between_graduation,

    color = element['background_color' .. critical_or_not_suffix.color],
    alpha = element['background_alpha' .. critical_or_not_suffix.alpha],
    thickness = element['background_thickness' .. critical_or_not_suffix.thickness],
}

-- bar ellipse
bar_ellipse = {
    center = element.center,
    radius = element.radius,
    width = element.width,
    height = element.height,
    start_angle = element.start_angle,
    end_angle = element.start_angle + bar_degrees,
    rotation_angle = element.rotation_angle,
    color = element['bar_color' .. critical_or_not_suffix.color],
    alpha = element['bar_alpha' .. critical_or_not_suffix.alpha],
    thickness = element['bar_thickness' .. critical_or_not_suffix.thickness],
}

-- draw background ellipse
draw_ellipse(display, background_ellipse)


if not element.graduated then
  -- draw ellipse bar if not graduated
  draw_ellipse(display, bar_ellipse)
else
  -- draw ellipse bar if graduated
  if element.number_graduation == 0 then
    error ("The value of number_graduation must be non-zero as it is used as a divisor. Dividing by zero causes undefined behavior (usually it results in an 'inf').")
  end

  local start_angle, end_angle = math.rad(element.start_angle), math.rad(element.end_angle)
  local arc_drawer = cairo_arc
  local orientation = 1
  if start_angle > end_angle then
      arc_drawer = cairo_arc_negative
      orientation = -1
  end
  cairo_set_source_rgba(display, hexa_to_rgb(bar_ellipse.color, bar_ellipse.alpha))
  cairo_set_line_width(display, bar_ellipse.thickness);

  local angle_between_graduation = math.rad(element.angle_between_graduation)
  local graduation_size = math.abs(end_angle-start_angle)/element.number_graduation - angle_between_graduation
  local current_start = start_angle
  bar_degrees=math.rad(bar_degrees)

  if (graduation_size+angle_between_graduation)*orientation == 0 then
    error ("A division by zero would lead to an infinitely running for loop.")
  end

  if math.floor(bar_degrees/(graduation_size+angle_between_graduation)*orientation) > 0 then
    for i=1, bar_degrees/(graduation_size+angle_between_graduation)*orientation do
      cairo_save(display)
      cairo_translate (display, element.center.x + element.width / 2., element.center.y + element.height / 2.)

      cairo_scale (display, element.width / 2., element.height / 2.)
      arc_drawer(display, element.center.x, element.center.y, element.radius, current_start, current_start+graduation_size* orientation)
      current_start= current_start+ (graduation_size+angle_between_graduation)* orientation

      cairo_restore(display)
      cairo_stroke(display);
    end
  end
end

end

function draw_ellipse(display, element)
-- draw an ellipse

-- the user types degrees, but we need radians
local start_angle, end_angle = math.rad(element.start_angle), math.rad(element.end_angle)
local rotation_angle = math.rad(element.rotation_angle)
-- direction of the ellipse changes the function we must call
local arc_drawer = cairo_arc
local orientation = 1
if start_angle > end_angle then
    arc_drawer = cairo_arc_negative
    orientation = -1
end

cairo_set_source_rgba(display,hexa_to_rgb(element.color, element.alpha))
cairo_set_line_width(display, element.thickness)


if not element.graduated then
  -- draw simple ellipse
  cairo_save(display)
  cairo_translate (display, element.center.x, element.center.y)
  cairo_scale (display, element.width / 2., element.height / 2.)
  arc_drawer(display, 0., 0., 1., start_angle, end_angle)

  cairo_restore(display)
  cairo_stroke(display)
else
  -- draw graduated ellipse
  if element.number_graduation == 0 then
    error ("The value of number_graduation must be non-zero as it is used as a divisor. Dividing by zero causes undefined behavior (usually it results in an 'inf').")
  end
  local angle_between_graduation = math.rad(element.angle_between_graduation)
  local graduation_size = math.abs(end_angle-start_angle)/element.number_graduation - angle_between_graduation
  local current_start = start_angle

  if math.floor(element.number_graduation) > 0 then
    for i=1, element.number_graduation do
      cairo_save(display)
      cairo_translate (display, element.center.x, element.center.y)
      cairo_scale (display, element.width / 2., element.height / 2.)
      arc_drawer(display, 0., 0., 1., current_start, current_start+graduation_size* orientation)
      current_start= current_start+ (graduation_size+angle_between_graduation)* orientation
      cairo_restore(display)
      cairo_stroke(display);
    end
  end
end

end

function draw_variable_text(display, element)
cairo_save(display)
cairo_move_to (display,element.from.x,element.from.y)
cairo_rotate(display,element.rotation_angle* (math.pi / 180))
cairo_set_source_rgba(display,hexa_to_rgb(element.color, element.alpha))
cairo_set_font_size (display, element.font_size)
local font_slant = CAIRO_FONT_SLANT_NORMAL
if element.italic then
font_slant=CAIRO_FONT_SLANT_ITALIC
end
local font_weight = CAIRO_FONT_WEIGHT_NORMAL
if element.bold then
font_weight=CAIRO_FONT_WEIGHT_BOLD
end
cairo_select_font_face(display,element.font,font_slant,font_weight)
local text = get_conky_value(element.conky_value,false)
cairo_show_text (display,text)

cairo_restore(display)
cairo_stroke (display)
end

function draw_static_text(display, element)
cairo_save(display)
cairo_move_to (display,element.from.x,element.from.y)
cairo_rotate(display,element.rotation_angle* (math.pi / 180))
cairo_set_source_rgba(display,hexa_to_rgb(element.color, element.alpha))
cairo_set_font_size (display, element.font_size)
local font_slant = CAIRO_FONT_SLANT_NORMAL
if element.italic then
font_slant=CAIRO_FONT_SLANT_ITALIC
end
local font_weight = CAIRO_FONT_WEIGHT_NORMAL
if element.bold then
font_weight=CAIRO_FONT_WEIGHT_BOLD
end
cairo_select_font_face(display,element.font,font_slant,font_weight)

  cairo_show_text (display,element.text)

  cairo_restore(display)
  cairo_stroke (display)

end

-- properties that the user must define, because they don't have default
-- values
requirements = {
line = {'from', 'to'},
background = {},
bar_graph = {'from', 'to', 'conky_value'},
ring = {'center', 'radius'},
ring_graph = {'center', 'radius', 'conky_value'},
ellipse ={'center', 'width','height'},
ellipse_graph ={'center', 'width','height','conky_value'},
variable_text = {'from','conky_value'},
static_text = {'from','text'},
}

-- Default values for properties that can have a default value
defaults = {
background = {
radius = 30,
color = 0x000000,
alpha = 0.5,

    outline_color = 0x00FF6E,
    outline_alpha = 0.5,
    outline_thickness = 2,

    draw_function = draw_background,
},
bar_graph = {
    max_value = 100.,
    critical_threshold = 90.,

    background_color = 0x00FF6E,
    background_alpha = 0.2,
    background_thickness = 5,

    bar_color = 0x00FF6E,
    bar_alpha = 1.0,
    bar_thickness = 5,

    background_color_critical = 0xFA002E,
    background_alpha_critical = 0.2,
    background_thickness_critical = 5,

    bar_color_critical = 0xFA002E,
    bar_alpha_critical = 1.0,
    bar_thickness_critical = 5,

    change_color_on_critical = true,
    change_alpha_on_critical = false,
    change_thickness_on_critical = false,

    graduated = false,
    number_graduation=0,
    space_between_graduation=1,

    draw_function = draw_bar_graph,
},
ring_graph = {
    max_value = 100.,
    critical_threshold = 90.,

    background_color = 0x00FF6E,
    background_alpha = 0.2,
    background_thickness = 5,

    bar_color = 0x00FF6E,
    bar_alpha = 1.0,
    bar_thickness = 5,

    background_color_critical = 0xFA002E,
    background_alpha_critical = 0.2,
    background_thickness_critical = 5,

    bar_color_critical = 0xFA002E,
    bar_alpha_critical = 1.0,
    bar_thickness_critical = 5,

    change_color_on_critical = true,
    change_alpha_on_critical = false,
    change_thickness_on_critical = false,

    start_angle = 0,
    end_angle = 360,

    graduated = false,
    number_graduation=0,
    angle_between_graduation=1,

    draw_function = draw_ring_graph,
},
line = {
    color = 0x00FF6E,
    alpha = 0.2,
    thickness = 5,
    graduated = false,
    number_graduation=0,
    space_between_graduation=1,
    draw_function = draw_line,
},
ring = {
    color = 0x00FF6E,
    alpha = 0.2,
    thickness = 5,

    start_angle = 0,
    end_angle = 360,

    graduated = false,
    number_graduation=0,
    angle_between_graduation=1,

    draw_function = draw_ring,
},
ellipse_graph = {
    max_value = 100.,
    critical_threshold = 90.,

    background_color = 0x00FF6E,
    background_alpha = 0.2,
    background_thickness = 5,

    bar_color = 0x00FF6E,
    bar_alpha = 1.0,
    bar_thickness = 5,

    background_color_critical = 0xFA002E,
    background_alpha_critical = 0.2,
    background_thickness_critical = 5,

    bar_color_critical = 0xFA002E,
    bar_alpha_critical = 1.0,
    bar_thickness_critical = 5,

    change_color_on_critical = true,
    change_alpha_on_critical = false,
    change_thickness_on_critical = false,

    start_angle = 0,
    end_angle = 360,
    rotation_angle=0,

    graduated = false,
    number_graduation=0,
    angle_between_graduation=1,

    draw_function = draw_ellipse_graph,
},
ellipse = {
    color = 0x00FF6E,
    alpha = 0.2,
    thickness = 5,

    start_angle = 0,
    end_angle = 360,
    rotation_angle=0,

    graduated = false,
    number_graduation=0,
    angle_between_graduation=1,

    draw_function = draw_ellipse,
},
variable_text = {
    color = 0x00FF6E,
    rotation_angle=0,
    font="Liberation Sans",
    font_size=12,
    bold=false,
    italic=false,
    alpha=1.0,
    draw_function = draw_variable_text,
},
static_text = {
    color = 0x00FF6E,
    rotation_angle=0,
    font="Liberation Sans",
    font_size=12,
    bold=false,
    italic=false,
    alpha=1.0,
    draw_function = draw_static_text,
},

}

function check_requirements(elements)
-- check every element has the required properties
for i, element in pairs(elements) do
-- find the requirements for that element kind
kind_requirements = requirements[element.kind]
-- if there are defined requirements for that element kind
if kind_requirements ~= nil then
-- check all of them are defined by the user
for i, property in pairs(kind_requirements) do
if element[property] == nil then
error('You defined a ' .. element.kind .. ' without specifying its "' .. property .. '" value')
end
end
else
-- we don't know which properties has to have, BUT, it always needs
-- a draw_function
if element.draw_function == nil then
error('You defined a ' .. element.kind .. ', which is unknown element kind to me. Was it a typo? or are you trying to define a custom element kind but forgot to define its draw_function?')
end
end
end
end

function fill_defaults(elements)
-- fill each each element with the missing values, using the defaults
for i, element in pairs(elements) do
-- find the defaults for that element kind
kind_defaults = defaults[element.kind]
-- only if there are defined defaults for that element kind
if kind_defaults ~= nil then
-- fill the element with the defaults (for the properties without
-- value)
for key, value in pairs(kind_defaults) do
if element[key] == nil then
element[key] = kind_defaults[key]
end
end
end
end
end

function conky_main(themecolor, shape)
if themecolor == "cyan" then
package.path = package.path .. ';' .. os.getenv("HOME") .. '/.config/conky/dreamlan/cyan/configs/?.lua'
if shape == "clock" then
require 'draw-shapes_clock_config'
end
if shape == "ram" then
require 'draw-shapes_ram_config'
end
if shape == "cpu1" then
require 'draw-shapes_cpu1_config'
end
if shape == "cpu2" then
require 'draw-shapes_cpu2_config'
end
if shape == "cpu3" then
require 'draw-shapes_cpu3_config'
end
if shape == "cpu4" then
require 'draw-shapes_cpu4_config'
end
if shape == "cpu5" then
require 'draw-shapes_cpu5_config'
end
if shape == "cpu6" then
require 'draw-shapes_cpu6_config'
end
if shape == "cpu7" then
require 'draw-shapes_cpu1_config'
end
if shape == "cpu8" then
require 'draw-shapes_cpu2_config'
end
if shape == "cpu9" then
require 'draw-shapes_cpu3_config'
end
if shape == "cpu10" then
require 'draw-shapes_cpu4_config'
end
if shape == "cpu11" then
require 'draw-shapes_cpu5_config'
end
if shape == "cpu12" then
require 'draw-shapes_cpu6_config'
end
end
if themecolor == "magenta" then
package.path = package.path .. ';' .. os.getenv("HOME") .. '/.config/conky/dreamlan/magenta/configs/?.lua'
if shape == "clock" then
require 'draw-shapes_clock_config'
end
if shape == "ram" then
require 'draw-shapes_ram_config'
end
if shape == "cpu1" then
require 'draw-shapes_cpu1_config'
end
if shape == "cpu2" then
require 'draw-shapes_cpu2_config'
end
if shape == "cpu3" then
require 'draw-shapes_cpu3_config'
end
if shape == "cpu4" then
require 'draw-shapes_cpu4_config'
end
if shape == "cpu5" then
require 'draw-shapes_cpu5_config'
end
if shape == "cpu6" then
require 'draw-shapes_cpu6_config'
end
if shape == "cpu7" then
require 'draw-shapes_cpu1_config'
end
if shape == "cpu8" then
require 'draw-shapes_cpu2_config'
end
if shape == "cpu9" then
require 'draw-shapes_cpu3_config'
end
if shape == "cpu10" then
require 'draw-shapes_cpu4_config'
end
if shape == "cpu11" then
require 'draw-shapes_cpu5_config'
end
if shape == "cpu12" then
require 'draw-shapes_cpu6_config'
end
end
if themecolor == "yellow" then
package.path = package.path .. ';' .. os.getenv("HOME") .. '/.config/conky/dreamlan/yellow/configs/?.lua'
if shape == "clock" then
require 'draw-shapes_clock_config'
end
if shape == "ram" then
require 'draw-shapes_ram_config'
end
if shape == "cpu1" then
require 'draw-shapes_cpu1_config'
end
if shape == "cpu2" then
require 'draw-shapes_cpu2_config'
end
if shape == "cpu3" then
require 'draw-shapes_cpu3_config'
end
if shape == "cpu4" then
require 'draw-shapes_cpu4_config'
end
if shape == "cpu5" then
require 'draw-shapes_cpu5_config'
end
if shape == "cpu6" then
require 'draw-shapes_cpu6_config'
end
if shape == "cpu7" then
require 'draw-shapes_cpu1_config'
end
if shape == "cpu8" then
require 'draw-shapes_cpu2_config'
end
if shape == "cpu9" then
require 'draw-shapes_cpu3_config'
end
if shape == "cpu10" then
require 'draw-shapes_cpu4_config'
end
if shape == "cpu11" then
require 'draw-shapes_cpu5_config'
end
if shape == "cpu12" then
require 'draw-shapes_cpu6_config'
end
end
if conky_window == nil then
return
end

check_requirements(elements)
fill_defaults(elements)

local surface = cairo_xlib_surface_create(conky_window.display,
                                          conky_window.drawable,
                                          conky_window.visual,
                                          conky_window.width,
                                          conky_window.height)
local display = cairo_create(surface)

if tonumber(conky_parse('${updates}')) > 1 then
    for i, element in ipairs(elements) do
        element.draw_function(display, element)
    end
end

cairo_surface_destroy(surface)

end

Stack trace

No response

Relevant log output

conky: llua_do_call: function conky_main execution failed: /data/configs/conky/dreamlan/scripts/draw-shapes.lua:896: attempt to call a nil value (global 'cairo_xlib_surface_create')
@belrus65 belrus65 added bug Bug report or bug fix PR triage Issue that hasn't been verified labels Apr 28, 2024
@brndnmtthws brndnmtthws removed the triage Issue that hasn't been verified label Apr 28, 2024
@brndnmtthws
Copy link
Owner

For this to work, you need to enable the BUILD_X11, BUILD_LUA_CAIRO, and BUILD_LUA_CAIRO_XLIB build flags. For example:

cmake .. -G Ninja -DBUILD_X11=ON -DBUILD_LUA_CAIRO=ON -DBUILD_LUA_CAIRO_XLIB=ON

@belrus65
Copy link
Author

Gentoo USE flags aready enabled, but not working. Previous version (1.19.8) has exact same flags, and working correctly. Rolled back for now, all okay, but would like a fix.

@brndnmtthws
Copy link
Owner

I don't see BUILD_LUA_CAIRO_XLIB anywhere in the ebuild at https://gitweb.gentoo.org/repo/gentoo.git/tree/app-admin/conky/conky-1.20.2.ebuild, so I think it needs to be updated.

Paging @billie80

@belrus65
Copy link
Author

Is this a new flag requirement compared to the previous version (1.19.8), if not, the flag is not in the ebuild either but works fine. If so, should I notify the gentoo team?

@brndnmtthws
Copy link
Owner

It's new, yes, introduced in #1844 as part of the effort to improve Wayland support.

@billie80
Copy link
Contributor

@brndnmtthws Thanks for letting me know. This might slipped through when adding the new version.

I already took a closer look at it yesterday after the version bump because there is a Gentoo Bug (https://bugs.gentoo.org/show_bug.cgi?id=930823) which might be related to this changes. In the build log I see that lua_cairo is disabled in the configure options but obviously there is nothing about lua_cairo_xlib. However later it says "Cairo Xlib Lua bindings require Cairo and X11; setting to 'false'."Again later it checks for the module cairo which it finds. In the end the build fails because cairo.h is missing. So even if the ebuild does not control lua_cairo_xlib conky itself disables it due to the cmake settings. So I wonder why it is still looking for cairo. I am not sure if everything is due to the ebuild not covering the new flag.

Nevertheless the ebuild could do better with regard to X11 and Wayland support. I have to come up with something to improve this.

@billie80
Copy link
Contributor

@belrus65 Can you please add your build log here?
I already saw the other Gentoo bug you have opened but let's deal with this in one place.

@belrus65
Copy link
Author

belrus65 commented Apr 29, 2024

@billie80 Sorry for the delay, here is my build log. (Strangely, did not noticed any errors during the build cycle)

build.log:

�[32m * �[39;49;00mPackage: app-admin/conky-1.20.2:0
�[32m * �[39;49;00mRepository: gentoo
�[32m * �[39;49;00mMaintainer: billie@gentoo.org
�[32m * �[39;49;00mUpstream: brenden@rty.ca
�[32m * �[39;49;00mUSE: X abi_x86_64 amd64 bundled-toluapp curl elibc_glibc hddtemp iconv imlib iostats kernel_linux lua-cairo lua-imlib lua-rsvg lua_single_target_lua5-4 math ncurses portmon pulseaudio truetype xinerama
�[32m * �[39;49;00mFEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox
�[32m�[0m Determining the location of the kernel source code
�[32m
�[0m Found kernel source directory:
�[32m�[0m /usr/src/linux
�[32m
�[0m Found sources for kernel version:
�[32m�[0m 6.8.8-gentoo-dist
�[32m
�[0m Checking for suitable kernel configuration options ...
�[A�[161C �[34;01m[ �[32;01mok�[34;01m ]�[0m
�[32m*�[0m Using lua5.4 to build

Unpacking source...
Unpacking conky-1.20.2.tar.gz to /var/tmp/portage/app-admin/conky-1.20.2/work
Source unpacked in /var/tmp/portage/app-admin/conky-1.20.2/work
Preparing source in /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2 ...
�[32m�[0m Source directory (CMAKE_USE_DIR): "/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2"
�[32m
�[0m Build directory (BUILD_DIR): "/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build"
Source prepared.
Configuring source in /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2 ...
�[32m�[0m Source directory (CMAKE_USE_DIR): "/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2"
�[32m
�[0m Build directory (BUILD_DIR): "/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build"
cmake -C /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_ARGB=yes -DBUILD_X11=yes -DBUILD_XDAMAGE=yes -DBUILD_XDBE=yes -DBUILD_XFIXES=yes -DBUILD_XSHAPE=yes -DBUILD_XINPUT=yes -DBUILD_MOUSE_EVENTS=yes -DOWN_WINDOW=yes -DBUILD_APCUPSD=no -DBUILD_AUDACIOUS=no -DBUILD_BUILTIN_CONFIG=yes -DBUILD_CMUS=no -DBUILD_CURL=yes -DBUILD_DOCS=no -DBUILD_EXTRAS=no -DBUILD_HDDTEMP=yes -DBUILD_HTTP=no -DBUILD_I18N=yes -DBUILD_IBM=no -DBUILD_ICAL=no -DBUILD_ICONV=yes -DBUILD_IMLIB2=yes -DBUILD_INTEL_BACKLIGHT=no -DBUILD_IOSTATS=yes -DBUILD_IPV6=yes -DBUILD_IRC=no -DBUILD_JOURNAL=no -DBUILD_LUA_CAIRO=yes -DBUILD_LUA_IMLIB2=yes -DBUILD_LUA_RSVG=yes -DBUILD_MATH=yes -DBUILD_MOC=no -DBUILD_MPD=no -DBUILD_MYSQL=no -DBUILD_NCURSES=yes -DBUILD_NVIDIA=no -DBUILD_OLD_CONFIG=yes -DBUILD_PORT_MONITORS=yes -DBUILD_PULSEAUDIO=yes -DBUILD_RSS=no -DBUILD_TESTS=no -DBUILD_WAYLAND=no -DBUILD_WLAN=no -DBUILD_XFT=yes -DBUILD_XINERAMA=yes -DBUILD_XMMS2=no -DDOC_PATH=/usr/share/doc/conky-1.20.2 -DMAINTAINER_MODE=no -DRELEASE=yes -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/gentoo_toolchain.cmake /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2
loading initial cache file /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 13.2.1
-- The CXX compiler identification is GNU 13.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- CMAKE_C_FLAGS: -march=znver2 -O2 -pipe
-- CMAKE_CXX_FLAGS: -march=znver2 -O2 -pipe
-- CMAKE_C_FLAGS_DEBUG: -g
-- CMAKE_CXX_FLAGS_DEBUG: -g
-- CMAKE_C_FLAGS_MINSIZEREL: -Os -DNDEBUG
-- CMAKE_CXX_FLAGS_MINSIZEREL: -Os -DNDEBUG
-- CMAKE_C_FLAGS_RELEASE: -O3 -DNDEBUG
-- CMAKE_CXX_FLAGS_RELEASE: -O3 -DNDEBUG
-- CMAKE_C_FLAGS_RELWITHDEBINFO:
-- CMAKE_CXX_FLAGS_RELWITHDEBINFO:
-- CMAKE_BUILD_TYPE: RelWithDebInfo
-- Found PkgConfig: /usr/bin/x86_64-pc-linux-gnu-pkg-config (found version "2.2.0")
-- Looking for include file sys/statfs.h
-- Looking for include file sys/statfs.h - found
-- Looking for include file sys/param.h
-- Looking for include file sys/param.h - found
-- Looking for include file sys/inotify.h
-- Looking for include file sys/inotify.h - found
-- Looking for include file dirent.h
-- Looking for include file dirent.h - found
-- Looking for strndup
-- Looking for strndup - found
-- Looking for pipe2
-- Looking for pipe2 - not found
-- Looking for O_CLOEXEC
-- Looking for O_CLOEXEC - found
-- Looking for statfs64
-- Looking for statfs64 - found
-- Looking for clock_gettime
-- Looking for clock_gettime - found
-- Looking for include file linux/soundcard.h
-- Looking for include file linux/soundcard.h - found
-- Looking for include file linux/soundcard.h
-- Looking for include file linux/soundcard.h - found
-- Looking for include file linux/sockios.h
-- Looking for include file linux/sockios.h - found
-- Looking for cbreak in /usr/lib64/libncurses.so
-- Looking for cbreak in /usr/lib64/libncurses.so - not found
-- Looking for nodelay in /usr/lib64/libncurses.so
-- Looking for nodelay in /usr/lib64/libncurses.so - not found
-- Found Curses: /usr/lib64/libncurses.so
-- Looking for getnameinfo
-- Looking for getnameinfo - found
-- Looking for 5 include files netdb.h, ..., arpa/inet.h
-- Looking for 5 include files netdb.h, ..., arpa/inet.h - found
-- Looking for include file iconv.h
-- Looking for include file iconv.h - found
-- Looking for iconv
-- Looking for iconv - found
-- Found X11: /usr/include
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found Fontconfig: /usr/lib64/libfontconfig.so (found version "2.15.0")
-- Found Lua: /usr/lib64/liblua5.4.so;/usr/lib64/libm.so (found suitable exact version "5.4.6")
-- Checking for module 'cairo>=1.14'
-- Found cairo, version 1.18.0
-- Checking for module 'cairo-xlib'
-- Found cairo-xlib, version 1.18.0
-- Checking for one of the modules 'imlib2;Imlib2'
-- Checking for module 'librsvg-2.0>=2.52'
-- Found librsvg-2.0, version 2.57.3
-- Checking for module 'libpulse'
-- Found libpulse, version 17.0
-- Checking for module 'libcurl'
-- Found libcurl, version 8.7.1
�[0mConfiguration for target conky-cairo�[0m
-- SOURCE_DIR = /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/lua
-- BINARY_DIR = /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/lua
-- COMPILE_OPTIONS = $<$<COMPILE_LANG_AND_ID:CXX,Clang>:-stdlib=libc++>
-- INCLUDE_DIRECTORIES = /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include;/usr/include;/usr/include/cairo;/usr/include/libpng16;/usr/include/freetype2;/usr/include/harfbuzz;/usr/include/glib-2.0;/usr/lib64/glib-2.0/include;/usr/include/pixman-1;/usr/include/cairo;/usr/include/libpng16;/usr/include;/usr/include/freetype2;/usr/include/harfbuzz;/usr/include/glib-2.0;/usr/lib64/glib-2.0/include;/usr/include/pixman-1;/usr/include/lua5.4;/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/lua
-- LINK_LIBRARIES = cairo;X11;Xext;cairo;/usr/lib64/liblua5.4.so;/usr/lib64/libm.so;toluapp_lib_static
�[0mConfiguration for target conky-cairo_xlib�[0m
-- SOURCE_DIR = /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/lua
-- BINARY_DIR = /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/lua
-- COMPILE_OPTIONS = $<$<COMPILE_LANG_AND_ID:CXX,Clang>:-stdlib=libc++>
-- INCLUDE_DIRECTORIES = /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include;/usr/include;/usr/include/cairo;/usr/include/libpng16;/usr/include/freetype2;/usr/include/harfbuzz;/usr/include/glib-2.0;/usr/lib64/glib-2.0/include;/usr/include/pixman-1;/usr/include/cairo;/usr/include/libpng16;/usr/include;/usr/include/freetype2;/usr/include/harfbuzz;/usr/include/glib-2.0;/usr/lib64/glib-2.0/include;/usr/include/pixman-1;/usr/include/lua5.4;/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/lua;/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/lua
-- LINK_LIBRARIES = cairo;X11;Xext;cairo;/usr/lib64/liblua5.4.so;/usr/lib64/libm.so;toluapp_lib_static
�[0mConfiguration for target conky-imlib2�[0m
-- SOURCE_DIR = /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/lua
-- BINARY_DIR = /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/lua
-- COMPILE_OPTIONS = $<$<COMPILE_LANG_AND_ID:CXX,Clang>:-stdlib=libc++>
-- INCLUDE_DIRECTORIES = /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include;/usr/include;/usr/include/cairo;/usr/include/libpng16;/usr/include/freetype2;/usr/include/harfbuzz;/usr/include/glib-2.0;/usr/lib64/glib-2.0/include;/usr/include/pixman-1;/usr/include/cairo;/usr/include/libpng16;/usr/include;/usr/include/freetype2;/usr/include/harfbuzz;/usr/include/glib-2.0;/usr/lib64/glib-2.0/include;/usr/include/pixman-1;/usr/include/lua5.4;/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/lua;/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/lua;/usr/include;/usr/include/lua5.4;/usr/include;/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build;/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/lua;/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src
-- LINK_LIBRARIES = -L/usr/lib64;-lImlib2;/usr/lib64/liblua5.4.so;/usr/lib64/libm.so;toluapp_lib_static
�[0mConfiguration for target conky-rsvg�[0m
-- SOURCE_DIR = /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/lua
-- BINARY_DIR = /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/lua
-- COMPILE_OPTIONS = $<$<COMPILE_LANG_AND_ID:CXX,Clang>:-stdlib=libc++>
-- INCLUDE_DIRECTORIES = /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include;/usr/include;/usr/include/cairo;/usr/include/libpng16;/usr/include/freetype2;/usr/include/harfbuzz;/usr/include/glib-2.0;/usr/lib64/glib-2.0/include;/usr/include/pixman-1;/usr/include/cairo;/usr/include/libpng16;/usr/include;/usr/include/freetype2;/usr/include/harfbuzz;/usr/include/glib-2.0;/usr/lib64/glib-2.0/include;/usr/include/pixman-1;/usr/include/lua5.4;/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/lua;/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/lua;/usr/include;/usr/include/lua5.4;/usr/include;/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build;/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/lua;/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src;/usr/include;/usr/include/cairo;/usr/include/libpng16;/usr/include/freetype2;/usr/include/harfbuzz;/usr/include/glib-2.0;/usr/lib64/glib-2.0/include;/usr/include/pixman-1;/usr/include/cairo;/usr/include/libpng16;/usr/include;/usr/include/freetype2;/usr/include/harfbuzz;/usr/include/glib-2.0;/usr/lib64/glib-2.0/include;/usr/include/pixman-1;/usr/include/lua5.4;/usr/include;/usr/include/lua5.4;/usr/include;/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/lua;/usr/include/librsvg-2.0;/usr/include/gdk-pixbuf-2.0;/usr/include;/usr/lib64/libffi/include;/usr/include/libmount;/usr/include/blkid;/usr/include/cairo;/usr/include/libpng16;/usr/include/freetype2;/usr/include/harfbuzz;/usr/include/glib-2.0;/usr/lib64/glib-2.0/include;/usr/include/pixman-1;/usr/include/lua5.4;/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/lua
-- LINK_LIBRARIES = rsvg-2;m;gio-2.0;gdk_pixbuf-2.0;gobject-2.0;glib-2.0;cairo;/usr/lib64/liblua5.4.so;/usr/lib64/libm.so;toluapp_lib_static
-- Found Lua: /usr/lib64/liblua5.4.so;/usr/lib64/libm.so (found version "5.4.6")
�[0mConfiguration for target conky�[0m
-- SOURCE_DIR = /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src
-- BINARY_DIR = /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/src
-- COMPILE_OPTIONS = $<$<COMPILE_LANG_AND_ID:CXX,Clang>:-stdlib=libc++>
-- INCLUDE_DIRECTORIES = /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include;/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build;/usr/include;/usr/include;/usr/include/freetype2;/usr/include/freetype2;/usr/include;/usr/include;/usr/include/lua5.4;/usr/include;/usr/include;/usr/include;/usr/include;/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data
-- LINK_LIBRARIES = -lm;/usr/lib64/libncurses.so;/usr/lib64/libtinfo.so;/usr/lib64/libform.so;/usr/lib64/libSM.so;/usr/lib64/libICE.so;/usr/lib64/libX11.so;/usr/lib64/libXext.so;/usr/lib64/libXdamage.so;/usr/lib64/libXfixes.so;/usr/lib64/libXft.so;/usr/lib64/libfontconfig.so;/usr/lib64/libXext.so;/usr/lib64/libXinerama.so;/usr/lib64/libXfixes.so;/usr/lib64/libXi.so;/usr/lib64/libxcb.so;/usr/lib64/libxcb.so;/usr/lib64/libxcb-errors.so;/usr/lib64/liblua5.4.so;/usr/lib64/libm.so;-L/usr/lib64;-lImlib2;pulse;curl;curl;toluapp_lib_static;tcp-portmon
-- <<< Gentoo configuration >>>
Build type RelWithDebInfo
Install path /usr
Compiler flags:
C -march=znver2 -O2 -pipe
C++ -march=znver2 -O2 -pipe
Linker flags:
Executable -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs
Module -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs
Shared -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs

-- Configuring done (2.8s)
-- Generating done (0.0s)
-- Build files have been written to: /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build

Source configured.
Compiling source in /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2 ...
�[32m�[0m Source directory (CMAKE_USE_DIR): "/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2"
�[32m
�[0m Build directory (BUILD_DIR): "/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build"
ninja -v -j20 -l20
[1/90] cd /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data && /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/bin/text2c.sh /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/extras/convert.lua convertconf.h convertconf
[2/90] cd /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data && /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/bin/text2c.sh /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/data/conky.conf defconfig.h defconfig
[3/90] /usr/bin/x86_64-pc-linux-gnu-gcc -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/src/lib -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/src/bin -march=znver2 -O2 -pipe -std=gnu99 -fPIC -MD -MT 3rdparty/toluapp/CMakeFiles/toluapp_lib_static.dir/src/lib/tolua_push.c.o -MF 3rdparty/toluapp/CMakeFiles/toluapp_lib_static.dir/src/lib/tolua_push.c.o.d -o 3rdparty/toluapp/CMakeFiles/toluapp_lib_static.dir/src/lib/tolua_push.c.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/src/lib/tolua_push.c
[4/90] /usr/bin/x86_64-pc-linux-gnu-gcc -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/src/lib -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/src/bin -march=znver2 -O2 -pipe -std=gnu99 -MD -MT 3rdparty/toluapp/CMakeFiles/toluapp.dir/src/bin/tolua.c.o -MF 3rdparty/toluapp/CMakeFiles/toluapp.dir/src/bin/tolua.c.o.d -o 3rdparty/toluapp/CMakeFiles/toluapp.dir/src/bin/tolua.c.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/src/bin/tolua.c
[5/90] /usr/bin/x86_64-pc-linux-gnu-gcc -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/src/lib -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/src/bin -march=znver2 -O2 -pipe -std=gnu99 -fPIC -MD -MT 3rdparty/toluapp/CMakeFiles/toluapp_lib_static.dir/src/lib/tolua_to.c.o -MF 3rdparty/toluapp/CMakeFiles/toluapp_lib_static.dir/src/lib/tolua_to.c.o.d -o 3rdparty/toluapp/CMakeFiles/toluapp_lib_static.dir/src/lib/tolua_to.c.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/src/lib/tolua_to.c
[6/90] /usr/bin/x86_64-pc-linux-gnu-gcc -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/src/lib -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/src/bin -march=znver2 -O2 -pipe -std=gnu99 -fPIC -MD -MT 3rdparty/toluapp/CMakeFiles/toluapp_lib_static.dir/src/lib/tolua_event.c.o -MF 3rdparty/toluapp/CMakeFiles/toluapp_lib_static.dir/src/lib/tolua_event.c.o.d -o 3rdparty/toluapp/CMakeFiles/toluapp_lib_static.dir/src/lib/tolua_event.c.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/src/lib/tolua_event.c
[7/90] /usr/bin/x86_64-pc-linux-gnu-gcc -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/src/lib -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/src/bin -march=znver2 -O2 -pipe -std=gnu99 -fPIC -MD -MT 3rdparty/toluapp/CMakeFiles/toluapp_lib_static.dir/src/lib/tolua_map.c.o -MF 3rdparty/toluapp/CMakeFiles/toluapp_lib_static.dir/src/lib/tolua_map.c.o.d -o 3rdparty/toluapp/CMakeFiles/toluapp_lib_static.dir/src/lib/tolua_map.c.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/src/lib/tolua_map.c
[8/90] /usr/bin/x86_64-pc-linux-gnu-gcc -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/src/lib -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/src/bin -march=znver2 -O2 -pipe -std=gnu99 -fPIC -MD -MT 3rdparty/toluapp/CMakeFiles/toluapp_lib_static.dir/src/lib/tolua_is.c.o -MF 3rdparty/toluapp/CMakeFiles/toluapp_lib_static.dir/src/lib/tolua_is.c.o.d -o 3rdparty/toluapp/CMakeFiles/toluapp_lib_static.dir/src/lib/tolua_is.c.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/src/lib/tolua_is.c
[9/90] /usr/bin/x86_64-pc-linux-gnu-gcc -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/src/lib -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/src/bin -march=znver2 -O2 -pipe -std=gnu99 -MD -MT 3rdparty/toluapp/CMakeFiles/toluapp.dir/src/bin/toluabind.c.o -MF 3rdparty/toluapp/CMakeFiles/toluapp.dir/src/bin/toluabind.c.o.d -o 3rdparty/toluapp/CMakeFiles/toluapp.dir/src/bin/toluabind.c.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/src/bin/toluabind.c
[10/90] : && /usr/bin/cmake -E rm -f 3rdparty/toluapp/libtoluapp.a && /usr/bin/x86_64-pc-linux-gnu-ar qc 3rdparty/toluapp/libtoluapp.a 3rdparty/toluapp/CMakeFiles/toluapp_lib_static.dir/src/lib/tolua_event.c.o 3rdparty/toluapp/CMakeFiles/toluapp_lib_static.dir/src/lib/tolua_is.c.o 3rdparty/toluapp/CMakeFiles/toluapp_lib_static.dir/src/lib/tolua_map.c.o 3rdparty/toluapp/CMakeFiles/toluapp_lib_static.dir/src/lib/tolua_push.c.o 3rdparty/toluapp/CMakeFiles/toluapp_lib_static.dir/src/lib/tolua_to.c.o && /usr/bin/x86_64-pc-linux-gnu-ranlib 3rdparty/toluapp/libtoluapp.a && :
[11/90] : && /usr/bin/x86_64-pc-linux-gnu-gcc -march=znver2 -O2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs 3rdparty/toluapp/CMakeFiles/toluapp.dir/src/bin/tolua.c.o 3rdparty/toluapp/CMakeFiles/toluapp.dir/src/bin/toluabind.c.o -o 3rdparty/toluapp/toluapp 3rdparty/toluapp/libtoluapp.a /usr/lib64/liblua5.4.so -lm && :
[12/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/c++wrap.cc.o -MF src/CMakeFiles/conky.dir/c++wrap.cc.o.d -o src/CMakeFiles/conky.dir/c++wrap.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/c++wrap.cc
[13/90] cd /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/lua && /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/3rdparty/toluapp/toluapp -n cairo_xlib -o /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/lua/libcairo_xlib.cc /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/lua/cairo_xlib.pkg /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/src/bin/lua/
[14/90] cd /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/lua && /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/3rdparty/toluapp/toluapp -n cairo -o /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/lua/libcairo-orig.cc /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/lua/cairo.pkg /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/src/bin/lua/
[15/90] cd /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/lua && /usr/bin/patch -s /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/lua/libcairo-orig.cc /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/lua/libcairo.patch -o /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/lua/libcairo.cc
[16/90] cd /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/lua && /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/3rdparty/toluapp/toluapp -n cairo_imlib2_helper -o /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/lua/libcairo_imlib2_helper.cc /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/lua/cairo_imlib2_helper.pkg /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/src/bin/lua/
[17/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/cpu.cc.o -MF src/CMakeFiles/conky.dir/cpu.cc.o.d -o src/CMakeFiles/conky.dir/cpu.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/cpu.cc
[18/90] cd /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/lua && /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/3rdparty/toluapp/toluapp -n rsvg -o /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/lua/librsvg.cc /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/lua/rsvg.pkg /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/src/bin/lua/
[19/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -Dtcp_portmon_EXPORTS -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -fPIC -MD -MT src/CMakeFiles/tcp-portmon.dir/libtcp-portmon.cc.o -MF src/CMakeFiles/tcp-portmon.dir/libtcp-portmon.cc.o.d -o src/CMakeFiles/tcp-portmon.dir/libtcp-portmon.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/libtcp-portmon.cc
[20/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/colours.cc.o -MF src/CMakeFiles/conky.dir/colours.cc.o.d -o src/CMakeFiles/conky.dir/colours.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/colours.cc
[21/90] cd /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/lua && /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/3rdparty/toluapp/toluapp -n imlib2 -o /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/lua/libimlib2.cc /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/lua/imlib2.pkg /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/src/bin/lua/
[22/90] /usr/bin/x86_64-pc-linux-gnu-g++ -DTOLUA_RELEASE -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -Dconky_cairo_xlib_EXPORTS -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/usr/include/cairo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/lua -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src -I/usr/include/librsvg-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/lib64/libffi/include -I/usr/include/libmount -I/usr/include/blkid -march=znver2 -O2 -pipe -std=c++17 -fPIC -Wno-unused-parameter -Wno-cast-qual -Wno-error=pedantic -MD -MT lua/CMakeFiles/conky-cairo_xlib.dir/libcairo_xlib.cc.o -MF lua/CMakeFiles/conky-cairo_xlib.dir/libcairo_xlib.cc.o.d -o lua/CMakeFiles/conky-cairo_xlib.dir/libcairo_xlib.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/lua/libcairo_xlib.cc
[23/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/entropy.cc.o -MF src/CMakeFiles/conky.dir/entropy.cc.o.d -o src/CMakeFiles/conky.dir/entropy.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/entropy.cc
[24/90] : && /usr/bin/x86_64-pc-linux-gnu-g++ -fPIC -march=znver2 -O2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -shared -Wl,-soname,libtcp-portmon.so -o src/libtcp-portmon.so src/CMakeFiles/tcp-portmon.dir/libtcp-portmon.cc.o && :
[25/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/colour-settings.cc.o -MF src/CMakeFiles/conky.dir/colour-settings.cc.o.d -o src/CMakeFiles/conky.dir/colour-settings.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/colour-settings.cc
[26/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/fs.cc.o -MF src/CMakeFiles/conky.dir/fs.cc.o.d -o src/CMakeFiles/conky.dir/fs.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/fs.cc
[27/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/misc.cc.o -MF src/CMakeFiles/conky.dir/misc.cc.o.d -o src/CMakeFiles/conky.dir/misc.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/misc.cc
[28/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/diskio.cc.o -MF src/CMakeFiles/conky.dir/diskio.cc.o.d -o src/CMakeFiles/conky.dir/diskio.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/diskio.cc
[29/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/gradient.cc.o -MF src/CMakeFiles/conky.dir/gradient.cc.o.d -o src/CMakeFiles/conky.dir/gradient.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/gradient.cc
[30/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/exec.cc.o -MF src/CMakeFiles/conky.dir/exec.cc.o.d -o src/CMakeFiles/conky.dir/exec.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/exec.cc
[31/90] /usr/bin/x86_64-pc-linux-gnu-g++ -DTOLUA_RELEASE -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -Dconky_cairo_imlib2_helper_EXPORTS -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/usr/include/cairo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/lua -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src -I/usr/include/librsvg-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/lib64/libffi/include -I/usr/include/libmount -I/usr/include/blkid -march=znver2 -O2 -pipe -std=c++17 -fPIC -Wno-unused-parameter -Wno-cast-qual -Wno-error=pedantic -MD -MT lua/CMakeFiles/conky-cairo_imlib2_helper.dir/libcairo_imlib2_helper.cc.o -MF lua/CMakeFiles/conky-cairo_imlib2_helper.dir/libcairo_imlib2_helper.cc.o.d -o lua/CMakeFiles/conky-cairo_imlib2_helper.dir/libcairo_imlib2_helper.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/lua/libcairo_imlib2_helper.cc
[32/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/combine.cc.o -MF src/CMakeFiles/conky.dir/combine.cc.o.d -o src/CMakeFiles/conky.dir/combine.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/combine.cc
[33/90] /usr/bin/x86_64-pc-linux-gnu-g++ -DTOLUA_RELEASE -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -Dconky_rsvg_EXPORTS -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/usr/include/cairo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/lua -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src -I/usr/include/librsvg-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/lib64/libffi/include -I/usr/include/libmount -I/usr/include/blkid -march=znver2 -O2 -pipe -std=c++17 -fPIC -Wno-unused-parameter -Wno-cast-qual -Wno-error=pedantic -MD -MT lua/CMakeFiles/conky-rsvg.dir/librsvg.cc.o -MF lua/CMakeFiles/conky-rsvg.dir/librsvg.cc.o.d -o lua/CMakeFiles/conky-rsvg.dir/librsvg.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/lua/librsvg.cc
[34/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/main.cc.o -MF src/CMakeFiles/conky.dir/main.cc.o.d -o src/CMakeFiles/conky.dir/main.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/main.cc
[35/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/template.cc.o -MF src/CMakeFiles/conky.dir/template.cc.o.d -o src/CMakeFiles/conky.dir/template.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/template.cc
[36/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/common.cc.o -MF src/CMakeFiles/conky.dir/common.cc.o.d -o src/CMakeFiles/conky.dir/common.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/common.cc
[37/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/net_stat.cc.o -MF src/CMakeFiles/conky.dir/net_stat.cc.o.d -o src/CMakeFiles/conky.dir/net_stat.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/net_stat.cc
[38/90] /usr/bin/x86_64-pc-linux-gnu-g++ -DTOLUA_RELEASE -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -Dconky_cairo_EXPORTS -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/usr/include/cairo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/lua -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src -I/usr/include/librsvg-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/lib64/libffi/include -I/usr/include/libmount -I/usr/include/blkid -march=znver2 -O2 -pipe -std=c++17 -fPIC -Wno-unused-parameter -Wno-cast-qual -Wno-error=pedantic -MD -MT lua/CMakeFiles/conky-cairo.dir/libcairo.cc.o -MF lua/CMakeFiles/conky-cairo.dir/libcairo.cc.o.d -o lua/CMakeFiles/conky-cairo.dir/libcairo.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/lua/libcairo.cc
[39/90] /usr/bin/x86_64-pc-linux-gnu-g++ -DTOLUA_RELEASE -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -Dconky_imlib2_EXPORTS -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/usr/include/cairo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/lua -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src -I/usr/include/librsvg-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/lib64/libffi/include -I/usr/include/libmount -I/usr/include/blkid -march=znver2 -O2 -pipe -std=c++17 -fPIC -Wno-unused-parameter -Wno-cast-qual -Wno-error=pedantic -MD -MT lua/CMakeFiles/conky-imlib2.dir/libimlib2.cc.o -MF lua/CMakeFiles/conky-imlib2.dir/libimlib2.cc.o.d -o lua/CMakeFiles/conky-imlib2.dir/libimlib2.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/lua/libimlib2.cc
[40/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/scroll.cc.o -MF src/CMakeFiles/conky.dir/scroll.cc.o.d -o src/CMakeFiles/conky.dir/scroll.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/scroll.cc
[41/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/read_tcpip.cc.o -MF src/CMakeFiles/conky.dir/read_tcpip.cc.o.d -o src/CMakeFiles/conky.dir/read_tcpip.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/read_tcpip.cc
[42/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/text_object.cc.o -MF src/CMakeFiles/conky.dir/text_object.cc.o.d -o src/CMakeFiles/conky.dir/text_object.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/text_object.cc
[43/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/mboxscan.cc.o -MF src/CMakeFiles/conky.dir/mboxscan.cc.o.d -o src/CMakeFiles/conky.dir/mboxscan.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/mboxscan.cc
[44/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/tailhead.cc.o -MF src/CMakeFiles/conky.dir/tailhead.cc.o.d -o src/CMakeFiles/conky.dir/tailhead.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/tailhead.cc
[45/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/algebra.cc.o -MF src/CMakeFiles/conky.dir/algebra.cc.o.d -o src/CMakeFiles/conky.dir/algebra.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/algebra.cc
[46/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/temphelper.cc.o -MF src/CMakeFiles/conky.dir/temphelper.cc.o.d -o src/CMakeFiles/conky.dir/temphelper.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/temphelper.cc
[47/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/prioqueue.cc.o -MF src/CMakeFiles/conky.dir/prioqueue.cc.o.d -o src/CMakeFiles/conky.dir/prioqueue.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/prioqueue.cc
[48/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/timeinfo.cc.o -MF src/CMakeFiles/conky.dir/timeinfo.cc.o.d -o src/CMakeFiles/conky.dir/timeinfo.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/timeinfo.cc
[49/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/user.cc.o -MF src/CMakeFiles/conky.dir/user.cc.o.d -o src/CMakeFiles/conky.dir/user.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/user.cc
[50/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/mail.cc.o -MF src/CMakeFiles/conky.dir/mail.cc.o.d -o src/CMakeFiles/conky.dir/mail.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/mail.cc
[51/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/display-output.cc.o -MF src/CMakeFiles/conky.dir/display-output.cc.o.d -o src/CMakeFiles/conky.dir/display-output.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/display-output.cc
[52/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/lua-config.cc.o -MF src/CMakeFiles/conky.dir/lua-config.cc.o.d -o src/CMakeFiles/conky.dir/lua-config.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/lua-config.cc
[53/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/luamm.cc.o -MF src/CMakeFiles/conky.dir/luamm.cc.o.d -o src/CMakeFiles/conky.dir/luamm.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/luamm.cc
[54/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/top.cc.o -MF src/CMakeFiles/conky.dir/top.cc.o.d -o src/CMakeFiles/conky.dir/top.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/top.cc
[55/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/core.cc.o -MF src/CMakeFiles/conky.dir/core.cc.o.d -o src/CMakeFiles/conky.dir/core.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/core.cc
[56/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/display-console.cc.o -MF src/CMakeFiles/conky.dir/display-console.cc.o.d -o src/CMakeFiles/conky.dir/display-console.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/display-console.cc
[57/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/data-source.cc.o -MF src/CMakeFiles/conky.dir/data-source.cc.o.d -o src/CMakeFiles/conky.dir/data-source.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/data-source.cc
[58/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/display-file.cc.o -MF src/CMakeFiles/conky.dir/display-file.cc.o.d -o src/CMakeFiles/conky.dir/display-file.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/display-file.cc
[59/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/update-cb.cc.o -MF src/CMakeFiles/conky.dir/update-cb.cc.o.d -o src/CMakeFiles/conky.dir/update-cb.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/update-cb.cc
[60/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/sony.cc.o -MF src/CMakeFiles/conky.dir/sony.cc.o.d -o src/CMakeFiles/conky.dir/sony.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/sony.cc
[61/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/setting.cc.o -MF src/CMakeFiles/conky.dir/setting.cc.o.d -o src/CMakeFiles/conky.dir/setting.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/setting.cc
[62/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/specials.cc.o -MF src/CMakeFiles/conky.dir/specials.cc.o.d -o src/CMakeFiles/conky.dir/specials.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/specials.cc
[63/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/mixer.cc.o -MF src/CMakeFiles/conky.dir/mixer.cc.o.d -o src/CMakeFiles/conky.dir/mixer.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/mixer.cc
[64/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/users.cc.o -MF src/CMakeFiles/conky.dir/users.cc.o.d -o src/CMakeFiles/conky.dir/users.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/users.cc
[65/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/i8k.cc.o -MF src/CMakeFiles/conky.dir/i8k.cc.o.d -o src/CMakeFiles/conky.dir/i8k.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/i8k.cc
[66/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/x11-color.cc.o -MF src/CMakeFiles/conky.dir/x11-color.cc.o.d -o src/CMakeFiles/conky.dir/x11-color.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/x11-color.cc
[67/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/llua.cc.o -MF src/CMakeFiles/conky.dir/llua.cc.o.d -o src/CMakeFiles/conky.dir/llua.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/llua.cc
[68/90] : && /usr/bin/x86_64-pc-linux-gnu-g++ -fPIC -march=znver2 -O2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -shared -Wl,-soname,libcairo_xlib.so -o lua/libcairo_xlib.so lua/CMakeFiles/conky-cairo_xlib.dir/libcairo_xlib.cc.o -lcairo -lX11 -lXext -lcairo /usr/lib64/liblua5.4.so -lm 3rdparty/toluapp/libtoluapp.a -lX11 -lXext /usr/lib64/liblua5.4.so -lm && :
[69/90] : && /usr/bin/x86_64-pc-linux-gnu-g++ -fPIC -march=znver2 -O2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -shared -Wl,-soname,libcairo.so -o lua/libcairo.so lua/CMakeFiles/conky-cairo.dir/libcairo.cc.o -lcairo -lX11 -lXext -lcairo /usr/lib64/liblua5.4.so -lm 3rdparty/toluapp/libtoluapp.a -lX11 -lXext /usr/lib64/liblua5.4.so -lm && :
[70/90] : && /usr/bin/x86_64-pc-linux-gnu-g++ -fPIC -march=znver2 -O2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -shared -Wl,-soname,libcairo_imlib2_helper.so -o lua/libcairo_imlib2_helper.so lua/CMakeFiles/conky-cairo_imlib2_helper.dir/libcairo_imlib2_helper.cc.o -lcairo -lX11 -lXext -lcairo /usr/lib64/liblua5.4.so -lm -L/usr/lib64 -lImlib2 /usr/lib64/liblua5.4.so -lm 3rdparty/toluapp/libtoluapp.a -lX11 -lXext -lImlib2 /usr/lib64/liblua5.4.so -lm && :
[71/90] : && /usr/bin/x86_64-pc-linux-gnu-g++ -fPIC -march=znver2 -O2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -shared -Wl,-soname,libimlib2.so -o lua/libimlib2.so lua/CMakeFiles/conky-imlib2.dir/libimlib2.cc.o -L/usr/lib64 -lImlib2 /usr/lib64/liblua5.4.so -lm 3rdparty/toluapp/libtoluapp.a /usr/lib64/liblua5.4.so -lm && :
[72/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/proc.cc.o -MF src/CMakeFiles/conky.dir/proc.cc.o.d -o src/CMakeFiles/conky.dir/proc.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/proc.cc
[73/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/tcp-portmon.cc.o -MF src/CMakeFiles/conky.dir/tcp-portmon.cc.o.d -o src/CMakeFiles/conky.dir/tcp-portmon.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/tcp-portmon.cc
[74/90] : && /usr/bin/x86_64-pc-linux-gnu-g++ -fPIC -march=znver2 -O2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -shared -Wl,-soname,librsvg.so -o lua/librsvg.so lua/CMakeFiles/conky-rsvg.dir/librsvg.cc.o -lrsvg-2 -lm -lgio-2.0 -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lcairo /usr/lib64/liblua5.4.so -lm 3rdparty/toluapp/libtoluapp.a /usr/lib64/liblua5.4.so -lm && :
[75/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/x11-settings.cc.o -MF src/CMakeFiles/conky.dir/x11-settings.cc.o.d -o src/CMakeFiles/conky.dir/x11-settings.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/x11-settings.cc
[76/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/nc.cc.o -MF src/CMakeFiles/conky.dir/nc.cc.o.d -o src/CMakeFiles/conky.dir/nc.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/nc.cc
[77/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/iconv_tools.cc.o -MF src/CMakeFiles/conky.dir/iconv_tools.cc.o.d -o src/CMakeFiles/conky.dir/iconv_tools.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/iconv_tools.cc
[78/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/conky.cc.o -MF src/CMakeFiles/conky.dir/conky.cc.o.d -o src/CMakeFiles/conky.dir/conky.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/conky.cc
[79/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/fonts.cc.o -MF src/CMakeFiles/conky.dir/fonts.cc.o.d -o src/CMakeFiles/conky.dir/fonts.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/fonts.cc
[80/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/linux.cc.o -MF src/CMakeFiles/conky.dir/linux.cc.o.d -o src/CMakeFiles/conky.dir/linux.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/linux.cc
[81/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/hddtemp.cc.o -MF src/CMakeFiles/conky.dir/hddtemp.cc.o.d -o src/CMakeFiles/conky.dir/hddtemp.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/hddtemp.cc
[82/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/conky-imlib2.cc.o -MF src/CMakeFiles/conky.dir/conky-imlib2.cc.o.d -o src/CMakeFiles/conky.dir/conky-imlib2.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/conky-imlib2.cc
[83/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/ccurl_thread.cc.o -MF src/CMakeFiles/conky.dir/ccurl_thread.cc.o.d -o src/CMakeFiles/conky.dir/ccurl_thread.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/ccurl_thread.cc
[84/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/display-ncurses.cc.o -MF src/CMakeFiles/conky.dir/display-ncurses.cc.o.d -o src/CMakeFiles/conky.dir/display-ncurses.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/display-ncurses.cc
[85/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/mouse-events.cc.o -MF src/CMakeFiles/conky.dir/mouse-events.cc.o.d -o src/CMakeFiles/conky.dir/mouse-events.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/mouse-events.cc
[86/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/x11.cc.o -MF src/CMakeFiles/conky.dir/x11.cc.o.d -o src/CMakeFiles/conky.dir/x11.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/x11.cc
[87/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/gui.cc.o -MF src/CMakeFiles/conky.dir/gui.cc.o.d -o src/CMakeFiles/conky.dir/gui.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/gui.cc
[88/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/pulseaudio.cc.o -MF src/CMakeFiles/conky.dir/pulseaudio.cc.o.d -o src/CMakeFiles/conky.dir/pulseaudio.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/pulseaudio.cc
[89/90] /usr/bin/x86_64-pc-linux-gnu-g++ -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/3rdparty/toluapp/include -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build -I/usr/include/freetype2 -I/usr/include/lua5.4 -I/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/data -march=znver2 -O2 -pipe -std=c++17 -MD -MT src/CMakeFiles/conky.dir/display-x11.cc.o -MF src/CMakeFiles/conky.dir/display-x11.cc.o.d -o src/CMakeFiles/conky.dir/display-x11.cc.o -c /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2/src/display-x11.cc
[90/90] : && /usr/bin/x86_64-pc-linux-gnu-g++ -march=znver2 -O2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs src/CMakeFiles/conky.dir/main.cc.o src/CMakeFiles/conky.dir/c++wrap.cc.o src/CMakeFiles/conky.dir/colour-settings.cc.o src/CMakeFiles/conky.dir/colours.cc.o src/CMakeFiles/conky.dir/combine.cc.o src/CMakeFiles/conky.dir/common.cc.o src/CMakeFiles/conky.dir/conky.cc.o src/CMakeFiles/conky.dir/core.cc.o src/CMakeFiles/conky.dir/cpu.cc.o src/CMakeFiles/conky.dir/diskio.cc.o src/CMakeFiles/conky.dir/entropy.cc.o src/CMakeFiles/conky.dir/exec.cc.o src/CMakeFiles/conky.dir/fs.cc.o src/CMakeFiles/conky.dir/gradient.cc.o src/CMakeFiles/conky.dir/mail.cc.o src/CMakeFiles/conky.dir/misc.cc.o src/CMakeFiles/conky.dir/net_stat.cc.o src/CMakeFiles/conky.dir/template.cc.o src/CMakeFiles/conky.dir/mboxscan.cc.o src/CMakeFiles/conky.dir/read_tcpip.cc.o src/CMakeFiles/conky.dir/scroll.cc.o src/CMakeFiles/conky.dir/specials.cc.o src/CMakeFiles/conky.dir/tailhead.cc.o src/CMakeFiles/conky.dir/temphelper.cc.o src/CMakeFiles/conky.dir/text_object.cc.o src/CMakeFiles/conky.dir/timeinfo.cc.o src/CMakeFiles/conky.dir/top.cc.o src/CMakeFiles/conky.dir/algebra.cc.o src/CMakeFiles/conky.dir/prioqueue.cc.o src/CMakeFiles/conky.dir/proc.cc.o src/CMakeFiles/conky.dir/user.cc.o src/CMakeFiles/conky.dir/luamm.cc.o src/CMakeFiles/conky.dir/data-source.cc.o src/CMakeFiles/conky.dir/display-output.cc.o src/CMakeFiles/conky.dir/display-console.cc.o src/CMakeFiles/conky.dir/display-file.cc.o src/CMakeFiles/conky.dir/lua-config.cc.o src/CMakeFiles/conky.dir/setting.cc.o src/CMakeFiles/conky.dir/llua.cc.o src/CMakeFiles/conky.dir/update-cb.cc.o src/CMakeFiles/conky.dir/linux.cc.o src/CMakeFiles/conky.dir/users.cc.o src/CMakeFiles/conky.dir/sony.cc.o src/CMakeFiles/conky.dir/i8k.cc.o src/CMakeFiles/conky.dir/mixer.cc.o src/CMakeFiles/conky.dir/tcp-portmon.cc.o src/CMakeFiles/conky.dir/display-x11.cc.o src/CMakeFiles/conky.dir/x11-settings.cc.o src/CMakeFiles/conky.dir/x11-color.cc.o src/CMakeFiles/conky.dir/x11.cc.o src/CMakeFiles/conky.dir/fonts.cc.o src/CMakeFiles/conky.dir/gui.cc.o src/CMakeFiles/conky.dir/mouse-events.cc.o src/CMakeFiles/conky.dir/hddtemp.cc.o src/CMakeFiles/conky.dir/ccurl_thread.cc.o src/CMakeFiles/conky.dir/conky-imlib2.cc.o src/CMakeFiles/conky.dir/iconv_tools.cc.o src/CMakeFiles/conky.dir/nc.cc.o src/CMakeFiles/conky.dir/display-ncurses.cc.o src/CMakeFiles/conky.dir/pulseaudio.cc.o -o src/conky -Wl,-rpath,/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build/src: -lm /usr/lib64/libncurses.so /usr/lib64/libtinfo.so /usr/lib64/libform.so /usr/lib64/libSM.so /usr/lib64/libICE.so /usr/lib64/libX11.so /usr/lib64/libXext.so /usr/lib64/libXdamage.so /usr/lib64/libXfixes.so /usr/lib64/libXft.so /usr/lib64/libfontconfig.so /usr/lib64/libXext.so /usr/lib64/libXinerama.so /usr/lib64/libXfixes.so /usr/lib64/libXi.so /usr/lib64/libxcb.so /usr/lib64/libxcb.so /usr/lib64/libxcb-errors.so /usr/lib64/liblua5.4.so -lm -L/usr/lib64 -lImlib2 -lpulse -lcurl -lcurl 3rdparty/toluapp/libtoluapp.a src/libtcp-portmon.so /usr/lib64/libXext.so /usr/lib64/libXdamage.so /usr/lib64/libXft.so /usr/lib64/libfontconfig.so /usr/lib64/libXinerama.so /usr/lib64/libXi.so /usr/lib64/libxcb.so /usr/lib64/libxcb-errors.so -lImlib2 -lpulse -lcurl /usr/lib64/liblua5.4.so -lm && :
Source compiled.
�[32m*�[0m Skipping make test/check due to ebuild restriction.
Test phase [disabled because of RESTRICT=test]: app-admin/conky-1.20.2

Install app-admin/conky-1.20.2 into /var/tmp/portage/app-admin/conky-1.20.2/image
�[32m�[0m Source directory (CMAKE_USE_DIR): "/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2"
�[32m
�[0m Build directory (BUILD_DIR): "/var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build"
ninja -v -j20 -l20 install
[0/1] cd /var/tmp/portage/app-admin/conky-1.20.2/work/conky-1.20.2_build && /usr/bin/cmake -P cmake_install.cmake
-- Install configuration: "RelWithDebInfo"
-- Installing: /var/tmp/portage/app-admin/conky-1.20.2/image/usr/lib64/conky/libcairo.so
-- Installing: /var/tmp/portage/app-admin/conky-1.20.2/image/usr/lib64/conky/libcairo_xlib.so
-- Installing: /var/tmp/portage/app-admin/conky-1.20.2/image/usr/lib64/conky/libimlib2.so
-- Installing: /var/tmp/portage/app-admin/conky-1.20.2/image/usr/lib64/conky/libcairo_imlib2_helper.so
-- Installing: /var/tmp/portage/app-admin/conky-1.20.2/image/usr/lib64/conky/librsvg.so
-- Installing: /var/tmp/portage/app-admin/conky-1.20.2/image/usr/share/applications/conky.desktop
-- Installing: /var/tmp/portage/app-admin/conky-1.20.2/image/usr/share/icons/hicolor/scalable/apps/conky-logomark-violet.svg
-- Installing: /var/tmp/portage/app-admin/conky-1.20.2/image/usr/bin/conky
-- Set non-toolchain portion of runtime path of "/var/tmp/portage/app-admin/conky-1.20.2/image/usr/bin/conky" to ""
-- Installing: /var/tmp/portage/app-admin/conky-1.20.2/image/usr/lib64/libtcp-portmon.so
-- Installing: /var/tmp/portage/app-admin/conky-1.20.2/image/usr/share/doc/conky-1.20.2/convert.lua
-- Installing: /var/tmp/portage/app-admin/conky-1.20.2/image/usr/share/doc/conky-1.20.2/conky_no_x11.conf
-- Installing: /var/tmp/portage/app-admin/conky-1.20.2/image/usr/share/doc/conky-1.20.2/conky.conf
Completed installing app-admin/conky-1.20.2 into /var/tmp/portage/app-admin/conky-1.20.2/image

�[32m�[0m Final size of build directory: 14368 KiB (14.0 MiB)
�[32m
�[0m Final size of installed tree: 2012 KiB ( 1.9 MiB)

strip: x86_64-pc-linux-gnu-strip --strip-unneeded -N gentoo_check_ldflags -R .comment -R .GCC.command.line -R .note.gnu.gold-version
/usr/lib64/conky/libcairo.so
/usr/lib64/conky/libcairo_xlib.so
/usr/lib64/conky/libimlib2.so
/usr/lib64/conky/libcairo_imlib2_helper.so
/usr/lib64/conky/librsvg.so
/usr/lib64/libtcp-portmon.so
/usr/bin/conky
�[32;01m*�[39;49;00m checking 15 files for package collisions

Merging app-admin/conky-1.20.2 to /
--- /usr/
--- /usr/bin/
/usr/bin/conky
--- /usr/share/
--- /usr/share/doc/
/usr/share/doc/conky-1.20.2/
/usr/share/doc/conky-1.20.2/README.gentoo.bz2
/usr/share/doc/conky-1.20.2/AUTHORS.bz2
/usr/share/doc/conky-1.20.2/README.md.bz2
/usr/share/doc/conky-1.20.2/conky.conf.bz2
/usr/share/doc/conky-1.20.2/conky_no_x11.conf.bz2
/usr/share/doc/conky-1.20.2/convert.lua.bz2
--- /usr/share/icons/
--- /usr/share/icons/hicolor/
--- /usr/share/icons/hicolor/scalable/
--- /usr/share/icons/hicolor/scalable/apps/
=== /usr/share/icons/hicolor/scalable/apps/conky-logomark-violet.svg
--- /usr/share/applications/
=== /usr/share/applications/conky.desktop
--- /usr/lib64/
=== /usr/lib64/libtcp-portmon.so
--- /usr/lib64/conky/
=== /usr/lib64/conky/librsvg.so
/usr/lib64/conky/libcairo_imlib2_helper.so
=== /usr/lib64/conky/libimlib2.so
/usr/lib64/conky/libcairo_xlib.so
/usr/lib64/conky/libcairo.so
Safely unmerging already-installed instance...
Original instance of package unmerged safely.
�[32m�[0m Updating .desktop files database ...
�[A�[161C �[34;01m[ �[32;01mok�[34;01m ]�[0m
�[32m
�[0m Updating icons cache ...
�[A�[161C �[34;01m[ �[32;01mok�[34;01m ]�[0m
app-admin/conky-1.20.2 merged.
Regenerating /etc/ld.so.cache...

@belrus65
Copy link
Author

@billie80 Here is the version info I get after installation:

conky --version
conky 1.20.2 compiled for Linux x86_64

Compiled in features:

System config file: /etc/conky/conky.conf
Package library path: /usr/lib64/conky

General:

  • math
  • hddtemp
  • portmon
  • IPv6
  • Curl
  • iconv
  • builtin default configuration
  • old configuration syntax
  • Imlib2
  • OSS mixer support
  • iostats
  • ncurses
  • Internationalization support
  • PulseAudio

Lua bindings:

  • Cairo
  • Imlib2
  • RSVG
    X11:
  • Xdamage extension
  • Xinerama extension (virtual display)
  • Xshape extension (click through)
  • XDBE (double buffer extension)
  • Xft
  • Xinput
  • ARGB visual
  • Own window
  • Mouse events

Default values:

  • Netdevice: eno1
  • Local configfile: $HOME/.conkyrc
  • Localedir: /usr/share/locale
  • Maximum netdevices: 256
  • Maximum text size: 16384
  • Size text buffer: 256

@brndnmtthws
Copy link
Owner

�[32m * �[39;49;00mUpstream: brenden@rty.ca

Unrelated, but that email is a bit out of date, not something I have access to anymore FWIW.

@brndnmtthws
Copy link
Owner

I already took a closer look at it yesterday after the version bump because there is a Gentoo Bug (https://bugs.gentoo.org/show_bug.cgi?id=930823) which might be related to this changes. In the build log I see that lua_cairo is disabled in the configure options but obviously there is nothing about lua_cairo_xlib. However later it says "Cairo Xlib Lua bindings require Cairo and X11; setting to 'false'."Again later it checks for the module cairo which it finds. In the end the build fails because cairo.h is missing. So even if the ebuild does not control lua_cairo_xlib conky itself disables it due to the cmake settings. So I wonder why it is still looking for cairo. I am not sure if everything is due to the ebuild not covering the new flag.

Nevertheless the ebuild could do better with regard to X11 and Wayland support. I have to come up with something to improve this.

I'll have to check the behaviour again, but it's possible that it was changed to only print a warning instead of failing the build when the dependencies are missing. I'll try to fix this up and restore the old behaviour (i.e., the build should fail if you enable a feature and a dependency is missing).

@brndnmtthws brndnmtthws self-assigned this Apr 29, 2024
@billie80
Copy link
Contributor

�[32m * �[39;49;00mUpstream: brenden@rty.ca

Unrelated, but that email is a bit out of date, not something I have access to anymore FWIW.

Which contact address should I use instead? I can also remove it completely if you prefer!

I'll have to check the behaviour again, but it's possible that it was changed to only print a warning instead of failing the build when the dependencies are missing. I'll try to fix this up and restore the old behaviour (i.e., the build should fail if you enable a feature and a dependency is missing).

Don't know if this is the case here but it would be worse if if e.g. cairo support is disabled in build options but it is still tried to link against cairo if it is present on the system.
https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Automagic_dependencies


Regarding this issue. Probably I am not understanding the cmake setup correctly. When I take a look at this lines in ConkyBuildOptions.cmake:

dependent_option(BUILD_LUA_CAIRO "Build cairo bindings for Lua" false
  "BUILD_GUI" false
  "Cairo Lua bindings depend on BUILD_GUI")
dependent_option(BUILD_LUA_CAIRO_XLIB "Build Imlib2 bindings for Lua" true
  "BUILD_X11;BUILD_LUA_CAIRO" false
  "Cairo Xlib Lua bindings require Cairo and X11")

Are the following assumptions correct?
It looks like the default for BUILD_LUA_CAIRO is false and for BUILD_LUA_CAIRO_XLIB it is true.
BUILD_LUA_CAIRO_XLIB is only disabled if one or both of BUILD_GUI and BUILD_LUA_CAIRO are false.
In both build logs BUILD_GUI should be true because either X11 or wayland are true.

In the Gentoo build log BUILD_LUA_CAIRO is false thus BUILD_LUA_CAIRO_XLIB is also set to false.
Here I don't understand why the build fails. Because as mentioned above in this case it should not search for cairo at all at configure time and also not try to look for cairo.h at compile time.

In the build log from @belrus65 BUILD_LUA_CAIRO is true thus BUILD_LUA_CAIRO_XLIB should also be true even if it is not specified explicitly. Here I don't understand why there the lua problem mentioned happen because libcairo.so and libcairo_xlib.so are installed as can be seen in his log.


Btw. there seems to be a typo in the BUILD_LUA_CAIRO_XLIB description which mentions imlib2 "Build Imlib2 bindings for Lua". Probably this was copied from imlib2 and not adjusted.

@billie80
Copy link
Contributor

billie80 commented Apr 29, 2024

I am not sure if this is only related to the ebuild not dealing with the new BUILD_LUA_CAIRO_XLIB build option so this probably wont help. It would be great if you could try this version anyway.
Here I added a use flag for the new BUILD_LUA_CAIRO_XLIB option as well as a few changes trying to improve support for wayland vs. X11.
conky-1.20.2-r999.ebuild.txt
I added the .txt suffix because GitHub does not allow attaching files suffixed with .ebuild.

@billie80
Copy link
Contributor

billie80 commented Apr 29, 2024

Hm, probably the error from the Gentoo bug is related to the imlib2 changes from #1844 in lua/CMakeLists.txt? Even if cairo and cairo-xlib are disabled the libcairo_imlib2_helper still requires cairo.
Before it checked for if(BUILD_LUA_CAIRO AND BUILD_LUA_IMLIB2) and afterwards only for if(BUILD_LUA_IMLIB2).
So it tries to build the helper even if BUILD_LUA_CAIRO is false.

If cairo is not installed it fails because cairo.h is not present. If cairo is present it does not fail because the header is available which sounds like the above mentioned automagic behaviour.

@billie80
Copy link
Contributor

Hm, probably the error from the Gentoo bug is related to the imlib2 changes from #1844 in lua/CMakeLists.txt? Even if cairo and cairo-xlib are disabled the libcairo_imlib2_helper still requires cairo. Before it checked for if(BUILD_LUA_CAIRO AND BUILD_LUA_IMLIB2) and afterwards only for if(BUILD_LUA_IMLIB2). So it tries to build the helper even if BUILD_LUA_CAIRO is false.

If cairo is not installed it fails because cairo.h is not present. If cairo is present it does not fail because the header is available which sounds like the above mentioned automagic behaviour.

Looks like it! #1873

@Caellian Caellian added lua Issue or PR related to Lua code cairo Issue or PR related to cairo labels Apr 29, 2024
@Caellian
Copy link
Collaborator

BUILD_LUA_CAIRO_XLIB is true so that if someone enables BUILD_LUA_CAIRO but doesn't explicitly disable X11 or ..CAIRO_XLIB it gets automatically built.

..CAIRO_XLIB and ..IMLIB2 explicitly require X11 because the functions they add do, but ..CAIRO can work without X11, which is why it uses BUILD_GUI. It could work without BUILD_GUI, but I left it disabled because I didn't see a reason to leave it enabled without a graphical display.

@Caellian Caellian linked a pull request Apr 29, 2024 that will close this issue
@billie80
Copy link
Contributor

Still why does calling cairo_xlib_surface_create fail if BUILD_GUI (X11), BUILD_LUA_CAIRO and BUILD_LUA_CAIRO_XLIB is true like for @belrus65? Or is this also related to the cairo_imlib2_helper fix?

@Caellian
Copy link
Collaborator

Just tested the example from wiki with default args (X11) and BUILD_LUA_CAIRO (and BUILD_LUA_CAIRO_XLIB) enabled, cairo_xlib_surface_create doesn't fail.

The attempt to call a nil value error mentioned in the issue was caused by BUILD_LUA_CAIRO_XLIB not being enabled so the function global wasn't defined. That option requires BUILD_X11 and BUILD_LUA_CAIRO to be enabled.

If cairo is not installed it fails because cairo.h is not present. If cairo is present it does not fail because the header is available which sounds like the above mentioned automagic behaviour.

This was fixed by linked PR.

conky-1.20.2-r999.ebuild.txt

I'm not well versed in ebuild files, but just to clarify, 99% of users don't want to change BUILD_LUA_CAIRO_XLIB to false manually. So it should be left as is - default is enabled, and gets disabled automatically if X11 or Cairo is disabled. I probably should've just made it a variable instead of an option, but I didn't give it much thought at the time.

dependent_option works almost the same as original CMakeDependentOption, only instead of hiding the option when conditions aren't satisfied it set the <force> value and prints the appropriate warning if <force> is different than current value, and some other (not important) differences.

@billie80
Copy link
Contributor

Just tested the example from wiki with default args (X11) and BUILD_LUA_CAIRO (and BUILD_LUA_CAIRO_XLIB) enabled, cairo_xlib_surface_create doesn't fail.

The attempt to call a nil value error mentioned in the issue was caused by BUILD_LUA_CAIRO_XLIB not being enabled so the function global wasn't defined. That option requires BUILD_X11 and BUILD_LUA_CAIRO to be enabled.

Well here it fails after your commit. Explicitly enabling BUILD_X11, BUILD_LUA_CAIRO and BUILD_LUA_CAIRO_XLIB should do no harm. Anyway if the conditions are not met configure would spit out a warning that Cairo Xlib Lua bindings require Cairo and X11; setting to 'false'. which it doesn't. Still it fails.

conky-1.20.2-r999.ebuild.txt

I'm not well versed in ebuild files, but just to clarify, 99% of users don't want to change BUILD_LUA_CAIRO_XLIB to false manually. So it should be left as is - default is enabled, and gets disabled automatically if X11 or Cairo is disabled. I probably should've just made it a variable instead of an option, but I didn't give it much thought at the time.

I just added this flag for testing purposes. However I added in such a way that it also requires X11 and cairo. So it shouldn't cause problems. I will think about keeping or dropping it again.

@Caellian
Copy link
Collaborator

Well if Cairo Xlib Lua bindings require Cairo and X11; setting to 'false'. doesn't get printed, then the command should just work.

You can go through the diff of #1844 as it's pretty short and you'll see that BUILD_LUA_CAIRO_XLIB was only separated out as an additional conky-cairo_xlib library. It gets included the same as others if the feature is enabled. Do other binding functions work?

@billie80
Copy link
Contributor

I an looking at it over and over since this issue has been opened and I also don't get why I doesn't work.

@Caellian
Copy link
Collaborator

Caellian commented Apr 30, 2024

@billie80 Is it possible that the built libraries aren't in correct Lua include path and system libraries are included instead?

On arch, I have:

/usr/lib/conky/libcairo.so
/usr/lib/conky/libcairo_imlib2_helper.so
/usr/lib/conky/libimlib2.so
/usr/lib/conky/librsvg.so

Do you have cairo (that could be loaded by Lua) installed by some other package or something?

@belrus65 Can you try building fix/cairo-imlib2-helper-dep main branch and see whether it works?

@Caellian Caellian reopened this Apr 30, 2024
@belrus65
Copy link
Author

Caellian,

link not working, page not found for https://github.com/brndnmtthws/conky/tree/fix/cairo-imlib2-helper-dep

@Caellian
Copy link
Collaborator

@belrus65 Sorry, I merged it and forgot to update the link, use main branch.

@billie80
Copy link
Contributor

@billie80 Is it possible that the built libraries aren't in correct Lua include path and system libraries are included instead?

On arch, I have:

/usr/lib/conky/libcairo.so
/usr/lib/conky/libcairo_imlib2_helper.so
/usr/lib/conky/libimlib2.so
/usr/lib/conky/librsvg.so

I have this libraries in the following locations
for conky-1.20.1:

/usr/lib64/conky/libcairo.so
/usr/lib64/conky/libcairo_imlib2_helper.so
/usr/lib64/conky/libimlib2.so
/usr/lib64/conky/librsvg.so

and for conky-1.20.2:

/usr/lib64/conky/libcairo.so
/usr/lib64/conky/libcairo_imlib2_helper.so
/usr/lib64/conky/libcairo_xlib.so
/usr/lib64/conky/libimlib2.so
/usr/lib64/conky/librsvg.so

Do you have cairo (that could be loaded by Lua) installed by some other package or something?

Well there is /usr/lib64/libcairo.so which obviously belongs to cairo.

@belrus65 Can you try building fix/cairo-imlib2-helper-dep main branch and see whether it works?

I already tried this and did not change anything.

@belrus65
Copy link
Author

Confirmed, same result.

@lineage-of-roots
Copy link

Just tried fresh from main branch

I am getting module 'cairo' not found:

Even though I selected it in build options

Doing an ldd on the built conky binary does not show libcairo.so

However, doing a conky -V shows
Lua bindings:

  • Cairo

Currently digging through the cmakes to see what's going on.

@lineage-of-roots
Copy link

Update: My problem was slightly different.

For me, placing the libcairo.so libcairo_xlib.so
in /usr/local/lib/conky fixed the issue.

That is where it wants it. I was expecting it to want it in /usr/lib

@brndnmtthws
Copy link
Owner

Which contact address should I use instead? I can also remove it completely if you prefer!

You can use brenden@brndn.io.

Update: My problem was slightly different.

For me, placing the libcairo.so libcairo_xlib.so in /usr/local/lib/conky fixed the issue.

That is where it wants it. I was expecting it to want it in /usr/lib

If you compiled from source, /usr/local is the default prefix. You can change it by setting CMAKE_INSTALL_PREFIX=/usr, or whatever you prefer.

@lineage-of-roots
Copy link

@brndnmtthws

Unfortunately, after solving that, I have now joined the others. I am now also getting the error

attempt to call a nil value (global 'cairo_xlib_surface_create')

I will continue invetigating

@brndnmtthws
Copy link
Owner

@brndnmtthws

Unfortunately, after solving that, I have now joined the others. I am now also getting the error

attempt to call a nil value (global 'cairo_xlib_surface_create')

I will continue invetigating

cairo_xlib_surface_create is in libcairo_xlib.so, so if you have that you should be good to go. Make sure you have both BUILD_LUA_CAIRO and BUILD_LUA_CAIRO_XLIB enabled when configuring the build.

@billie80
Copy link
Contributor

billie80 commented May 1, 2024

The strange thing is that BUILD_LUA_CAIRO and BUILD_LUA_CAIRO_XLIB are enabled, libcairo_xlib.so exists and it still fails with attempt to call a nil value (global 'cairo_xlib_surface_create'). I am using the lua script from the Wiki.

@brndnmtthws
Copy link
Owner

The strange thing is that BUILD_LUA_CAIRO and BUILD_LUA_CAIRO_XLIB are enabled, libcairo_xlib.so exists and it still fails with attempt to call a nil value (global 'cairo_xlib_surface_create'). I am using the lua script from the Wiki.

Ah, okay, I see what's going on. You need to explicitly include the separate cairo_xlib. Before you would have had:

require 'cairo'

Now you need:

require 'cairo'
require 'cairo_xlib'

I'll need to go through and update the docs accordingly.

@billie80
Copy link
Contributor

billie80 commented May 1, 2024

Great find!
So it is just a problem with the script. I had a hunch, which is why I mentioned the script I used to test it!

@belrus65
Copy link
Author

belrus65 commented May 1, 2024

I modified my scripts to include " require 'cairo_xlib' ". Executed without any errors. Problem seems to be resolved. Thank you gentlemen for your hard work, much appreciated.

@belrus65
Copy link
Author

belrus65 commented May 1, 2024

Unfortunately, another problem arose! Scripts stops updating on screen after a few seconds. .xsession-errors logs the following:

conky: FOUND: console
conky: FOUND: ncurses
conky: FOUND: file
conky: FOUND: x11

conky: 'openbox' x11 session running 'openbox' destop

Then the scripts stops updating the screen.

@belrus65
Copy link
Author

belrus65 commented May 1, 2024

Not only does the scripts that needed " require 'cairo_xlib' " stop functioning, but it seems every conky process stops responding. Can't kill running processes either, they simply respawn before they all shut down.

@belrus65
Copy link
Author

belrus65 commented May 1, 2024

Don't know if this helps, but the moment you touch your mouse, conky stops responding.

@Caellian
Copy link
Collaborator

Caellian commented May 2, 2024

I modified my scripts to include " require 'cairo_xlib' ". Executed without any errors.

Closing as completed then.

Don't know if this helps, but the moment you touch your mouse, conky stops responding.

I opened a separate issue for that as it's unrelated and possibly (yet) a(nother) bug in some code I added 4 years ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug report or bug fix PR cairo Issue or PR related to cairo lua Issue or PR related to Lua code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants