From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.159.49.87 with SMTP id n23mr5723003uab.21.1475495332724; Mon, 03 Oct 2016 04:48:52 -0700 (PDT) X-Received: by 10.157.51.3 with SMTP id f3mr1344083otc.4.1475495332512; Mon, 03 Oct 2016 04:48:52 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!f6no604619qtd.0!news-out.google.com!203ni5590itk.0!nntp.google.com!l13no1767560itl.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 3 Oct 2016 04:48:52 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a02:c7d:3cda:7600:932b:b705:6315:5a80; posting-account=L2-UcQkAAAAfd_BqbeNHs3XeM0jTXloS NNTP-Posting-Host: 2a02:c7d:3cda:7600:932b:b705:6315:5a80 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <6895090b-92f8-4942-bdb3-62090962d9de@googlegroups.com> Subject: gprbuild, Mac OS X and frameworks? From: Lucretia Injection-Date: Mon, 03 Oct 2016 11:48:52 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:31973 Date: 2016-10-03T04:48:52-07:00 List-Id: Hi, I downloaded and installed the Mac OS X gnat-6.1.0 and I'm attempting to bu= ild my sdlada lib as a test. I've installed SDL2 framework to /Library/Fram= eworks/SDL2.framework, but no matter what I pass to gprbuild, it won't find= the SDL.h header. $ gprbuild -p -gnat2012 -XSDL_BUILD=3Dstatic -XSDL_MODE=3Ddebug -XSDL_PLATF= ORM=3Dmacosx -Psdlada.gpr -cargs:c -framework SDL2 -v =20 Compile [C] version.c Using built-in specs. COLLECT_GCC=3D/opt/gcc-6.1.0/bin/gcc Target: x86_64-apple-darwin15 Configured with: ../gcc-6.1.0/configure --prefix=3D/opt/gcc-6.1.0 --without= -libiconv-prefix --disable-libmudflap --disable-libstdcxx-pch --disable-lib= sanitizer --disable-libcc1 --disable-libcilkrts --disable-multilib --disabl= e-nls --enable-languages=3Dc,c++,ada,fortran,objc,obj-c++ --host=3Dx86_64-a= pple-darwin15 --target=3Dx86_64-apple-darwin15 --build=3Dx86_64-apple-darwi= n15 --with-boot-ldflags=3D'-Wl,-headerpad_max_install_names -shared-libgcc' Thread model: posix gcc version 6.1.0 (GCC)=20 COLLECT_GCC_OPTIONS=3D'-c' '-ffunction-sections' '-fdata-sections' '-O0' '-= g' '-v' '-MMD' '-MF' 'version.d' '-I' '/users/laguest/src/sdlada/src' '-I' = '/users/laguest/src/sdlada/src/macosx' '-I' '/users/laguest/src/sdlada/buil= d/gnat/gen/src' '-mmacosx-version-min=3D10.11.6' '-mtune=3Dcore2' /opt/gcc-6.1.0/libexec/gcc/x86_64-apple-darwin15/6.1.0/cc1 -quiet -v -I /u= sers/laguest/src/sdlada/src -I /users/laguest/src/sdlada/src/macosx -I /use= rs/laguest/src/sdlada/build/gnat/gen/src -MMD version.d -MF version.d -D__D= YNAMIC__ /Users/laguest/src/sdlada/src/version.c -fPIC -feliminate-unused-d= ebug-symbols -quiet -dumpbase version.c -mmacosx-version-min=3D10.11.6 -mtu= ne=3Dcore2 -auxbase version -g -O0 -version -ffunction-sections -fdata-sect= ions -o /var/folders/kz/_lq5qlt93n7d7nfw9k_yq3b00000gn/T//ccU10dTo.s GNU C11 (GCC) version 6.1.0 (x86_64-apple-darwin15) compiled by GNU C version 6.1.0, GMP version 5.1.3, MPFR version 3.1.2, MP= C version 1.0.2, isl version none GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D131= 072 ignoring nonexistent directory "/usr/local/include" ignoring nonexistent directory "/opt/gcc-6.1.0/lib/gcc/x86_64-apple-darwin1= 5/6.1.0/../../../../x86_64-apple-darwin15/include" ignoring nonexistent directory "/usr/include" #include "..." search starts here: #include <...> search starts here: /users/laguest/src/sdlada/src /users/laguest/src/sdlada/src/macosx /users/laguest/src/sdlada/build/gnat/gen/src /opt/gcc-6.1.0/lib/gcc/x86_64-apple-darwin15/6.1.0/include /opt/gcc-6.1.0/include /opt/gcc-6.1.0/lib/gcc/x86_64-apple-darwin15/6.1.0/include-fixed /System/Library/Frameworks /Library/Frameworks End of search list. GNU C11 (GCC) version 6.1.0 (x86_64-apple-darwin15) compiled by GNU C version 6.1.0, GMP version 5.1.3, MPFR version 3.1.2, MP= C version 1.0.2, isl version none GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D131= 072 Compiler executable checksum: 3e35dcc037d0ffc84783f6ab58aa080e /Users/laguest/src/sdlada/src/version.c:23:17: fatal error: SDL.h: No such = file or directory #include ^ compilation terminated. gprbuild: *** compilation phase failed If I try -F SDL2 is says: GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D131= 072 ignoring nonexistent directory "/usr/local/include" ignoring nonexistent directory "/opt/gcc-6.1.0/lib/gcc/x86_64-apple-darwin1= 5/6.1.0/../../../../x86_64-apple-darwin15/include" ignoring nonexistent directory "/usr/include" ignoring nonexistent directory "SDL2" #include "..." search starts here: and I get the same issue as the first if I use -iframework SDL2. Any ideas? Thanks, Luke.