Linking libnote_sound.a fails on OSX / ports

Bug #1669971 reported by Klaus Halfmann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Fix Released
Undecided
Unassigned

Bug Description

I try to update or compile bzr8309[trunk]

trunk klaus$ ./compile.sh
....
[ 29%] Built target see_if_codecheck_needs_to_run_a3af4df2c20bc712b9ffeffc537608c335610d31
[ 29%] Linking CXX static library libnote_sound.a
ar: no archive members specified
usage: ar -d [-TLsv] archive file ...
 ar -m [-TLsv] archive file ...
 ar -m [-abiTLsv] position archive file ...
 ar -p [-TLsv] archive [file ...]
 ar -q [-cTLsv] archive file ...
 ar -r [-cuTLsv] archive file ...
 ar -r [-abciuTLsv] position archive file ...
 ar -t [-TLsv] archive [file ...]
 ar -x [-ouTLsv] archive [file ...]
make[2]: *** [src/sound/libnote_sound.a] Error 1
make[1]: *** [src/sound/CMakeFiles/note_sound.dir/all] Error 2
make: *** [all] Error 2

maybe I have to add some (new) library via the ports mechanism?

Tags: buildsystem

Related branches

Revision history for this message
Klaus Halfmann (klaus-halfmann) wrote :

make -n ## shows me

/opt/local/bin/cmake -E cmake_echo_color --switch= --green --progress-dir=/widelands-repo/trunk/build/CMakeFiles --progress-num= "Building CXX object src/economy/test/CMakeFiles/test_economy.dir/test_routing.cc.o"

cd /widelands-repo/trunk/build/src/economy/test &&
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -I/widelands-repo/trunk/src -I/widelands-repo/trunk/build/src -isystem /opt/local/include -isystem /opt/local/include/SDL2 -isystem /opt/local/include/gl -g -DBOOST_TEST_DYN_LINK -std=c++11 -g -DDEBUG -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-conversion -Wno-exit-time-destructors -Wno-global-constructors -Wno-padded -Wno-sign-conversion -Wno-missing-noreturn -Wno-implicit-fallthrough -Wno-weak-vtables -Wno-unreachable-code -Wno-documentation -Werror=deprecated -Werror=non-pod-varargs -Qunused-arguments -Werror=format-security -Werror=return-type -Werror=shadow -Werror=uninitialized -o CMakeFiles/test_economy.dir/test_routing.cc.o -c /widelands-repo/trunk/src/economy/test/test_routing.cc

make[2]: *** No rule to make target `src/sound/libnote_sound.a',
needed by `src/economy/test/test_economy'. Stop.

SirVer / Gun: what was the last Branch mereged here?
SirVer: can you confim?

Anyone else with OSX ports?

Revision history for this message
GunChleoc (gunchleoc) wrote :

Offending commit:

http://bazaar.launchpad.net/~widelands-dev/widelands/trunk/revision/8312

I removed the dependencies from sound to logic and wui. I might have missed including/removing a header somewhere that Travis and AppVeyor had no problem with.

Revision history for this message
Klaus Halfmann (klaus-halfmann) wrote :

Maybe I must delte some CMake magic cache?

Revision history for this message
GunChleoc (gunchleoc) wrote :

You could try deleting the build directory, that will empty the cmake cache for your branch.

Revision history for this message
Klaus Halfmann (klaus-halfmann) wrote :

Now trying with a fresh copy (which will deltet the build directory as well)

bzr branch lp:widelands
cd widelands/
./compile.sh

Scanning dependencies of target note_sound
[ 31%] Linking CXX static library libnote_sound.a
ar: no archive members specified

Revision history for this message
Klaus Halfmann (klaus-halfmann) wrote :

Look like we need a dummy note_sound.cc as (my) CMake will get confused.
Branch is compiling ...

GunChleoc (gunchleoc)
Changed in widelands:
status: New → Fix Committed
milestone: none → build20-rc1
tags: added: buildsystem
Revision history for this message
GunChleoc (gunchleoc) wrote :

Fixed in build20-rc1

Changed in widelands:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.