Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-10

Can't compile Lazarus on Linux Mint 15

39 messages · 12 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

silvioprog

Hello,

I'm trying to compila Lazarus in Linux Mint 15 (http://www.linuxmint.com/), but:

Terminal output:

waldir at waldir-vm ~ $ cd lazarus/
waldir at waldir-vm ~/lazarus $ make clean all > log.txt Makefile:2332: warning: overriding commands for target `.' Makefile:2330: warning: ignoring old commands for target `.' Makefile:2332: warning: overriding commands for target `.' Makefile:2330: warning: ignoring old commands for target `.' Makefile:2332: warning: overriding commands for target `.' Makefile:2330: warning: ignoring old commands for target `.' /usr/bin/ld: warning: ./link.res contains output sections; did you forget -T?
Makefile:2332: warning: overriding commands for target `.' Makefile:2330: warning: ignoring old commands for target `.' /usr/bin/ld: warning: ./link.res contains output sections; did you forget -T?
Makefile:2332: warning: overriding commands for target `.' Makefile:2330: warning: ignoring old commands for target `.' /usr/bin/ld: warning: ./link.res contains output sections; did you forget -T?
Makefile:2332: warning: overriding commands for target `.' Makefile:2330: warning: ignoring old commands for target `.' /usr/bin/ld: warning: ./link.res contains output sections; did you forget -T?
/usr/bin/ld: warning: ../link.res contains output sections; did you forget -T?
/usr/bin/ld: warning: ../link.res contains output sections; did you forget -T?
/usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_CONTEXT$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_context$$qword+0x6): undefined reference to `cairo_gobject_context_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_DEVICE$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_device$$qword+0x6): undefined reference to `cairo_gobject_device_get_type'
/usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_PATTERN$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_pattern$$qword+0x6): undefined reference to `cairo_gobject_pattern_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_SURFACE$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_surface$$qword+0x6): undefined reference to `cairo_gobject_surface_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_RECTANGLE$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_rectangle$$qword+0x6): undefined reference to `cairo_gobject_rectangle_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_SCALED_FONT$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_scaled_font$$qword+0x6): undefined reference to `cairo_gobject_scaled_font_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_FONT_FACE$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_font_face$$qword+0x6): undefined reference to `cairo_gobject_font_face_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_FONT_OPTIONS$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_font_options$$qword+0x6): undefined reference to `cairo_gobject_font_options_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_RECTANGLE_INT$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_rectangle_int$$qword+0x6): undefined reference to `cairo_gobject_rectangle_int_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_REGION$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_region$$qword+0x6): undefined reference to `cairo_gobject_region_get_type'
/usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_STATUS$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_status$$qword+0x6): undefined reference to `cairo_gobject_status_get_type'
/usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_CONTENT$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_content$$qword+0x6): undefined reference to `cairo_gobject_content_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_OPERATOR$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_operator$$qword+0x6): undefined reference to `cairo_gobject_operator_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_ANTIALIAS$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_antialias$$qword+0x6): undefined reference to `cairo_gobject_antialias_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_FILL_RULE$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_fill_rule$$qword+0x6): undefined reference to `cairo_gobject_fill_rule_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_LINE_CAP$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_line_cap$$qword+0x6): undefined reference to `cairo_gobject_line_cap_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_LINE_JOIN$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_line_join$$qword+0x6): undefined reference to `cairo_gobject_line_join_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_CLUSTER_FLAGS$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_cluster_flags$$qword+0x6): undefined reference to `cairo_gobject_text_cluster_flags_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_FONT_SLANT$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_font_slant$$qword+0x6): undefined reference to `cairo_gobject_font_slant_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_FONT_WEIGHT$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_font_weight$$qword+0x6): undefined reference to `cairo_gobject_font_weight_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_SUBPIXEL_ORDER$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_subpixel_order$$qword+0x6): undefined reference to `cairo_gobject_subpixel_order_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_HINT_STYLE$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_hint_style$$qword+0x6): undefined reference to `cairo_gobject_hint_style_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_HNT_METRICS$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_hnt_metrics$$qword+0x6): undefined reference to `cairo_gobject_hint_metrics_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_FONT_TYPE$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_font_type$$qword+0x6): undefined reference to `cairo_gobject_font_type_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_PATH_DATA_TYPE$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_path_data_type$$qword+0x6): undefined reference to `cairo_gobject_path_data_type_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_DEVICE_TYPE$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_device_type$$qword+0x6): undefined reference to `cairo_gobject_device_type_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_SURFACE_TYPE$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_surface_type$$qword+0x6): undefined reference to `cairo_gobject_surface_type_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_FORMAT$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_format$$qword+0x6): undefined reference to `cairo_gobject_format_get_type'
/usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_PATTERN_TYPE$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_pattern_type$$qword+0x6): undefined reference to `cairo_gobject_pattern_type_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_EXTEND$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_extend$$qword+0x6): undefined reference to `cairo_gobject_extend_get_type'
/usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_FILTER$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_filter$$qword+0x6): undefined reference to `cairo_gobject_filter_get_type'
/usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_REGION_OVERLAP$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_region_overlap$$qword+0x6): undefined reference to `cairo_gobject_region_overlap_get_type' make[2]: *** [lazarus] Error 1
make[1]: *** [ide] Error 2
make: *** [ide] Error 2
waldir at waldir-vm ~/lazarus $

And the log file:

http://pastebin.com/RYUaARkd

How to fix this problem?

Thank you!

Silvio Cl?cio My public projects - github.com/silvioprog -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20131015/61f77e06/attachment-0001.html>

Reply by email

Junior
to silvioprog

In fpc 2.6.2 working very well.

The solution is to install version 2.6.2 in which Lazarus is based.

silvioprog wrote 184 lines
Hello, I'm trying to compila Lazarus in Linux Mint 15 (http://www.linuxmint.com/), but: Terminal output: waldir at waldir-vm ~ $ cd lazarus/ waldir at waldir-vm ~/lazarus $ make clean all > log.txt Makefile:2332: warning: overriding commands for target `.' Makefile:2330: warning: ignoring old commands for target `.' Makefile:2332: warning: overriding commands for target `.' Makefile:2330: warning: ignoring old commands for target `.' Makefile:2332: warning: overriding commands for target `.' Makefile:2330: warning: ignoring old commands for target `.' /usr/bin/ld: warning: ./link.res contains output sections; did you forget -T? Makefile:2332: warning: overriding commands for target `.' Makefile:2330: warning: ignoring old commands for target `.' /usr/bin/ld: warning: ./link.res contains output sections; did you forget -T? Makefile:2332: warning: overriding commands for target `.' Makefile:2330: warning: ignoring old commands for target `.' /usr/bin/ld: warning: ./link.res contains output sections; did you forget -T? Makefile:2332: warning: overriding commands for target `.' Makefile:2330: warning: ignoring old commands for target `.' /usr/bin/ld: warning: ./link.res contains output sections; did you forget -T? /usr/bin/ld: warning: ../link.res contains output sections; did you forget -T? /usr/bin/ld: warning: ../link.res contains output sections; did you forget -T? /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_CONTEXT$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_context$$qword+0x6): undefined reference to `cairo_gobject_context_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_DEVICE$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_device$$qword+0x6): undefined reference to `cairo_gobject_device_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_PATTERN$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_pattern$$qword+0x6): undefined reference to `cairo_gobject_pattern_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_SURFACE$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_surface$$qword+0x6): undefined reference to `cairo_gobject_surface_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_RECTANGLE$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_rectangle$$qword+0x6): undefined reference to `cairo_gobject_rectangle_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_SCALED_FONT$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_scaled_font$$qword+0x6): undefined reference to `cairo_gobject_scaled_font_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_FONT_FACE$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_font_face$$qword+0x6): undefined reference to `cairo_gobject_font_face_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_FONT_OPTIONS$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_font_options$$qword+0x6): undefined reference to `cairo_gobject_font_options_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_RECTANGLE_INT$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_rectangle_int$$qword+0x6): undefined reference to `cairo_gobject_rectangle_int_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_REGION$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_region$$qword+0x6): undefined reference to `cairo_gobject_region_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_STATUS$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_status$$qword+0x6): undefined reference to `cairo_gobject_status_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_CONTENT$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_content$$qword+0x6): undefined reference to `cairo_gobject_content_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_OPERATOR$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_operator$$qword+0x6): undefined reference to `cairo_gobject_operator_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_ANTIALIAS$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_antialias$$qword+0x6): undefined reference to `cairo_gobject_antialias_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_FILL_RULE$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_fill_rule$$qword+0x6): undefined reference to `cairo_gobject_fill_rule_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_LINE_CAP$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_line_cap$$qword+0x6): undefined reference to `cairo_gobject_line_cap_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_LINE_JOIN$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_line_join$$qword+0x6): undefined reference to `cairo_gobject_line_join_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_CLUSTER_FLAGS$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_cluster_flags$$qword+0x6): undefined reference to `cairo_gobject_text_cluster_flags_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_FONT_SLANT$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_font_slant$$qword+0x6): undefined reference to `cairo_gobject_font_slant_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_FONT_WEIGHT$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_font_weight$$qword+0x6): undefined reference to `cairo_gobject_font_weight_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_SUBPIXEL_ORDER$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_subpixel_order$$qword+0x6): undefined reference to `cairo_gobject_subpixel_order_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_HINT_STYLE$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_hint_style$$qword+0x6): undefined reference to `cairo_gobject_hint_style_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_HNT_METRICS$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_hnt_metrics$$qword+0x6): undefined reference to `cairo_gobject_hint_metrics_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_FONT_TYPE$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_font_type$$qword+0x6): undefined reference to `cairo_gobject_font_type_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_PATH_DATA_TYPE$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_path_data_type$$qword+0x6): undefined reference to `cairo_gobject_path_data_type_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_DEVICE_TYPE$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_device_type$$qword+0x6): undefined reference to `cairo_gobject_device_type_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_SURFACE_TYPE$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_surface_type$$qword+0x6): undefined reference to `cairo_gobject_surface_type_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_FORMAT$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_format$$qword+0x6): undefined reference to `cairo_gobject_format_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_PATTERN_TYPE$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_pattern_type$$qword+0x6): undefined reference to `cairo_gobject_pattern_type_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_EXTEND$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_extend$$qword+0x6): undefined reference to `cairo_gobject_extend_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_FILTER$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_filter$$qword+0x6): undefined reference to `cairo_gobject_filter_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_REGION_OVERLAP$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_region_overlap$$qword+0x6): undefined reference to `cairo_gobject_region_overlap_get_type' make[2]: *** [lazarus] Error 1 make[1]: *** [ide] Error 2 make: *** [ide] Error 2 waldir at waldir-vm ~/lazarus $ And the log file: http://pastebin.com/RYUaARkd How to fix this problem? Thank you! -- Silvio Cl?cio My public projects - github.com/silvioprog <http://github.com/silvioprog> -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20131015/d6ba9845/attachment-0001.html>

Reply by email

silvioprog
to Junior

2013/10/15 Junior

In fpc 2.6.2 working very well. The solution is to install version 2.6.2 in which Lazarus is based.

No. Lazarus from trunk must accept FPC from trunk too. Someone made a commit that broke this compatibility between the two on Linux.

Silvio Cl?cio My public projects - github.com/silvioprog -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20131015/63ca31ba/attachment.html>

Reply by email

Michael Schnell
to silvioprog
silvioprog wrote
No. Lazarus from trunk must accept FPC from trunk too.

(On Linux) I very often compile the trunk Lazarus using the trunk fpc (which I previously compile using the recent "released" fpc).

It _usually_ works. Sometime it does not compile due to a commit that broke something, but mostly a day or two later the problem is fixed.

-Michael

Reply by email

Reimar Grabowski
to leledumbo
Looks like it can't find cairo development library to link

Possible. I have the same problem on Ubuntu 13.04 and the cairo libs are installed. Waiting for a solution, too.

FPC revision is 25807.
Lazarus revision is 43261.

R.

Reply by email

silvioprog
to Reimar Grabowski

2013/10/17 Reimar Grabowski

Show quoted text 11 lines
On Thu, 17 Oct 2013 07:43:05 -0700 (PDT) leledumbo wrote: > > I have the same problem on Ubuntu 13.04 and the cairo libs are installed. > > Including the -dev package? Yes. R.

Which package to install, "apt-get install libcairo-dev"?

Silvio Cl?cio My public projects - github.com/silvioprog -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20131017/67550d92/attachment.html>

Reply by email

Reimar Grabowski
to silvioprog
Which package to install, "apt-get install libcairo-dev"?

The package is named 'libcairo2-dev' but installing it will not help. I had it installed before updating fpc and lazarus and the problem emerged nonetheless.

R.

Reply by email

Reimar Grabowski
to Reimar Grabowski

Addition:

AFAICS cairo.pp links against libcairo.so.2. The not found symbols (cairo_gobject_whatever) are simply not defined in that file.

user at computer:~/pascal/fpc$ objdump -tT /usr/lib/x86_64-linux-gnu/libcairo.so.2|grep -iIHn 'cairo_gobject' user at computer:~/pascal/fpc$

They are defined in libcairo-gobject.so.2 from package libcairo-gobject2:

user at computer:~/pascal/fpc$ objdump -tT /usr/lib/x86_64-linux-gnu/libcairo-gobject.so.2|grep -iIHn 'cairo_gobject' (standard input):38:0000000000003d00 g DF .text 000000000000006a Base cairo_gobject_extend_get_type (standard input):39:0000000000003ad0 g DF .text 000000000000006a Base cairo_gobject_path_data_type_get_type (standard input):40:0000000000003bb0 g DF .text 000000000000006a Base cairo_gobject_surface_type_get_type (standard input):41:00000000000040f0 g DF .text 0000000000000071 Base cairo_gobject_font_face_get_type (standard input):42:00000000000037c0 g DF .text 000000000000006a Base cairo_gobject_text_cluster_flags_get_type (standard input):43:0000000000003600 g DF .text 000000000000006a Base cairo_gobject_antialias_get_type (standard input):44:00000000000042f0 g DF .text 0000000000000071 Base cairo_gobject_rectangle_int_get_type (standard input):45:0000000000003b40 g DF .text 000000000000006a Base cairo_gobject_device_type_get_type (standard input):46:0000000000003d70 g DF .text 000000000000006a Base cairo_gobject_filter_get_type (standard input):47:0000000000004170 g DF .text 0000000000000071 Base cairo_gobject_font_options_get_type (standard input):48:0000000000003ff0 g DF .text 0000000000000071 Base cairo_gobject_surface_get_type (standard input):49:0000000000003750 g DF .text 000000000000006a Base cairo_gobject_line_join_get_type (standard input):50:0000000000003de0 g DF .text 000000000000006a Base cairo_gobject_region_overlap_get_type (standard input):51:00000000000039f0 g DF .text 000000000000006a Base cairo_gobject_hint_metrics_get_type (standard input):52:00000000000041f0 g DF .text 0000000000000071 Base cairo_gobject_region_get_type (standard input):53:0000000000004270 g DF .text 0000000000000071 Base cairo_gobject_rectangle_get_type (standard input):54:00000000000038a0 g DF .text 000000000000006a Base cairo_gobject_font_weight_get_type (standard input):55:0000000000003c20 g DF .text 000000000000006a Base cairo_gobject_format_get_type (standard input):56:0000000000004070 g DF .text 0000000000000071 Base cairo_gobject_scaled_font_get_type (standard input):57:0000000000003a60 g DF .text 000000000000006a Base cairo_gobject_font_type_get_type (standard input):58:0000000000003c90 g DF .text 000000000000006a Base cairo_gobject_pattern_type_get_type (standard input):59:0000000000003830 g DF .text 000000000000006a Base cairo_gobject_font_slant_get_type (standard input):60:0000000000003e70 g DF .text 0000000000000071 Base cairo_gobject_context_get_type (standard input):61:00000000000036e0 g DF .text 000000000000006a Base cairo_gobject_line_cap_get_type (standard input):62:0000000000003520 g DF .text 000000000000006a Base cairo_gobject_content_get_type (standard input):63:00000000000034b0 g DF .text 000000000000006a Base cairo_gobject_status_get_type (standard input):64:0000000000003f70 g DF .text 0000000000000071 Base cairo_gobject_pattern_get_type (standard input):65:0000000000003910 g DF .text 000000000000006a Base cairo_gobject_subpixel_order_get_type (standard input):66:0000000000003980 g DF .text 000000000000006a Base cairo_gobject_hint_style_get_type (standard input):67:0000000000003590 g DF .text 000000000000006a Base cairo_gobject_operator_get_type (standard input):68:0000000000003ef0 g DF .text 0000000000000071 Base cairo_gobject_device_get_type (standard input):69:0000000000003670 g DF .text 000000000000006a Base cairo_gobject_fill_rule_get_type

So it makes sense that the linking fails.

R.

Reply by email

silvioprog
to Reinier Olislagers

2013/10/20 Reinier Olislagers
[...]

You could check if any of the solutions here http://bugs.freepascal.org/view.php?id=25191 work for you and/or contribute a fix...

Unfortunately I don't know how to fix this problem. :(

But if someone has the same problem, and lost your environment that was working, here, I made a backup copy that Lazarus and Free Pascal works fine:

https://www.dropbox.com/s/3z5r4rxeuws1hol/freepascal.tar.gz

https://www.dropbox.com/s/6icvwp0qeilka9l/lazarus.tar.gz

Silvio Cl?cio My public projects - github.com/silvioprog -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20131020/9287f7f8/attachment.html>

Reply by email

Anthony Walter
to silvioprog

The problem was introduced with revision 25766. You can fix the problem simply getting an earlier revision in a new folder and copy the older revision cairo units over the trunk copies. Assuming you are one directory above your fpc folder ...

svn co -r 25764
http://svn.freepascal.org/svn/fpc/trunk/packages/cairo/srccairofix rm fpc/packages/cairo/src/*.pp
cp cairofix/*.pp fpc/packages/cairo/src/
rm -rf cairofix
cd fpc
make clean
make all

silvioprog wrote 28 lines
2013/10/20 Reinier Olislagers [...] > You could check if any of the solutions here > http://bugs.freepascal.org/view.php?id=25191 > work for you and/or contribute a fix... Unfortunately I don't know how to fix this problem. :( But if someone has the same problem, and lost your environment that was working, here, I made a backup copy that Lazarus and Free Pascal works fine: https://www.dropbox.com/s/3z5r4rxeuws1hol/freepascal.tar.gz https://www.dropbox.com/s/6icvwp0qeilka9l/lazarus.tar.gz -- Silvio Cl?cio My public projects - github.com/silvioprog -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20131020/d6a18afe/attachment-0001.html>

Reply by email

silvioprog
to Anthony Walter

2013/10/21 Anthony Walter
[...]

Show quoted text 13 lines
The problem was introduced with revision 25766. You can fix the problem simply getting an earlier revision in a new folder and copy the older revision cairo units over the trunk copies. Assuming you are one directory above your fpc folder ... svn co -r 25764 http://svn.freepascal.org/svn/fpc/trunk/packages/cairo/srccairofix rm fpc/packages/cairo/src/*.pp cp cairofix/*.pp fpc/packages/cairo/src/ rm -rf cairofix cd fpc make clean make all

I tried it now, but, same error:

Compiling resource ../units/x86_64-linux/gtk2/lazarus.or Linking ../lazarus
lazarus.pp(142,1) Warning: "crti.o" not found, this will probably cause a linking failure
lazarus.pp(142,1) Warning: "crtn.o" not found, this will probably cause a linking failure
/usr/bin/ld: warning: ../link.res contains output sections; did you forget -T?
/usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_CONTEXT$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_context$$qword+0x6): undefined reference to `cairo_gobject_context_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_DEVICE$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_device$$qword+0x6): undefined reference to `cairo_gobject_device_get_type'
/usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_PATTERN$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_pattern$$qword+0x6): undefined reference to `cairo_gobject_pattern_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_SURFACE$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_surface$$qword+0x6): undefined reference to `cairo_gobject_surface_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_RECTANGLE$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_rectangle$$qword+0x6): undefined reference to `cairo_gobject_rectangle_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_SCALED_FONT$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_scaled_font$$qword+0x6): undefined reference to `cairo_gobject_scaled_font_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_FONT_FACE$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_font_face$$qword+0x6): undefined reference to `cairo_gobject_font_face_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_FONT_OPTIONS$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_font_options$$qword+0x6): undefined reference to `cairo_gobject_font_options_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_RECTANGLE_INT$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_rectangle_int$$qword+0x6): undefined reference to `cairo_gobject_rectangle_int_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_REGION$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_region$$qword+0x6): undefined reference to `cairo_gobject_region_get_type'
/usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_STATUS$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_status$$qword+0x6): undefined reference to `cairo_gobject_status_get_type'
/usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_CONTENT$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_content$$qword+0x6): undefined reference to `cairo_gobject_content_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_OPERATOR$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_operator$$qword+0x6): undefined reference to `cairo_gobject_operator_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_ANTIALIAS$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_antialias$$qword+0x6): undefined reference to `cairo_gobject_antialias_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_FILL_RULE$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_fill_rule$$qword+0x6): undefined reference to `cairo_gobject_fill_rule_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_LINE_CAP$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_line_cap$$qword+0x6): undefined reference to `cairo_gobject_line_cap_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_LINE_JOIN$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_line_join$$qword+0x6): undefined reference to `cairo_gobject_line_join_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_CLUSTER_FLAGS$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_cluster_flags$$qword+0x6): undefined reference to `cairo_gobject_text_cluster_flags_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_FONT_SLANT$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_font_slant$$qword+0x6): undefined reference to `cairo_gobject_font_slant_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_FONT_WEIGHT$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_font_weight$$qword+0x6): undefined reference to `cairo_gobject_font_weight_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_SUBPIXEL_ORDER$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_subpixel_order$$qword+0x6): undefined reference to `cairo_gobject_subpixel_order_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_HINT_STYLE$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_hint_style$$qword+0x6): undefined reference to `cairo_gobject_hint_style_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_HNT_METRICS$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_hnt_metrics$$qword+0x6): undefined reference to `cairo_gobject_hint_metrics_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_FONT_TYPE$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_font_type$$qword+0x6): undefined reference to `cairo_gobject_font_type_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_PATH_DATA_TYPE$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_path_data_type$$qword+0x6): undefined reference to `cairo_gobject_path_data_type_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_DEVICE_TYPE$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_device_type$$qword+0x6): undefined reference to `cairo_gobject_device_type_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_SURFACE_TYPE$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_surface_type$$qword+0x6): undefined reference to `cairo_gobject_surface_type_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_FORMAT$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_format$$qword+0x6): undefined reference to `cairo_gobject_format_get_type'
/usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_PATTERN_TYPE$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_pattern_type$$qword+0x6): undefined reference to `cairo_gobject_pattern_type_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_EXTEND$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_extend$$qword+0x6): undefined reference to `cairo_gobject_extend_get_type'
/usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_FILTER$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_filter$$qword+0x6): undefined reference to `cairo_gobject_filter_get_type'
/usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_REGION_OVERLAP$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_region_overlap$$qword+0x6): undefined reference to `cairo_gobject_region_overlap_get_type' lazarus.pp(142,1) Error: Error while linking
lazarus.pp(142,1) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted
make[2]: *** [lazarus] Error 1
make[2]: Leaving directory `/home/silvioprog/lazarus/ide' make[1]: *** [ide] Error 2
make[1]: Leaving directory `/home/silvioprog/lazarus/ide' make: *** [ide] Error 2

Silvio Cl?cio My public projects - github.com/silvioprog -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20131022/d6cf4c40/attachment-0001.html>

Reply by email

silvioprog
to Marco van de Voort

2013/10/23 Marco van de Voort

Show quoted text 7 lines
On Tue, Oct 15, 2013 at 01:52:44PM -0300, silvioprog wrote: > I'm trying to compila Lazarus in Linux Mint 15 ( http://www.linuxmint.com/), > but: Try adding -XLAcairo=cairo,cairo-gobject

Sorry for my ignorance, but when I try:

silvioprog at silvioprog-vm ~ $ cd lazarus/
silvioprog at silvioprog-vm ~/lazarus $ make clean all -XLAcairo=cairo,cairo-gobject

The result is:

make: invalid option -- 'X'
make: invalid option -- 'A'
make: invalid option -- 'c'
make: invalid option -- 'a'
Usage: make [options] [target] ...
Options:
-b, -m Ignored for compatibility. -B, --always-make Unconditionally make all targets. -C DIRECTORY, --directory=DIRECTORY
Change to DIRECTORY before doing anything.
-d Print lots of debugging information. --debug[=FLAGS] Print various types of debugging information. -e, --environment-overrides
Environment variables override makefiles.
-f FILE, --file=FILE, --makefile=FILE
Read FILE as a makefile.
-h, --help Print this message and exit. -i, --ignore-errors Ignore errors from commands. -I DIRECTORY, --include-dir=DIRECTORY
Search DIRECTORY for included makefiles.
-j [N], --jobs[=N] Allow N jobs at once; infinite jobs with no arg.
-k, --keep-going Keep going when some targets can't be made. -l [N], --load-average[=N], --max-load[=N]
Don't start multiple jobs unless load is
below N.
-L, --check-symlink-times Use the latest mtime between symlinks and target.
-n, --just-print, --dry-run, --recon
Don't actually run any commands; just print
them.
-o FILE, --old-file=FILE, --assume-old=FILE
Consider FILE to be very old and don't remake
it.
-p, --print-data-base Print make's internal database. -q, --question Run no commands; exit status says if up to date.
-r, --no-builtin-rules Disable the built-in implicit rules. -R, --no-builtin-variables Disable the built-in variable settings. -s, --silent, --quiet Don't echo commands.
-S, --no-keep-going, --stop
Turns off -k.
-t, --touch Touch targets instead of remaking them. -v, --version Print the version number of make and exit. -w, --print-directory Print the current directory. --no-print-directory Turn off -w, even if it was turned on implicitly.
-W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE Consider FILE to be infinitely new.
--warn-undefined-variables Warn when an undefined variable is referenced.

This program built for x86_64-pc-linux-gnu
Report bugs to

Thank you!

Silvio Cl?cio My public projects - github.com/silvioprog -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20131023/831e0746/attachment.html>

Reply by email

Sven Barth
to silvioprog
"silvioprog" wrote 5 lines
2013/10/23 Marco van de Voort > > On Tue, Oct 15, 2013 at 01:52:44PM -0300, silvioprog wrote: > > I'm trying to compila Lazarus in Linux Mint 15 (

http://www.linuxmint.com/),

Show quoted text 10 lines
> > but: > > Try adding > -XLAcairo=cairo,cairo-gobject Sorry for my ignorance, but when I try: silvioprog at silvioprog-vm ~ $ cd lazarus/ silvioprog at silvioprog-vm ~/lazarus $ make clean all

-XLAcairo=cairo,cairo-gobject

This passes the option to make (which dies nit understand what you want), but you should pass it to the build process itself instead:

make clean all OPT="-XLAcairo=cairo,cairo-gobject"

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20131024/5fb8e45d/attachment-0001.html>

Reply by email

Reinier Olislagers
to silvioprog: 2013/10/23 Marco van de Voort Sorry for my ignorance, but when I try: silvioprog at…
silvioprog wrote 20 lines
2013/10/23 Marco van de Voort < <mailto:>> On Tue, Oct 15, 2013 at 01:52:44PM -0300, silvioprog wrote: > I'm trying to compila Lazarus in Linux Mint 15 (http://www.linuxmint.com/), > but: Try adding -XLAcairo=cairo,cairo-gobject Sorry for my ignorance, but when I try: silvioprog at silvioprog-vm ~ $ cd lazarus/ silvioprog at silvioprog-vm ~/lazarus $ make clean all -XLAcairo=cairo,cairo-gobject The result is: make: invalid option -- 'X'

Apart from what Sven said, FYI, there's info about XLA in the Build FAQ.

Reply by email

silvioprog
to Sven Barth: -XLAcairo=cairo,cairo-gobject This passes the option to make (which dies nit understand…

2013/10/24 Sven Barth

Show quoted text 27 lines
Am 24.10.2013 03:39 schrieb "silvioprog" : > > 2013/10/23 Marco van de Voort >> >> On Tue, Oct 15, 2013 at 01:52:44PM -0300, silvioprog wrote: >> > I'm trying to compila Lazarus in Linux Mint 15 ( http://www.linuxmint.com/), >> > but: >> >> Try adding >> -XLAcairo=cairo,cairo-gobject > > > Sorry for my ignorance, but when I try: > > silvioprog at silvioprog-vm ~ $ cd lazarus/ > silvioprog at silvioprog-vm ~/lazarus $ make clean all -XLAcairo=cairo,cairo-gobject This passes the option to make (which dies nit understand what you want), but you should pass it to the build process itself instead: make clean all OPT="-XLAcairo=cairo,cairo-gobject" Regards, Sven

Thank guys, but, same problem:

Compiling resource ../units/x86_64-linux/gtk2/lazarus.or Linking ../lazarus
lazarus.pp(142,1) Warning: "crti.o" not found, this will probably cause a linking failure
lazarus.pp(142,1) Warning: "crtn.o" not found, this will probably cause a linking failure
/usr/bin/ld: warning: ../link.res contains output sections; did you forget -T?
/usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_CONTEXT$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_context$$qword+0x6): undefined reference to `cairo_gobject_context_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_DEVICE$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_device$$qword+0x6): undefined reference to `cairo_gobject_device_get_type'
/usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_PATTERN$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_pattern$$qword+0x6): undefined reference to `cairo_gobject_pattern_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_SURFACE$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_surface$$qword+0x6): undefined reference to `cairo_gobject_surface_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_RECTANGLE$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_rectangle$$qword+0x6): undefined reference to `cairo_gobject_rectangle_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_SCALED_FONT$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_scaled_font$$qword+0x6): undefined reference to `cairo_gobject_scaled_font_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_FONT_FACE$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_font_face$$qword+0x6): undefined reference to `cairo_gobject_font_face_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_FONT_OPTIONS$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_font_options$$qword+0x6): undefined reference to `cairo_gobject_font_options_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_RECTANGLE_INT$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_rectangle_int$$qword+0x6): undefined reference to `cairo_gobject_rectangle_int_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_REGION$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_region$$qword+0x6): undefined reference to `cairo_gobject_region_get_type'
/usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_STATUS$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_status$$qword+0x6): undefined reference to `cairo_gobject_status_get_type'
/usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_CONTENT$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_content$$qword+0x6): undefined reference to `cairo_gobject_content_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_OPERATOR$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_operator$$qword+0x6): undefined reference to `cairo_gobject_operator_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_ANTIALIAS$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_antialias$$qword+0x6): undefined reference to `cairo_gobject_antialias_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_FILL_RULE$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_fill_rule$$qword+0x6): undefined reference to `cairo_gobject_fill_rule_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_LINE_CAP$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_line_cap$$qword+0x6): undefined reference to `cairo_gobject_line_cap_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_LINE_JOIN$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_line_join$$qword+0x6): undefined reference to `cairo_gobject_line_join_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_CLUSTER_FLAGS$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_cluster_flags$$qword+0x6): undefined reference to `cairo_gobject_text_cluster_flags_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_FONT_SLANT$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_font_slant$$qword+0x6): undefined reference to `cairo_gobject_font_slant_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_FONT_WEIGHT$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_font_weight$$qword+0x6): undefined reference to `cairo_gobject_font_weight_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_SUBPIXEL_ORDER$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_subpixel_order$$qword+0x6): undefined reference to `cairo_gobject_subpixel_order_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_HINT_STYLE$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_hint_style$$qword+0x6): undefined reference to `cairo_gobject_hint_style_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_HNT_METRICS$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_hnt_metrics$$qword+0x6): undefined reference to `cairo_gobject_hint_metrics_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_FONT_TYPE$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_font_type$$qword+0x6): undefined reference to `cairo_gobject_font_type_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_PATH_DATA_TYPE$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_path_data_type$$qword+0x6): undefined reference to `cairo_gobject_path_data_type_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_DEVICE_TYPE$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_device_type$$qword+0x6): undefined reference to `cairo_gobject_device_type_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_SURFACE_TYPE$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_surface_type$$qword+0x6): undefined reference to `cairo_gobject_surface_type_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_FORMAT$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_format$$qword+0x6): undefined reference to `cairo_gobject_format_get_type'
/usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_PATTERN_TYPE$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_pattern_type$$qword+0x6): undefined reference to `cairo_gobject_pattern_type_get_type' /usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_EXTEND$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_extend$$qword+0x6): undefined reference to `cairo_gobject_extend_get_type'
/usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_FILTER$$QWORD':
cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_filter$$qword+0x6): undefined reference to `cairo_gobject_filter_get_type'
/usr/lib/fpc/2.7.1/units/x86_64-linux/cairo/cairo.o: In function `CAIRO_$$_CAIRO_GOBJECT_TYPE_REGION_OVERLAP$$QWORD': cairo.pp:(.text.n_cairo_$$_cairo_gobject_type_region_overlap$$qword+0x6): undefined reference to `cairo_gobject_region_overlap_get_type' lazarus.pp(142,1) Error: Error while linking
lazarus.pp(142,1) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted
make[2]: *** [lazarus] Error 1
make[2]: Leaving directory `/home/silvioprog/lazarus/ide' make[1]: *** [ide] Error 2
make[1]: Leaving directory `/home/silvioprog/lazarus/ide' make: *** [ide] Error 2

Silvio Cl?cio My public projects - github.com/silvioprog -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20131024/574ace9b/attachment-0001.html>

Reply by email

Ludo Brands
to Reimar Grabowski
Reimar Grabowski wrote 8 lines
On Thu, 24 Oct 2013 11:26:26 -0200 silvioprog wrote: > Thank guys, but, same problem: +1 R.

According to
http://upstream-tracker.org/compat_reports/cairo/1.9.14_to_1.10.0/abi_compat_report.html the cairo_gobject_* functions where introduced in libcairo-gobject.so and were never in libcairo.so. The change in rev 25766 tries to find these functions in libcairo.so. I updated
http://bugs.freepascal.org/view.php?id=25191 with the same info.

Ludo

Reply by email

Junior
to Ludo Brands

I use libcairo-gobject2 version: 1.10.2-6.1

Always worked perfect.

Lazarus trunk and FPC 2.6.2

Ludo Brands wrote 24 lines
On 10/25/2013 06:10 PM, Reimar Grabowski wrote: > On Thu, 24 Oct 2013 11:26:26 -0200 > silvioprog wrote: > >> Thank guys, but, same problem: > +1 > > R. > According to http://upstream-tracker.org/compat_reports/cairo/1.9.14_to_1.10.0/abi_compat_report.html the cairo_gobject_* functions where introduced in libcairo-gobject.so and were never in libcairo.so. The change in rev 25766 tries to find these functions in libcairo.so. I updated http://bugs.freepascal.org/view.php?id=25191 with the same info. Ludo -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Reimar Grabowski
to Junior
Show quoted text 5 lines
I use libcairo-gobject2 version: 1.10.2-6.1 Always worked perfect. Lazarus trunk and FPC 2.6.2

We know that 2.6.2 works but 2.7.1 does not and that's the problem.

R.

Reply by email

Mattias Gaertner
to Marco van de Voort: Try adding -XLAcairo=cairo,cairo-gobject
Show quoted text 6 lines
On Tue, Oct 15, 2013 at 01:52:44PM -0300, silvioprog wrote: > I'm trying to compila Lazarus in Linux Mint 15 (http://www.linuxmint.com/), > but: Try adding -XLAcairo=cairo,cairo-gobject

That does not even work with:

{$mode objfpc}{$H+}
uses cairo;
begin
end.

/usr/lib/fpc/2.7.1/ppcx64 -XLAcairo=cairo-gobject testcairo.pas

Should I create a bug report?
It seems -XLA exists in the fpc sources but is neither documented nor listed in fpc -h.

Mattias

Reply by email

Marco van de Voort
to Mattias Gaertner
Mattias Gaertner wrote 13 lines
> On Tue, Oct 15, 2013 at 01:52:44PM -0300, silvioprog wrote: > > I'm trying to compila Lazarus in Linux Mint 15 (http://www.linuxmint.com/), > > but: > > Try adding > -XLAcairo=cairo,cairo-gobject That does not even work with: {$mode objfpc}{$H+} uses cairo; begin end.

It was the workaround for the opposite problem; declared to be in cairo-gobject, but really in libcairo.

But in this case there were two issues:
1. the -XLA solution is for the opposite problem (a $linklib cairo-object that you want to kill), while the problem requires a cairo-gobject to be linked.
2. for some reason a versioned lib (.so.2) was used in this header. That might have prevented -XLA even if it was fixable with it.

Should I create a bug report?

No, there already is one, http://bugs.freepascal.org/view.php?id=25191

Quick workaround till a more permanent solution is devised : use smartlinking. Compile at least gtk2 FPC pkg with -CX, and then link with -XX

It seems -XLA exists in the fpc sources but is neither documented nor listed in fpc -h.

XLO/XLA has been documented in the buildfaq since 2.0.4 times. Basically it is a simple system for substitutions and prioritization on the combined list of $linklibs for systems with flat linker namespaces. (read: linux and *BSD)

Reply by email

Reinier Olislagers
to Marco van de Voort
Marco van de Voort wrote 9 lines
On Mon, Oct 28, 2013 at 02:00:25PM +0100, Mattias Gaertner wrote: >> On Tue, Oct 15, 2013 at 01:52:44PM -0300, silvioprog wrote: > It seems -XLA exists in the fpc sources but is neither documented nor > listed in fpc -h. XLO/XLA has been documented in the buildfaq since 2.0.4 times. Basically it is a simple system for substitutions and prioritization on the combined list of $linklibs for systems with flat linker namespaces. (read: linux and *BSD)

So: woe betide anybody who expects fpc -h to actually spit out all available command line options... with however short a description. Shame.

Reply by email

Sven Barth
to Reinier Olislagers
Reinier Olislagers wrote 14 lines
On 28/10/2013 17:58, Marco van de Voort wrote: > On Mon, Oct 28, 2013 at 02:00:25PM +0100, Mattias Gaertner wrote: >>> On Tue, Oct 15, 2013 at 01:52:44PM -0300, silvioprog wrote: >> It seems -XLA exists in the fpc sources but is neither documented nor >> listed in fpc -h. > > XLO/XLA has been documented in the buildfaq since 2.0.4 times. > Basically it is a simple system for substitutions and prioritization on the > combined list of $linklibs for systems with flat linker namespaces. (read: > linux and *BSD) So: woe betide anybody who expects fpc -h to actually spit out all available command line options... with however short a description. Shame.

It was already mentioned sometimes ago that the help output of FPC is maintained by hand and does not necessarily always contain all available options.

Regards,
Sven

Reply by email

Reinier Olislagers
to Sven Barth
Sven Barth wrote 21 lines
On 28.10.2013 18:54, Reinier Olislagers wrote: > On 28/10/2013 17:58, Marco van de Voort wrote: >> On Mon, Oct 28, 2013 at 02:00:25PM +0100, Mattias Gaertner wrote: >>>> On Tue, Oct 15, 2013 at 01:52:44PM -0300, silvioprog wrote: >>> It seems -XLA exists in the fpc sources but is neither documented nor >>> listed in fpc -h. >> >> XLO/XLA has been documented in the buildfaq since 2.0.4 times. >> Basically it is a simple system for substitutions and prioritization >> on the >> combined list of $linklibs for systems with flat linker namespaces. >> (read: >> linux and *BSD) > > So: woe betide anybody who expects fpc -h to actually spit out all > available command line options... with however short a description. > Shame. It was already mentioned sometimes ago that the help output of FPC is maintained by hand and does not necessarily always contain all available options.

Thanks Sven. I understand and respect the "by hand" thing.

What I find more problematic is not having all available options listed. The compiler itself is the natural, most logical place to have an overview of all options, which can then be further explained in other documentation.

If all possible options aren't there, where should people be looking for a complete list?

Reply by email

Sven Barth
to Reinier Olislagers

Am 29.10.2013 09:01 schrieb "Reinier Olislagers" <

Show quoted text 34 lines
: On 28/10/2013 22:55, Sven Barth wrote: > On 28.10.2013 18:54, Reinier Olislagers wrote: >> On 28/10/2013 17:58, Marco van de Voort wrote: >>> On Mon, Oct 28, 2013 at 02:00:25PM +0100, Mattias Gaertner wrote: >>>>> On Tue, Oct 15, 2013 at 01:52:44PM -0300, silvioprog wrote: >>>> It seems -XLA exists in the fpc sources but is neither documented nor >>>> listed in fpc -h. >>> >>> XLO/XLA has been documented in the buildfaq since 2.0.4 times. >>> Basically it is a simple system for substitutions and prioritization >>> on the >>> combined list of $linklibs for systems with flat linker namespaces. >>> (read: >>> linux and *BSD) >> >> So: woe betide anybody who expects fpc -h to actually spit out all >> available command line options... with however short a description. >> Shame. > > It was already mentioned sometimes ago that the help output of FPC is > maintained by hand and does not necessarily always contain all available > options. Thanks Sven. I understand and respect the "by hand" thing. What I find more problematic is not having all available options listed. The compiler itself is the natural, most logical place to have an overview of all options, which can then be further explained in other documentation. If all possible options aren't there, where should people be looking for a complete list?

The compiler's source. This is the only location which is really up to date. (may sound harsh, but that's how it is...)

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20131029/480094a1/attachment-0001.html>

Reply by email

Reinier Olislagers
to Sven Barth
Sven Barth wrote 7 lines
Am 29.10.2013 09:01 schrieb "Reinier Olislagers" < <mailto:>>: > If all possible options aren't there, where should people be looking for > a complete list? The compiler's source. This is the only location which is really up to date. (may sound harsh, but that's how it is...)

Of course.

NB: I don't mind about how quick the updates are, just that they are done in a vaguely reasonable timeframe.

Having the switches in since at least 2.0.4 without having them in fpc - h seems too long a time for me.

BTW: would you know by heart where the code spitting out fpc -h is so I can submit a useful patch?

Thanks,
Reinier

Reply by email

Michael Van Canneyt
to Sven Barth: Am 29.10.2013 09:01 schrieb "Reinier Olislagers" < The compiler's source. This is the…
Sven Barth wrote 37 lines
Am 29.10.2013 09:01 schrieb "Reinier Olislagers" : > > On 28/10/2013 22:55, Sven Barth wrote: > > On 28.10.2013 18:54, Reinier Olislagers wrote: > >> On 28/10/2013 17:58, Marco van de Voort wrote: > >>> On Mon, Oct 28, 2013 at 02:00:25PM +0100, Mattias Gaertner wrote: > >>>>> On Tue, Oct 15, 2013 at 01:52:44PM -0300, silvioprog wrote: > >>>> It seems -XLA exists in the fpc sources but is neither documented nor > >>>> listed in fpc -h. > >>> > >>> XLO/XLA has been documented in the buildfaq since 2.0.4 times. > >>> Basically it is a simple system for substitutions and prioritization > >>> on the > >>> combined list of $linklibs for systems with flat linker namespaces. > >>> (read: > >>> linux and *BSD) > >> > >> So: woe betide anybody who expects fpc -h to actually spit out all > >> available command line options... with however short a description. > >> Shame. > > > > It was already mentioned sometimes ago that the help output of FPC is > > maintained by hand and does not necessarily always contain all available > > options. > > Thanks Sven. I understand and respect the "by hand" thing. > > What I find more problematic is not having all available options listed. > The compiler itself is the natural, most logical place to have an > overview of all options, which can then be further explained in other > documentation. > > If all possible options aren't there, where should people be looking for > a complete list? The compiler's source. This is the only location which is really up to date. (may sound harsh, but that's how it is...)

Strange as it may be, but I always peruse the compiler sources when updating the user manual for a release.

I haven't encountered the XLO/XLA options.

Michael.

Reply by email

Sven Barth
to Reinier Olislagers: Of course. NB: I don't mind about how quick the updates are, just that they are done in a…
Reinier Olislagers wrote
BTW: would you know by heart where the code spitting out fpc -h is so I can submit a useful patch?

TOption.WriteHelpPages in $fpcdir/compiler/options.pas.

But the help strings themselves are located inside the language files: $fpcdir/msgs/errore.msg (far at the bottom, look for an existing entry to find it ^^)

Regards,
Sven

Reply by email

Sven Barth
to Michael Van Canneyt: Strange as it may be, but I always peruse the compiler sources when updating the user…
Michael Van Canneyt wrote 55 lines
On Tue, 29 Oct 2013, Sven Barth wrote: > > Am 29.10.2013 09:01 schrieb "Reinier Olislagers" > : > > > > On 28/10/2013 22:55, Sven Barth wrote: > > > On 28.10.2013 18:54, Reinier Olislagers wrote: > > >> On 28/10/2013 17:58, Marco van de Voort wrote: > > >>> On Mon, Oct 28, 2013 at 02:00:25PM +0100, Mattias Gaertner wrote: > > >>>>> On Tue, Oct 15, 2013 at 01:52:44PM -0300, silvioprog wrote: > > >>>> It seems -XLA exists in the fpc sources but is neither > documented nor > > >>>> listed in fpc -h. > > >>> > > >>> XLO/XLA has been documented in the buildfaq since 2.0.4 times. > > >>> Basically it is a simple system for substitutions and > prioritization > > >>> on the > > >>> combined list of $linklibs for systems with flat linker > namespaces. > > >>> (read: > > >>> linux and *BSD) > > >> > > >> So: woe betide anybody who expects fpc -h to actually spit out all > > >> available command line options... with however short a description. > > >> Shame. > > > > > > It was already mentioned sometimes ago that the help output of > FPC is > > > maintained by hand and does not necessarily always contain all > available > > > options. > > > > Thanks Sven. I understand and respect the "by hand" thing. > > > > What I find more problematic is not having all available options > listed. > > The compiler itself is the natural, most logical place to have an > > overview of all options, which can then be further explained in other > > documentation. > > > > If all possible options aren't there, where should people be > looking for > > a complete list? > > The compiler's source. This is the only location which is really up > to date. (may sound harsh, but that's how it is...) Strange as it may be, but I always peruse the compiler sources when updating the user manual for a release. I haven't encountered the XLO/XLA options.

Line 2103 of $fpcdir/compiler/options.pas (current trunk)

Added by Marco in revision 3788 (June 2006).

Regards,
Sven

Reply by email

Reinier Olislagers
to Sven Barth: TOption.WriteHelpPages in $fpcdir/compiler/options.pas. But the help strings themselves…
Sven Barth wrote 9 lines
Am 29.10.2013 09:27, schrieb Reinier Olislagers: > BTW: would you know by heart where the code spitting out fpc -h is so I > can submit a useful patch? TOption.WriteHelpPages in $fpcdir/compiler/options.pas. But the help strings themselves are located inside the language files: $fpcdir/msgs/errore.msg (far at the bottom, look for an existing entry to find it ^^)

Thanks a lot, Sven, will get on it.

Reply by email

Marco van de Voort
to Michael Van Canneyt: Strange as it may be, but I always peruse the compiler sources when updating the user…
Michael Van Canneyt wrote 6 lines
> The compiler's source. This is the only location which is really up to date. (may sound harsh, but that's how it is...) Strange as it may be, but I always peruse the compiler sources when updating the user manual for a release. I haven't encountered the XLO/XLA options.

The options were introduced (in 2.0.4!) to try to lessen the impact of problems with $linklibs in precompiled ppus. IOW so that it doesn't make a release worthless if libraries are joined or renamed.

A typical example was libintl which was in glibc and thus often not linked on FreeBSD. Another one was changing of the threads libraries (parameter -Xf was later recoded using the XLA/XLO datastructures), which both joined and renamed libs (c and c_r vs pthreads) and order of libraries and the renaming of the GTK libraries on FreeBSD. (one of the rare cases where such changes on FreeBSD were not made between major versions)

Jonas considered it doubtful, so it was agreed to put them in as beta. I think I asked again to change them to documented a full cycle later, but it was still considered not validated. I couldn't blame him for that, since such incidents became rarer on both Linux and FreeBSD, not just during that cycle, but also after that.

Reply by email