pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lang/gcc48 troubles
there's been trouble with using GCC_REQD+=4.8 and such in practice on
e.g. netbsd 6.1.5. (currently, www/firefox cannot be buitl because of
similar issues).
I have built using netbsd 6.1.5 in a chroot and have a small test case
which may work.
#define _FORTIFY_SOURCE 2
#include <stdio.h>
void main() { printf("Hello!"); }
normal base gcc (4.5.3) can compile this fine, however:
# /usr/pkg/gcc48/bin/gcc conftest.c
In file included from /usr/pkg/gcc48/lib/gcc/x86_64--netbsd/4.8.4/include-fixed/stdio.h:536:0,
from conftest.c:2:
/usr/pkg/gcc48/lib/gcc/x86_64--netbsd/4.8.4/include/ssp/stdio.h:38:17: fatal error: ssp.h: No such file or directory
#include <ssp.h>
^
compilation terminated.
this is because ssp/stdio.h normally includes <ssp/ssp.h>, not <ssp.h>.
there is an /usr/pkg/gcc48/lib/gcc/x86_64--netbsd/4.8.4/include-fixed/ssp/stdio.h,
whcih correctly includes #include <ssp/ssh.h>, but I can't "just" use
it:
include path:
# /usr/pkg/gcc48/bin/gcc -Wp,-v conftest.c
ignoring nonexistent directory "/usr/pkg/gcc48/lib/gcc/x86_64--netbsd/4.8.4/../../../../x86_64--netbsd/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/pkg/gcc48/lib/gcc/x86_64--netbsd/4.8.4/include
/usr/pkg/gcc48/include
/usr/pkg/gcc48/lib/gcc/x86_64--netbsd/4.8.4/include-fixed
/usr/include
if I try to not include with the bogus .../4.8.4/include, I get:
# /usr/pkg/gcc48/bin/gcc -nostdinc -I/usr/pkg/gcc48/include -I/usr/pkg/gcc48/lib/gcc/x86_64--netbsd/4.8.4/include-fixed -I/usr/include conftest.c
In file included from conftest.c:2:0:
/usr/pkg/gcc48/lib/gcc/x86_64--netbsd/4.8.4/include-fixed/stdio.h:277:59: error: unknown type name ‘__gnuc_va_list’
int vfprintf(FILE * __restrict, const char * __restrict, __gnuc_va_list)
^
...
any ideas?
Home |
Main Index |
Thread Index |
Old Index