#30377 closed defect (duplicate)
boost-1.47 fails to build when go is installed
Reported by: | ltreugene@… | Owned by: | adfernandes (Andrew Fernandes) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.0 |
Keywords: | Cc: | martin.eisenhardt@…, gamperl@…, susheel.varma@…, ryandesign (Ryan Carsten Schmidt) | |
Port: | boost |
Description (last modified by jmroot (Joshua Root))
Macports was selfupdate to 2.0.0. Before selfupdate, the port-tree was clean with "clean".
From the main.log
:notice:configure ---> Configuring boost :debug:configure Using compiler 'Mac OS X llvm-gcc 4.2' :debug:configure Executing org.macports.configure (boost) :debug:configure Environment: CPATH='/opt/local/include' CFLAGS='-pipe -O2 -arch x86_64' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-pipe -O2 -arch x86_64' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.6' CXX='/xcode4.0.2/usr/bin/llvm-g++-4.2' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_boost/boost/work/.CC_PRINT_OPTIONS' F90FLAGS='-pipe -O2 -m64' LDFLAGS='-L/opt/local/lib -arch x86_64' OBJC='/xcode4.0.2/usr/bin/llvm-gcc-4.2' FCFLAGS='-pipe -O2 -m64' INSTALL='/usr/bin/install -c' OBJCFLAGS='-pipe -O2 -arch x86_64' FFLAGS='-pipe -O2 -m64' CC_PRINT_OPTIONS='YES' CC='/xcode4.0.2/usr/bin/llvm-gcc-4.2' :debug:configure Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_boost/boost/work/boost_1_47_0" && ./bootstrap.sh --prefix=/opt/local --without-libraries=python --without-libraries=mpi --with-icu=/opt/local' :debug:configure Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_boost/boost/work/boost_1_47_0" && ./bootstrap.sh --prefix=/opt/local --without-libraries=python --without-libraries=mpi --with-icu=/opt/local :info:configure -n Building Boost.Build engine with toolset darwin... :info:configure :info:configure Failed to build Boost.Build build engine :info:configure Consult 'bootstrap.log' for more details :info:configure shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_boost/boost/work/boost_1_47_0" && ./bootstrap.sh --prefix=/opt/local --without-libraries=python --without-libraries=mpi --with-icu=/opt/local " returned error 1 :error:configure Target org.macports.configure returned: configure failure: shell command failed (see log for details) :debug:configure Backtrace: configure failure: shell command failed (see log for details) while executing "$procedure $targetname" :info:configure Warning: the following items did not execute (for boost): org.macports.install org.macports.configure org.macports.build org.macports.destroot :notice:configure Log for boost is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_boost/boost/main.log
Attachments (7)
Change History (26)
Changed 13 years ago by ltreugene@…
comment:1 Changed 13 years ago by jmroot (Joshua Root)
Description: | modified (diff) |
---|---|
Owner: | changed from macports-tickets@… to adfernandes@… |
Port: | boost added |
comment:2 Changed 13 years ago by adfernandes (Andrew Fernandes)
Can you attach the bootstrap.log
file?
It should be located in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_boost/boost/work/boost_1_47_0
, I think.
I also noticed that you have XCode
installed at /xcode4.0.2/
. This should not be a problem, but perhaps boost
is expecting it to live in /Developer/
.
It would also help to attach MacPorts' main.log
file using sudo port -dv install boost
to enable more debugging output. Thanks!
Changed 13 years ago by ltreugene@…
Attachment: | bootstrap.log added |
---|
Changed 13 years ago by ltreugene@…
Attachment: | main.2.log added |
---|
Changed 13 years ago by ltreugene@…
Attachment: | main.3.log added |
---|
comment:3 Changed 13 years ago by martin.eisenhardt@…
I can confirm the problem, same thing over here.
comment:4 Changed 13 years ago by adfernandes (Andrew Fernandes)
Aha! I think I see the error. According to the attached logs, your default C compiler is llvm-gcc-4.2, correct?
This compiler is not supported by boost
. You can't compile boost without a very recent version of llvm; currently, I do not believe that apple ships a compiler that can compile boost.
Have you used gcc-select to make llvm the default compiler?
How are you compiling boost? Is it choosing llvm itself?
Thanks, -Andrew.
comment:5 Changed 13 years ago by ltreugene@…
Hi,
I did not use gcc_select so far to set the llvm as default compiler. Due to I need to test/debug iphone app, I have XCode 4.2 and I think Apple uses llvm-gcc-4.2 as its compiler.
I tried to compile booth due to MongoDB has dependency on it.
comment:6 follow-up: 7 Changed 13 years ago by martin.eisenhardt@…
I am not using LLVM and get the same error - minus the LLVM-related lines in the log. The relevant portion in my log file reads as follows:
:debug:configure configure phase started at Fri Aug 5 13:14:54 CEST 2011 :notice:configure ---> Configuring boost :debug:configure Using compiler 'Mac OS X gcc 4.2' :debug:configure Executing org.macports.configure (boost)
So, no LLVM, but still the same error.
comment:7 Changed 13 years ago by adfernandes (Andrew Fernandes)
So, no LLVM, but still the same error.
Can you lease attach the booststrap.log
file? Not the MacPorts' main.log
; the main.log
file is created by MacPorts and it probably thinks it is using gcc
, but the bootstrap.log
file will say what boot
is actually using.
Thanks!
Changed 13 years ago by martin.eisenhardt@…
Attachment: | bootstrap.2.log added |
---|
comment:8 Changed 13 years ago by martin.eisenhardt@…
Just attached my bootstrap.log - still looks like it is using gcc, but I cannot make much of the errors it shows.
comment:11 Changed 13 years ago by adfernandes (Andrew Fernandes)
Hmm... I've been playing with this, and I cannot get boost
to fail it's install.
One thing I notice about the booststrap.log
errors that have been attached; they use "smart quotes" in a way that makes me wonder if there are locale issues at play, UTF-8 encodings versus Latin1 or so on.
Anyone that wants to jump in here, I'm ready to hear opinions.
(I think I've said this before, many times and many ways... I hate the boost
build system. There is a cmake
version available, but it still needs work, especially with regard to MPI and Python integration.)
comment:12 Changed 13 years ago by ltreugene@…
My system is set as
LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8
I don't mind to set it to Latin1 and see whether the problem can be fixed by this.
comment:13 Changed 13 years ago by ltreugene@…
I tried it and set the
LANG=en_US.ISO-8859
and LC_ALL=en_US.ISO-8859
. The build still failed.
Let me attach the log for you to check.
Changed 13 years ago by ltreugene@…
Attachment: | main.4.log added |
---|
Changed 13 years ago by ltreugene@…
Attachment: | main.5.log added |
---|
comment:14 Changed 13 years ago by adfernandes (Andrew Fernandes)
Thanks for checking this; much appreciated.
Unfortunately, the way that boost
gets built is that it first builds its own build system bjam
, not the same bjam
that you can download from their repository. This system is python-like and completely undocumented. It is also built in C. It may or may not be using the LANG and LC_ALL environment variables as it should.
Besides, I'm still guessing what the problem might be; the language issue was only a wild guess based on the encoding of the uploaded logs. :-(
comment:15 Changed 13 years ago by gamperl@…
The problem is caused by 'go'. After uninstalling the 'go' port, everything works find. For more detail see: #30203
comment:16 Changed 13 years ago by martin.eisenhardt@…
I can confirm that uninstalling go solves the problem. It is really a shame that boost and go won't go together on the same machine ... :(
comment:17 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | susheel.varma@… ryandesign@… added |
---|---|
Summary: | boost-1.47 failed to be installed. → boost-1.47 fails to build when go is installed |
Has duplicate #31129.
If this is only a problem with "go" being present, then you can prevent it using a code block like the one found in ImageMagick or nodejs. But it sounds like this is really a bug in "go" that should be fixed there since it would probably affect many other ports.
comment:18 Changed 13 years ago by adfernandes (Andrew Fernandes)
Resolution: | → duplicate |
---|---|
Status: | new → closed |
This will, I hope, be fixed with #31169.
Please remember to preview and use WikiFormatting, fill in the Port field, and cc the maintainer.