Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

working and non working configs #13

Open
diplfranzhoepfinger opened this issue Jul 4, 2024 · 18 comments
Open

working and non working configs #13

diplfranzhoepfinger opened this issue Jul 4, 2024 · 18 comments

Comments

@diplfranzhoepfinger
Copy link

diplfranzhoepfinger commented Jul 4, 2024

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
Copy link
Contributor

azoitl commented Jul 4, 2024

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
Copy link
Author

fbe has several git submodules.

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

@diplfranzhoepfinger
Copy link
Author

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
Copy link
Author

diplfranzhoepfinger commented Jul 5, 2024

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
Copy link
Contributor

azoitl commented Jul 5, 2024

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
Copy link
Author

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
Copy link
Author

diplfranzhoepfinger commented Jul 5, 2024

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
Copy link
Contributor

azoitl commented Jul 5, 2024

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

@diplfranzhoepfinger
Copy link
Author

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
Copy link
Author

diplfranzhoepfinger commented Jul 6, 2024

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
Copy link
Author

@cochicde cochicde closed this as completed Jul 8, 2024
@diplfranzhoepfinger
Copy link
Author

@cochicde so, how to go on ?

@cochicde cochicde reopened this Jul 8, 2024
@cochicde
Copy link

cochicde commented Jul 8, 2024

@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
Copy link
Author

@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
Copy link
Contributor

azoitl commented Jul 8, 2024

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

@diplfranzhoepfinger
Copy link
Author

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

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

@jwalt
Copy link

jwalt commented Sep 3, 2024

As soon as #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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants