eclipse-4diac / 4diac-fbe

Eclipse Public License 2.0
3 stars 5 forks source link

working and non working configs #13

Open diplfranzhoepfinger opened 3 months ago

diplfranzhoepfinger commented 3 months ago

https://github.com/eclipse-4diac/4diac-fbe/tree/release
as it is, at least starts to compile, but finish with an Error:

Log in Windows:

https://gist.github.com/diplfranzhoepfinger/124818dbff8db0b57e80eed4fd33250d

--> it seems here: @azoitl @jwalt 

FAILED: CMakeFiles/open62541-object.dir/open62541.c.obj

is the Showstopper. 

where can i set not to use open62541 ? 


Updating the Submodule "toolchain" to Commit 77f2e2ba30c4fcac2e59d75d65d1ebf0a77c4d06 does not change this

change to branch
https://github.com/eclipse-4diac/4diac-fbe/tree/develop

12

we get this:

C:\git\franz\4diac-fbe>compile.cmd
Das System kann den angegebenen Pfad nicht finden.
Das System kann den angegebenen Pfad nicht finden.

Update everything to latest:
i did here:

https://github.com/diplfranzhoepfinger/4diac-fbe/tree/feature/try

we get this:

azoitl commented 3 months ago

fbe has several git submodules. So you either need to clone it with submodule update: git clone --recursive --depth 1 https://github.com/eclipse-4diac/4diac-fbe.git

or if you have allready cloned it without submodules initialize and update them:

  1. git submodule init
  2. git submodule update
diplfranzhoepfinger commented 3 months ago

fbe has several git submodules.

yes. and ? it would not start to compile if there are not the submodules in place.

diplfranzhoepfinger commented 3 months ago

develop branch:

C:\git\franz\4diac-fbe>compile.cmd
Downloading https://sourceforge.net/projects/fordiac/files/4diac-fbe/2024-04/Windows-toolchain-x86_64-w64-mingw32.zip/download...
Extracting toolchain environment...
rm: can't remove '*-toolchain-*.tar.gz': No such file or directory
Usage: ./install-crosscompiler.sh <target-triplet>

Installation successful. Press Enter to exit:

sh: unknown option -- n
BusyBox v (2024-03-22 14:19:13 CET) multi-call binary

Usage: cp [OPTIONS] SOURCE... DEST

Copy SOURCE(s) to DEST

        -a      Same as -dpR
        -R,-r   Recurse
        -d,-P   Preserve symlinks (default if -R)
        -L      Follow all symlinks
        -H      Follow symlinks on command line
        -p      Preserve file attributes if possible
        -f      Overwrite
        -i      Prompt before overwrite
        -l,-s   Create (sym)links
        -T      Treat DEST as a normal file
        -u      Copy only newer files
C:\git\franz\4diac-fbe\scripts\compile.sh: Exiting due to error

C:\git\franz\4diac-fbe>
diplfranzhoepfinger commented 3 months ago

so, try this:

compile.cmd native-toolchain

it starts with a lot of non-intuitive Errors:

ln: C:/git/franz/4diac-fbe/build/native-toolchain/etc/cget/recipes/boost: Function not implemented
ln: C:/git/franz/4diac-fbe/build/native-toolchain/etc/cget/recipes/bzip2: Function not implemented
ln: C:/git/franz/4diac-fbe/build/native-toolchain/etc/cget/recipes/forte: Function not implemented
ln: C:/git/franz/4diac-fbe/build/native-toolchain/etc/cget/recipes/libmodbus: Function not implemented
ln: C:/git/franz/4diac-fbe/build/native-toolchain/etc/cget/recipes/libpcap: Function not implemented
ln: C:/git/franz/4diac-fbe/build/native-toolchain/etc/cget/recipes/libressl: Function not implemented
ln: C:/git/franz/4diac-fbe/build/native-toolchain/etc/cget/recipes/luajit: Function not implemented
ln: C:/git/franz/4diac-fbe/build/native-toolchain/etc/cget/recipes/open62541: Function not implemented
ln: C:/git/franz/4diac-fbe/build/native-toolchain/etc/cget/recipes/openpowerlink: Function not implemented
ln: C:/git/franz/4diac-fbe/build/native-toolchain/etc/cget/recipes/paho.mqtt.c: Function not implemented
ln: C:/git/franz/4diac-fbe/build/native-toolchain/etc/cget/recipes/tinyxml: Function not implemented
ln: C:/git/franz/4diac-fbe/build/native-toolchain/etc/cget/recipes/zlib: Function not implemented

Full log here:

https://gist.github.com/diplfranzhoepfinger/36e016381a56ca844f7e4c193dd336c0

azoitl commented 3 months ago

As I'm not sure what the status of fbe on your machine is and it was at one point sensitive to download errors I would recommend that delete your 4diac-fbe directory and freshly clone the release branch from github.

diplfranzhoepfinger commented 3 months ago

As I'm not sure what the status of fbe on your machine is and it was at one point sensitive to download errors I would recommend that delete your 4diac-fbe directory and freshly clone the release branch from github.

agree. i will do.

diplfranzhoepfinger commented 3 months ago

so, next try running.

cloned, copy compile.cmd to main Folder,

get this:

image

still...

image

and ...

image

image

then:

image

then i select "Überspringen"

then:

Extracting toolchain environment...
rm: can't remove '*-toolchain-*.tar.gz': No such file or directory
Usage: ./install-crosscompiler.sh <target-triplet>

Installation successful. Press Enter to exit:

then again:

ln: C:/git/franz/4diac-fbe/build/debug/etc/cget/recipes/boost: Function not implemented
ln: C:/git/franz/4diac-fbe/build/debug/etc/cget/recipes/bzip2: Function not implemented
ln: C:/git/franz/4diac-fbe/build/debug/etc/cget/recipes/forte: Function not implemented
ln: C:/git/franz/4diac-fbe/build/debug/etc/cget/recipes/libmodbus: Function not implemented
ln: C:/git/franz/4diac-fbe/build/debug/etc/cget/recipes/libpcap: Function not implemented
ln: C:/git/franz/4diac-fbe/build/debug/etc/cget/recipes/libressl: Function not implemented
ln: C:/git/franz/4diac-fbe/build/debug/etc/cget/recipes/luajit: Function not implemented
ln: C:/git/franz/4diac-fbe/build/debug/etc/cget/recipes/open62541: Function not implemented
ln: C:/git/franz/4diac-fbe/build/debug/etc/cget/recipes/openpowerlink: Function not implemented
ln: C:/git/franz/4diac-fbe/build/debug/etc/cget/recipes/paho.mqtt.c: Function not implemented
ln: C:/git/franz/4diac-fbe/build/debug/etc/cget/recipes/tinyxml: Function not implemented
ln: C:/git/franz/4diac-fbe/build/debug/etc/cget/recipes/zlib: Function not implemented

same Error:

https://gist.github.com/diplfranzhoepfinger/88d07b073bb0d02885300e14bf943601

azoitl commented 3 months ago

As you nicely showed your toolchain files are not installed. So it can not work.

diplfranzhoepfinger commented 3 months ago

As you nicely showed your toolchain files are not installed. So it can not work.

How to install them? This very long process is not the install?

diplfranzhoepfinger commented 3 months ago

i make another test now:

https://github.com/diplfranzhoepfinger/4diac-fbe/tree/feature/second_try

https://github.com/diplfranzhoepfinger/4diac-fbe/blob/feature/second_try/configurations/inc/franz.txt

reduce all things a lot as recommended by @azoitl 

still we get in the beginning this:

ln: C:/git/franz/4diac-fbe/build/native-toolchain/etc/cget/recipes/boost: Function not implemented
ln: C:/git/franz/4diac-fbe/build/native-toolchain/etc/cget/recipes/bzip2: Function not implemented
ln: C:/git/franz/4diac-fbe/build/native-toolchain/etc/cget/recipes/forte: Function not implemented
ln: C:/git/franz/4diac-fbe/build/native-toolchain/etc/cget/recipes/libmodbus: Function not implemented
ln: C:/git/franz/4diac-fbe/build/native-toolchain/etc/cget/recipes/libpcap: Function not implemented
ln: C:/git/franz/4diac-fbe/build/native-toolchain/etc/cget/recipes/libressl: Function not implemented
ln: C:/git/franz/4diac-fbe/build/native-toolchain/etc/cget/recipes/luajit: Function not implemented
ln: C:/git/franz/4diac-fbe/build/native-toolchain/etc/cget/recipes/open62541: Function not implemented
ln: C:/git/franz/4diac-fbe/build/native-toolchain/etc/cget/recipes/openpowerlink: Function not implemented
ln: C:/git/franz/4diac-fbe/build/native-toolchain/etc/cget/recipes/paho.mqtt.c: Function not implemented
ln: C:/git/franz/4diac-fbe/build/native-toolchain/etc/cget/recipes/tinyxml: Function not implemented
ln: C:/git/franz/4diac-fbe/build/native-toolchain/etc/cget/recipes/zlib: Function not implemented

which i dislike a lot. 

what should Function not implemented be ? please change this to a clear and concise error Message, and handle it in the proper way. if it is blocking, then it should be cacelling the compile, if it is a warning only it should be marked as warning.

still a lot of warnings https://gist.github.com/diplfranzhoepfinger/afad16fddc9b83768dea8254fce0504f

but it buit forte.exe. HURRAY

will try later Linux again.

diplfranzhoepfinger commented 2 months ago

so, next try:

https://github.com/diplfranzhoepfinger/4diac-fbe/tree/feature/second_try_new_forte

just updated the FORTE.

diplfranzhoepfinger commented 2 months ago

@cochicde so, how to go on ?

cochicde commented 2 months ago

@cochicde so, how to go on ?

Sorry, I don't how it happened. Apparently I clicked on the button, but I didn't even read all the comments

diplfranzhoepfinger commented 2 months ago

@cochicde so, how to go on ?

Sorry, I don't how it happened. Apparently I clicked on the button, but I didn't even read all the comments

maybe we need really to close this issue, and open several small issues with only single topics.

as it overall runs in 1 config, but brings strange warnings, and not run in the basic config. this might be different storys at all.

azoitl commented 2 months ago

I'm always a fan of smaller more concrete issues.

diplfranzhoepfinger commented 2 months ago

I'm always a fan of smaller more concrete issues.

this is the Idea. i will work on it by time.

jwalt commented 1 month ago

As soon as eclipse-4diac/4diac-fbe#17 is merged, the new release has arrived in the develop branch of 4diac-fbe. Please check with a clean checkout (git checkout https://github.com/eclipse-4diac/4diac-fbe -b develop --recursive) and try building the default configurations. It should produce a working forte binary on all three supported platforms.

diplfranzhoepfinger commented 4 weeks ago

i am happy to test, however it will take me a bit of time, as School is starting next Week.