Bug 159001 - devel/cross-gcc: 4.5.2 libiberty fails on missing sys/sysctl.h
Summary: devel/cross-gcc: 4.5.2 libiberty fails on missing sys/sysctl.h
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Michael Scheidell
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-17 20:50 UTC by Marcin Cieślak
Modified: 2012-06-09 13:10 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Cieślak 2011-07-17 20:50:08 UTC
/usr/obj/usr/ports/devel/cross-gcc/work/build/./gcc/xgcc -B/usr/obj/usr/ports/devel/cross-gcc/work/build/./gcc/ -nostdinc -B/usr/obj/usr/ports/devel/cross-gcc/work/build/arm-elf/newlib/ -isystem /usr/obj/usr/ports/devel/cross-gcc/work/build/arm-elf/newlib/targ-include -isystem /usr/obj/usr/ports/devel/cross-gcc/work/gcc-4.5.2/newlib/libc/include -B/usr/obj/usr/ports/devel/cross-gcc/work/build/arm-elf/libgloss/arm -L/usr/obj/usr/ports/devel/cross-gcc/work/build/arm-elf/libgloss/libnosys -L/usr/obj/usr/ports/devel/cross-gcc/work/gcc-4.5.2/libgloss/arm -B/usr/local/arm-elf/bin/ -B/usr/local/arm-elf/lib/ -isystem /usr/obj/usr/ports/devel/cross-gcc/work/build/./gcc -isystem /usr/local/arm-elf/include -isystem /usr/local/arm-elf/sys-include    -c -DHAVE_CONFIG_H -g -O2 -pipe -fno-strict-aliasing  -I. -I../.././../gcc-4.5.2/libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../.././../gcc-4.5.2/libiberty/physmem.c -o physmem.o
../.././../gcc-4.5.2/libiberty/physmem.c:52:25: fatal error: sys/sysctl.h: No such file or directory
compilation terminated.

Fix: 

A quick fix is to remove 

#include <sys/sysctl.h> 

from the offending source file, so probably some autoconf
magic needs to be fixed not to produce HAVE_SYS_SYSCTL_H
How-To-Repeat: 
make TGTARCH=arm TGTAPI=elf

or

make TGTARCH=powerpc TGTABI=elf
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2011-07-17 20:50:18 UTC
Responsible Changed
From-To: freebsd-ports-bugs->stas

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Thomas Abthorpe freebsd_committer freebsd_triage 2011-11-05 04:12:59 UTC
Responsible Changed
From-To: stas->freebsd-ports-bugs

- back to the heap
Comment 3 Michael Scheidell freebsd_committer freebsd_triage 2012-06-01 12:02:00 UTC
Responsible Changed
From-To: freebsd-ports-bugs->scheidell

I'll take it.
Comment 4 Michael Scheidell freebsd_committer freebsd_triage 2012-06-08 21:15:38 UTC
i am marking this one broken, with a 90 day removal date.
way too many things wrong with it.

bin/ld' 'LIPO=lipo' 'NM=nm' 'OBJDUMP=objdump' 'RANLIB=ranlib' 
'STRIP=strip' 'WINDRES=windres' 'WINDMC=windmc' \
                 CFLAGS="-g -O2 -fno-strict-aliasing -pipe ${flags}" \
                 CCASFLAGS=" ${flags}" \
                 FCFLAGS=" ${flags}" \
                 FFLAGS=" ${flags}" \
                 ADAFLAGS=" ${flags}" \
                 prefix="/usr/local" \
                 exec_prefix="/usr/local" \
                 GCJFLAGS=" ${flags}" \
                 CXXFLAGS="-g -O2 -fno-strict-aliasing -pipe ${flags}" \
                 LIBCFLAGS="-g -O2 -fno-strict-aliasing -pipe ${flags}" \
                 LIBCXXFLAGS="-g -O2 -fno-strict-aliasing -pipe 
-fno-implicit-templates ${flags}" \
                 LDFLAGS=" ${flags}" \
                 MULTIFLAGS="${flags}" \
                 DESTDIR="" \
                 INSTALL="/usr/bin/install -c -o root -g wheel" \
                 INSTALL_DATA="install  -o root -g wheel -m 444" \
                 INSTALL_PROGRAM="install   -o root -g wheel -m 555" \
                 INSTALL_SCRIPT="install  -o root -g wheel -m 555" \
                 all); then \
           true; \
         else \
           exit 1; \
         fi; \
           else true; \
           fi; \
         fi; \
       done; \
     fi
sed: 1: "s/[^=][^=]*=XFOO=/
": unescaped newline inside substitute pattern
sed: 1: "s/[^=][^=]*=XFOO=/
": unescaped newline inside substitute pattern
sed: 1: "s/[^=][^=]*=XFOO=/
": unescaped newline inside substitute pattern
gmake: Entering an unknown directory
gmake: *** empty string invalid as file name.  Stop.
gmake: Leaving an unknown directory
gmake[4]: *** [multi-do] Error 1
gmake[4]: Leaving directory 
`/usr/home/scheidell/ports/ports/devel/cross-gcc/work/build/arm-elf/libssp'
gmake[3]: *** [all-multi] Error 2

-- 
Michael Scheidell, CTO
 >*| * SECNAP Network Security Corporation
d: +1.561.948.2259
w: http://people.freebsd.org/~scheidell
Comment 5 dfilter service freebsd_committer freebsd_triage 2012-06-09 13:04:11 UTC
scheidell    2012-06-09 12:04:02 UTC

  FreeBSD ports repository

  Modified files:
    devel/cross-gcc      Makefile 
  Log:
  - Unbreak build, build broken for 11 months+
  
  PR:             ports/159001
  Submitted by:   Marcin Cieslak <saper@saper.info>
  Reviewed by:    scheidell@ (me)
  Approved by:    dancing elves (maintainer)
  
  Revision  Changes    Path
  1.21      +6 -1      ports/devel/cross-gcc/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 6 Michael Scheidell freebsd_committer freebsd_triage 2012-06-09 13:04:24 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!