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

The gmu package cannot be compiled #14

Open
FantasyGmm opened this issue Aug 15, 2023 · 2 comments
Open

The gmu package cannot be compiled #14

FantasyGmm opened this issue Aug 15, 2023 · 2 comments

Comments

@FantasyGmm
Copy link

FantasyGmm commented Aug 15, 2023

Describe the bug

Because CC is set to CC=/opt/FunKey-sdk/bin/arm-funkey-linux-musleabihf-gcc in gmu's funkey.mk, when compiling as a package for buildroot, the compiler cannot be found because sdk does not exist at all

To Reproduce
Just need clone this repo,then make fun

Expected behavior
This is my direct attempt to compile the system image, as I did not compile the SDK, so he cannot find the compiler and library he needs in the opt directory

2023-08-15T06:51:24 Building decoders/mpg123.so from src/decoders/mpg123.c
2023-08-15T06:51:24 /bin/sh: 1: /opt/FunKey-sdk/bin/arm-funkey-linux-musleabihf-gcc: not found
2023-08-15T06:51:24 make[3]: *** [Makefile.funkey:213: decoders/mpg123.so] Error 127
2023-08-15T06:51:24 cp: cannot stat './frontends': No such file or directory
2023-08-15T06:51:24 cp: cannot stat './gmu': No such file or directory
2023-08-15T06:51:24 Parallel mksquashfs: Using 16 processors
2023-08-15T06:51:24 Creating 4.0 filesystem on gmu_funkey-s.opk, block size 131072.
[================================================================================================================================================================================================================|] 83/83 100%
2023-08-15T06:51:24
2023-08-15T06:51:24 Squashfs 4.0 filesystem, gzip compressed, data block size 131072
2023-08-15T06:51:24 compressed data, compressed metadata, compressed fragments,
2023-08-15T06:51:24 no xattrs, compressed ids
2023-08-15T06:51:24 duplicates are removed
2023-08-15T06:51:24 Filesystem size 169.96 Kbytes (0.17 Mbytes)
2023-08-15T06:51:24 67.07% of uncompressed filesystem size (253.41 Kbytes)
2023-08-15T06:51:24 Inode table size 659 bytes (0.64 Kbytes)
2023-08-15T06:51:24 22.87% of uncompressed inode table size (2882 bytes)
2023-08-15T06:51:24 Directory table size 679 bytes (0.66 Kbytes)
2023-08-15T06:51:24 32.13% of uncompressed directory table size (2113 bytes)
2023-08-15T06:51:24 Number of duplicate files found 37
2023-08-15T06:51:24 Number of inodes 90
2023-08-15T06:51:24 Number of files 83
2023-08-15T06:51:24 Number of fragments 2
2023-08-15T06:51:24 Number of symbolic links  0
2023-08-15T06:51:24 Number of device nodes 0
2023-08-15T06:51:24 Number of fifo nodes 0
2023-08-15T06:51:24 Number of socket nodes 0
2023-08-15T06:51:24 Number of directories 7
2023-08-15T06:51:24 Number of ids (unique uids + gids) 1
2023-08-15T06:51:24 Number of uids 1
2023-08-15T06:51:24 root (0)
2023-08-15T06:51:24 Number of gids 1
2023-08-15T06:51:24 root (0)
2023-08-15T06:51:24 >>> gmu v1.0-funkey-s Installing to target
2023-08-15T06:51:24 /usr/bin/install -d -m 0755 /home/gm/v3s/FunKey-OS/FunKey/output/target/usr/bin/gmu/decoders
2023-08-15T06:51:24 /usr/bin/install -d -m 0755 /home/gm/v3s/FunKey-OS/FunKey/output/target/usr/bin/gmu/frontends
2023-08-15T06:51:24 /usr/bin/install -m 0755 /home/gm/v3s/FunKey-OS/FunKey/output/build/gmu-v1.0-funkey-s/opk/gmu /home/gm/v3s/FunKey-OS/FunKey/output/target/usr/bin/gmu
2023-08-15T06:51:24 /usr/bin/install: cannot stat '/home/gm/v3s/FunKey-OS/FunKey/output/build/gmu-v1.0-funkey-s/opk/gmu': No such file or directory
2023-08-15T06:51:24 make[2]: *** [package/pkg-generic.mk:341: /home/gm/v3s/FunKey-OS/FunKey/output/build/gmu-v1.0-funkey-s/.stamp_target_installed] Error 1
2023-08-15T06:51:24 make[1]: *** [Makefile:84: _all] Error 2
2023-08-15T06:51:24 make[1]: Leaving directory '/home/gm/v3s/FunKey-OS/buildroot'
@DrUm78
Copy link
Owner

DrUm78 commented Aug 22, 2023

Yeah that's a package I created from some sources I got recently but it's badly designed (requires a ./configure which will get your env compilation flags)... So I would need to modify it, not sure when though. For now, just place the toolchain in /opt/FunKey-sdk/ and that will do the job.

@FantasyGmm
Copy link
Author

I tried to put SDK under/opt, it can compile but failed during installation

2023-08-24T12:04:11 >>> gmu v1.0-funkey-s Installing to target
2023-08-24T12:04:11 /usr/bin/install -d -m 0755 /home/gm/v3s/FunKey-OS/FunKey/output/target/usr/bin/gmu/decoders
2023-08-24T12:04:11 /usr/bin/install -d -m 0755 /home/gm/v3s/FunKey-OS/FunKey/output/target/usr/bin/gmu/frontends
2023-08-24T12:04:11 /usr/bin/install -m 0755 /home/gm/v3s/FunKey-OS/FunKey/output/build/gmu-v1.0-funkey-s/opk/gmu /home/gm/v3s/FunKey-OS/FunKey/output/target/usr/bin/gmu
2023-08-24T12:04:11 /usr/bin/install: cannot stat '/home/gm/v3s/FunKey-OS/FunKey/output/build/gmu-v1.0-funkey-s/opk/gmu': No such file or directory
2023-08-24T12:04:11 make[2]: *** [package/pkg-generic.mk:341: /home/gm/v3s/FunKey-OS/FunKey/output/build/gmu-v1.0-funkey-s/.stamp_target_installed] Error 1
2023-08-24T12:04:11 make[1]: *** [Makefile:84: _all] Error 2
2023-08-24T12:04:11 make[1]: Leaving directory '/home/gm/v3s/FunKey-OS/buildroot'

@DrUm78 DrUm78 closed this as completed Mar 29, 2024
@DrUm78 DrUm78 reopened this Sep 14, 2024
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

2 participants