Skip to content

Instantly share code, notes, and snippets.

@fennectech
Created January 14, 2020 02:26
Show Gist options
  • Save fennectech/69fc12b6e9a41411916577832b426c10 to your computer and use it in GitHub Desktop.
Save fennectech/69fc12b6e9a41411916577832b426c10 to your computer and use it in GitHub Desktop.
{20:25} Mon Jan 13
[fennectech@jasper ~/switch-dev/nxsh]$ make sys
make[1]: Entering directory '/home/fennectech/switch-dev/nxsh'
make[1]: Leaving directory '/home/fennectech/switch-dev/nxsh'
make[1]: Entering directory '/home/fennectech/switch-dev/nxsh'
echo.c
aarch64-none-elf-gcc -MMD -MP -MF /home/fennectech/switch-dev/nxsh/build/echo.d -g -Wall -O2 -ffunction-sections -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE -I/home/fennectech/switch-dev/nxsh/include -I/opt/devkitpro/portlibs/switch/include -I/opt/devkitpro/libnx/include -I/home/fennectech/switch-dev/nxsh/build -D__SWITCH__ -D__SYS__ -c /home/fennectech/switch-dev/nxsh/source/echo.c -o echo.o
log.c
aarch64-none-elf-gcc -MMD -MP -MF /home/fennectech/switch-dev/nxsh/build/log.d -g -Wall -O2 -ffunction-sections -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE -I/home/fennectech/switch-dev/nxsh/include -I/opt/devkitpro/portlibs/switch/include -I/opt/devkitpro/libnx/include -I/home/fennectech/switch-dev/nxsh/build -D__SWITCH__ -D__SYS__ -c /home/fennectech/switch-dev/nxsh/source/log.c -o log.o
acc.c
aarch64-none-elf-gcc -MMD -MP -MF /home/fennectech/switch-dev/nxsh/build/acc.d -g -Wall -O2 -ffunction-sections -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE -I/home/fennectech/switch-dev/nxsh/include -I/opt/devkitpro/portlibs/switch/include -I/opt/devkitpro/libnx/include -I/home/fennectech/switch-dev/nxsh/build -D__SWITCH__ -D__SYS__ -c /home/fennectech/switch-dev/nxsh/source/acc.c -o acc.o
/home/fennectech/switch-dev/nxsh/source/acc.c: In function 'nxsh_acc':
/home/fennectech/switch-dev/nxsh/source/acc.c:19:9: error: too few arguments to function 'accountInitialize'
19 | accountInitialize();
| ^~~~~~~~~~~~~~~~~
In file included from /opt/devkitpro/libnx/include/switch/services/fs.h:13,
from /opt/devkitpro/libnx/include/switch.h:49,
from /home/fennectech/switch-dev/nxsh/include/nxsh.h:3,
from /home/fennectech/switch-dev/nxsh/source/acc.c:4:
/opt/devkitpro/libnx/include/switch/services/../services/acc.h:52:8: note: declared here
52 | Result accountInitialize(AccountServiceType service_type);
| ^~~~~~~~~~~~~~~~~
/home/fennectech/switch-dev/nxsh/source/acc.c:26:29: warning: passing argument 1 of 'accountListAllUsers' from incompatible pointer type [-Wincompatible-pointer-types]
26 | accountListAllUsers(account_ids, U64_MAX, &total);
| ^~~~~~~~~~~
| |
| u128 * {aka __int128 unsigned *}
In file included from /opt/devkitpro/libnx/include/switch/services/fs.h:13,
from /opt/devkitpro/libnx/include/switch.h:49,
from /home/fennectech/switch-dev/nxsh/include/nxsh.h:3,
from /home/fennectech/switch-dev/nxsh/source/acc.c:4:
/opt/devkitpro/libnx/include/switch/services/../services/acc.h:69:40: note: expected 'AccountUid *' {aka 'struct <anonymous> *'} but argument is of type 'u128 *' {aka '__int128 unsigned *'}
69 | Result accountListAllUsers(AccountUid* uids, s32 max_uids, s32 *actual_total);
| ~~~~~~~~~~~~^~~~
/home/fennectech/switch-dev/nxsh/source/acc.c:26:42: warning: overflow in conversion from 'long unsigned int' to 's32' {aka 'int'} changes value from '18446744073709551615' to '-1' [-Woverflow]
26 | accountListAllUsers(account_ids, U64_MAX, &total);
| ^~~~~~~
/home/fennectech/switch-dev/nxsh/source/acc.c:26:51: warning: passing argument 3 of 'accountListAllUsers' from incompatible pointer type [-Wincompatible-pointer-types]
26 | accountListAllUsers(account_ids, U64_MAX, &total);
| ^~~~~~
| |
| size_t * {aka long unsigned int *}
In file included from /opt/devkitpro/libnx/include/switch/services/fs.h:13,
from /opt/devkitpro/libnx/include/switch.h:49,
from /home/fennectech/switch-dev/nxsh/include/nxsh.h:3,
from /home/fennectech/switch-dev/nxsh/source/acc.c:4:
/opt/devkitpro/libnx/include/switch/services/../services/acc.h:69:65: note: expected 's32 *' {aka 'int *'} but argument is of type 'size_t *' {aka 'long unsigned int *'}
69 | Result accountListAllUsers(AccountUid* uids, s32 max_uids, s32 *actual_total);
| ~~~~~^~~~~~~~~~~~
/home/fennectech/switch-dev/nxsh/source/acc.c:33:52: error: incompatible type for argument 2 of 'accountGetProfile'
33 | accountGetProfile(&profile, account_ids[i]);
| ~~~~~~~~~~~^~~
| |
| u128 {aka __int128 unsigned}
In file included from /opt/devkitpro/libnx/include/switch/services/fs.h:13,
from /opt/devkitpro/libnx/include/switch.h:49,
from /home/fennectech/switch-dev/nxsh/include/nxsh.h:3,
from /home/fennectech/switch-dev/nxsh/source/acc.c:4:
/opt/devkitpro/libnx/include/switch/services/../services/acc.h:75:58: note: expected 'AccountUid' {aka 'struct <anonymous>'} but argument is of type 'u128' {aka '__int128 unsigned'}
75 | Result accountGetProfile(AccountProfile* out, AccountUid uid);
| ~~~~~~~~~~~^~~
/home/fennectech/switch-dev/nxsh/source/acc.c:40:55: error: 'AccountProfileBase' {aka 'struct <anonymous>'} has no member named 'username'
40 | sprintf(entry, ACC_ENTRY, id, profile_base.username);
| ^
/home/fennectech/switch-dev/nxsh/source/acc.c:50:9: error: too few arguments to function 'accountInitialize'
50 | accountInitialize();
| ^~~~~~~~~~~~~~~~~
In file included from /opt/devkitpro/libnx/include/switch/services/fs.h:13,
from /opt/devkitpro/libnx/include/switch.h:49,
from /home/fennectech/switch-dev/nxsh/include/nxsh.h:3,
from /home/fennectech/switch-dev/nxsh/source/acc.c:4:
/opt/devkitpro/libnx/include/switch/services/../services/acc.h:52:8: note: declared here
52 | Result accountInitialize(AccountServiceType service_type);
| ^~~~~~~~~~~~~~~~~
/home/fennectech/switch-dev/nxsh/source/acc.c:57:29: warning: passing argument 1 of 'accountListAllUsers' from incompatible pointer type [-Wincompatible-pointer-types]
57 | accountListAllUsers(account_ids, U64_MAX, &total);
| ^~~~~~~~~~~
| |
| u128 * {aka __int128 unsigned *}
In file included from /opt/devkitpro/libnx/include/switch/services/fs.h:13,
from /opt/devkitpro/libnx/include/switch.h:49,
from /home/fennectech/switch-dev/nxsh/include/nxsh.h:3,
from /home/fennectech/switch-dev/nxsh/source/acc.c:4:
/opt/devkitpro/libnx/include/switch/services/../services/acc.h:69:40: note: expected 'AccountUid *' {aka 'struct <anonymous> *'} but argument is of type 'u128 *' {aka '__int128 unsigned *'}
69 | Result accountListAllUsers(AccountUid* uids, s32 max_uids, s32 *actual_total);
| ~~~~~~~~~~~~^~~~
/home/fennectech/switch-dev/nxsh/source/acc.c:57:42: warning: overflow in conversion from 'long unsigned int' to 's32' {aka 'int'} changes value from '18446744073709551615' to '-1' [-Woverflow]
57 | accountListAllUsers(account_ids, U64_MAX, &total);
| ^~~~~~~
/home/fennectech/switch-dev/nxsh/source/acc.c:57:51: warning: passing argument 3 of 'accountListAllUsers' from incompatible pointer type [-Wincompatible-pointer-types]
57 | accountListAllUsers(account_ids, U64_MAX, &total);
| ^~~~~~
| |
| size_t * {aka long unsigned int *}
In file included from /opt/devkitpro/libnx/include/switch/services/fs.h:13,
from /opt/devkitpro/libnx/include/switch.h:49,
from /home/fennectech/switch-dev/nxsh/include/nxsh.h:3,
from /home/fennectech/switch-dev/nxsh/source/acc.c:4:
/opt/devkitpro/libnx/include/switch/services/../services/acc.h:69:65: note: expected 's32 *' {aka 'int *'} but argument is of type 'size_t *' {aka 'long unsigned int *'}
69 | Result accountListAllUsers(AccountUid* uids, s32 max_uids, s32 *actual_total);
| ~~~~~^~~~~~~~~~~~
/home/fennectech/switch-dev/nxsh/source/acc.c:62:52: error: incompatible type for argument 2 of 'accountGetProfile'
62 | accountGetProfile(&profile, account_ids[i]);
| ~~~~~~~~~~~^~~
| |
| u128 {aka __int128 unsigned}
In file included from /opt/devkitpro/libnx/include/switch/services/fs.h:13,
from /opt/devkitpro/libnx/include/switch.h:49,
from /home/fennectech/switch-dev/nxsh/include/nxsh.h:3,
from /home/fennectech/switch-dev/nxsh/source/acc.c:4:
/opt/devkitpro/libnx/include/switch/services/../services/acc.h:75:58: note: expected 'AccountUid' {aka 'struct <anonymous>'} but argument is of type 'u128' {aka '__int128 unsigned'}
75 | Result accountGetProfile(AccountProfile* out, AccountUid uid);
| ~~~~~~~~~~~^~~
/home/fennectech/switch-dev/nxsh/source/acc.c:67:36: error: 'AccountProfileBase' {aka 'struct <anonymous>'} has no member named 'username'
67 | if (strcmp(profile_base.username, argv[1]) == 0) {
| ^
/home/fennectech/switch-dev/nxsh/source/acc.c:72:57: error: 'AccountProfileBase' {aka 'struct <anonymous>'} has no member named 'username'
72 | sprintf(out, ACC_ENTRY, id, profile_base.username);
| ^
make[2]: *** [/opt/devkitpro/devkitA64/base_rules:19: acc.o] Error 1
make[1]: *** [Makefile_sys:136: build] Error 2
make[1]: Leaving directory '/home/fennectech/switch-dev/nxsh'
make: *** [Makefile:11: sys] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment