pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/49158: cross/avr-gcc build problem



>Number:         49158
>Category:       pkg
>Synopsis:       cross/avr-gcc build problem
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 28 15:45:00 +0000 2014
>Originator:     Edgar Fuß
>Release:        pkgsrc-2014Q2
>Organization:
Mathematisches Institut der Uni Bonn
>Description:
        Building cross/avr-gcc on Mac OS X 10.6.8 fails on libgcc.
        Apperantly, /usr/include/stddef.h is pulled in where I guess some
        target-relevant file should be instead:

# If this is the top-level multilib, build all the other
# multilibs.
[...]/cross/avr-gcc/work/obj/./gcc/xgcc -B[...]/cross/avr-gcc/work/obj/./gcc/ 
-B/usr/pkg/avr/bin/ -B/usr/pkg/avr/lib/ -isystem /usr/pkg/avr/include -isystem 
/usr/pkg/avr/sys-include    -g -I/usr/pkg/include -I/usr/include -mmcu=avr25 
-O2  -g -I/usr/pkg/include -I/usr/include -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  
-W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes 
-Wold-style-definition  -isystem ./include  -DDF=SF -Dinhibit_libc 
-mcall-prologues -Os -g  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc  
-I. -I. -I../../.././gcc -I[...]/cross/avr-gcc/work/gcc-4.5.3/libgcc 
-I[...]/cross/avr-gcc/work/gcc-4.5.3/libgcc/. 
-I[...]/cross/avr-gcc/work/gcc-4.5.3/libgcc/../gcc 
-I[...]/cross/avr-gcc/work/gcc-4.5.3/libgcc/../include  -DHAVE_CC_TLS 
-DUSE_EMUTLS -o _absvhi2.o -MT _absvhi2.o -MD -MP -MF _absvhi2.dep -DL_absvsi2 
-c [...]/cross/avr-gcc/work/gcc-4.5.3/libgcc/../gcc/libgcc2.c  \
                -DLIBGCC2_UNITS_PER_WORD=2
In file included from /usr/include/sys/_types.h:32:0,
                 from /usr/include/_types.h:27,
                 from /usr/include/stddef.h:69,
                 from 
[...]/cross/avr-gcc/work/gcc-4.5.3/libgcc/../gcc/tsystem.h:44,
                 from 
[...]/cross/avr-gcc/work/gcc-4.5.3/libgcc/../gcc/libgcc2.c:29:
/usr/include/sys/cdefs.h:507:4: error: #error Unknown architecture

        The relevant part of /usr/include/sys/cdefs.h reads
#if defined(__arm__)
[...]
#elif defined(__ppc__)
[...]
#elif defined(__i386__) || defined(__ppc64__) || defined(__x86_64__)
[...]
#else
#  error Unknown architecture
#endif


>How-To-Repeat:
        cd cross/avr && make build
>Fix:
        



Home | Main Index | Thread Index | Old Index