Home » Community » U++ community news and announcements » New experimental Linux/FreeBSD release
|
|
|
|
| Re: New experimental Linux/FreeBSD release [message #53522 is a reply to message #53516] |
Wed, 08 April 2020 12:27   |
Oblivion
Messages: 1276 Registered: August 2007
|
Senior Contributor |
|
|
Edit 1: I'll investigate further, this may be a problem on my side. I'll let you know.
Edit 2: This occurs if TIMING macro is in Paint();
Edit 3: This occurs only on GTK. NOGTK mode is not affected. (A lock issue? What's changed in GTK backend, lately?)
Quote:Just a quick question, what is the name of the application? Do you have non-ASCII names in it?
It is "TerminalExample", nothing more.
By the way, I've checked out SVN, cleared the cache, and manually set up .config/u++. Unfortunately, it didn't change the situation.
However, I've now noticed that this occurs only when TIMING macros are used (specifically, RTIMING).
Also DuMPS and LOGS seem to be acting weirdly (not dumping, or logging) when TIMING macros are used.
Not to mention each RTIMING macro adds ~8 ms. delay to overall result. (Maybe related, maybe not, I don't know.)
Best regards,
Oblivion
Github page: https://github.com/ismail-yilmaz
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
TerminalCtrl package https://github.com/ismail-yilmaz/Terminal
[Updated on: Wed, 08 April 2020 13:37] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Re: New experimental Linux/FreeBSD release [message #53535 is a reply to message #53534] |
Wed, 08 April 2020 21:19   |
 |
amrein
Messages: 278 Registered: August 2008 Location: France
|
Experienced Member |
|
|
I can't find where this bug come from (I guess it's a bug).
When I use Makefiles, I get only one file named .cache/upp.out/build_info.h
When I use umk or umks32, I get several files named build_info.h in .cache/upp.out/
Quote:
rm -fr .cache/upp.out/*
./umk ./uppsrc umk CLANG -brs ./umk
find .cache/upp.out/ -name build_info.h
Result:
Quote:
.cache/upp.out/Core/CLANG.Blitz.Shared/build_info.h
.cache/upp.out/plugin/pcre/CLANG.Shared/build_info.h
.cache/upp.out/plugin/zstd/CLANG.Blitz.Shared/build_info.h
.cache/upp.out/plugin/lz4/CLANG.Blitz.Shared/build_info.h
.cache/upp.out/plugin/lzma/CLANG.Blitz.Shared/build_info.h
.cache/upp.out/plugin/bz2/CLANG.Blitz.Shared/build_info.h
.cache/upp.out/Esc/CLANG.Blitz.Shared/build_info.h
.cache/upp.out/umk/CLANG.Blitz.Main.Shared/build_info.h
.cache/upp.out/ide/Java/CLANG.Blitz.Shared/build_info.h
.cache/upp.out/ide/Android/CLANG.Blitz.Shared/build_info.h
.cache/upp.out/ide/Core/CLANG.Blitz.Shared/build_info.h
.cache/upp.out/ide/Builders/CLANG.Shared/build_info.h
Those files don't have the same content (the defined variables inside don't have the same value most of the time).
[Updated on: Wed, 08 April 2020 21:25] Report message to a moderator
|
|
|
|
| Re: New experimental Linux/FreeBSD release [message #53537 is a reply to message #53535] |
Thu, 09 April 2020 10:22   |
 |
mirek
Messages: 14291 Registered: November 2005
|
Ultimate Member |
|
|
amrein wrote on Wed, 08 April 2020 21:19I can't find where this bug come from (I guess it's a bug).
When I use Makefiles, I get only one file named .cache/upp.out/build_info.h
When I use umk or umks32, I get several files named build_info.h in .cache/upp.out/
Quote:
rm -fr .cache/upp.out/*
./umk ./uppsrc umk CLANG -brs ./umk
find .cache/upp.out/ -name build_info.h
Result:
Quote:
.cache/upp.out/Core/CLANG.Blitz.Shared/build_info.h
.cache/upp.out/plugin/pcre/CLANG.Shared/build_info.h
.cache/upp.out/plugin/zstd/CLANG.Blitz.Shared/build_info.h
.cache/upp.out/plugin/lz4/CLANG.Blitz.Shared/build_info.h
.cache/upp.out/plugin/lzma/CLANG.Blitz.Shared/build_info.h
.cache/upp.out/plugin/bz2/CLANG.Blitz.Shared/build_info.h
.cache/upp.out/Esc/CLANG.Blitz.Shared/build_info.h
.cache/upp.out/umk/CLANG.Blitz.Main.Shared/build_info.h
.cache/upp.out/ide/Java/CLANG.Blitz.Shared/build_info.h
.cache/upp.out/ide/Android/CLANG.Blitz.Shared/build_info.h
.cache/upp.out/ide/Core/CLANG.Blitz.Shared/build_info.h
.cache/upp.out/ide/Builders/CLANG.Shared/build_info.h
Those files don't have the same content (the defined variables inside don't have the same value most of the time).
Let us say "feature".
From utility perspective, it is better when build_info is in all package output files. This however was not yet implemented for Makefile and is causing little problems that way yet. I will file this as low-priority issue in redmine.
EDIT: Also, these defines should be treated by the code as "optional additional information" (with #ifdef)...
Mirek
[Updated on: Thu, 09 April 2020 10:25] Report message to a moderator
|
|
|
|
| Re: New experimental Linux/FreeBSD release [message #53552 is a reply to message #53537] |
Sat, 11 April 2020 10:01   |
 |
amrein
Messages: 278 Registered: August 2008 Location: France
|
Experienced Member |
|
|
Little fix for your Makefiles
Summary:
* replace hard coded reference of .cache/upp.out by $(UPPOUT)
* secure the line that remove $(UPPOUT) (clean target)
* remove unneeded line, the last line that remove build_info.h (this file is in $(UPPOUT))
Here is the patch. Of course, you will certainly fix umk/theide code instead I guess.
$ diff Makefile Makefile.ide
3,4c3,4
< UPPOUT = .cache/upp.out/
< CINC = -I$(UPPDIR1) `pkg-config --cflags freetype2` `pkg-config --cflags x11` `pkg-config --cflags fontconfig` `pkg-config --cflags xcb` `pkg-config --cflags expat` `pkg-config --cflags xinerama` `pkg-config --cflags xrender` `pkg-config --cflags xft` `pkg-config --cflags xdmcp` `pkg-config --cflags xext` `pkg-config --cflags gtk+-3.0` `pkg-config --cflags libnotify` `pkg-config --cflags libpng` -I./ -I.cache/upp.out
---
> UPPOUT = .cache/upp.out/
> CINC = -I$(UPPDIR1) `pkg-config --cflags freetype2` `pkg-config --cflags x11` `pkg-config --cflags fontconfig` `pkg-config --cflags xcb` `pkg-config --cflags expat` `pkg-config --cflags xinerama` `pkg-config --cflags xrender` `pkg-config --cflags xft` `pkg-config --cflags xdmcp` `pkg-config --cflags xext` `pkg-config --cflags gtk+-3.0` `pkg-config --cflags libnotify` `pkg-config --cflags libpng` -I./ -I$(UPPOUT)
94c94
< OutFile = ./ide
---
> OutFile = ide.out
103c103
< echo '#define bmUSER "'`whoami`'"') > ".cache/upp.out/build_info.h"
---
> echo '#define bmUSER "'`whoami`'"') > "$(UPPOUT)build_info.h"
72308,72309c72308,72309
72308,72309c72308,72309
< if [ -d "$(UPPOUT)" ]; then rm -rf "$(UPPOUT)" ; fi
< if [ -f build_info.h ]; then rm -f build_info.h ; fi
---
> if [ "$(UPPOUT)" != "" -a "$(UPPOUT)" != "/" -a -d "$(UPPOUT)" ] ; then rm -fr "$(UPPOUT)" ; fi
>
[Updated on: Sat, 11 April 2020 10:14] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Re: New experimental Linux/FreeBSD release [message #53665 is a reply to message #53661] |
Mon, 20 April 2020 07:59   |
 |
amrein
Messages: 278 Registered: August 2008 Location: France
|
Experienced Member |
|
|
I tested the last rev-14335 on Linux. The -M= option works according to specification but the generated makefiles are still the same.
There are identical, regardless of passed flags (LINUX, X11, WIN32, OSX11):
umk ../uppsrc ide CLANG +POSIX,LINUX -rs -M=Makefile.ide.LINUX
umk ../uppsrc ide CLANG +POSIX,LINUX,X11 -rs -M=Makefile.ide.LINUX-X11
umk ../uppsrc ide CLANG +POSIX,WIN32 -rs -M=Makefile.ide.WIN32
umk ../uppsrc ide CLANG +POSIX,OSX11 -rs -M=Makefile.ide.OSX11
md5sum Makefile.ide.*
Résultat:
ade7b1a69e50e605b4a113fe761c0d0b Makefile.ide.LINUX
ade7b1a69e50e605b4a113fe761c0d0b Makefile.ide.LINUX-X11
ade7b1a69e50e605b4a113fe761c0d0b Makefile.ide.OSX11
ade7b1a69e50e605b4a113fe761c0d0b Makefile.ide.WIN32
With an older version, umk rev-14205, the resulting files are differents:
umk.old ../uppsrc ide CLANG +POSIX,LINUX -rsM ; mv -f Makefile Makefile.ide.LINUX
umk.old ../uppsrc ide CLANG +POSIX,LINUX,X11 -rsM ; mv -f Makefile Makefile.ide.LINUX-X11
umk.old ../uppsrc ide CLANG +POSIX,WIN32 -rsM ; mv -f Makefile Makefile.ide.WIN32
umk.old ../uppsrc ide CLANG +POSIX,OSX11 -rsM ; mv -f Makefile Makefile.ide.OSX11
md5sum Makefile.ide.*
12ee3d49848f69d4034381bebe91a210 Makefile.ide.LINUX
458b67aa2e9f7d652aa6ef4a40cd822c Makefile.ide.LINUX-X11
7b0ce34377577d122d34ac644d01e99f Makefile.ide.OSX11
002fd3fecfb6dc4948b497cc7e835fc2 Makefile.ide.WIN32
I searched but couldn't find the bug.
[Updated on: Mon, 20 April 2020 08:21] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
| Re: New experimental Linux/FreeBSD release [message #53708 is a reply to message #53706] |
Wed, 22 April 2020 23:35   |
 |
amrein
Messages: 278 Registered: August 2008 Location: France
|
Experienced Member |
|
|
Experimental Linux/FreeBSD/OpenBSD/OSX11 release : http://dl.free.fr/oLYL88VWq
Not official. Only for testing.
This is what I was working on.
It's not so complex and it should work on every POSIX OS. At least on Linux, FreeBSD and OpenBSD.
It also support rpm distribution (with 'rpmbuild -tb upp-14352MS.tar.xz')
(Patch for OpenBSD Package Organizer configs included).
I stop there because I think Mirek wants something simpler, smaller and easier to maintain.
At least, you can use the buildrequires.posix file to enhance the current posix release tarball.
[Updated on: Wed, 22 April 2020 23:53] Report message to a moderator
|
|
|
|
|
|
| Re: New experimental Linux/FreeBSD release [message #53718 is a reply to message #53709] |
Fri, 24 April 2020 11:57   |
 |
amrein
Messages: 278 Registered: August 2008 Location: France
|
Experienced Member |
|
|
There's a strange error when I use umk to build theide.
At link time, at the end of the wall build process, it fails saying:
...
Linking...
clang-9: error: unsupported option '--libs'
clang-9: error: unsupported option '--libs'
...
clang-9: error: no such file or directory: '`pkg-config'
clang-9: error: no such file or directory: 'freetype2`'
clang-9: error: no such file or directory: '`pkg-config'
clang-9: error: no such file or directory: 'x11`'
clang-9: error: no such file or directory: '`pkg-config'
clang-9: error: no such file or directory: 'fontconfig`'
...
My command line (fresh build umk rev 14364):
./umk uppsrc ide CLANG -rbs ./theide
[Updated on: Fri, 24 April 2020 12:15] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Fri Sep 11 01:47:20 GMT+2 2026
Total time taken to generate the page: 0.02581 seconds
|