Recent

Author Topic: Incorrect FPC/Lazarus build?  (Read 1407 times)

Seenkao

  • Hero Member
  • *****
  • Posts: 608
    • New ZenGL.
Re: Incorrect FPC/Lazarus build?
« Reply #15 on: September 25, 2024, 08:24:47 pm »
Для понимания, ошибка возникает только для одной архитектуры! Arm32.
Моя изначальная ошибка в первопосте, что я думал что эта ошибка для всех архитектур.

Так же, рабочий кросскомпилятор я собрал на машине, где установлен Windows 7. И при использовании FPCUPDeluxe я не мог собрать компилятор из репозитория (GitLab), приходилось собирать используя zip-архивы. При использовании репозитория возникает какая-то ошибка в данном случае, не помню какая, но может это не так важно, ведь многие перешли на Windows 10/11.

Я проверю на эмуляторах сборку кросскомпиляторов и скажу результат. На эмуляторах я буду менять процессоры. Может это поможет как-то решить проблему (если она в самом деле есть, возможно надо было сначала поискать людей с подобной проблемой?).

--------------------------------------------------------
Google translate:
For your understanding, the error occurs only for one architecture! Arm32.

My initial mistake in the first post was that I thought that this error was for all architectures.

Also, I built a working cross compiler on a machine with Windows 7 installed. And when using FPCUPDeluxe, I couldn't build the compiler from the repository (GitLab), I had to build using zip archives. When using the repository, some error occurs in this case, I don't remember which one, but maybe it's not that important, because many people have switched to Windows 10/11.

I'll check the cross compiler build on emulators and tell you the result. I'll change processors on emulators. Maybe this will help somehow solve the problem (If it really exists, maybe you should have first looked for people with a similar problem?).
Rus: Стремлюсь к созданию минимальных и достаточно быстрых приложений.

Eng: I strive to create applications that are minimal and reasonably fast.
Working on ZenGL

TRon

  • Hero Member
  • *****
  • Posts: 3469
Re: Incorrect FPC/Lazarus build?
« Reply #16 on: September 25, 2024, 08:59:34 pm »
In most cases, pre-build (by me) binutils are downloaded.
Thank you Don.

Ergo, (cross)binutils 2.27 (those were the only ones I was able to find at short notice).

Confusing is that the android all archive contained the 64-bit version while the separate/individual archive I was able to find (again, short notice) was 32-bit only (both 2.27)

Not sure if any of that information is relevant but because there seem to be a tendency of not sharing relevant portions I must take my own notes.

@Seenkao:
Based on the information provided the only way to obtain the relevant information is to do it myself, and as stated I lack the time atm. It does not really matter whether you asked for someone to do it or not  :)

Solely based on that single error in your first message: the binutils used are incompatible with the created/used (arm) files. In basics that is it.
« Last Edit: September 25, 2024, 09:05:25 pm by TRon »
This tagline is powered by AI

Seenkao

  • Hero Member
  • *****
  • Posts: 608
    • New ZenGL.
Re: Incorrect FPC/Lazarus build?
« Reply #17 on: September 26, 2024, 10:51:14 am »
Протестировал на эмуляторах, всё нормально работает... Буду переустанавливать систему на своём компьютере. Результат сообщу.

Google translate:
Tested on emulators, everything works fine... I will reinstall the system on my computer. I will report the result.
Rus: Стремлюсь к созданию минимальных и достаточно быстрых приложений.

Eng: I strive to create applications that are minimal and reasonably fast.
Working on ZenGL

TRon

  • Hero Member
  • *****
  • Posts: 3469
Re: Incorrect FPC/Lazarus build?
« Reply #18 on: September 26, 2024, 11:26:27 am »
Tested on emulators, everything works fine... I will reinstall the system on my computer. I will report the result.
You might do that but my hunch and fear is that re-installing most probably is not going to fix the issue.

There is a reported issue wrt old(er) binutils (such as those found in Don's FPCUpDeluxe repository) but then I would have expected these same binutils to fail on/for every machine.

Therefor, my initial thought is that there must be something different regarding the setup on the machine where it fails.

Do you perhaps have something else running/installed on that machine where you have this issue, such as for example mingw or WSL or any other Linux based utilities ?

For such things to mess up the build there would be something amiss in/during the build-stage that perhaps picks up on that (a path that takes precedence, an environment variable to indicate a certain (wrong) directory or whatever else is able to throw off the build-stage).

A longer output of the build-messages would be more helpful.

As mentioned, the error itself is clear but not the preceding steps that where done by the build process and which eventually ended up in that error.
This tagline is powered by AI

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1774
Re: Incorrect FPC/Lazarus build?
« Reply #19 on: September 26, 2024, 11:32:10 am »
If the bins are too old and cause these problems, I will prepare new ones.

TRon

  • Hero Member
  • *****
  • Posts: 3469
Re: Incorrect FPC/Lazarus build?
« Reply #20 on: September 26, 2024, 11:45:07 am »
If the bins are too old and cause these problems, I will prepare new ones.
Please hold on to your horses a little longer Don  :).

I am trying to get things confirmed at a more understandable level, so far I am only able to locate this and this. I need a little more information before jumping into the bintuils ML and/or issue tracker. e.g. there is no point in updating to a newer version if that version also has issues (and there were/are quite a few along the line).

I am also a bit thrown off by the inconsistency as it should not matter (it either works or not. And it should not be that it works on machine a and not on machine b at least when the architecture is the same)

edit: getting somewhere: this explains things a lot better.

@Don (or someone else) Do you happen to know if that what is mentioned about the elfutils vs bintuils could have originated from any decision made during the build-process with FPCUpdeluxe ?
« Last Edit: September 26, 2024, 12:00:52 pm by TRon »
This tagline is powered by AI

Thaddy

  • Hero Member
  • *****
  • Posts: 15946
  • Censorship about opinions does not belong here.
Re: Incorrect FPC/Lazarus build?
« Reply #21 on: September 26, 2024, 12:08:37 pm »
Yes, the binutils are too old but it only causes problems when there are very specific requirements.
The paradox is e.g. in cpp in the distribution, which is very, very, very, very old but that particular version of cpp can do things that more modern versions of cpp can not do (mis-use cpp as a full text processor).
It requires some proper judgement and knowledge how the binutils are used.
That said, I never ran into trouble with my far more recent binutils, which includes a far more up-to-date cpp and a far more up-to-date external linker.
Note I am not exactly sure how cpp is used in the build process, so this particular example may not even be relevant.
It is beyond discussion, though, that the binutils are very old, on average on Windows 25 years or so.
Only the GNU based utils are affected by old age. That also affects cross-building.
« Last Edit: September 26, 2024, 12:23:31 pm by Thaddy »
If I smell bad code it usually is bad code and that includes my own code.

Seenkao

  • Hero Member
  • *****
  • Posts: 608
    • New ZenGL.
Re: Incorrect FPC/Lazarus build?
« Reply #22 on: September 26, 2024, 04:54:29 pm »
Я установил FPC/Lazarus + кросскомпиляторы под Android используя FPCUPDeluxe. Система чистая, ни чего установлено не было. Кросскомпилляторы производят сборку без ошибок.

Я не знаю с чем связана проблема. Позже буду переустанавливать систему полностью и попробую не забыть об этой ошибке. Если она выскочит, я может смогу поймать момент после установки каких программ это произошло.


Google translate:
I installed FPC/Lazarus + cross compilers for Android using FPCUPDeluxe. The system is clean, nothing was installed. Cross compilers build without errors.

I don't know what the problem is related to. Later I will reinstall the system completely and try not to forget about this error. If it pops up, I might be able to catch the moment after installing which programs it happened.
Rus: Стремлюсь к созданию минимальных и достаточно быстрых приложений.

Eng: I strive to create applications that are minimal and reasonably fast.
Working on ZenGL

 

TinyPortal © 2005-2018