Re: compiler confusion: gcc cannot be located and causes compiler errors

2013-03-22 Thread Beeblebrox
I seem to have found the solution to the problem: lang/gcc needs to have
symlinks in /usr/bin.
Create these:
# ln -s /usr/local/bin/gcc46 /usr/bin/gcc
# ln -s /usr/local/bin/g++46 /usr/bin/g++

This way most, gcc not found errors should disappear.
With many thanks to René Ladan



--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/compiler-confusion-gcc-cannot-be-located-and-causes-compiler-errors-tp5797633p5798199.html
Sent from the freebsd-current mailing list archive at Nabble.com.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

compiler confusion: gcc cannot be located and causes compiler errors

2013-03-21 Thread Beeblebrox
I have run into this error in several different places, and it seems like a
problem with one of the base tools. lang/gcc has been installed on the
system from ports.

1. If I try to build emulators/kqemu-kmod-devel, I get:
===   FreeBSD 10 autotools fix applied to
/usr/obj/asp/ports/emulators/kqemu-kmod-devel/work/kqemu-1.4.0pre1/configure
Source path  
/usr/obj/asp/ports/emulators/kqemu-kmod-devel/work/kqemu-1.4.0pre1
C compilercc
Host C compiler   gcc
make  gmake
host CPU  x86_64
===  Building for kqemu-kmod-devel-1.4.0.p1_5
@ - /asp/src/sys
machine - /asp/src/sys/amd64/include
x86 - /asp/src/sys/x86/include
gcc -Wall -O2 -Werror -g -D__KERNEL__ -I.. -o genoffsets genoffsets.c
gmake: gcc: Command not found
gmake: *** [genoffsets] Error 127
*** [do-build] Error code 2

2. Another example of the issue:
http://freebsd.1045724.n5.nabble.com/How-can-I-switch-compiler-from-clang-to-gcc46-td5796040.html#a5796083

My /etc/make.conf below (most flags are disabled for debug):
#WITH_CCACHE_BUILD=yes
#FORCE_MAKE_JOBS=yes
MAKE_JOBS_NUMBER=9
WITH_CPUFLAGS=yes
BUILD_OPTIMIZED=yes
BATCH=yes
#CC=gcc46
#CXX=g++46
#CPP=cpp46
#USE_GCC=any
GCC_DEFAULT_VERSION=4.6+
#CC:=${CC:C,^gcc46,/usr/local/libexec/ccache/world/gcc46,1}
#CXX:=${CXX:C,^g\+\+\46,/usr/local/libexec/ccache/world/g++46,1}
#.include /etc/make/portset.conf
#.include /etc/make/portbreak.conf




--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/compiler-confusion-gcc-cannot-be-located-and-causes-compiler-errors-tp5797633.html
Sent from the freebsd-current mailing list archive at Nabble.com.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: compiler confusion: gcc cannot be located and causes compiler errors

2013-03-21 Thread Beeblebrox
Another example of the problem: from compile of www/chromium:

===   FreeBSD 10 autotools fix applied to
/usr/obj/asp/ports/www/chromium/work/chromium-courgette-redacted-25.0.1364.172/third_party/WebKit/Source/autotools/acinclude.m4
cd
/usr/obj/asp/ports/www/chromium/work/chromium-courgette-redacted-25.0.1364.172
  GYP_DEFINES=use_cups=1  use_system_yasm=1  use_system_libxml=1 
use_system_ffmpeg=0  use_system_libusb=1  use_system_libevent=1 
use_system_libvpx=1  linux_strip_binary=1  linux_use_tcmalloc=0 
linux_use_heapchecker=0  clang_use_chrome_plugins=0  disable_nacl=1 
enable_webrtc=0  enable_openmax=1  enable_one_click_signin=1 
no_gc_sections=1  os_ver=130  prefix_dir=/usr/local  python_ver=2.7
ffmpeg_branding=Chrome proprietary_codecs=1 use_pulseaudio=1 gcc_version=46
/usr/local/bin/python2.7  ./build/gyp_chromium chrome/chrome.gyp --depth .
Updating projects from gyp files...
g++: not found
compiler_version.py failed to execute: g++ -dumpversion
Command 'g++ -dumpversion' returned non-zero exit status 127
gyp: Call to 'python ../build/compiler_version.py' returned exit status 1.
while trying to load chrome/chrome.gyp
*** [do-configure] Error code 1




--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/compiler-confusion-gcc-cannot-be-located-and-causes-compiler-errors-tp5797633p5797872.html
Sent from the freebsd-current mailing list archive at Nabble.com.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org