devkitPro / installer

383 stars 40 forks source link

Missing standard C headers #6

Closed tim-rex closed 6 years ago

tim-rex commented 6 years ago

Installed the 'switch-dev' group on OSX via dkp-pacman, all looks good - but seems to be missing standard C include headers

Attempting to build the samples complains about missing string.h

~/test/templates/application/build$ make
main.c
aarch64-none-elf-gcc -MMD -MP -MF /Users/timk/test/templates/application/build/main.d -g -Wall -O2 -ffunction-sections -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE  -I/Users/timk/test/templates/application/include -I/opt/devkitpro//portlibs/switch/include -I/opt/devkitpro//libnx/include -I/Users/timk/test/templates/application/build -D__SWITCH__ -c /Users/timk/test/templates/application/source/main.c -o main.o
/Users/timk/test/templates/application/source/main.c:1:10: fatal error: string.h: No such file or directory
 #include <string.h>
          ^~~~~~~~~~
compilation terminated.

And indeed.. this yields nothing

find /opt/devkitpro -name "string.h"

The following packages are installed

dkp-libs libnx 1.2.0-1 [installed]
dkp-libs switch-examples 20180517-1 [installed]
dkp-osx devkitA64 r9-1 [installed]
dkp-osx devkitpro-keyring r1.787e015-2 [installed]
dkp-osx general-tools 1.0.2-2 [installed]
dkp-osx switch-tools 1.4.0-3 [installed]

I don't see any other relevant packages... and I've set the following env vars

DEVKITA64=/opt/devkitpro/devkitA64/
DEVKITPRO=/opt/devkitpro/

What am I missing here?

WinterMute commented 6 years ago

Slight hiccup packaging devkitA64 for OSX. Fixed now.

use sudo dkp-pacman -Syu to update & all should be well.

This isn't really the right place for this issue either but the toolchains don't have their own repo. The binaries are built from https://github.com/devkitpro/buildscripts so perhaps there or a post in the forums @ https://devkitpro.org

tim-rex commented 6 years ago

Nice one, that's looking good now. Thanks very much.